Passed
Push — master ( 7c1da9...597517 )
by Anton
02:13
created
src/Http/RrDispacher.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -46,7 +46,7 @@  discard block
 block discarded – undo
46 46
         FinalizerInterface $finalizer,
47 47
         ContainerInterface $container,
48 48
         FactoryInterface $factory
49
-    ) {
49
+    ){
50 50
         $this->env = $env;
51 51
         $this->finalizer = $finalizer;
52 52
         $this->container = $container;
@@ -70,12 +70,12 @@  discard block
 block discarded – undo
70 70
 
71 71
         /** @var Http $http */
72 72
         $http = $this->container->get(Http::class);
73
-        while ($request = $client->acceptRequest()) {
74
-            try {
73
+        while ($request = $client->acceptRequest()){
74
+            try{
75 75
                 $client->respond($http->handle($request));
76
-            } catch (\Throwable $e) {
76
+            }catch (\Throwable $e){
77 77
                 $this->handleException($client, $e);
78
-            } finally {
78
+            }finally{
79 79
                 $this->finalizer->finalize(false);
80 80
             }
81 81
         }
@@ -89,11 +89,11 @@  discard block
 block discarded – undo
89 89
     {
90 90
         $handler = new HtmlHandler();
91 91
 
92
-        try {
92
+        try{
93 93
             /** @var SnapshotInterface $snapshot */
94 94
             $snapshot = $this->container->get(SnapshotterInterface::class)->register($e);
95 95
             error_log($snapshot->getMessage());
96
-        } catch (\Throwable|ContainerExceptionInterface $se) {
96
+        }catch (\Throwable | ContainerExceptionInterface $se){
97 97
             error_log((string)$e);
98 98
         }
99 99
 
Please login to merge, or discard this patch.
src/Http/SapiDispatcher.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -57,12 +57,12 @@  discard block
 block discarded – undo
57 57
         $http = $this->container->get(Http::class);
58 58
         $emitter = $emitter ?? $this->container->get(EmitterInterface::class);
59 59
 
60
-        try {
60
+        try{
61 61
             $response = $http->handle($this->initRequest());
62 62
             $emitter->emit($response);
63
-        } catch (\Throwable $e) {
63
+        }catch (\Throwable $e){
64 64
             $this->handleException($emitter, $e);
65
-        } finally {
65
+        }finally{
66 66
             $this->finalizer->finalize(false);
67 67
         }
68 68
     }
@@ -83,10 +83,10 @@  discard block
 block discarded – undo
83 83
     {
84 84
         $handler = new HtmlHandler();
85 85
 
86
-        try {
86
+        try{
87 87
             /** @var SnapshotInterface $snapshot */
88 88
             $this->container->get(SnapshotterInterface::class)->register($e);
89
-        } catch (\Throwable|ContainerExceptionInterface $se) {
89
+        }catch (\Throwable | ContainerExceptionInterface $se){
90 90
             // nothing to report
91 91
         }
92 92
 
Please login to merge, or discard this patch.