Skip to content

Commit 36e1a8c

Browse files
committed
Squiz/EmbeddedPhp: add dedicated tests related to ignoring of first open tag
1 parent 3172a21 commit 36e1a8c

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<?php
2+
echo 'This line has the wrong indent'
3+
. ' and the close tag is not on its own line, but this will not be fixed'
4+
. ' as multi-line code blocks for the first PHP open tag will always be ignored'; ?>
5+
6+
<?php
7+
// Placeholder just to ensure the above is ignored solely because it is the first open tag, not
8+
// because the conditions related to the _last_ open tag kick in.
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<?=
2+
'This line has the wrong indent'
3+
. ' and the close tag is not on its own line, but this will not be fixed'
4+
. ' as multi-line code blocks for the first PHP open tag will always be ignored'; ?>
5+
6+
<?php
7+
// Placeholder just to ensure the above is ignored solely because it is the first open tag, not
8+
// because the conditions related to the _last_ open tag kick in.

0 commit comments

Comments
 (0)