Completed
Push — master ( a6d514...c357a0 )
by Michael
03:06
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/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.
Tests/Unit/Test/MethodNumberOfMocksTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -39,7 +39,7 @@
 block discarded – undo
39 39
      */
40 40
     protected function getRule()
41 41
     {
42
-        $rule =  new MethodNumberOfMocks();
42
+        $rule = new MethodNumberOfMocks();
43 43
         $rule->addProperty('number', '3');
44 44
         $rule->addProperty('names', 'getMock,mock');
45 45
         $rule->addProperty('delimiter', ',');
Please login to merge, or discard this patch.
Tests/Unit/Test/MethodNameUnderstandableTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -61,7 +61,7 @@
 block discarded – undo
61 61
      */
62 62
     protected function getRule()
63 63
     {
64
-        $rule =  new MethodNameUnderstandable();
64
+        $rule = new MethodNameUnderstandable();
65 65
         $rule->addProperty('number', '3');
66 66
         $rule->addProperty('regex', '([A-Z])');
67 67
 
Please login to merge, or discard this patch.