Skip to content

Commit 4311325

Browse files
Update rules/CodeQuality/Rector/BooleanAnd/RepeatedAndNotEqualToNotInArrayRector.php
Co-authored-by: Abdul Malik Ikhsan <samsonasik@gmail.com>
1 parent 3f83227 commit 4311325

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

rules/CodeQuality/Rector/BooleanAnd/RepeatedAndNotEqualToNotInArrayRector.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -181,12 +181,12 @@ private function matchComparedAndDesiredValues(BooleanAnd $booleanAnd): ?array
181181

182182
private function isStrictComparison(BooleanAnd $booleanAnd): bool
183183
{
184-
$notIenticals = $this->betterNodeFinder->findInstanceOf($booleanAnd, NotIdentical::class);
184+
$notIdenticals = $this->betterNodeFinder->findInstanceOf($booleanAnd, NotIdentical::class);
185185
$notEquals = $this->betterNodeFinder->findInstanceOf($booleanAnd, NotEqual::class);
186186

187-
if ($notIenticals !== []) {
188-
// mix identical and equals, keep as is
189-
// @see https://3v4l.org/24cFl
187+
if ($notIdenticals !== []) {
188+
// mix not identical and not equals, keep as is
189+
// @see https://3v4l.org/2SoHZ
190190
return $notEquals === [];
191191
}
192192

rules/Privatization/NodeManipulator/VisibilityManipulator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ private function replaceVisibilityFlag(ClassMethod | Property | ClassConst | Par
207207
$this->makeNonStatic($node);
208208
}
209209

210-
if (!in_array($visibility, [Visibility::STATIC, Visibility::ABSTRACT, Visibility::FINAL], true)) {
210+
if (! in_array($visibility, [Visibility::STATIC, Visibility::ABSTRACT, Visibility::FINAL], true)) {
211211
$this->removeVisibility($node);
212212
}
213213

src/ValueObject/Error/SystemError.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ public function getRectorShortClass(): ?string
8484
{
8585
$rectorClass = $this->rectorClass;
8686

87-
if (!in_array($rectorClass, [null, ''], true)) {
87+
if (! in_array($rectorClass, [null, ''], true)) {
8888
return (string) Strings::after($rectorClass, '\\', -1);
8989
}
9090

0 commit comments

Comments
 (0)