8000 [automated] Apply Coding Standard (#6925) · rectorphp/rector-src@f00028f · GitHub
[go: up one dir, main page]

Skip to content

Commit f00028f

Browse files
authored
[automated] Apply Coding Standard (#6925)
Co-authored-by: TomasVotruba <924196+TomasVotruba@users.noreply.github.com>
1 parent 695228f commit f00028f

File tree

2 files changed

+11
-8
lines changed

2 files changed

+11
-8
lines changed

rules/Php83/Rector/FuncCall/DynamicClassConstFetchRector.php

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -26,18 +26,19 @@ public function getRuleDefinition(): RuleDefinition
2626
return new RuleDefinition(
2727
'constant(Example::class . \'::\' . $constName) to dynamic class const fetch Example::{$constName}',
2828
[
29-
new CodeSample(
30-
<<<'CODE_SAMPLE'
29+
new CodeSample(
30+
<<<'CODE_SAMPLE'
3131
constant(Example::class . '::' . $constName);
3232
CODE_SAMPLE
33-
,
34-
<<<'CODE_SAMPLE'
33+
,
34+
<<<'CODE_SAMPLE'
3535
Example::{$constName};
3636
CODE_SAMPLE
37-
,
38-
),
37+
,
38+
),
3939

40-
]);
40+
]
41+
);
4142
}
4243

4344
public function getNodeTypes(): array

tests/Issues/ChangeSwitchTernary/config/configured_rule.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,6 @@
88
use Rector\Tests\Issues\ChangeSwitchTernary\Source\AnotherExpressionRector;
99

1010
return RectorConfig::configure()
11-
->withRules([ChangeSwitchToMatchRector::class, TernaryFalseExpressionToIfRector::class, AnotherExpressionRector::class]);
11+
->withRules(
12+
[ChangeSwitchToMatchRector::class, TernaryFalseExpressionToIfRector::class, AnotherExpressionRector::class]
13+
);

0 commit comments

Comments
 (0)
0