This repository was archived by the owner on Nov 21, 2019. It is now read-only.
File tree Expand file tree Collapse file tree 6 files changed +52
-5
lines changed Expand file tree Collapse file tree 6 files changed +52
-5
lines changed Original file line number Diff line number Diff line change 1111 </rule >
1212
1313 <rule ref =" Generic.Arrays.DisallowLongArraySyntax" />
14+ <rule ref =" Generic.Files.InlineHTML" />
1415 <rule ref =" Generic.Formatting.SpaceAfterCast" />
1516 <rule ref =" Generic.PHP.BacktickOperator" />
17+ <rule ref =" Generic.PHP.CharacterBeforePHPOpeningTag" />
1618 <rule ref =" Generic.PHP.LowerCaseType" />
1719 <rule ref =" PEAR.WhiteSpace.ObjectOperatorIndent" />
1820 <rule ref =" SlevomatCodingStandard.Classes.ClassConstantVisibility" >
Original file line number Diff line number Diff line change @@ -9,4 +9,7 @@ declare(strict_types=1);
99
1010---MESSAGES---
11111:1 Generic.Files.ByteOrderMark.Found
12+ ---IGNORE-MESSAGES---
13+ 1:1 Generic.Files.InlineHTML.Found
14+ 1:2 Generic.PHP.CharacterBeforePHPOpeningTag.Found
1215---
Original file line number Diff line number Diff line change 11---DESCRIPTION---
2- No closing PHP tags at the end of files
2+ No closing PHP tags
33---CONTENTS---
44<?php
55
@@ -9,11 +9,10 @@ $foo = 'bar';
99
1010?>
1111
12- ---FIXED---
1312<?php
1413
15- declare(strict_types=1);
16-
17- $foo = 'bar';
14+ $baz = 'qux';
1815
16+ ---MESSAGES---
17+ 8:1 Generic.Files.InlineHTML.Found
1918---
Original file line number Diff line number Diff line change 1+ ---DESCRIPTION---
2+ No closing PHP tags at the end of files
3+ ---CONTENTS---
4+ <?php
5+
6+ declare(strict_types=1);
7+
8+ $foo = 'bar';
9+
10+ ?>
11+
12+ ---FIXED---
13+ <?php
14+
15+ declare(strict_types=1);
16+
17+ $foo = 'bar';
18+
19+ ---
Original file line number Diff line number Diff line change 1+ ---DESCRIPTION---
2+ No content before the opening PHP tag
3+ ---CONTENTS---
4+ foo<?php
5+
6+ declare(strict_types=1);
7+
8+ ---MESSAGES---
9+ 1:1 Generic.Files.InlineHTML.Found
10+ 1:4 Generic.PHP.CharacterBeforePHPOpeningTag.Found
11+ ---
Original file line number Diff line number Diff line change 1+ ---DESCRIPTION---
2+ No whitespace before the opening PHP tag
3+ ---CONTENTS---
4+ <?php
5+
6+ declare(strict_types=1);
7+
8+ ---FIXED---
9+ <?php
10+
11+ declare(strict_types=1);
12+
13+ ---
You can’t perform that action at this time.
0 commit comments