Passed
Push — master ( c951ad...2aeb1e )
by Anton
02:30
created
src/Jobs/JobDispatcher.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@  discard block
 block discarded – undo
37 37
         EnvironmentInterface $env,
38 38
         FinalizerInterface $finalizer,
39 39
         ContainerInterface $container
40
-    ) {
40
+    ){
41 41
         $this->env = $env;
42 42
         $this->finalizer = $finalizer;
43 43
         $this->container = $container;
@@ -63,8 +63,8 @@  discard block
 block discarded – undo
63 63
         $consumer = $this->container->get(Consumer::class);
64 64
         $worker = $this->container->get(Worker::class);
65 65
 
66
-        $consumer->serve($worker, function (\Throwable $e = null) {
67
-            if ($e !== null) {
66
+        $consumer->serve($worker, function (\Throwable $e = null){
67
+            if ($e !== null){
68 68
                 $this->handleException($e);
69 69
             }
70 70
 
@@ -77,9 +77,9 @@  discard block
 block discarded – undo
77 77
      */
78 78
     protected function handleException(\Throwable $e)
79 79
     {
80
-        try {
80
+        try{
81 81
             $this->container->get(SnapshotterInterface::class)->register($e);
82
-        } catch (\Throwable|ContainerExceptionInterface $se) {
82
+        }catch (\Throwable | ContainerExceptionInterface $se){
83 83
             // no need to notify when unable to register an exception
84 84
         }
85 85
     }
Please login to merge, or discard this patch.