|
10 | 10 |
|
11 | 11 | <rule ref="Generic.Files.ByteOrderMark" /> |
12 | 12 | <rule ref="Generic.Files.EndFileNewline" /> |
| 13 | + <rule ref="Generic.Files.InlineHTML" /> |
13 | 14 | <rule ref="Generic.Files.LineEndings" /> |
14 | 15 | <rule ref="Generic.Files.LineLength"> |
15 | 16 | <properties> |
|
18 | 19 | </properties> |
19 | 20 | </rule> |
20 | 21 | <rule ref="Generic.Files.OneClassPerFile" /> |
| 22 | + <rule ref="Generic.Files.OneInterfacePerFile" /> |
| 23 | + <rule ref="Generic.Files.OneTraitPerFile" /> |
21 | 24 |
|
22 | 25 | <rule ref="Generic.Formatting.DisallowMultipleStatements" /> |
23 | 26 |
|
|
41 | 44 |
|
42 | 45 | <rule ref="Generic.NamingConventions" /> |
43 | 46 | <rule ref="Generic.NamingConventions.CamelCapsFunctionName.ScopeNotCamelCaps"> |
44 | | - <severity>0</severity> |
| 47 | + <!-- Exclude test methods like "testGivenInvalidInput_methodThrowsException". --> |
| 48 | + <exclude-pattern>tests.unit*Test\.php</exclude-pattern> |
45 | 49 | </rule> |
46 | 50 |
|
47 | 51 | <rule ref="Generic.PHP.CharacterBeforePHPOpeningTag" /> |
|
57 | 61 |
|
58 | 62 | <rule ref="PSR1" /> |
59 | 63 | <rule ref="PSR1.Methods.CamelCapsMethodName.NotCamelCaps"> |
60 | | - <severity>0</severity> |
| 64 | + <!-- Exclude test methods like "testGivenInvalidInput_methodThrowsException". --> |
| 65 | + <exclude-pattern>tests.unit*Test\.php</exclude-pattern> |
61 | 66 | </rule> |
62 | 67 |
|
63 | 68 | <rule ref="PSR2.Classes.PropertyDeclaration" /> |
64 | 69 | <rule ref="PSR2.ControlStructures.ElseIfDeclaration" /> |
| 70 | + <rule ref="PSR2.Files" /> |
65 | 71 | <rule ref="PSR2.Namespaces" /> |
66 | 72 |
|
67 | 73 | <rule ref="Squiz.Arrays.ArrayBracketSpacing" /> |
|
73 | 79 | <rule ref="Squiz.Functions.GlobalFunction" /> |
74 | 80 | <rule ref="Squiz.Scope" /> |
75 | 81 |
|
76 | | - |
77 | 82 | <rule ref="Squiz.Strings.DoubleQuoteUsage" /> |
78 | 83 | <rule ref="Squiz.Strings.DoubleQuoteUsage.ContainsVar"> |
79 | 84 | <severity>0</severity> |
|
82 | 87 | <rule ref="Squiz.WhiteSpace.CastSpacing" /> |
83 | 88 | <rule ref="Squiz.WhiteSpace.LanguageConstructSpacing" /> |
84 | 89 | <rule ref="Squiz.WhiteSpace.LogicalOperatorSpacing" /> |
85 | | - |
| 90 | + <rule ref="Squiz.WhiteSpace.FunctionSpacing"> |
| 91 | + <properties> |
| 92 | + <property name="spacing" value="1" /> |
| 93 | + </properties> |
| 94 | + </rule> |
86 | 95 | <rule ref="Squiz.WhiteSpace.OperatorSpacing"> |
87 | 96 | <properties> |
88 | 97 | <property name="ignoreNewlines" value="true" /> |
89 | 98 | </properties> |
90 | 99 | </rule> |
91 | | - |
92 | 100 | <rule ref="Squiz.WhiteSpace.ScopeClosingBrace" /> |
93 | 101 | <rule ref="Squiz.WhiteSpace.ScopeKeywordSpacing" /> |
94 | 102 | <rule ref="Squiz.WhiteSpace.SemicolonSpacing" /> |
|
0 commit comments