|
49 | 49 | <property name="maxPadding" value="1"/>
|
50 | 50 | </properties>
|
51 | 51 | </rule>
|
52 |
| - <rule ref="Generic.Functions.CallTimePassByReference"/> |
53 | 52 | <rule ref="Generic.Functions.OpeningFunctionBraceBsdAllman"/>
|
54 | 53 | <rule ref="Generic.NamingConventions.ConstructorName"/>
|
55 | 54 | <rule ref="Generic.PHP.BacktickOperator"/>
|
|
62 | 61 | <rule ref="Generic.PHP.DisallowShortOpenTag"/>
|
63 | 62 | <rule ref="Generic.PHP.ForbiddenFunctions">
|
64 | 63 | <properties>
|
65 |
| - <property |
66 |
| - name="forbiddenFunctions" |
67 |
| - type="array" |
68 |
| - value=" |
69 |
| - mt_rand=>rand, |
70 |
| - sizeof=>count, |
71 |
| - delete=>unset, |
72 |
| - print=>echo, |
73 |
| - join=>implode, |
74 |
| - split=>explode, |
75 |
| - is_null=>null, |
76 |
| - create_function=>null, |
77 |
| - key_exists=>array_key_exists, |
78 |
| - floatval=>null, |
79 |
| - boolval=>null, |
80 |
| - intval=>null, |
81 |
| - strval=>null, |
82 |
| - settype=>null, |
83 |
| - exit=>null, |
84 |
| - reset=>array_key_first |
85 |
| - " |
86 |
| - /> |
| 64 | + <property name="forbiddenFunctions" type="array"> |
| 65 | + <element key="mt_rand" value="rand"/> |
| 66 | + <element key="sizeof" value="count"/> |
| 67 | + <element key="delete" value="unset"/> |
| 68 | + <element key="print" value="echo"/> |
| 69 | + <element key="join" value="implode"/> |
| 70 | + <element key="split" value="explode"/> |
| 71 | + <element key="is_null" value="null"/> |
| 72 | + <element key="create_function" value="null"/> |
| 73 | + <element key="key_exists" value="array_key_exists"/> |
| 74 | + <element key="floatval" value="null"/> |
| 75 | + <element key="boolval" value="null"/> |
| 76 | + <element key="intval" value="null"/> |
| 77 | + <element key="strval" value="null"/> |
| 78 | + <element key="settype" value="null"/> |
| 79 | + <element key="exit" value="null"/> |
| 80 | + <element key="reset" value="array_key_first"/> |
| 81 | + </property> |
87 | 82 | </properties>
|
88 | 83 | </rule>
|
89 | 84 | <rule ref="Generic.Strings.UnnecessaryStringConcat">
|
|
220 | 215 | <property name="spacing" value="1"/>
|
221 | 216 | </properties>
|
222 | 217 | </rule>
|
223 |
| - <rule ref="Squiz.WhiteSpace.LanguageConstructSpacing"/> |
| 218 | + <rule ref="Generic.WhiteSpace.LanguageConstructSpacing"/> |
224 | 219 | <rule ref="Squiz.WhiteSpace.LogicalOperatorSpacing"/>
|
225 | 220 | <rule ref="Squiz.WhiteSpace.MemberVarSpacing"/>
|
226 | 221 | <rule ref="Squiz.WhiteSpace.ObjectOperatorSpacing">
|
|
285 | 280 | <rule ref="SlevomatCodingStandard.Commenting.UselessInheritDocComment"/>
|
286 | 281 | <rule ref="SlevomatCodingStandard.Commenting.ForbiddenComments">
|
287 | 282 | <properties>
|
288 |
| - <property name="forbiddenCommentPatterns" type="array" value="~^[a-zA-Z0-9]+ constructor.?$~,~PhpStorm~,~^[GS]et [a-zA-Z0-9]+$~"/> |
| 283 | + <property name="forbiddenCommentPatterns" type="array"> |
| 284 | + <element value="~^[a-zA-Z0-9]+ constructor.?$~"/> |
| 285 | + <element value="~PhpStorm~"/> |
| 286 | + <element value="~^[GS]et [a-zA-Z0-9]+$~"/> |
| 287 | + </property> |
289 | 288 | </properties>
|
290 | 289 | </rule>
|
291 | 290 | <rule ref="SlevomatCodingStandard.Commenting.ForbiddenAnnotations">
|
292 | 291 | <properties>
|
293 |
| - <property name="forbiddenAnnotations" type="array" value="@author,@created,@version,@package,@copyright,@license,@since,@link,@group,@expectedException" /> |
| 292 | + <property name="forbiddenAnnotations" type="array"> |
| 293 | + <element value="@author"/> |
| 294 | + <element value="@created"/> |
| 295 | + <element value="@version"/> |
| 296 | + <element value="@package"/> |
| 297 | + <element value="@copyright"/> |
| 298 | + <element value="@license"/> |
| 299 | + <element value="@since"/> |
| 300 | + <element value="@link"/> |
| 301 | + <element value="@group"/> |
| 302 | + <element value="@expectedException"/> |
| 303 | + </property> |
294 | 304 | </properties>
|
295 | 305 | </rule>
|
296 | 306 | <rule ref="SlevomatCodingStandard.ControlStructures.AssignmentInCondition"/>
|
|
357 | 367 | </rule>
|
358 | 368 | <rule ref="SlevomatCodingStandard.TypeHints.NullableTypeForNullDefaultValue" />
|
359 | 369 | <rule ref="SlevomatCodingStandard.TypeHints.NullTypeHintOnLastPosition" />
|
360 |
| - <rule ref="SlevomatCodingStandard.TypeHints.UnionTypeHintFormat" /> |
| 370 | + <rule ref="SlevomatCodingStandard.TypeHints.DNFTypeHintFormat" /> |
361 | 371 | <rule ref="SlevomatCodingStandard.TypeHints.UselessConstantTypeHint" />
|
362 | 372 | <rule ref="SlevomatCodingStandard.TypeHints.PropertyTypeHint">
|
363 | 373 | <properties>
|
364 | 374 | <property name="enableNativeTypeHint" value="true"/>
|
365 |
| - <property name="traversableTypeHints" type="array" value=" |
366 |
| - Generator, |
367 |
| - Traversable, |
368 |
| - Doctrine\Common\Collections\Collection |
369 |
| - "/> |
| 375 | + <property name="traversableTypeHints" type="array"> |
| 376 | + <element value="Generator"/> |
| 377 | + <element value="Traversable"/> |
| 378 | + <element value="Doctrine\Common\Collections\Collection"/> |
| 379 | + </property> |
370 | 380 | </properties>
|
371 | 381 | </rule>
|
372 | 382 |
|
373 | 383 | <rule ref="SlevomatCodingStandard.TypeHints.ParameterTypeHint">
|
374 | 384 | <properties>
|
375 |
| - <property name="traversableTypeHints" type="array" value=" |
376 |
| - Generator, |
377 |
| - Traversable, |
378 |
| - Doctrine\Common\Collections\Collection |
379 |
| - "/> |
| 385 | + <property name="traversableTypeHints" type="array"> |
| 386 | + <element value="Generator"/> |
| 387 | + <element value="Traversable"/> |
| 388 | + <element value="Doctrine\Common\Collections\Collection"/> |
| 389 | + </property> |
380 | 390 | </properties>
|
381 | 391 | </rule>
|
382 | 392 | <rule ref="SlevomatCodingStandard.TypeHints.ReturnTypeHint">
|
383 | 393 | <properties>
|
384 |
| - <property name="traversableTypeHints" type="array" value=" |
385 |
| - Generator, |
386 |
| - Traversable, |
387 |
| - Doctrine\Common\Collections\Collection |
388 |
| - "/> |
| 394 | + <property name="traversableTypeHints" type="array"> |
| 395 | + <element value="Generator"/> |
| 396 | + <element value="Traversable"/> |
| 397 | + <element value="Doctrine\Common\Collections\Collection"/> |
| 398 | + </property> |
389 | 399 | </properties>
|
390 | 400 | </rule>
|
391 | 401 | <rule ref="SlevomatCodingStandard.TypeHints.LongTypeHints"/>
|
|
0 commit comments