1 Star 0 Fork 0

karry_ii / demo.laravel-admin.org

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
.php_cs 1.55 KB
一键复制 编辑 原始数据 按行查看 历史
lil 提交于 2019-10-31 10:52 . first commit
<?php
$finder = PhpCsFixer\Finder::create()
->files()
->in('app')
->in('bootstrap')
->in('config')
->in('vendor')
->in('tests')
->name('*.php');
return PhpCsFixer\Config::create()
->setRules([
'@PSR2' => true,
'array_syntax' => ['syntax' => 'short'],
'array_indentation' => true,
'binary_operator_spaces' => [
'align_double_arrow' => true,
'align_equals' => true
],
'blank_line_before_statement' => true,
'class_attributes_separation' => true,
'no_blank_lines_after_class_opening' => true,
'no_blank_lines_after_phpdoc' => true,
'no_leading_import_slash' => true,
'no_leading_namespace_whitespace' => true,
'no_unused_imports' => true,
'object_operator_without_whitespace' => true,
'single_blank_line_before_namespace' => true,
'ternary_operator_spaces' => true,
'trailing_comma_in_multiline_array' => true,
'trim_array_spaces' => true,
'unary_operator_spaces' => true,
'visibility_required' => true,
'whitespace_after_comma_in_array' => true,
'phpdoc_align' => true,
'phpdoc_indent' => true,
'phpdoc_no_access' => true,
'phpdoc_no_empty_return' => true,
'phpdoc_no_package' => true,
'phpdoc_scalar' => true,
'phpdoc_separation' => true,
'phpdoc_to_comment' => true,
'phpdoc_trim' => true,
'phpdoc_types' => true,
'phpdoc_var_without_name' => true,
])
->setFinder($finder);
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
PHP
1
https://gitee.com/karry_ii/demo.laravel-admin.org.git
git@gitee.com:karry_ii/demo.laravel-admin.org.git
karry_ii
demo.laravel-admin.org
demo.laravel-admin.org
master

搜索帮助

344bd9b3 5694891 D2dac590 5694891