Completed
Push — master ( a1e247...6a1c2a )
by Dominik
06:11
created
Category
src/Command/InfoDoctrineODMCommand.php 1 patch
Spacing   +5 added lines, -6 removed lines patch added patch discarded remove patch
@@ -48,8 +48,7 @@  discard block
 block discarded – undo
48 48
     protected function execute(InputInterface $input, OutputInterface $output)
49 49
     {
50 50
         $documentManagerName = $input->getOption('dm') ?
51
-            $input->getOption('dm') :
52
-            $this->getDefaultManagerName();
51
+            $input->getOption('dm') : $this->getDefaultManagerName();
53 52
 
54 53
         /* @var $documentManager \Doctrine\ODM\MongoDB\DocumentManager */
55 54
         $documentManager = $this->getDocumentManager($documentManagerName);
@@ -73,10 +72,10 @@  discard block
 block discarded – undo
73 72
         foreach ($documentClassNames AS $documentClassName) {
74 73
             try {
75 74
                 $documentManager->getClassMetadata($documentClassName);
76
-                $output->write("<info>[OK]</info>   " . $documentClassName, true);
77
-            } catch(\Exception $e) {
78
-                $output->write("<error>[FAIL]</error> " . $documentClassName, true);
79
-                $output->write("<comment>" . $e->getMessage()."</comment>", true);
75
+                $output->write("<info>[OK]</info>   ".$documentClassName, true);
76
+            } catch (\Exception $e) {
77
+                $output->write("<error>[FAIL]</error> ".$documentClassName, true);
78
+                $output->write("<comment>".$e->getMessage()."</comment>", true);
80 79
                 $output->write("", true);
81 80
             }
82 81
         }
Please login to merge, or discard this patch.