Passed
Branch master (1b390a)
by Nicolas
05:25
created
lib/Solidifier/Analyzers/Analyzer.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@
 block discarded – undo
33 33
     
34 34
     public function addVisitor($traverseName, Visitor $visitor)
35 35
     {
36
-        if(! isset($this->nodeTraversers[$traverseName]))
36
+        if( ! isset($this->nodeTraversers[$traverseName]))
37 37
         {
38 38
             throw new \RuntimeException("$traverseName is not a valid traverse step");
39 39
         }
Please login to merge, or discard this patch.
lib/Solidifier/Analyzers/FakeAnalyzer.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@
 block discarded – undo
17 17
     
18 18
     public function addVisitor($traverseName, Visitor $visitor)
19 19
     {
20
-        if(! isset($this->visitors[$traverseName]))
20
+        if( ! isset($this->visitors[$traverseName]))
21 21
         {
22 22
             $this->visitors[$traverseName] = array();
23 23
         }
Please login to merge, or discard this patch.
lib/Solidifier/Reporters/HTMLReporter.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@
 block discarded – undo
40 40
         {
41 41
             $namespace = implode('/', explode('/', $file, -1));
42 42
             
43
-            if(! isset($result[$namespace]))
43
+            if( ! isset($result[$namespace]))
44 44
             {
45 45
                 $result[$namespace] = array();
46 46
             }
Please login to merge, or discard this patch.
lib/Solidifier/Visitors/Encapsulation/EncapsulationViolation.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -52,7 +52,7 @@
 block discarded – undo
52 52
             {
53 53
                 $correspondingAttribute = strtolower(substr($methodName, 3));
54 54
                 
55
-                if(! isset($this->publicMethods[$correspondingAttribute]))
55
+                if( ! isset($this->publicMethods[$correspondingAttribute]))
56 56
                 {
57 57
                     $this->publicMethods[$correspondingAttribute] = array();
58 58
                 }
Please login to merge, or discard this patch.
lib/Solidifier/Visitors/Encapsulation/PublicClass.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -83,7 +83,7 @@
 block discarded – undo
83 83
             {
84 84
                 $nbPublicMethods = count(array_filter($this->methods));
85 85
                 
86
-                if(((float)$nbPublicMethods / (float)$nbMethods) >= $this->threshold)
86
+                if(((float) $nbPublicMethods / (float) $nbMethods) >= $this->threshold)
87 87
                 {
88 88
                     $this->dispatch(new \Solidifier\Defects\PublicClass($node));
89 89
                 }
Please login to merge, or discard this patch.
lib/Solidifier/Visitors/DependencyInjection/InterfaceSegregation.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -54,7 +54,7 @@
 block discarded – undo
54 54
         
55 55
         if(isset($this->types[$name]))
56 56
         {
57
-            $objectTypeType= $this->types[$name];
57
+            $objectTypeType = $this->types[$name];
58 58
             
59 59
             if($objectTypeType !== ObjectType::TYPE_INTERFACE)
60 60
             {
Please login to merge, or discard this patch.
lib/Solidifier/Visitors/DependencyInjection/MagicalInstantiation.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@
 block discarded – undo
13 13
     {
14 14
         if($node instanceof New_)
15 15
         {
16
-            if(! $node->class instanceof Name)
16
+            if( ! $node->class instanceof Name)
17 17
             {
18 18
                 $this->dispatch(
19 19
                     new \Solidifier\Defects\MagicUsage($node)
Please login to merge, or discard this patch.
lib/Solidifier/EventSubscribers/HTML.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -53,7 +53,7 @@
 block discarded – undo
53 53
     
54 54
     public function onDefect(Defect $event)
55 55
     {
56
-        if(! isset($this->defects[$this->currentFile]))
56
+        if( ! isset($this->defects[$this->currentFile]))
57 57
         {
58 58
             $this->defects[$this->currentFile] = array();
59 59
         }
Please login to merge, or discard this patch.
lib/Solidifier/ConfigurationHandler.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -127,7 +127,7 @@
 block discarded – undo
127 127
                 $config = $this->configuration[$key];
128 128
             }
129 129
             
130
-            if(! isset($config['enabled']) || $config['enabled'] === true)
130
+            if( ! isset($config['enabled']) || $config['enabled'] === true)
131 131
             {
132 132
                 $analyzer->addVisitor($traverse, $closure($config));
133 133
             }
Please login to merge, or discard this patch.