Skip to content

Commit

Permalink
[automated] Apply Coding Standard (#5821)
Browse files Browse the repository at this point in the history
Co-authored-by: TomasVotruba <924196+TomasVotruba@users.noreply.github.com>
  • Loading branch information
TomasVotruba and TomasVotruba committed Apr 14, 2024
1 parent 5f21299 commit 86eb512
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion rules/DeadCode/Rector/If_/RemoveDeadInstanceOfRector.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

namespace Rector\DeadCode\Rector\If_;

use PHPStan\Reflection\ClassReflection;
use PhpParser\Node;
use PhpParser\Node\Expr;
use PhpParser\Node\Expr\Assign;
Expand All @@ -19,6 +18,7 @@
use PhpParser\Node\Stmt\Expression;
use PhpParser\Node\Stmt\If_;
use PhpParser\NodeTraverser;
use PHPStan\Reflection\ClassReflection;
use PHPStan\Type\MixedType;
use Rector\NodeManipulator\IfManipulator;
use Rector\Rector\AbstractRector;
Expand Down
4 changes: 2 additions & 2 deletions rules/TypeDeclaration/TypeInferer/SilentVoidResolver.php
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ private function hasStmtsAlwaysReturnOrExit(array $stmts): bool
return true;
}

if (!$this->isDoOrWhileWithAlwaysReturnOrExit($stmt)) {
if (! $this->isDoOrWhileWithAlwaysReturnOrExit($stmt)) {
continue;
}

Expand Down Expand Up @@ -151,7 +151,7 @@ private function isDoOrWhileWithAlwaysReturnOrExit(Stmt $stmt): bool
return false;
}

return $stmt instanceof Do_ && ! $this->isFoundLoopControl($stmt);;
return $stmt instanceof Do_ && ! $this->isFoundLoopControl($stmt);
}

private function isIfReturn(Stmt|Expr $stmt): bool
Expand Down

0 comments on commit 86eb512

Please sign in to comment.