-
Notifications
You must be signed in to change notification settings - Fork 8
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 #13 from acornforth/master
Multiple Fixes
- Loading branch information
Showing
43 changed files
with
794 additions
and
791 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,9 @@ | ||
# Package Control | ||
/composer.lock | ||
|
||
# Vendor Files | ||
/vendor | ||
|
||
# IDE/Workspace settings | ||
/.idea | ||
|
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,35 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
use PhpCsFixer\Fixer\ArrayNotation\ArraySyntaxFixer; | ||
use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator; | ||
use Symplify\EasyCodingStandard\ValueObject\Option; | ||
use Symplify\EasyCodingStandard\ValueObject\Set\SetList; | ||
|
||
return static function (ContainerConfigurator $containerConfigurator): void { | ||
$parameters = $containerConfigurator->parameters(); | ||
$parameters->set(Option::PATHS, [ | ||
__DIR__ . '/src', | ||
__DIR__ . '/tests', | ||
]); | ||
|
||
$services = $containerConfigurator->services(); | ||
$services->set(ArraySyntaxFixer::class) | ||
->call('configure', [[ | ||
'syntax' => 'short', | ||
]]); | ||
|
||
// run and fix, one by one | ||
$containerConfigurator->import(SetList::SPACES); | ||
$containerConfigurator->import(SetList::ARRAY); | ||
$containerConfigurator->import(SetList::SYMFONY); | ||
$containerConfigurator->import(SetList::PSR_12); | ||
$containerConfigurator->import(SetList::STRICT); | ||
$containerConfigurator->import(SetList::NAMESPACES); | ||
$containerConfigurator->import(SetList::CONTROL_STRUCTURES); | ||
$containerConfigurator->import(SetList::PHP_CS_FIXER); | ||
$containerConfigurator->import(SetList::DOCBLOCK); | ||
$containerConfigurator->import(SetList::CLEAN_CODE); | ||
$containerConfigurator->import(SetList::SYMPLIFY); | ||
}; |
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
Oops, something went wrong.