mirror of
https://github.com/wiosna-dev/common-library.git
synced 2026-03-12 01:31:45 +01:00
PHP CS Fixer > configuration > make more readable & remove unnecessary code
This commit is contained in:
11
.php_cs.dist
11
.php_cs.dist
@@ -1,9 +1,13 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
$finder = PhpCsFixer\Finder::create()
|
$finder = PhpCsFixer\Finder::create()
|
||||||
->in([
|
->in(__DIR__)
|
||||||
__DIR__ . '/src',
|
->exclude([
|
||||||
__DIR__ . '/tests',
|
'build',
|
||||||
|
'vendor',
|
||||||
|
])
|
||||||
|
->notPath([
|
||||||
|
'tests/Resources/var/',
|
||||||
])
|
])
|
||||||
;
|
;
|
||||||
|
|
||||||
@@ -12,6 +16,7 @@ return PhpCsFixer\Config::create()
|
|||||||
'@Symfony' => true,
|
'@Symfony' => true,
|
||||||
'@PhpCsFixer' => true,
|
'@PhpCsFixer' => true,
|
||||||
'@PHP71Migration' => true,
|
'@PHP71Migration' => true,
|
||||||
|
'array_syntax' => ['syntax' => 'short'],
|
||||||
'binary_operator_spaces' => [
|
'binary_operator_spaces' => [
|
||||||
'align_double_arrow' => true,
|
'align_double_arrow' => true,
|
||||||
],
|
],
|
||||||
|
|||||||
@@ -8,6 +8,7 @@ Common and useful classes, methods, exceptions etc.
|
|||||||
2. Docker > use images (instead of Dockerfiles)
|
2. Docker > use images (instead of Dockerfiles)
|
||||||
3. composer > squizlabs/php_codesniffer package > use ^3.4 (instead of ^2.9)
|
3. composer > squizlabs/php_codesniffer package > use ^3.4 (instead of ^2.9)
|
||||||
4. Do not require name of class by BaseTestCaseTrait::assertMethodVisibilityAndArguments() method
|
4. Do not require name of class by BaseTestCaseTrait::assertMethodVisibilityAndArguments() method
|
||||||
|
5. PHP CS Fixer > configuration > make more readable & remove unnecessary code
|
||||||
|
|
||||||
# 1.0.5
|
# 1.0.5
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user