mirror of
https://github.com/rectorphp/rector.git
synced 2024-06-21 18:42:24 +00:00
clear fixture
This commit is contained in:
parent
7e88261841
commit
66bd900e18
|
@ -2,7 +2,7 @@
|
|||
|
||||
namespace Rector\CodeQuality\Tests\Rector\For_\ForToForeachRector\Fixture;
|
||||
|
||||
class SomeClass
|
||||
class SkipOtherUseOfLoopVar
|
||||
{
|
||||
public function run($tokens)
|
||||
{
|
||||
|
@ -13,23 +13,3 @@ class SomeClass
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
-----
|
||||
<?php
|
||||
|
||||
namespace Rector\CodeQuality\Tests\Rector\For_\ForToForeachRector\Fixture;
|
||||
|
||||
class SomeClass
|
||||
{
|
||||
public function run($tokens)
|
||||
{
|
||||
$other = array_reverse($tokens);
|
||||
for ($i = 0, $c = count($tokens); $i < $c; ++$i) {
|
||||
$value = $tokens[$i][0][1][4];
|
||||
return $other[$i];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
|
|
Loading…
Reference in New Issue
Block a user