@@ -33,7 +33,7 @@ |
||
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 | } |
@@ -17,7 +17,7 @@ |
||
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 | } |
@@ -40,7 +40,7 @@ |
||
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 | } |
@@ -52,7 +52,7 @@ |
||
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 | } |
@@ -83,7 +83,7 @@ |
||
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 | } |
@@ -54,7 +54,7 @@ |
||
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 | { |
@@ -13,7 +13,7 @@ |
||
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) |
@@ -53,7 +53,7 @@ |
||
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 | } |
@@ -127,7 +127,7 @@ |
||
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 | } |