Skip to content

Commit fb2caa8

Browse files
authored
Merge pull request #237 from morozov/removed-unused-private
Remove SlevomatCodingStandard.Classes.UnusedPrivateElements
2 parents e6509e2 + d9ff91a commit fb2caa8

File tree

3 files changed

+5
-7
lines changed

3 files changed

+5
-7
lines changed

lib/Doctrine/ruleset.xml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -144,8 +144,6 @@
144144
<property name="linesCountBetweenUses" value="0"/>
145145
</properties>
146146
</rule>
147-
<!-- Forbid dead code -->
148-
<rule ref="SlevomatCodingStandard.Classes.UnusedPrivateElements"/>
149147
<!-- Forbid prefix and suffix "Abstract" for abstract classes -->
150148
<rule ref="SlevomatCodingStandard.Classes.SuperfluousAbstractClassNaming"/>
151149
<!-- Forbid prefix and suffix "Exception" for exception classes -->

tests/expected_report.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ tests/input/forbidden-functions.php 6 0
2121
tests/input/inline_type_hint_assertions.php 7 0
2222
tests/input/LowCaseTypes.php 2 0
2323
tests/input/namespaces-spacing.php 7 0
24-
tests/input/NamingCamelCase.php 7 0
24+
tests/input/NamingCamelCase.php 6 0
2525
tests/input/negation-operator.php 2 0
2626
tests/input/new_with_parentheses.php 18 0
2727
tests/input/not_spacing.php 8 0
@@ -45,7 +45,7 @@ tests/input/use-ordering.php 1 0
4545
tests/input/useless-semicolon.php 2 0
4646
tests/input/UselessConditions.php 20 0
4747
----------------------------------------------------------------------
48-
A TOTAL OF 375 ERRORS AND 0 WARNINGS WERE FOUND IN 41 FILES
48+
A TOTAL OF 374 ERRORS AND 0 WARNINGS WERE FOUND IN 41 FILES
4949
----------------------------------------------------------------------
5050
PHPCBF CAN FIX 310 OF THESE SNIFF VIOLATIONS AUTOMATICALLY
5151
----------------------------------------------------------------------

tests/php-compatibility.patch

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ index fd5432c..233e24d 100644
1313
tests/input/inline_type_hint_assertions.php 7 0
1414
@@ -23,9 +23,9 @@ tests/input/LowCaseTypes.php 2 0
1515
tests/input/namespaces-spacing.php 7 0
16-
tests/input/NamingCamelCase.php 7 0
16+
tests/input/NamingCamelCase.php 6 0
1717
tests/input/negation-operator.php 2 0
1818
-tests/input/new_with_parentheses.php 18 0
1919
+tests/input/new_with_parentheses.php 19 0
@@ -34,8 +34,8 @@ index fd5432c..233e24d 100644
3434
tests/input/useless-semicolon.php 2 0
3535
tests/input/UselessConditions.php 20 0
3636
----------------------------------------------------------------------
37-
-A TOTAL OF 375 ERRORS AND 0 WARNINGS WERE FOUND IN 41 FILES
38-
+A TOTAL OF 384 ERRORS AND 0 WARNINGS WERE FOUND IN 41 FILES
37+
-A TOTAL OF 374 ERRORS AND 0 WARNINGS WERE FOUND IN 41 FILES
38+
+A TOTAL OF 383 ERRORS AND 0 WARNINGS WERE FOUND IN 41 FILES
3939
----------------------------------------------------------------------
4040
-PHPCBF CAN FIX 310 OF THESE SNIFF VIOLATIONS AUTOMATICALLY
4141
+PHPCBF CAN FIX 319 OF THESE SNIFF VIOLATIONS AUTOMATICALLY

0 commit comments

Comments
 (0)