Skip to content

Commit

Permalink
tidy fixture
Browse files Browse the repository at this point in the history
  • Loading branch information
TomasVotruba committed Sep 19, 2023
1 parent 3ffd995 commit de462cf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 23 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

namespace Rector\Tests\DeadCode\Rector\Plus\RemoveDeadZeroAndOneOperationRector\Fixture;

class SkipConstants
final class SkipConstants
{
public const ONE = 1;

Expand All @@ -14,24 +14,3 @@ class SkipConstants
$value = self::ONE / 5;
}
}

?>
-----
<?php

namespace Rector\Tests\DeadCode\Rector\Plus\RemoveDeadZeroAndOneOperationRector\Fixture;

class SkipConstants
{
public const ONE = 1;

public function run()
{
$value = 5 * self::ONE;
$value = 5 / self::ONE;
$value = self::ONE * 5;
$value = self::ONE / 5;
}
}

?>
Original file line number Diff line number Diff line change
Expand Up @@ -46,4 +46,4 @@ class ComplexIfCondAnd
}
}

?>
?>

0 comments on commit de462cf

Please sign in to comment.