Skip to content

Commit d2c0300

Browse files
authored
Merge pull request #3127 from tarlepp/refactor/stop-watch-decorator
Refactor - StopwatchDecorator
2 parents c85f3c5 + 6ac956b commit d2c0300

File tree

6 files changed

+461
-81
lines changed

6 files changed

+461
-81
lines changed

config/services.yaml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,9 +60,6 @@ when@dev:
6060
App\Tests\Utils\:
6161
resource: '../tests/Utils/*'
6262

63-
ProxyManager\Factory\AccessInterceptorValueHolderFactory:
64-
class: ProxyManager\Factory\AccessInterceptorValueHolderFactory
65-
6663
doctrine.dbal.default_connection.stopwatch:
6764
class: Doctrine\DBAL\Connection
6865
decorates: doctrine.dbal.default_connection

ecs.php

Lines changed: 28 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
use PhpCsFixer\Fixer\Phpdoc\PhpdocSummaryFixer;
2929
use PhpCsFixer\Fixer\Phpdoc\PhpdocToCommentFixer;
3030
use PhpCsFixer\Fixer\PhpTag\BlankLineAfterOpeningTagFixer;
31+
use PhpCsFixer\Fixer\StringNotation\ExplicitStringVariableFixer;
3132
use PhpCsFixer\Fixer\Whitespace\BlankLineBeforeStatementFixer;
3233
use Symplify\EasyCodingStandard\Config\ECSConfig;
3334
use Symplify\EasyCodingStandard\ValueObject\Set\SetList;
@@ -43,11 +44,15 @@
4344
$ruleConfigurations = [
4445
[
4546
IncrementStyleFixer::class,
46-
['style' => 'post'],
47+
[
48+
'style' => 'post',
49+
],
4750
],
4851
[
4952
CastSpacesFixer::class,
50-
['space' => 'none'],
53+
[
54+
'space' => 'none',
55+
],
5156
],
5257
[
5358
YodaStyleFixer::class,
@@ -59,15 +64,21 @@
5964
],
6065
[
6166
ConcatSpaceFixer::class,
62-
['spacing' => 'one'],
67+
[
68+
'spacing' => 'one',
69+
],
6370
],
6471
[
6572
CastSpacesFixer::class,
66-
['space' => 'none'],
73+
[
74+
'space' => 'none',
75+
],
6776
],
6877
[
6978
OrderedImportsFixer::class,
70-
['imports_order' => ['class', 'function', 'const']],
79+
[
80+
'imports_order' => ['class', 'function', 'const'],
81+
],
7182
],
7283
[
7384
NoSuperfluousPhpdocTagsFixer::class,
@@ -79,15 +90,23 @@
7990
],
8091
[
8192
DeclareEqualNormalizeFixer::class,
82-
['space' => 'single'],
93+
[
94+
'space' => 'single',
95+
],
8396
],
8497
[
8598
BlankLineBeforeStatementFixer::class,
86-
['statements' => ['continue', 'declare', 'return', 'throw', 'try']],
99+
[
100+
'statements' => ['continue', 'declare', 'return', 'throw', 'try'],
101+
],
87102
],
88103
[
89104
BinaryOperatorSpacesFixer::class,
90-
['operators' => ['&' => 'align']],
105+
[
106+
'operators' => [
107+
'&' => 'align',
108+
],
109+
],
91110
],
92111
];
93112

@@ -106,5 +125,6 @@
106125
PhpdocAlignFixer::class => null,
107126
PhpdocToCommentFixer::class => null,
108127
NativeFunctionInvocationFixer::class => null,
128+
ExplicitStringVariableFixer::class => null,
109129
]);
110130
};

0 commit comments

Comments
 (0)