@@ -52,7 +52,7 @@ discard block |
||
52 | 52 | |
53 | 53 | // rules |
54 | 54 | $rules = ''; |
55 | - foreach($this->ruleset->asArray() as $key => $values) { |
|
55 | + foreach ($this->ruleset->asArray() as $key => $values) { |
|
56 | 56 | $rules .= sprintf(' %s: [ %s ]%s', $key, implode(', ', $values), PHP_EOL); |
57 | 57 | } |
58 | 58 | |
@@ -72,12 +72,12 @@ discard block |
||
72 | 72 | EOT; |
73 | 73 | |
74 | 74 | // write file |
75 | - if(!$this->destination) { |
|
75 | + if (!$this->destination) { |
|
76 | 76 | throw new \LogicException('Please provide a destination'); |
77 | 77 | } |
78 | 78 | |
79 | 79 | $dir = dirname($this->destination); |
80 | - if(!file_exists($dir)) { |
|
80 | + if (!file_exists($dir)) { |
|
81 | 81 | mkdir($dir, 0777, true); |
82 | 82 | } |
83 | 83 |
@@ -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 |