Passed
Branch master (3bb6a1)
by Pierre
04:04
created
Category
src/Command/DoctrinevizCommand.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -60,7 +60,7 @@
 block discarded – undo
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();
Please login to merge, or discard this patch.
src/Graphviz/Graph.php 1 patch
Spacing   +3 added lines, -6 removed lines patch added patch discarded remove patch
@@ -28,12 +28,9 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/Graphviz/Graphviz.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -164,7 +164,7 @@
 block discarded – undo
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
         ));
Please login to merge, or discard this patch.