@@ -60,7 +60,7 @@ |
||
| 60 | 60 | $pattern = '/'.$input->getOption('pattern').'/'; |
| 61 | 61 | /** @var EntityManager $em */ |
| 62 | 62 | $em = $this->getContainer()->get('doctrine')->getManager(); |
| 63 | - $entities = array_filter($em->getConfiguration()->getMetadataDriverImpl()->getAllClassNames(), function ($entity) use ($pattern) { |
|
| 63 | + $entities = array_filter($em->getConfiguration()->getMetadataDriverImpl()->getAllClassNames(), function($entity) use ($pattern) { |
|
| 64 | 64 | return preg_match($pattern, $entity); |
| 65 | 65 | }); |
| 66 | 66 | $graph = new Graph(); |
@@ -28,12 +28,9 @@ |
||
| 28 | 28 | */ |
| 29 | 29 | public function __toString() |
| 30 | 30 | { |
| 31 | - return 'digraph g {'.PHP_EOL.(!count($this->getAttributes()) ? '' : |
|
| 32 | - implode(PHP_EOL, $this->indentAll($this->getAttributes())). |
|
| 33 | - PHP_EOL).(!count($this->getVertices()) ? '' : |
|
| 34 | - implode(PHP_EOL, $this->indentAll($this->getVertices())). |
|
| 35 | - PHP_EOL).(!count($this->getEdges()) ? '' : |
|
| 36 | - implode(PHP_EOL, $this->indentAll($this->getEdges())). |
|
| 31 | + return 'digraph g {'.PHP_EOL.(!count($this->getAttributes()) ? '' : implode(PHP_EOL, $this->indentAll($this->getAttributes())). |
|
| 32 | + PHP_EOL).(!count($this->getVertices()) ? '' : implode(PHP_EOL, $this->indentAll($this->getVertices())). |
|
| 33 | + PHP_EOL).(!count($this->getEdges()) ? '' : implode(PHP_EOL, $this->indentAll($this->getEdges())). |
|
| 37 | 34 | PHP_EOL).'}'; |
| 38 | 35 | } |
| 39 | 36 | |
@@ -164,7 +164,7 @@ |
||
| 164 | 164 | { |
| 165 | 165 | $process = new Process(sprintf( |
| 166 | 166 | $format, |
| 167 | - ...array_map(function ($arg, $index) use ($format) { |
|
| 167 | + ...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 | )); |