Skip to content

Commit 33b047e

Browse files
committed
OP-164 - updates ecs fixers for ecs
1 parent dffe4ce commit 33b047e

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

src/Fixer/AboveTwoArgumentsMultilineFixer.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ public function fix(\SplFileInfo $file, Tokens $tokens): void
3838
}
3939
++$index;
4040
}
41-
if (count($variableTokenIndexes) > 2) {
41+
if (2 < count($variableTokenIndexes)) {
4242
if (!$tokens[$openBracketIndex + 1]->isWhitespace()) {
4343
$tokens[$openBracketIndex + 1] = new Token([\T_STRING, "\n " . $tokens[$openBracketIndex + 1]->getContent()]);
4444
}
@@ -72,9 +72,9 @@ public function getDefinition(): FixerDefinitionInterface
7272
FirstParamInterface $firstParam,
7373
SecondParamInterface $secondParam,
7474
ThirdParamInterface $thirdParam
75-
): void;'
75+
): void;',
7676
),
77-
]
77+
],
7878
);
7979
}
8080

src/Fixer/FinalClassInEntitiesFixer.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,9 @@ public function getDefinition(): FixerDefinitionInterface
5151
final class Product
5252
{
5353
}
54-
'
54+
',
5555
),
56-
]
56+
],
5757
);
5858
}
5959

@@ -69,6 +69,6 @@ public function getPriority(): int
6969

7070
public function supports(SplFileInfo $file): bool
7171
{
72-
return strpos($file->getPath(), 'src/Entity/') !== false;
72+
return false !== strpos($file->getPath(), 'src/Entity/');
7373
}
7474
}

0 commit comments

Comments
 (0)