-
Notifications
You must be signed in to change notification settings - Fork 80
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #33 from michaeldyrynda/chore/laravel-6-compat
Laravel 6 compatibility
- Loading branch information
Showing
7 changed files
with
58 additions
and
98 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 |
---|---|---|
@@ -0,0 +1,29 @@ | ||
<?php | ||
|
||
$finder = \PhpCsFixer\Finder::create() | ||
->in(__DIR__) | ||
->exclude(['bootstrap', 'storage', 'vendor']) | ||
->name('*.php') | ||
->name('_ide_helper') | ||
->notName('*.blade.php') | ||
->ignoreDotFiles(true) | ||
->ignoreVCS(true); | ||
|
||
return PhpCsFixer\Config::create() | ||
->setRules([ | ||
'@PSR2' => true, // Use PSR-2 formatting by default. | ||
'psr0' => false, // Don't do PSR-0 formatting (implicit under PSR-2). | ||
'not_operator_with_successor_space' => true, // Logical NOT operators (!) should have one trailing whitespace. | ||
'trailing_comma_in_multiline_array' => true, // PHP multi-line arrays should have a trailing comma. | ||
'ordered_imports' => ['sortAlgorithm' => 'length'], // Ordering use statements (alphabetically) | ||
'ordered_class_elements' => true, // Order class elements | ||
'blank_line_before_return' => true, // An empty line feed should precede a return statement | ||
'array_syntax' => ['syntax' => 'short'], // PHP arrays should use the PHP 5.4 short-syntax. | ||
'short_scalar_cast' => true, // Cast "(boolean)" and "(integer)" should be written as "(bool)" and "(int)". "(double)" and "(real)" as "(float)". | ||
'single_blank_line_before_namespace' => true, // An empty line feed should precede the namespace. | ||
'blank_line_after_opening_tag' => true, // An empty line feed should follow a PHP open tag. | ||
'no_unused_imports' => true, // Unused use statements must be removed. | ||
'trim_array_spaces' => true, // Arrays should be formatted like function/method arguments, without leading or trailing single line space. | ||
'no_trailing_comma_in_singleline_array' => true, // PHP single-line arrays should not have a trailing comma. | ||
]) | ||
->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
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
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
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
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
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