Skip to content

Commit 0ecc031

Browse files
committed
apply rule
1 parent fffb7c1 commit 0ecc031

35 files changed

+46
-46
lines changed

src/Cache/FileCacheManager.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ public function __construct(
5555
FileHandlerInterface $handler,
5656
SignatureInterface $signature,
5757
bool $isDryRun = false,
58-
?DirectoryInterface $cacheDirectory = null
58+
?DirectoryInterface $cacheDirectory = null,
5959
) {
6060
$this->handler = $handler;
6161
$this->signature = $signature;

src/Console/Command/SelfUpdateCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ final class SelfUpdateCommand extends Command
4747
public function __construct(
4848
NewVersionCheckerInterface $versionChecker,
4949
ToolInfoInterface $toolInfo,
50-
PharCheckerInterface $pharChecker
50+
PharCheckerInterface $pharChecker,
5151
) {
5252
parent::__construct();
5353

src/Console/ConfigurationResolver.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ public function __construct(
188188
ConfigInterface $config,
189189
array $options,
190190
string $cwd,
191-
ToolInfoInterface $toolInfo
191+
ToolInfoInterface $toolInfo,
192192
) {
193193
$this->defaultConfig = $config;
194194
$this->cwd = $cwd;

src/Console/Output/OutputContext.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ final class OutputContext
2828
public function __construct(
2929
?OutputInterface $output,
3030
int $terminalWidth,
31-
int $filesCount
31+
int $filesCount,
3232
) {
3333
$this->output = $output;
3434
$this->terminalWidth = $terminalWidth;

src/Console/Report/FixReport/ReportSummary.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ public function __construct(
5050
int $memory,
5151
bool $addAppliedFixers,
5252
bool $isDryRun,
53-
bool $isDecoratedOutput
53+
bool $isDecoratedOutput,
5454
) {
5555
$this->changed = $changed;
5656
$this->filesCount = $filesCount;

src/Fixer/AbstractPhpUnitFixer.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ final protected function ensureIsDockBlockWithAnnotation(
7474
Tokens $tokens,
7575
int $index,
7676
string $annotation,
77-
array $preventingAnnotations
77+
array $preventingAnnotations,
7878
): void {
7979
$docBlockIndex = $this->getDocBlockIndex($tokens, $index);
8080

@@ -121,7 +121,7 @@ private function updateDocBlockIfNeeded(
121121
Tokens $tokens,
122122
int $docBlockIndex,
123123
string $annotation,
124-
array $preventingAnnotations
124+
array $preventingAnnotations,
125125
): void {
126126
$doc = new DocBlock($tokens[$docBlockIndex]->getContent());
127127
foreach ($preventingAnnotations as $preventingAnnotation) {

src/Fixer/AbstractShortOperatorFixer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ private function shortenOperation(
9595
int $equalsIndex,
9696
int $operatorIndex,
9797
array $assignRange,
98-
array $operatorRange
98+
array $operatorRange,
9999
): void {
100100
$tokens[$equalsIndex] = $this->getReplacementToken($tokens[$operatorIndex]);
101101
$tokens->clearTokenAndMergeSurroundingWhitespace($operatorIndex);

src/Fixer/Alias/SetTypeToCastFixer.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ private function removeSettypeCall(
182182
int $firstArgumentStart,
183183
int $commaIndex,
184184
int $secondArgumentStart,
185-
int $closeParenthesisIndex
185+
int $closeParenthesisIndex,
186186
): void {
187187
$tokens->clearTokenAndMergeSurroundingWhitespace($closeParenthesisIndex);
188188
$prevIndex = $tokens->getPrevMeaningfulToken($closeParenthesisIndex);
@@ -201,7 +201,7 @@ private function fixSettypeCall(
201201
Tokens $tokens,
202202
int $functionNameIndex,
203203
Token $argumentToken,
204-
Token $castToken
204+
Token $castToken,
205205
): void {
206206
$tokens->insertAt(
207207
$functionNameIndex,
@@ -222,7 +222,7 @@ private function fixSettypeCall(
222222
private function fixSettypeNullCall(
223223
Tokens $tokens,
224224
int $functionNameIndex,
225-
Token $argumentToken
225+
Token $argumentToken,
226226
): void {
227227
$tokens->insertAt(
228228
$functionNameIndex,

src/Fixer/ControlStructure/NoUnneededControlParenthesesFixer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -683,7 +683,7 @@ private function removeUselessParenthesisPair(
683683
int $afterCloseIndex,
684684
int $openIndex,
685685
int $closeIndex,
686-
?string $configType
686+
?string $configType,
687687
): void {
688688
$statements = $this->configuration['statements'];
689689

src/Fixer/ControlStructure/YodaStyleFixer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -306,7 +306,7 @@ private function fixTokensCompare(
306306
int $endLeft,
307307
int $compareOperatorIndex,
308308
int $startRight,
309-
int $endRight
309+
int $endRight,
310310
): int {
311311
$type = $tokens[$compareOperatorIndex]->getId();
312312
$content = $tokens[$compareOperatorIndex]->getContent();

0 commit comments

Comments
 (0)