Passed
Push — master ( da883f...99da89 )
by Aleksei
11:17
created
src/Framework/Domain/PipelineInterceptor.php 2 patches
Spacing   +19 added lines, -19 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@  discard block
 block discarded – undo
21 21
         private ReaderInterface $reader,
22 22
         private ContainerInterface $container,
23 23
         private ?EventDispatcherInterface $dispatcher = null
24
-    ) {
24
+    ){
25 25
     }
26 26
 
27 27
     /**
@@ -30,17 +30,17 @@  discard block
 block discarded – undo
30 30
     public function process(string $controller, string $action, array $parameters, CoreInterface $core): mixed
31 31
     {
32 32
         $annotation = $this->readAnnotation($controller, $action);
33
-        if ($core instanceof InterceptorPipeline && $annotation->skipNext) {
33
+        if ($core instanceof InterceptorPipeline && $annotation->skipNext){
34 34
             $this->removeNextInterceptorsFromOriginalPipeline($core);
35 35
         }
36 36
 
37 37
         $pipeline = $this->getCachedPipeline($controller, $action, $annotation);
38
-        if (!empty($pipeline)) {
39
-            if ($core instanceof InterceptorPipeline) {
38
+        if (!empty($pipeline)){
39
+            if ($core instanceof InterceptorPipeline){
40 40
                 $this->injectInterceptorsIntoOriginalPipeline($core, $pipeline);
41
-            } else {
41
+            }else{
42 42
                 $core = new InterceptableCore($core, $this->dispatcher);
43
-                foreach ($pipeline as $interceptor) {
43
+                foreach ($pipeline as $interceptor){
44 44
                     $core->addInterceptor($interceptor);
45 45
                 }
46 46
             }
@@ -51,9 +51,9 @@  discard block
 block discarded – undo
51 51
 
52 52
     private function readAnnotation(string $controller, string $action): Pipeline
53 53
     {
54
-        try {
54
+        try{
55 55
             $method = new \ReflectionMethod($controller, $action);
56
-        } catch (\ReflectionException) {
56
+        }catch (\ReflectionException){
57 57
             return new Pipeline();
58 58
         }
59 59
 
@@ -68,14 +68,14 @@  discard block
 block discarded – undo
68 68
 
69 69
         $oldInterceptors = $pipelineReflection->getValue($pipeline);
70 70
         $newInterceptors = [];
71
-        foreach ($oldInterceptors as $interceptor) {
71
+        foreach ($oldInterceptors as $interceptor){
72 72
             $newInterceptors[] = $interceptor;
73
-            if ($interceptor instanceof self) {
73
+            if ($interceptor instanceof self){
74 74
                 break;
75 75
             }
76 76
         }
77 77
 
78
-        if (\count($newInterceptors) !== \count($oldInterceptors)) {
78
+        if (\count($newInterceptors) !== \count($oldInterceptors)){
79 79
             $pipelineReflection->setValue($pipeline, $newInterceptors);
80 80
         }
81 81
     }
@@ -86,16 +86,16 @@  discard block
 block discarded – undo
86 86
 
87 87
         $oldInterceptors = $pipelineReflection->getValue($pipeline);
88 88
         $newInterceptors = [];
89
-        foreach ($oldInterceptors as $interceptor) {
89
+        foreach ($oldInterceptors as $interceptor){
90 90
             $newInterceptors[] = $interceptor;
91
-            if ($interceptor instanceof self) {
92
-                foreach ($interceptors as $newInterceptor) {
91
+            if ($interceptor instanceof self){
92
+                foreach ($interceptors as $newInterceptor){
93 93
                     $newInterceptors[] = $newInterceptor;
94 94
                 }
95 95
             }
96 96
         }
97 97
 
98
-        if (\count($newInterceptors) !== \count($oldInterceptors)) {
98
+        if (\count($newInterceptors) !== \count($oldInterceptors)){
99 99
             $pipelineReflection->setValue($pipeline, $newInterceptors);
100 100
         }
101 101
     }
@@ -103,7 +103,7 @@  discard block
 block discarded – undo
103 103
     private function getCachedPipeline(string $controller, string $action, Pipeline $annotation): array
104 104
     {
105 105
         $key = "{$controller}:{$action}";
106
-        if (!\array_key_exists($key, $this->cache)) {
106
+        if (!\array_key_exists($key, $this->cache)){
107 107
             $this->cache[$key] = $this->extractAnnotationPipeline($annotation);
108 108
         }
109 109
 
@@ -113,10 +113,10 @@  discard block
 block discarded – undo
113 113
     private function extractAnnotationPipeline(Pipeline $annotation): array
114 114
     {
115 115
         $interceptors = [];
116
-        foreach ($annotation->pipeline as $interceptor) {
117
-            try {
116
+        foreach ($annotation->pipeline as $interceptor){
117
+            try{
118 118
                 $interceptors[] = $this->container->get($interceptor);
119
-            } catch (\Throwable) {
119
+            }catch (\Throwable){
120 120
             }
121 121
         }
122 122
 
Please login to merge, or discard this patch.
Braces   +39 added lines, -18 removed lines patch added patch discarded remove patch
@@ -30,17 +30,23 @@  discard block
 block discarded – undo
30 30
     public function process(string $controller, string $action, array $parameters, CoreInterface $core): mixed
31 31
     {
32 32
         $annotation = $this->readAnnotation($controller, $action);
33
-        if ($core instanceof InterceptorPipeline && $annotation->skipNext) {
33
+        if ($core instanceof InterceptorPipeline && $annotation->skipNext)
34
+        {
34 35
             $this->removeNextInterceptorsFromOriginalPipeline($core);
35 36
         }
36 37
 
37 38
         $pipeline = $this->getCachedPipeline($controller, $action, $annotation);
38
-        if (!empty($pipeline)) {
39
-            if ($core instanceof InterceptorPipeline) {
39
+        if (!empty($pipeline))
40
+        {
41
+            if ($core instanceof InterceptorPipeline)
42
+            {
40 43
                 $this->injectInterceptorsIntoOriginalPipeline($core, $pipeline);
41
-            } else {
44
+            }
45
+            else
46
+            {
42 47
                 $core = new InterceptableCore($core, $this->dispatcher);
43
-                foreach ($pipeline as $interceptor) {
48
+                foreach ($pipeline as $interceptor)
49
+                {
44 50
                     $core->addInterceptor($interceptor);
45 51
                 }
46 52
             }
@@ -51,9 +57,12 @@  discard block
 block discarded – undo
51 57
 
52 58
     private function readAnnotation(string $controller, string $action): Pipeline
53 59
     {
54
-        try {
60
+        try
61
+        {
55 62
             $method = new \ReflectionMethod($controller, $action);
56
-        } catch (\ReflectionException) {
63
+        }
64
+        catch (\ReflectionException)
65
+        {
57 66
             return new Pipeline();
58 67
         }
59 68
 
@@ -68,14 +77,17 @@  discard block
 block discarded – undo
68 77
 
69 78
         $oldInterceptors = $pipelineReflection->getValue($pipeline);
70 79
         $newInterceptors = [];
71
-        foreach ($oldInterceptors as $interceptor) {
80
+        foreach ($oldInterceptors as $interceptor)
81
+        {
72 82
             $newInterceptors[] = $interceptor;
73
-            if ($interceptor instanceof self) {
83
+            if ($interceptor instanceof self)
84
+            {
74 85
                 break;
75 86
             }
76 87
         }
77 88
 
78
-        if (\count($newInterceptors) !== \count($oldInterceptors)) {
89
+        if (\count($newInterceptors) !== \count($oldInterceptors))
90
+        {
79 91
             $pipelineReflection->setValue($pipeline, $newInterceptors);
80 92
         }
81 93
     }
@@ -86,16 +98,20 @@  discard block
 block discarded – undo
86 98
 
87 99
         $oldInterceptors = $pipelineReflection->getValue($pipeline);
88 100
         $newInterceptors = [];
89
-        foreach ($oldInterceptors as $interceptor) {
101
+        foreach ($oldInterceptors as $interceptor)
102
+        {
90 103
             $newInterceptors[] = $interceptor;
91
-            if ($interceptor instanceof self) {
92
-                foreach ($interceptors as $newInterceptor) {
104
+            if ($interceptor instanceof self)
105
+            {
106
+                foreach ($interceptors as $newInterceptor)
107
+                {
93 108
                     $newInterceptors[] = $newInterceptor;
94 109
                 }
95 110
             }
96 111
         }
97 112
 
98
-        if (\count($newInterceptors) !== \count($oldInterceptors)) {
113
+        if (\count($newInterceptors) !== \count($oldInterceptors))
114
+        {
99 115
             $pipelineReflection->setValue($pipeline, $newInterceptors);
100 116
         }
101 117
     }
@@ -103,7 +119,8 @@  discard block
 block discarded – undo
103 119
     private function getCachedPipeline(string $controller, string $action, Pipeline $annotation): array
104 120
     {
105 121
         $key = "{$controller}:{$action}";
106
-        if (!\array_key_exists($key, $this->cache)) {
122
+        if (!\array_key_exists($key, $this->cache))
123
+        {
107 124
             $this->cache[$key] = $this->extractAnnotationPipeline($annotation);
108 125
         }
109 126
 
@@ -113,10 +130,14 @@  discard block
 block discarded – undo
113 130
     private function extractAnnotationPipeline(Pipeline $annotation): array
114 131
     {
115 132
         $interceptors = [];
116
-        foreach ($annotation->pipeline as $interceptor) {
117
-            try {
133
+        foreach ($annotation->pipeline as $interceptor)
134
+        {
135
+            try
136
+            {
118 137
                 $interceptors[] = $this->container->get($interceptor);
119
-            } catch (\Throwable) {
138
+            }
139
+            catch (\Throwable)
140
+            {
120 141
             }
121 142
         }
122 143
 
Please login to merge, or discard this patch.
src/Framework/Domain/GuardPermissionsProvider.php 2 patches
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@  discard block
 block discarded – undo
25 25
     public function __construct(
26 26
         private readonly ReaderInterface $reader,
27 27
         private readonly ?string $namespace = null
28
-    ) {
28
+    ){
29 29
     }
30 30
 
31 31
     /**
@@ -34,7 +34,7 @@  discard block
 block discarded – undo
34 34
     public function getPermission(string $controller, string $action): Permission
35 35
     {
36 36
         $key = \sprintf('%s:%s', $controller, $action);
37
-        if (!\array_key_exists($key, $this->cache)) {
37
+        if (!\array_key_exists($key, $this->cache)){
38 38
             $this->cache[$key] = $this->generatePermission($controller, $action);
39 39
         }
40 40
 
@@ -43,20 +43,20 @@  discard block
 block discarded – undo
43 43
 
44 44
     private function generatePermission(string $controller, string $action): Permission
45 45
     {
46
-        try {
46
+        try{
47 47
             $method = new \ReflectionMethod($controller, $action);
48
-        } catch (\ReflectionException) {
48
+        }catch (\ReflectionException){
49 49
             return Permission::failed();
50 50
         }
51 51
 
52 52
         $guarded = $this->reader->firstFunctionMetadata($method, Guarded::class);
53
-        if (!$guarded instanceof Guarded) {
53
+        if (!$guarded instanceof Guarded){
54 54
             return Permission::failed();
55 55
         }
56 56
 
57 57
         $namespace = $this->reader->firstClassMetadata($method->getDeclaringClass(), GuardNamespace::class);
58 58
 
59
-        if ($guarded->permission || ($namespace instanceof GuardNamespace && $namespace->namespace)) {
59
+        if ($guarded->permission || ($namespace instanceof GuardNamespace && $namespace->namespace)){
60 60
             return Permission::ok(
61 61
                 $this->makePermission($guarded, $method, $namespace),
62 62
                 $this->mapFailureException($guarded),
@@ -79,11 +79,11 @@  discard block
 block discarded – undo
79 79
     private function makePermission(Guarded $guarded, \ReflectionMethod $method, ?GuardNamespace $ns): string
80 80
     {
81 81
         $permission = [];
82
-        if ($this->namespace) {
82
+        if ($this->namespace){
83 83
             $permission[] = $this->namespace;
84 84
         }
85 85
 
86
-        if ($ns !== null && $ns->namespace) {
86
+        if ($ns !== null && $ns->namespace){
87 87
             $permission[] = $ns->namespace;
88 88
         }
89 89
 
Please login to merge, or discard this patch.
Braces   +15 added lines, -7 removed lines patch added patch discarded remove patch
@@ -34,7 +34,8 @@  discard block
 block discarded – undo
34 34
     public function getPermission(string $controller, string $action): Permission
35 35
     {
36 36
         $key = \sprintf('%s:%s', $controller, $action);
37
-        if (!\array_key_exists($key, $this->cache)) {
37
+        if (!\array_key_exists($key, $this->cache))
38
+        {
38 39
             $this->cache[$key] = $this->generatePermission($controller, $action);
39 40
         }
40 41
 
@@ -43,20 +44,25 @@  discard block
 block discarded – undo
43 44
 
44 45
     private function generatePermission(string $controller, string $action): Permission
45 46
     {
46
-        try {
47
+        try
48
+        {
47 49
             $method = new \ReflectionMethod($controller, $action);
48
-        } catch (\ReflectionException) {
50
+        }
51
+        catch (\ReflectionException)
52
+        {
49 53
             return Permission::failed();
50 54
         }
51 55
 
52 56
         $guarded = $this->reader->firstFunctionMetadata($method, Guarded::class);
53
-        if (!$guarded instanceof Guarded) {
57
+        if (!$guarded instanceof Guarded)
58
+        {
54 59
             return Permission::failed();
55 60
         }
56 61
 
57 62
         $namespace = $this->reader->firstClassMetadata($method->getDeclaringClass(), GuardNamespace::class);
58 63
 
59
-        if ($guarded->permission || ($namespace instanceof GuardNamespace && $namespace->namespace)) {
64
+        if ($guarded->permission || ($namespace instanceof GuardNamespace && $namespace->namespace))
65
+        {
60 66
             return Permission::ok(
61 67
                 $this->makePermission($guarded, $method, $namespace),
62 68
                 $this->mapFailureException($guarded),
@@ -79,11 +85,13 @@  discard block
 block discarded – undo
79 85
     private function makePermission(Guarded $guarded, \ReflectionMethod $method, ?GuardNamespace $ns): string
80 86
     {
81 87
         $permission = [];
82
-        if ($this->namespace) {
88
+        if ($this->namespace)
89
+        {
83 90
             $permission[] = $this->namespace;
84 91
         }
85 92
 
86
-        if ($ns !== null && $ns->namespace) {
93
+        if ($ns !== null && $ns->namespace)
94
+        {
87 95
             $permission[] = $ns->namespace;
88 96
         }
89 97
 
Please login to merge, or discard this patch.
src/Framework/Domain/Annotation/GuardNamespace.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -25,6 +25,6 @@
 block discarded – undo
25 25
      */
26 26
     public function __construct(
27 27
         public readonly string $namespace
28
-    ) {
28
+    ){
29 29
     }
30 30
 }
Please login to merge, or discard this patch.
src/Framework/Domain/Annotation/Pipeline.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -24,6 +24,6 @@
 block discarded – undo
24 24
     public function __construct(
25 25
         public readonly array $pipeline = [],
26 26
         public readonly bool $skipNext = false
27
-    ) {
27
+    ){
28 28
     }
29 29
 }
Please login to merge, or discard this patch.
src/Framework/Domain/Annotation/Guarded.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -30,6 +30,6 @@
 block discarded – undo
30 30
         /** @Enum({"notFound","unauthorized","forbidden","badAction","error"}) */
31 31
         public readonly string $else = 'forbidden',
32 32
         public readonly ?string $errorMessage = null
33
-    ) {
33
+    ){
34 34
     }
35 35
 }
Please login to merge, or discard this patch.
src/Framework/Snapshots/FileSnapshooter.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -8,7 +8,7 @@
 block discarded – undo
8 8
 {
9 9
     public function __construct(
10 10
         private readonly FileSnapshot $fileSnapshot
11
-    ) {
11
+    ){
12 12
     }
13 13
 
14 14
     public function register(\Throwable $e): SnapshotInterface
Please login to merge, or discard this patch.
src/Framework/Module/PublisherInterface.php 1 patch
Upper-Lower-Casing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@  discard block
 block discarded – undo
25 25
         string $filename,
26 26
         string $destination,
27 27
         string $mergeMode = self::FOLLOW,
28
-        int $mode = FilesInterface::READONLY
28
+        int $mode = FilesInterface::readonly
29 29
     ): void;
30 30
 
31 31
     /**
@@ -37,7 +37,7 @@  discard block
 block discarded – undo
37 37
         string $directory,
38 38
         string $destination,
39 39
         string $mergeMode = self::REPLACE,
40
-        int $mode = FilesInterface::READONLY
40
+        int $mode = FilesInterface::readonly
41 41
     ): void;
42 42
 
43 43
     /**
@@ -45,5 +45,5 @@  discard block
 block discarded – undo
45 45
      *
46 46
      * @throws PublishException
47 47
      */
48
-    public function ensureDirectory(string $directory, int $mode = FilesInterface::READONLY): void;
48
+    public function ensureDirectory(string $directory, int $mode = FilesInterface::readonly): void;
49 49
 }
Please login to merge, or discard this patch.
src/Framework/Module/Publisher.php 3 patches
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@  discard block
 block discarded – undo
15 15
 {
16 16
     public function __construct(
17 17
         private readonly FilesInterface $files
18
-    ) {
18
+    ){
19 19
     }
20 20
 
21 21
     public function publish(
@@ -24,17 +24,17 @@  discard block
 block discarded – undo
24 24
         string $mergeMode = self::FOLLOW,
25 25
         int $mode = FilesInterface::READONLY
26 26
     ): void {
27
-        if (!$this->files->isFile($filename)) {
27
+        if (!$this->files->isFile($filename)){
28 28
             throw new PublishException(\sprintf("Given '%s' is not valid file", $filename));
29 29
         }
30 30
 
31
-        if ($this->files->exists($destination)) {
32
-            if ($this->files->md5($destination) === $this->files->md5($filename)) {
31
+        if ($this->files->exists($destination)){
32
+            if ($this->files->md5($destination) === $this->files->md5($filename)){
33 33
                 //Nothing to do
34 34
                 return;
35 35
             }
36 36
 
37
-            if ($mergeMode === self::FOLLOW) {
37
+            if ($mergeMode === self::FOLLOW){
38 38
                 return;
39 39
             }
40 40
         }
@@ -53,17 +53,17 @@  discard block
 block discarded – undo
53 53
         string $mergeMode = self::REPLACE,
54 54
         int $mode = FilesInterface::READONLY
55 55
     ): void {
56
-        if (!$this->files->isDirectory($directory)) {
56
+        if (!$this->files->isDirectory($directory)){
57 57
             throw new PublishException(\sprintf("Given '%s' is not valid directory", $directory));
58 58
         }
59 59
 
60 60
         $finder = new Finder();
61 61
         $finder->files()->in($directory);
62 62
 
63
-        foreach ($finder->getIterator() as $file) {
63
+        foreach ($finder->getIterator() as $file){
64 64
             $this->publish(
65 65
                 (string)$file,
66
-                $destination . '/' . $file->getRelativePathname(),
66
+                $destination.'/'.$file->getRelativePathname(),
67 67
                 $mergeMode,
68 68
                 $mode
69 69
             );
Please login to merge, or discard this patch.
Braces   +12 added lines, -6 removed lines patch added patch discarded remove patch
@@ -24,17 +24,21 @@  discard block
 block discarded – undo
24 24
         string $mergeMode = self::FOLLOW,
25 25
         int $mode = FilesInterface::READONLY
26 26
     ): void {
27
-        if (!$this->files->isFile($filename)) {
27
+        if (!$this->files->isFile($filename))
28
+        {
28 29
             throw new PublishException(\sprintf("Given '%s' is not valid file", $filename));
29 30
         }
30 31
 
31
-        if ($this->files->exists($destination)) {
32
-            if ($this->files->md5($destination) === $this->files->md5($filename)) {
32
+        if ($this->files->exists($destination))
33
+        {
34
+            if ($this->files->md5($destination) === $this->files->md5($filename))
35
+            {
33 36
                 //Nothing to do
34 37
                 return;
35 38
             }
36 39
 
37
-            if ($mergeMode === self::FOLLOW) {
40
+            if ($mergeMode === self::FOLLOW)
41
+            {
38 42
                 return;
39 43
             }
40 44
         }
@@ -53,14 +57,16 @@  discard block
 block discarded – undo
53 57
         string $mergeMode = self::REPLACE,
54 58
         int $mode = FilesInterface::READONLY
55 59
     ): void {
56
-        if (!$this->files->isDirectory($directory)) {
60
+        if (!$this->files->isDirectory($directory))
61
+        {
57 62
             throw new PublishException(\sprintf("Given '%s' is not valid directory", $directory));
58 63
         }
59 64
 
60 65
         $finder = new Finder();
61 66
         $finder->files()->in($directory);
62 67
 
63
-        foreach ($finder->getIterator() as $file) {
68
+        foreach ($finder->getIterator() as $file)
69
+        {
64 70
             $this->publish(
65 71
                 (string)$file,
66 72
                 $destination . '/' . $file->getRelativePathname(),
Please login to merge, or discard this patch.
Upper-Lower-Casing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@  discard block
 block discarded – undo
22 22
         string $filename,
23 23
         string $destination,
24 24
         string $mergeMode = self::FOLLOW,
25
-        int $mode = FilesInterface::READONLY
25
+        int $mode = FilesInterface::readonly
26 26
     ): void {
27 27
         if (!$this->files->isFile($filename)) {
28 28
             throw new PublishException(\sprintf("Given '%s' is not valid file", $filename));
@@ -51,7 +51,7 @@  discard block
 block discarded – undo
51 51
         string $directory,
52 52
         string $destination,
53 53
         string $mergeMode = self::REPLACE,
54
-        int $mode = FilesInterface::READONLY
54
+        int $mode = FilesInterface::readonly
55 55
     ): void {
56 56
         if (!$this->files->isDirectory($directory)) {
57 57
             throw new PublishException(\sprintf("Given '%s' is not valid directory", $directory));
@@ -70,7 +70,7 @@  discard block
 block discarded – undo
70 70
         }
71 71
     }
72 72
 
73
-    public function ensureDirectory(string $directory, int $mode = FilesInterface::READONLY): void
73
+    public function ensureDirectory(string $directory, int $mode = FilesInterface::readonly): void
74 74
     {
75 75
         $this->files->ensureDirectory($directory, $mode);
76 76
     }
Please login to merge, or discard this patch.
src/Framework/Console/ConsoleDispatcher.php 2 patches
Braces   +8 added lines, -3 removed lines patch added patch discarded remove patch
@@ -49,13 +49,18 @@
 block discarded – undo
49 49
         /** @var Console $console */
50 50
         $console = $this->container->get(Console::class);
51 51
 
52
-        try {
52
+        try
53
+        {
53 54
             return $console->start($input ?? new ArgvInput(), $output);
54
-        } catch (Throwable $e) {
55
+        }
56
+        catch (Throwable $e)
57
+        {
55 58
             $this->handleException($e, $output);
56 59
 
57 60
             return 255;
58
-        } finally {
61
+        }
62
+        finally
63
+        {
59 64
             $listener->disable();
60 65
             $this->finalizer->finalize(false);
61 66
         }
Please login to merge, or discard this patch.
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@  discard block
 block discarded – undo
29 29
         private readonly FinalizerInterface $finalizer,
30 30
         private readonly ContainerInterface $container,
31 31
         private readonly ExceptionHandlerInterface $errorHandler,
32
-    ) {
32
+    ){
33 33
     }
34 34
 
35 35
     public static function canServe(EnvironmentInterface $env): bool
@@ -51,13 +51,13 @@  discard block
 block discarded – undo
51 51
         /** @var Console $console */
52 52
         $console = $this->container->get(Console::class);
53 53
 
54
-        try {
54
+        try{
55 55
             return $console->start($input ?? new ArgvInput(), $output);
56
-        } catch (Throwable $e) {
56
+        }catch (Throwable $e){
57 57
             $this->handleException($e, $output);
58 58
 
59 59
             return 255;
60
-        } finally {
60
+        }finally{
61 61
             $listener->disable();
62 62
             $this->finalizer->finalize(false);
63 63
         }
Please login to merge, or discard this patch.