@@ -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; |
@@ -20,8 +20,8 @@ |
||
20 | 20 | ->children() |
21 | 21 | ->arrayNode('check') |
22 | 22 | ->beforeNormalization() |
23 | - ->always(function ($value) { |
|
24 | - if(isset($value['extensionName']) && !is_array($value['extensionName'])) { |
|
23 | + ->always(function($value) { |
|
24 | + if (isset($value['extensionName']) && !is_array($value['extensionName'])) { |
|
25 | 25 | $value['extensionName'] = [$value['extensionName']]; |
26 | 26 | } |
27 | 27 | return $value; |
@@ -44,7 +44,7 @@ discard block |
||
44 | 44 | $this |
45 | 45 | ->setName('tvi:monitor:check:info') |
46 | 46 | ->setDescription('Info Health Checkers') |
47 | - ->addOption('group', 'g',InputOption::VALUE_OPTIONAL, 'Check group') |
|
47 | + ->addOption('group', 'g', InputOption::VALUE_OPTIONAL, 'Check group') |
|
48 | 48 | ; |
49 | 49 | } |
50 | 50 | |
@@ -78,7 +78,7 @@ discard block |
||
78 | 78 | $checkMetadatas = $this->manager->getCheckMetadatas($group); |
79 | 79 | |
80 | 80 | if (0 === count($checkMetadatas)) { |
81 | - if(empty($group)) { |
|
81 | + if (empty($group)) { |
|
82 | 82 | $output->writeln(sprintf('<error>No checks configured.</error>')); |
83 | 83 | } else { |
84 | 84 | $output->writeln(sprintf('<error>No checks configured for group %s.</error>', $group)); |
@@ -89,7 +89,7 @@ discard block |
||
89 | 89 | foreach ($checkMetadatas as $checkMetadata) { |
90 | 90 | |
91 | 91 | $currentGroup = $checkMetadata->getGroup(); |
92 | - if(empty($group) && $showGroup != $currentGroup) { |
|
92 | + if (empty($group) && $showGroup != $currentGroup) { |
|
93 | 93 | $output->writeln(sprintf('<fg=yellow;options=bold>%s</>', $currentGroup)); |
94 | 94 | $showGroup = $currentGroup; |
95 | 95 | } |
@@ -21,7 +21,7 @@ |
||
21 | 21 | { |
22 | 22 | public function testIntegration() |
23 | 23 | { |
24 | - $this->iterateConfTest(__DIR__ . '/config.example.yml'); |
|
24 | + $this->iterateConfTest(__DIR__.'/config.example.yml'); |
|
25 | 25 | } |
26 | 26 | |
27 | 27 | public function testCheck() |
@@ -21,7 +21,7 @@ |
||
21 | 21 | { |
22 | 22 | public function testIntegration() |
23 | 23 | { |
24 | - $this->iterateConfTest(__DIR__ . '/config.example.yml'); |
|
24 | + $this->iterateConfTest(__DIR__.'/config.example.yml'); |
|
25 | 25 | } |
26 | 26 | |
27 | 27 | public function testCheck() |
@@ -21,7 +21,7 @@ |
||
21 | 21 | { |
22 | 22 | public function testIntegration() |
23 | 23 | { |
24 | - $this->iterateConfTest(__DIR__ . '/config.example.yml'); |
|
24 | + $this->iterateConfTest(__DIR__.'/config.example.yml'); |
|
25 | 25 | } |
26 | 26 | |
27 | 27 | public function testCheck() |
@@ -21,7 +21,7 @@ |
||
21 | 21 | { |
22 | 22 | public function testIntegration() |
23 | 23 | { |
24 | - $this->iterateConfTest(__DIR__ . '/config.example.yml'); |
|
24 | + $this->iterateConfTest(__DIR__.'/config.example.yml'); |
|
25 | 25 | } |
26 | 26 | |
27 | 27 | public function testCheck() |
@@ -21,7 +21,7 @@ |
||
21 | 21 | { |
22 | 22 | public function testIntegration() |
23 | 23 | { |
24 | - $this->iterateConfTest(__DIR__ . '/config.example.yml'); |
|
24 | + $this->iterateConfTest(__DIR__.'/config.example.yml'); |
|
25 | 25 | } |
26 | 26 | |
27 | 27 | public function testCheck() |