File tree Expand file tree Collapse file tree
rules-tests/CodeQuality/Rector/For_/ForRepeatedCountToOwnVariableRector/Fixture
rules/CodeQuality/Rector/For_ Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ <div>
2+ <?php for ($ i = 5 ; $ i <= count ($ items ); $ i ++) : ?>
3+ <p>Item <?php echo $ i ; ?> </p>
4+ <?php endfor ; ?>
5+ </div>
Original file line number Diff line number Diff line change 1414use PhpParser \Node \Stmt ;
1515use PhpParser \Node \Stmt \Expression ;
1616use PhpParser \Node \Stmt \For_ ;
17+ use Rector \Contract \Rector \HTMLAverseRectorInterface ;
1718use Rector \PHPStan \ScopeFetcher ;
1819use Rector \Rector \AbstractRector ;
1920use Symplify \RuleDocGenerator \ValueObject \CodeSample \CodeSample ;
2223/**
2324 * @see \Rector\Tests\CodeQuality\Rector\For_\ForRepeatedCountToOwnVariableRector\ForRepeatedCountToOwnVariableRectorTest
2425 */
25- final class ForRepeatedCountToOwnVariableRector extends AbstractRector
26+ final class ForRepeatedCountToOwnVariableRector extends AbstractRector implements HTMLAverseRectorInterface
2627{
2728 private const string COUNTER_NAME = 'counter ' ;
2829
You can’t perform that action at this time.
0 commit comments