@@ -13,7 +13,7 @@ |
||
13 | 13 | * @author Pierre Hennequart <[email protected]> |
14 | 14 | */ |
15 | 15 | |
16 | -declare(strict_types=1); |
|
16 | +declare(strict_types = 1); |
|
17 | 17 | |
18 | 18 | namespace Janalis\Doctrineviz\Graphviz; |
19 | 19 |
@@ -13,7 +13,7 @@ |
||
13 | 13 | * @author Pierre Hennequart <[email protected]> |
14 | 14 | */ |
15 | 15 | |
16 | -declare(strict_types=1); |
|
16 | +declare(strict_types = 1); |
|
17 | 17 | |
18 | 18 | namespace Janalis\Doctrineviz\Graphviz; |
19 | 19 |
@@ -13,7 +13,7 @@ |
||
13 | 13 | * @author Pierre Hennequart <[email protected]> |
14 | 14 | */ |
15 | 15 | |
16 | -declare(strict_types=1); |
|
16 | +declare(strict_types = 1); |
|
17 | 17 | |
18 | 18 | namespace Janalis\Doctrineviz\Graphviz; |
19 | 19 |
@@ -13,7 +13,7 @@ |
||
13 | 13 | * @author Pierre Hennequart <[email protected]> |
14 | 14 | */ |
15 | 15 | |
16 | -declare(strict_types=1); |
|
16 | +declare(strict_types = 1); |
|
17 | 17 | |
18 | 18 | namespace Janalis\Doctrineviz\Graphviz; |
19 | 19 |
@@ -13,7 +13,7 @@ discard block |
||
13 | 13 | * @author Pierre Hennequart <[email protected]> |
14 | 14 | */ |
15 | 15 | |
16 | -declare(strict_types=1); |
|
16 | +declare(strict_types = 1); |
|
17 | 17 | |
18 | 18 | namespace Janalis\Doctrineviz\Graphviz; |
19 | 19 | |
@@ -32,12 +32,9 @@ discard block |
||
32 | 32 | */ |
33 | 33 | public function __toString() |
34 | 34 | { |
35 | - return 'digraph g {'.PHP_EOL.(!count($this->getAttributes()) ? '' : |
|
36 | - implode(PHP_EOL, $this->indentAll($this->getAttributes())). |
|
37 | - PHP_EOL).(!count($this->getVertices()) ? '' : |
|
38 | - implode(PHP_EOL, $this->indentAll($this->getVertices())). |
|
39 | - PHP_EOL).(!count($this->getEdges()) ? '' : |
|
40 | - implode(PHP_EOL, $this->indentAll($this->getEdges())). |
|
35 | + return 'digraph g {'.PHP_EOL.(!count($this->getAttributes()) ? '' : implode(PHP_EOL, $this->indentAll($this->getAttributes())). |
|
36 | + PHP_EOL).(!count($this->getVertices()) ? '' : implode(PHP_EOL, $this->indentAll($this->getVertices())). |
|
37 | + PHP_EOL).(!count($this->getEdges()) ? '' : implode(PHP_EOL, $this->indentAll($this->getEdges())). |
|
41 | 38 | PHP_EOL).'}'; |
42 | 39 | } |
43 | 40 |
@@ -13,7 +13,7 @@ discard block |
||
13 | 13 | * @author Pierre Hennequart <[email protected]> |
14 | 14 | */ |
15 | 15 | |
16 | -declare(strict_types=1); |
|
16 | +declare(strict_types = 1); |
|
17 | 17 | |
18 | 18 | namespace Janalis\Doctrineviz\Graphviz; |
19 | 19 | |
@@ -164,7 +164,7 @@ discard block |
||
164 | 164 | */ |
165 | 165 | protected function execute(string $format, ...$args): Process |
166 | 166 | { |
167 | - $process = new Process(sprintf($format, ...array_map(function ($arg, $index) use ($format) { |
|
167 | + $process = new Process(sprintf($format, ...array_map(function($arg, $index) use ($format) { |
|
168 | 168 | return 0 === $index && 0 === strpos('%s', $format) ? escapeshellcmd($arg) : escapeshellarg($arg); |
169 | 169 | }, $args, array_keys($args)))); |
170 | 170 | $process->mustRun(); |
@@ -13,7 +13,7 @@ |
||
13 | 13 | * @author Pierre Hennequart <[email protected]> |
14 | 14 | */ |
15 | 15 | |
16 | -declare(strict_types=1); |
|
16 | +declare(strict_types = 1); |
|
17 | 17 | |
18 | 18 | namespace Janalis\Doctrineviz\Graphviz; |
19 | 19 |
@@ -13,7 +13,7 @@ |
||
13 | 13 | * @author Pierre Hennequart <[email protected]> |
14 | 14 | */ |
15 | 15 | |
16 | -declare(strict_types=1); |
|
16 | +declare(strict_types = 1); |
|
17 | 17 | |
18 | 18 | namespace Janalis\Doctrineviz\Graphviz; |
19 | 19 |
@@ -13,7 +13,7 @@ |
||
13 | 13 | * @author Pierre Hennequart <[email protected]> |
14 | 14 | */ |
15 | 15 | |
16 | -declare(strict_types=1); |
|
16 | +declare(strict_types = 1); |
|
17 | 17 | |
18 | 18 | namespace Janalis\Doctrineviz; |
19 | 19 |