@@ -29,7 +29,7 @@ |
||
29 | 29 | if (!\function_exists('error_clear_last')) { |
30 | 30 | function error_clear_last() |
31 | 31 | { |
32 | - \set_error_handler(function () {}); |
|
32 | + \set_error_handler(function() {}); |
|
33 | 33 | try { |
34 | 34 | \trigger_error(''); |
35 | 35 | } catch (\Exception $e) { |
@@ -26,7 +26,7 @@ discard block |
||
26 | 26 | |
27 | 27 | public function __construct(array $dirs = null) |
28 | 28 | { |
29 | - if($dirs) { |
|
29 | + if ($dirs) { |
|
30 | 30 | $this->searchDirs = array_merge($this->searchDirs, $dirs); |
31 | 31 | } |
32 | 32 | |
@@ -59,11 +59,11 @@ discard block |
||
59 | 59 | public function leaveNode(\PhpParser\Node $node) { |
60 | 60 | |
61 | 61 | if ($node instanceof Namespace_) { |
62 | - $this->namespace = $node->name . ''; |
|
62 | + $this->namespace = $node->name.''; |
|
63 | 63 | } |
64 | 64 | |
65 | 65 | if ($node instanceof Class_) { |
66 | - $this->class = $node->name . ''; |
|
66 | + $this->class = $node->name.''; |
|
67 | 67 | } |
68 | 68 | } |
69 | 69 | |
@@ -74,7 +74,7 @@ discard block |
||
74 | 74 | |
75 | 75 | public function getClass() |
76 | 76 | { |
77 | - if($this->namespace && $this->class) { |
|
77 | + if ($this->namespace && $this->class) { |
|
78 | 78 | $res = sprintf('%s\%s', $this->namespace, $this->class); |
79 | 79 | return $res; |
80 | 80 | } |
@@ -98,7 +98,7 @@ discard block |
||
98 | 98 | |
99 | 99 | $class = $vis->getClass(); |
100 | 100 | |
101 | - if(is_subclass_of($class, CheckConfigInterface::class)) { |
|
101 | + if (is_subclass_of($class, CheckConfigInterface::class)) { |
|
102 | 102 | $res[] = $class; |
103 | 103 | } |
104 | 104 |