Completed
Push — master ( 527926...a6d514 )
by Michael
02:25
created
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.
Tests/Unit/Test/MethodNumberOfAssertsTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -59,7 +59,7 @@
 block discarded – undo
59 59
      */
60 60
     protected function getRule()
61 61
     {
62
-        $rule =  new MethodNumberOfAsserts();
62
+        $rule = new MethodNumberOfAsserts();
63 63
         $rule->addProperty('number', '3');
64 64
         $rule->addProperty('names', 'assert');
65 65
         $rule->addProperty('delimiter', ',');
Please login to merge, or discard this patch.
Tests/Unit/CleanCode/MethodOneTryCatchTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -77,7 +77,7 @@
 block discarded – undo
77 77
      */
78 78
     protected function getRule()
79 79
     {
80
-        $rule =  new MethodOneTryCatch();
80
+        $rule = new MethodOneTryCatch();
81 81
         $rule->addProperty('delimiter', ',');
82 82
         $rule->addProperty('allowedChildren', 'catch,finally');
83 83
 
Please login to merge, or discard this patch.
Tests/Unit/CleanCode/ClassNameSingleResponsibilityTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -45,7 +45,7 @@
 block discarded – undo
45 45
      */
46 46
     protected function getRule()
47 47
     {
48
-        $rule =  new ClassNameSingleResponsibility();
48
+        $rule = new ClassNameSingleResponsibility();
49 49
         $rule->addProperty('delimiter', ',');
50 50
         $rule->addProperty('suffixes', 'Manager,Handler');
51 51
 
Please login to merge, or discard this patch.
Tests/Unit/CleanCode/SuperfluousCommentTest.php 1 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/Functional/AbstractProcessTest.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -21,12 +21,12 @@
 block discarded – undo
21 21
     protected function runPhpmd($filename, $ruleset)
22 22
     {
23 23
         $processBuilder = new ProcessBuilder();
24
-        $processBuilder->setPrefix(__DIR__ . '/../../vendor/bin/phpmd');
24
+        $processBuilder->setPrefix(__DIR__.'/../../vendor/bin/phpmd');
25 25
 
26 26
         $processBuilder
27
-            ->add(__DIR__ . '/../Fixtures/AppBundle/' . $filename)
27
+            ->add(__DIR__.'/../Fixtures/AppBundle/'.$filename)
28 28
             ->add('text')
29
-            ->add(__DIR__ . '/../../Rulesets/' . $ruleset);
29
+            ->add(__DIR__.'/../../Rulesets/'.$ruleset);
30 30
 
31 31
         $process = $processBuilder->getProcess();
32 32
         $process->run();
Please login to merge, or discard this patch.
Rule/CleanCode/SuperfluousComment.php 1 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.