Run Rector on your code to see what it can do for you:

 <?php
 # its a .phtml file
 ?>
 
 
 
-<td<?php $this->call($a, 'v') ? ' class="x"' : '' ?>><?php
+<td<?php if ($this->call($a, 'v')) {
+}><?php
PHP snippet to change

Applied Rules:

Not a change you expect?

Config  rector.php
Rector version: b09565 - released at 2026-05-25 06:37