独断と偏見のphp-cs-fixerルールを追加

This commit is contained in:
shibafu
2019-01-15 00:02:44 +09:00
parent 8c6cc0692c
commit a2f797cbbe
4 changed files with 561 additions and 2 deletions
+26
View File
@@ -0,0 +1,26 @@
<?php
return \PhpCsFixer\Config::create()
->setRules([
'@PSR2' => true,
'array_syntax' => [
'syntax' => 'short'
],
'blank_line_before_return' => true,
'function_typehint_space' => true,
'method_separation' => true,
'ordered_imports' => true,
'return_type_declaration' => true,
'new_with_braces' => true,
'no_empty_statement' => true,
'standardize_not_equals' => true
])
->setFinder(
\PhpCsFixer\Finder::create()
->exclude('bootstrap/cache')
->exclude('resources/views')
->exclude('storage')
->exclude('vendor')
->exclude('node_modules')
->in(__DIR__)
);