1<?xml version="1.0"?>
2<ruleset name="PSR1">
3 <description>The PSR1 coding standard.</description>
4
5 <!-- 2. Files -->
6
7 <!-- 2.1. PHP Tags -->
8
9 <!-- PHP code MUST use the long <?php ?> tags or the short-echo <?= ?> tags; it MUST NOT use the other tag variations. -->
10 <rule ref="Generic.PHP.DisallowShortOpenTag.EchoFound">
11  <severity>0</severity>
12 </rule>
13
14 <!-- 2.2. Character Encoding -->
15
16 <!-- PHP code MUST use only UTF-8 without BOM. -->
17 <rule ref="Generic.Files.ByteOrderMark"/>
18
19 <!-- 2.3. Side Effects -->
20
21 <!-- A file SHOULD declare new symbols (classes, functions, constants, etc.) and cause no other side effects, or it SHOULD execute logic with side effects, but SHOULD NOT do both. -->
22 <!-- checked in Files/SideEffectsSniff -->
23
24 <!-- 3. Namespace and Class Names -->
25
26 <!-- Namespaces and classes MUST follow PSR-0.
27      This means each class is in a file by itself, and is in a namespace of at least one level: a top-level vendor name. -->
28 <!-- checked in Classes/ClassDeclarationSniff -->
29
30 <!-- Class names MUST be declared in StudlyCaps. -->
31 <rule ref="Squiz.Classes.ValidClassName"/>
32
33 <!-- 4. Class Constants, Properties, and Methods -->
34
35 <!-- 4.1. Constants -->
36
37 <!-- Class constants MUST be declared in all upper case with underscore separators. -->
38 <rule ref="Generic.NamingConventions.UpperCaseConstantName"/>
39
40 <!-- 4.3. Methods -->
41
42 <!-- Method names MUST be declared in camelCase(). -->
43 <!-- checked in Methods/CamelCapsMethodNameSniff -->
44
45</ruleset>
46