File tree Expand file tree Collapse file tree 2 files changed +22
-0
lines changed
src/Standards/Squiz/Tests/PHP Expand file tree Collapse file tree 2 files changed +22
-0
lines changed Original file line number Diff line number Diff line change @@ -188,6 +188,17 @@ Safeguard closing tag indent calculation for when the last content on the close
188
188
<?php
189
189
} ?>
190
190
191
+ <!--
192
+ Safeguard that blank lines between a PHP tag and a scope closer are not touched as the scope closer may have its own rules.
193
+ -->
194
+ <?php if ($ foo ) { ?>
195
+ <tr></tr>
196
+ <?php
197
+
198
+
199
+ }
200
+ ?>
201
+
191
202
<?php
192
203
// This test case file MUST always end with an unclosed long open PHP tag (with this comment) to prevent
193
204
// the tests running into the "last PHP closing tag excepted" condition breaking tests.
Original file line number Diff line number Diff line change @@ -190,6 +190,17 @@ Safeguard closing tag indent calculation for when the last content on the close
190
190
}
191
191
?>
192
192
193
+ <!--
194
+ Safeguard that blank lines between a PHP tag and a scope closer are not touched as the scope closer may have its own rules.
195
+ -->
196
+ <?php if ($foo) { ?>
197
+ <tr></tr>
198
+ <?php
199
+
200
+
201
+ }
202
+ ?>
203
+
193
204
<?php
194
205
// This test case file MUST always end with an unclosed long open PHP tag (with this comment) to prevent
195
206
// the tests running into the "last PHP closing tag excepted" condition breaking tests.
You can’t perform that action at this time.
0 commit comments