Skip to content

Commit 673eefd

Browse files
committed
PER CS 3.0: 3. Declare Statements, Namespace, and Import Statements
1 parent 5933b7c commit 673eefd

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/Standards/PER-CS3.0/ruleset.xml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -120,17 +120,19 @@
120120

121121
<!-- When a file contains a mix of HTML and PHP, any of the above sections may still be used. If so, they MUST be present at the top of the file, even if the remainder of the code consists of a closing PHP tag and then a mixture of HTML and PHP. -->
122122

123-
<!-- When the opening php tag is on the first line of the file, it MUST be on its own line with no other statements unless it is a file containing markup outside of PHP opening and closing tags. -->
123+
<!-- When the opening php tag is on the first line of the file, it MUST be on its own line with no other statements unless it is a file containing markup outside of PHP opening and closing tags. The php tag MUST always be lower case. -->
124124
<!-- checked by PSR12.Files.OpenTag -->
125+
<!--todo-->
125126

126127
<!-- Import statements MUST never begin with a leading backslash as they must always be fully qualified. -->
127128
<!-- checked by PSR12.Files.ImportStatement -->
128129

129-
<!-- Compound namespaces with a depth of more than two MUST NOT be used. -->
130+
<!-- When using compound namespaces, there MUST NOT be more than two sub-namespaces within the group. -->
130131
<!-- checked by PSR12.Namespaces.CompoundNamespaceDepth -->
132+
<!--todo-->
131133

132134
<!-- When wishing to declare strict types in files containing markup outside PHP opening and closing tags, the declaration MUST be on the first line of the file and include an opening PHP tag, the strict types declaration and closing tag. -->
133-
<!-- Declare statements MUST contain no spaces and MUST be exactly declare(strict_types=1) (with an optional semicolon terminator). -->
135+
<!-- Declare statements MUST NOT contain any spaces and MUST be exactly declare(strict_types=1) (with an optional semicolon terminator). -->
134136
<!-- Block declare statements are allowed and MUST be formatted as below. -->
135137
<!-- checked by PSR12.Files.DeclareStatement -->
136138

0 commit comments

Comments
 (0)