forked from Nookure/NookTheme
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b2ec996
commit 78c8b8d
Showing
4 changed files
with
614 additions
and
379 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,3 +23,4 @@ docker-compose.yml | |
# for image related files | ||
misc | ||
.phpstorm.meta.php | ||
.php_cs.cache |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,40 @@ | ||
<?php | ||
|
||
require_once __DIR__ . '/vendor/sllh/php-cs-fixer-styleci-bridge/autoload.php'; | ||
$finder = PhpCsFixer\Finder::create() | ||
->in([ | ||
'app', | ||
'bootstrap', | ||
'config', | ||
'database', | ||
'resources/lang', | ||
'routes', | ||
'tests', | ||
]); | ||
|
||
use SLLH\StyleCIBridge\ConfigBridge; | ||
|
||
return ConfigBridge::create(); | ||
return PhpCsFixer\Config::create() | ||
->setRules([ | ||
'@Symfony' => true, | ||
'@PSR1' => true, | ||
'@PSR2' => true, | ||
'align_multiline_comment' => ['comment_type' => 'phpdocs_like'], | ||
'array_syntax' => ['syntax' => 'short'], | ||
'blank_line_before_return' => true, | ||
'blank_line_before_statement' => false, | ||
'combine_consecutive_unsets' => true, | ||
'concat_space' => ['spacing' => 'one'], | ||
'declare_equal_normalize' => ['space' => 'single'], | ||
'heredoc_to_nowdoc' => true, | ||
'linebreak_after_opening_tag' => true, | ||
'new_with_braces' => false, | ||
'no_alias_functions' => true, | ||
'no_multiline_whitespace_before_semicolons' => true, | ||
'no_unreachable_default_argument_value' => true, | ||
'no_useless_return' => true, | ||
'not_operator_with_successor_space' => true, | ||
'phpdoc_separation' => false, | ||
'protected_to_private' => false, | ||
'psr0' => ['dir' => 'app'], | ||
'psr4' => true, | ||
'random_api_migration' => true, | ||
'standardize_not_equals' => true, | ||
])->setRiskyAllowed(true)->setFinder($finder); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.