forked from goldspecdigital/oooas
-
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.
PHP CS Fixer support for PHP ^8.0 (goldspecdigital#57)
* Update .php-cs-fixer.php * Update composer.json * Update composer.json * Removed udiff format * Simplified code style * Added schema contract support for properties * Update composer.json * Update composer.json * Update composer.json * Revert "Update composer.json" This reverts commit 8f41436. * Revert "Update composer.json" This reverts commit 80565be. * Revert "Update composer.json" This reverts commit d794a82. * Update tests.yml
- Loading branch information
1 parent
2b18a2b
commit 072f8d9
Showing
7 changed files
with
69 additions
and
137 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
use PhpCsFixer\Config; | ||
use PhpCsFixer\Finder; | ||
|
||
$finder = Finder::create() | ||
->in(__DIR__) | ||
->exclude([ | ||
'media', | ||
'tests', | ||
'vendor', | ||
]); | ||
|
||
$rules = [ | ||
'@PSR1' => true, | ||
'@PSR2' => true, | ||
]; | ||
|
||
return (new Config()) | ||
->setRules($rules) | ||
->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