Completed
Pull Request — master (#11)
by Cedric
06:33
created
Rule/CleanCode/SuperfluousComment.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -56,7 +56,7 @@
 block discarded – undo
56 56
     }
57 57
 
58 58
     /**
59
-     * @param AbstractNode|ASTClass $node
59
+     * @param AbstractNode $node
60 60
      */
61 61
     private function checkProperties(AbstractNode $node)
62 62
     {
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -63,7 +63,7 @@
 block discarded – undo
63 63
         foreach ($node->getProperties() as $property) {
64 64
             $this->checkNode(
65 65
                 $node,
66
-                'property ' . $property->getName(),
66
+                'property '.$property->getName(),
67 67
                 $this->calculateNameToCommentSimilarityInPercent($property)
68 68
             );
69 69
         }
Please login to merge, or discard this patch.
Rule/Symfony2/ControllerMethodName.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@
 block discarded – undo
36 36
     }
37 37
 
38 38
     /**
39
-     * @param ClassNode|ASTClass $node
39
+     * @param ClassNode $node
40 40
      *
41 41
      * @return bool
42 42
      */
Please login to merge, or discard this patch.
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@
 block discarded – undo
33 33
         foreach ($node->getMethods() as $method) {
34 34
             // Check if method is whitelisted
35 35
             if (in_array($method->getImage(), $allowedMethodNames)) {
36
-              continue;
36
+                continue;
37 37
             }
38 38
 
39 39
             if ('Action' !== substr($method->getImage(), -6, 6)) {
Please login to merge, or discard this patch.
Rule/Symfony2/EntityConstants.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -16,7 +16,7 @@
 block discarded – undo
16 16
 class EntityConstants extends AbstractEntityRule
17 17
 {
18 18
     /**
19
-     * @param AbstractNode|ClassNode|ASTClass $node
19
+     * @param AbstractNode $node
20 20
      */
21 21
     public function apply(AbstractNode $node)
22 22
     {
Please login to merge, or discard this patch.
Rule/Symfony2/EntitySimpleGetterSetter.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -64,7 +64,7 @@  discard block
 block discarded – undo
64 64
     }
65 65
 
66 66
     /**
67
-     * @param MethodNode|ASTMethod $node
67
+     * @param MethodNode $node
68 68
      *
69 69
      * @return bool
70 70
      */
@@ -80,7 +80,7 @@  discard block
 block discarded – undo
80 80
     }
81 81
 
82 82
     /**
83
-     * @param MethodNode|ASTMethod $node
83
+     * @param MethodNode $node
84 84
      *
85 85
      * @return bool
86 86
      */
Please login to merge, or discard this patch.
Tests/Unit/AbstractApplyTest.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -35,7 +35,7 @@
 block discarded – undo
35 35
     /**
36 36
      * @param int $violationNumber
37 37
      *
38
-     * @return \Mockery\MockInterface|Report
38
+     * @return \Mockery\MockInterface
39 39
      */
40 40
     protected function getReport($violationNumber)
41 41
     {
Please login to merge, or discard this patch.
Tests/Unit/CleanCode/SuperfluousCommentTest.php 2 patches
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -71,10 +71,10 @@
 block discarded – undo
71 71
 
72 72
     /**
73 73
      * @param string $docComment
74
-     * @param array  $properties
75
-     * @param array  $methods
74
+     * @param \Mockery\MockInterface[]  $properties
75
+     * @param \Mockery\MockInterface[]  $methods
76 76
      *
77
-     * @return \Mockery\MockInterface|AbstractNode
77
+     * @return \Mockery\MockInterface
78 78
      */
79 79
     private function getClassNode($docComment = '', $properties = [], $methods = [])
80 80
     {
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -60,7 +60,7 @@
 block discarded – undo
60 60
      */
61 61
     protected function getRule()
62 62
     {
63
-        $rule =  new SuperfluousComment();
63
+        $rule = new SuperfluousComment();
64 64
         $rule->addProperty('percent', '60');
65 65
         $rule->addProperty('checkClass', '1');
66 66
         $rule->addProperty('checkProperties', '1');
Please login to merge, or discard this patch.
Tests/Unit/CleanCode/TraitPublicMethodTest.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -62,7 +62,7 @@  discard block
 block discarded – undo
62 62
     }
63 63
 
64 64
     /**
65
-     * @param mixed $parentType
65
+     * @param \Mockery\MockInterface $parentType
66 66
      *
67 67
      * @return \Mockery\MockInterface
68 68
      */
@@ -76,7 +76,7 @@  discard block
 block discarded – undo
76 76
     }
77 77
 
78 78
     /**
79
-     * @param mixed $parentType
79
+     * @param \Mockery\MockInterface $parentType
80 80
      *
81 81
      * @return \Mockery\MockInterface
82 82
      */
Please login to merge, or discard this patch.
Tests/Unit/Symfony2/EntitySimpleGetterSetterTest.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -163,7 +163,7 @@
 block discarded – undo
163 163
     }
164 164
 
165 165
     /**
166
-     * @param array $methodNodes
166
+     * @param \Mockery\MockInterface[] $methodNodes
167 167
      *
168 168
      * @return \Mockery\MockInterface
169 169
      */
Please login to merge, or discard this patch.
Rule/CleanCode/MethodOneTryCatch.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@
 block discarded – undo
27 27
             $this->addViolation($node);
28 28
         }
29 29
 
30
-        if (1 === $countTry &&  true === $this->hasNotAllowedChildren($node)) {
30
+        if (1 === $countTry && true === $this->hasNotAllowedChildren($node)) {
31 31
             $this->addViolation($node);
32 32
         }
33 33
     }
Please login to merge, or discard this patch.