Passed
Push — master ( 47db9d...38d656 )
by Anton
02:04
created
src/Console/ConsoleDispatcher.php 2 patches
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -44,7 +44,7 @@  discard block
 block discarded – undo
44 44
         EnvironmentInterface $env,
45 45
         FinalizerInterface $finalizer,
46 46
         ContainerInterface $container
47
-    ) {
47
+    ){
48 48
         $this->env = $env;
49 49
         $this->finalizer = $finalizer;
50 50
         $this->container = $container;
@@ -73,11 +73,11 @@  discard block
 block discarded – undo
73 73
         /** @var Console $console */
74 74
         $console = $this->container->get(Console::class);
75 75
 
76
-        try {
76
+        try{
77 77
             $console->start($input ?? new ArgvInput(), $output);
78
-        } catch (\Throwable $e) {
78
+        }catch (\Throwable $e){
79 79
             $this->handleException($e, $output);
80
-        } finally {
80
+        }finally{
81 81
             $listener->disable();
82 82
             $this->finalizer->finalize(false);
83 83
         }
@@ -89,9 +89,9 @@  discard block
 block discarded – undo
89 89
      */
90 90
     protected function handleException(\Throwable $e, OutputInterface $output)
91 91
     {
92
-        try {
92
+        try{
93 93
             $this->container->get(SnapshotterInterface::class)->register($e);
94
-        } catch (\Throwable|ContainerExceptionInterface $se) {
94
+        }catch (\Throwable | ContainerExceptionInterface $se){
95 95
             // no need to notify when unable to register an exception
96 96
         }
97 97
 
@@ -106,7 +106,7 @@  discard block
 block discarded – undo
106 106
      */
107 107
     private function mapVerbosity(OutputInterface $output): int
108 108
     {
109
-        if ($output->isDebug() || $output->isVeryVerbose()) {
109
+        if ($output->isDebug() || $output->isVeryVerbose()){
110 110
             return ConsoleHandler::VERBOSITY_DEBUG;
111 111
         }
112 112
 
Please login to merge, or discard this patch.
Braces   +15 added lines, -6 removed lines patch added patch discarded remove patch
@@ -73,11 +73,16 @@  discard block
 block discarded – undo
73 73
         /** @var Console $console */
74 74
         $console = $this->container->get(Console::class);
75 75
 
76
-        try {
76
+        try
77
+        {
77 78
             $console->start($input ?? new ArgvInput(), $output);
78
-        } catch (\Throwable $e) {
79
+        }
80
+        catch (\Throwable $e)
81
+        {
79 82
             $this->handleException($e, $output);
80
-        } finally {
83
+        }
84
+        finally
85
+        {
81 86
             $listener->disable();
82 87
             $this->finalizer->finalize(false);
83 88
         }
@@ -89,9 +94,12 @@  discard block
 block discarded – undo
89 94
      */
90 95
     protected function handleException(\Throwable $e, OutputInterface $output)
91 96
     {
92
-        try {
97
+        try
98
+        {
93 99
             $this->container->get(SnapshotterInterface::class)->register($e);
94
-        } catch (\Throwable|ContainerExceptionInterface $se) {
100
+        }
101
+        catch (\Throwable|ContainerExceptionInterface $se)
102
+        {
95 103
             // no need to notify when unable to register an exception
96 104
         }
97 105
 
@@ -106,7 +114,8 @@  discard block
 block discarded – undo
106 114
      */
107 115
     private function mapVerbosity(OutputInterface $output): int
108 116
     {
109
-        if ($output->isDebug() || $output->isVeryVerbose()) {
117
+        if ($output->isDebug() || $output->isVeryVerbose())
118
+        {
110 119
             return ConsoleHandler::VERBOSITY_DEBUG;
111 120
         }
112 121
 
Please login to merge, or discard this patch.