@@ -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 | |
@@ -60,11 +60,11 @@ discard block |
||
60 | 60 | public function leaveNode(/*! important full name for HHVM*/ \PhpParser\Node $node) { |
61 | 61 | |
62 | 62 | if ($node instanceof Namespace_) { |
63 | - $this->namespace = $node->name . ''; |
|
63 | + $this->namespace = $node->name.''; |
|
64 | 64 | } |
65 | 65 | |
66 | 66 | if ($node instanceof Class_) { |
67 | - $this->class = $node->name . ''; |
|
67 | + $this->class = $node->name.''; |
|
68 | 68 | } |
69 | 69 | } |
70 | 70 | |
@@ -75,7 +75,7 @@ discard block |
||
75 | 75 | |
76 | 76 | public function getClass() |
77 | 77 | { |
78 | - if($this->namespace && $this->class) { |
|
78 | + if ($this->namespace && $this->class) { |
|
79 | 79 | $res = sprintf('%s\%s', $this->namespace, $this->class); |
80 | 80 | return $res; |
81 | 81 | } |
@@ -99,7 +99,7 @@ discard block |
||
99 | 99 | |
100 | 100 | $class = $vis->getClass(); |
101 | 101 | |
102 | - if(is_subclass_of($class, CheckConfigInterface::class)) { |
|
102 | + if (is_subclass_of($class, CheckConfigInterface::class)) { |
|
103 | 103 | $res[] = $class; |
104 | 104 | } |
105 | 105 |
@@ -45,8 +45,8 @@ |
||
45 | 45 | ->isRequired() |
46 | 46 | ->beforeNormalization() |
47 | 47 | ->ifString() |
48 | - ->then(function ($value) { |
|
49 | - if(is_string($value)) { |
|
48 | + ->then(function($value) { |
|
49 | + if (is_string($value)) { |
|
50 | 50 | $value = [$value]; |
51 | 51 | } |
52 | 52 | return $value; |
@@ -30,7 +30,7 @@ |
||
30 | 30 | { |
31 | 31 | // Check if bcmath extension is present |
32 | 32 | // @codeCoverageIgnoreStart |
33 | - if (! extension_loaded('bcmath')) { |
|
33 | + if (!extension_loaded('bcmath')) { |
|
34 | 34 | return new Warning('Check\CpuPerformance requires BCMath extension to be loaded.'); |
35 | 35 | } |
36 | 36 | // @codeCoverageIgnoreEnd |
@@ -45,8 +45,8 @@ |
||
45 | 45 | ->isRequired() |
46 | 46 | ->beforeNormalization() |
47 | 47 | ->ifString() |
48 | - ->then(function ($value) { |
|
49 | - if(is_string($value)) { |
|
48 | + ->then(function($value) { |
|
49 | + if (is_string($value)) { |
|
50 | 50 | $value = [$value]; |
51 | 51 | } |
52 | 52 | return $value; |
@@ -45,8 +45,8 @@ |
||
45 | 45 | ->isRequired() |
46 | 46 | ->beforeNormalization() |
47 | 47 | ->ifString() |
48 | - ->then(function ($value) { |
|
49 | - if(is_string($value)) { |
|
48 | + ->then(function($value) { |
|
49 | + if (is_string($value)) { |
|
50 | 50 | $value = [$value]; |
51 | 51 | } |
52 | 52 | return $value; |
@@ -45,8 +45,8 @@ |
||
45 | 45 | ->isRequired() |
46 | 46 | ->beforeNormalization() |
47 | 47 | ->ifString() |
48 | - ->then(function ($value) { |
|
49 | - if(is_string($value)) { |
|
48 | + ->then(function($value) { |
|
49 | + if (is_string($value)) { |
|
50 | 50 | $value = [$value]; |
51 | 51 | } |
52 | 52 | return $value; |
@@ -45,8 +45,8 @@ |
||
45 | 45 | ->isRequired() |
46 | 46 | ->beforeNormalization() |
47 | 47 | ->ifString() |
48 | - ->then(function ($value) { |
|
49 | - if(is_string($value)) { |
|
48 | + ->then(function($value) { |
|
49 | + if (is_string($value)) { |
|
50 | 50 | $value = [$value]; |
51 | 51 | } |
52 | 52 | return $value; |
@@ -45,8 +45,8 @@ |
||
45 | 45 | ->isRequired() |
46 | 46 | ->beforeNormalization() |
47 | 47 | ->ifString() |
48 | - ->then(function ($value) { |
|
49 | - if(is_string($value)) { |
|
48 | + ->then(function($value) { |
|
49 | + if (is_string($value)) { |
|
50 | 50 | $value = [$value]; |
51 | 51 | } |
52 | 52 | return $value; |
@@ -45,8 +45,8 @@ |
||
45 | 45 | ->isRequired() |
46 | 46 | ->beforeNormalization() |
47 | 47 | ->ifString() |
48 | - ->then(function ($value) { |
|
49 | - if(is_string($value)) { |
|
48 | + ->then(function($value) { |
|
49 | + if (is_string($value)) { |
|
50 | 50 | $value = [$value]; |
51 | 51 | } |
52 | 52 | return $value; |