|
26 | 26 | <!-- Forbid alias functions, i.e. `sizeof()`, `delete()` --> |
27 | 27 | <rule ref="Generic.PHP.ForbiddenFunctions"> |
28 | 28 | <properties> |
29 | | - <property name="forbiddenFunctions" type="array" |
30 | | - value=" |
31 | | - chop => rtrim, |
32 | | - close => closedir, |
33 | | - delete => unset, |
34 | | - doubleval => floatval, |
35 | | - fputs => fwrite, |
36 | | - ini_alter => ini_set, |
37 | | - is_double => is_float, |
38 | | - is_integer => is_int, |
39 | | - is_long => is_int, |
40 | | - is_null => null, |
41 | | - is_real => is_float, |
42 | | - is_writeable => is_writable, |
43 | | - join => implode, |
44 | | - key_exists => array_key_exists, |
45 | | - pos => current, |
46 | | - show_source => highlight_file, |
47 | | - sizeof => count, |
48 | | - strchr => strstr |
49 | | - "/> |
| 29 | + <property name="forbiddenFunctions" type="array"> |
| 30 | + <element key="chop" value="rtrim"/> |
| 31 | + <element key="close" value="closedir"/> |
| 32 | + <element key="delete" value="unset"/> |
| 33 | + <element key="doubleval" value="floatval"/> |
| 34 | + <element key="fputs" value="fwrite"/> |
| 35 | + <element key="ini_alter" value="ini_set"/> |
| 36 | + <element key="is_double" value="is_float"/> |
| 37 | + <element key="is_integer" value="is_int"/> |
| 38 | + <element key="is_long" value="is_int"/> |
| 39 | + <element key="is_null" value="null"/> |
| 40 | + <element key="is_real" value="is_float"/> |
| 41 | + <element key="is_writeable" value="is_writable"/> |
| 42 | + <element key="join" value="implode"/> |
| 43 | + <element key="key_exists" value="array_key_exists"/> |
| 44 | + <element key="pos" value="current"/> |
| 45 | + <element key="show_source" value="highlight_file"/> |
| 46 | + <element key="sizeof" value="count"/> |
| 47 | + <element key="strchr" value="strstr"/> |
| 48 | + </property> |
50 | 49 | </properties> |
51 | 50 | </rule> |
52 | 51 | <!-- Forbid useless inline string concatenation --> |
|
63 | 62 | <!-- Forbid `php_sapi_name()` function --> |
64 | 63 | <rule ref="Generic.PHP.SAPIUsage"/> |
65 | 64 |
|
| 65 | + <!-- Require space after language constructs --> |
| 66 | + <rule ref="Generic.WhiteSpace.LanguageConstructSpacing"/> |
| 67 | + |
66 | 68 | <!-- Forbid comments starting with # --> |
67 | 69 | <rule ref="PEAR.Commenting.InlineComment"/> |
68 | 70 |
|
|
154 | 156 | <rule ref="Squiz.WhiteSpace.CastSpacing"/> |
155 | 157 | <!-- Forbid blank line after function opening brace --> |
156 | 158 | <rule ref="Squiz.WhiteSpace.FunctionOpeningBraceSpace"/> |
157 | | - <!-- Require space after language constructs --> |
158 | | - <rule ref="Squiz.WhiteSpace.LanguageConstructSpacing"/> |
159 | 159 | <!-- Require space around logical operators --> |
160 | 160 | <rule ref="Squiz.WhiteSpace.LogicalOperatorSpacing"/> |
161 | 161 | <!-- Forbid spaces around `->` operator --> |
|
0 commit comments