@@ -36,9 +36,9 @@ discard block |
||
36 | 36 | $loader->load('command.yml'); |
37 | 37 | |
38 | 38 | $checksSearchPaths = []; |
39 | - if(isset($configs[1]['checks_search_paths'])) { |
|
39 | + if (isset($configs[1]['checks_search_paths'])) { |
|
40 | 40 | $checksSearchPaths = $configs[1]['checks_search_paths'] ?? []; |
41 | - } else if(isset($configs[0]['checks_search_paths'])) { |
|
41 | + } else if (isset($configs[0]['checks_search_paths'])) { |
|
42 | 42 | $checksSearchPaths = $configs[0]['checks_search_paths'] ?? []; |
43 | 43 | } |
44 | 44 | |
@@ -86,7 +86,7 @@ discard block |
||
86 | 86 | |
87 | 87 | if (isset($config['checks'])) { |
88 | 88 | |
89 | - $config['checks'] = array_filter($config['checks'], static function ($i) { |
|
89 | + $config['checks'] = array_filter($config['checks'], static function($i) { |
|
90 | 90 | return $i; |
91 | 91 | }); |
92 | 92 |
@@ -78,11 +78,11 @@ discard block |
||
78 | 78 | |
79 | 79 | $checkPligins = $this->checkPlugins; |
80 | 80 | |
81 | - $addChecks = function ($rootNode) use ($checkPligins, $builder) { |
|
81 | + $addChecks = function($rootNode) use ($checkPligins, $builder) { |
|
82 | 82 | foreach ($this->checkPluginClasses as $checkPluginClass) { |
83 | 83 | $checkPligin = new $checkPluginClass(); |
84 | 84 | |
85 | - $confMethods = array_filter(get_class_methods($checkPligin), static function ($n) { |
|
85 | + $confMethods = array_filter(get_class_methods($checkPligin), static function($n) { |
|
86 | 86 | return preg_match('/Conf$/', $n); |
87 | 87 | }); |
88 | 88 | |
@@ -108,7 +108,7 @@ discard block |
||
108 | 108 | $node = $builder |
109 | 109 | ->root('checks', 'array') |
110 | 110 | ->beforeNormalization() |
111 | - ->always(static function ($value) { |
|
111 | + ->always(static function($value) { |
|
112 | 112 | $value = $value ? $value : []; |
113 | 113 | foreach ($value as $k => $v) { |
114 | 114 | $newK = str_replace('(s)', '_factory', $k); |