File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed
rules-tests/CodeQuality/Rector/Expression/TernaryFalseExpressionToIfRector/Fixture
rules/CodeQuality/Rector/Expression Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change 1+ <?php
2+ # its a .phtml file
3+ ?>
4+ <td<?php $ this ->call ($ a , 'v ' ) ? ' class="x" ' : '' ?> >
Original file line number Diff line number Diff line change 1010use PhpParser \Node \Expr \Variable ;
1111use PhpParser \Node \Stmt \Expression ;
1212use PhpParser \Node \Stmt \If_ ;
13+ use Rector \Contract \Rector \HTMLAverseRectorInterface ;
1314use Rector \NodeAnalyzer \ExprAnalyzer ;
1415use Rector \Rector \AbstractRector ;
1516use Symplify \RuleDocGenerator \ValueObject \CodeSample \CodeSample ;
1819/**
1920 * @see \Rector\Tests\CodeQuality\Rector\Expression\TernaryFalseExpressionToIfRector\TernaryFalseExpressionToIfRectorTest
2021 */
21- final class TernaryFalseExpressionToIfRector extends AbstractRector
22+ final class TernaryFalseExpressionToIfRector extends AbstractRector implements HTMLAverseRectorInterface
2223{
2324 public function __construct (
2425 private readonly ExprAnalyzer $ exprAnalyzer
You can’t perform that action at this time.
0 commit comments