generated from yii2-extensions/template
-
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.
Update dependencies and fix coding standards issues. (#8)
- Loading branch information
1 parent
72e5aa7
commit 03db596
Showing
9 changed files
with
64 additions
and
16 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
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,39 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
use PhpCsFixer\Fixer\ClassNotation\ClassDefinitionFixer; | ||
use PhpCsFixer\Fixer\ClassNotation\OrderedClassElementsFixer; | ||
use PhpCsFixer\Fixer\ClassNotation\OrderedTraitsFixer; | ||
use PhpCsFixer\Fixer\Import\NoUnusedImportsFixer; | ||
use Symplify\EasyCodingStandard\Config\ECSConfig; | ||
|
||
return ECSConfig::configure() | ||
->withConfiguredRule( | ||
ClassDefinitionFixer::class, | ||
[ | ||
'space_before_parenthesis' => true, | ||
], | ||
) | ||
->withFileExtensions(['php']) | ||
->withPaths( | ||
[ | ||
__DIR__ . '/src', | ||
__DIR__ . '/tests', | ||
], | ||
) | ||
->withPhpCsFixerSets(perCS20: true) | ||
->withPreparedSets( | ||
cleanCode: true, | ||
comments:true, | ||
docblocks: true, | ||
namespaces: true, | ||
psr12: true | ||
) | ||
->withRules( | ||
[ | ||
NoUnusedImportsFixer::class, | ||
OrderedClassElementsFixer::class, | ||
OrderedTraitsFixer::class, | ||
] | ||
); |
File renamed without changes.
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