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

 <?php
 # its a .phtml file
 ?>
-<tr<?php if (!$this->some()) echo ' class="border"' ?>>
+<tr<?php if (!$this->some()) {
+    echo ' class="border"' ?>
+}>
     <td></td>
 </tr>
PHP snippet to change

Applied Rules:

Not a change you expect?

Config  rector.php
Rector version: 05371b - released at 2026-04-16 14:00