Skip to content

Commit

Permalink
Optimize "or" conditions
Browse files Browse the repository at this point in the history
  • Loading branch information
michalbundyra committed Oct 5, 2019
1 parent f466523 commit 50fb0a8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions classes/DefaultArgumentRemoverReturnTypes.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ public function matches(Invocation $invocation) : bool
{
$iClass = class_exists(Invocation::class);

if ($invocation instanceof Invocation\StaticInvocation
|| $iClass
if ($iClass
|| $invocation instanceof Invocation\StaticInvocation
) {
$this->removeDefaultArguments(
$invocation,
Expand Down
4 changes: 2 additions & 2 deletions classes/DefaultArgumentRemoverReturnTypes84.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ public function matches(Invocation $invocation) : bool
{
$iClass = class_exists(Invocation::class);

if ($invocation instanceof Invocation\StaticInvocation
|| $iClass
if ($iClass
|| $invocation instanceof Invocation\StaticInvocation
) {
$this->removeDefaultArguments(
$invocation,
Expand Down

0 comments on commit 50fb0a8

Please sign in to comment.