Skip to content

Commit c503474

Browse files
author
Kolya Korobochkin
committed
rules
1 parent 5cb5ad3 commit c503474

File tree

2 files changed

+13
-2
lines changed

2 files changed

+13
-2
lines changed

phpcs.ruleset.xml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,9 @@
1010
<rule ref="PSR2"/>
1111
<rule ref="Generic.Arrays.DisallowShortArraySyntax"/>
1212
<rule ref="Generic.Classes.DuplicateClassName"/>
13-
<!--<rule ref="Generic.Commenting"/>-->
13+
<rule ref="Generic.Commenting">
14+
<exclude name="Generic.Commenting.DocComment"/>
15+
</rule>
1416
<rule ref="Generic.ControlStructures"/>
1517
<rule ref="Generic.Debug"/>
1618
<rule ref="Generic.Files">
@@ -21,4 +23,13 @@
2123
<exclude name="Generic.Formatting.NoSpaceAfterCast"/>
2224
<exclude name="Generic.Formatting.SpaceAfterNot"/>
2325
</rule>
26+
<rule ref="Generic.Functions.FunctionCallArgumentSpacing"/>
27+
<rule ref="Generic.Metrics"/>
28+
<rule ref="Generic.NamingConventions"/>
29+
<rule ref="Generic.PHP">
30+
<exclude name="Generic.PHP.ClosingPHPTag"/>
31+
<exclude name="Generic.PHP.UpperCaseConstant"/>
32+
</rule>
33+
<rule ref="Generic.Strings"/>
34+
<rule ref="Generic.WhiteSpace.DisallowTabIndent"/>
2435
</ruleset>

source/Entities/CategoryEntity.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ public function getName()
3434
/**
3535
* Setup name of category.
3636
*
37-
* @param string $name Name of category.
37+
* @param string $name Name of category.
3838
* @return $this For chain calls.
3939
*/
4040
public function setName($name)

0 commit comments

Comments
 (0)