@@ -9,10 +9,6 @@ |
||
9 | 9 | |
10 | 10 | namespace Hal\Application\Config; |
11 | 11 | use Hal\Component\Chart\Graphviz; |
12 | -use Hal\Component\Config\Hydrator; |
|
13 | -use Hal\Component\Config\Loader; |
|
14 | -use Hal\Component\Config\Validator; |
|
15 | -use Symfony\Component\Console\Input\InputInterface; |
|
16 | 12 | |
17 | 13 | /** |
18 | 14 | * Config checker |
@@ -27,9 +27,9 @@ |
||
27 | 27 | public function validates(Configuration $config) |
28 | 28 | { |
29 | 29 | // graphviz |
30 | - if($config->getLogging()->getChart('bubbles')) { |
|
30 | + if ($config->getLogging()->getChart('bubbles')) { |
|
31 | 31 | $graphviz = new Graphviz(); |
32 | - if(!$graphviz->isAvailable()) { |
|
32 | + if (!$graphviz->isAvailable()) { |
|
33 | 33 | throw new \RuntimeException('Graphviz not installed'); |
34 | 34 | } |
35 | 35 | } |
@@ -35,7 +35,7 @@ |
||
35 | 35 | */ |
36 | 36 | public function getImage($dotContent) { |
37 | 37 | |
38 | - if(!$this->isAvailable()) { |
|
38 | + if (!$this->isAvailable()) { |
|
39 | 39 | throw new \RuntimeException('Graphviz not installed'); |
40 | 40 | } |
41 | 41 |
@@ -110,7 +110,7 @@ |
||
110 | 110 | $table |
111 | 111 | ->setHeaders(array_merge( |
112 | 112 | array( |
113 | - '1' |
|
113 | + '1' |
|
114 | 114 | , '2' |
115 | 115 | , '3' |
116 | 116 | , '4' |
@@ -64,7 +64,7 @@ discard block |
||
64 | 64 | /** |
65 | 65 | * @inheritdoc |
66 | 66 | */ |
67 | - public function terminate(ResultCollection $collection, ResultCollection $groupedResults){ |
|
67 | + public function terminate(ResultCollection $collection, ResultCollection $groupedResults) { |
|
68 | 68 | |
69 | 69 | $output = new BufferedOutput(OutputInterface::VERBOSITY_NORMAL, true); |
70 | 70 | // $output->write(str_pad("\x0D", 80, "\x20")); |
@@ -130,8 +130,8 @@ discard block |
||
130 | 130 | ) : array()) |
131 | 131 | )); |
132 | 132 | |
133 | - foreach($groupedResults as $key => $result) { |
|
134 | - if($result->getDepth()>1){ |
|
133 | + foreach ($groupedResults as $key => $result) { |
|
134 | + if ($result->getDepth() > 1) { |
|
135 | 135 | $table->addRow(new TableSeparator()); |
136 | 136 | } |
137 | 137 | |
@@ -193,7 +193,7 @@ discard block |
||
193 | 193 | private function getStyle($key, $value) { |
194 | 194 | $score = $this->validator->validate($key, $value); |
195 | 195 | |
196 | - switch($score) { |
|
196 | + switch ($score) { |
|
197 | 197 | case Validator::GOOD: |
198 | 198 | return 'fg=green'; |
199 | 199 | case Validator::WARNING: |