Completed
Push — master ( e2b9d7...e5c087 )
by Kamil
02:25
created
src/Promise/PromiseCancelled.php 1 patch
Braces   +4 added lines, -2 removed lines patch added patch discarded remove patch
@@ -62,9 +62,11 @@
 block discarded – undo
62 62
                 );
63 63
         }
64 64
         catch (Error $ex)
65
-        {}
65
+        {
66
+}
66 67
         catch (Exception $ex)
67
-        {}
68
+        {
69
+}
68 70
 
69 71
         return Promise::doCancel($this->getReason());
70 72
     }
Please login to merge, or discard this patch.
src/Promise/Promise.php 2 patches
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -378,13 +378,13 @@
 block discarded – undo
378 378
         try
379 379
         {
380 380
             $resolver(
381
-                function ($value = null) {
381
+                function($value = null) {
382 382
                     $this->resolve($value);
383 383
                 },
384
-                function ($reason = null) {
384
+                function($reason = null) {
385 385
                     $this->reject($reason);
386 386
                 },
387
-                function ($reason = null) {
387
+                function($reason = null) {
388 388
                     $this->cancel($reason);
389 389
                 }
390 390
             );
Please login to merge, or discard this patch.
Braces   +4 added lines, -2 removed lines patch added patch discarded remove patch
@@ -49,9 +49,11 @@
 block discarded – undo
49 49
                 return $canceller !== null && ($result = $canceller($reason)) instanceof self ? $result : $this;
50 50
             }
51 51
             catch (Error $ex)
52
-            {}
52
+            {
53
+}
53 54
             catch (Exception $ex)
54
-            {}
55
+            {
56
+}
55 57
             return $this;
56 58
         };
57 59
         $this->currentCancellations = 0;
Please login to merge, or discard this patch.
src/Promise/Helper/CancellationQueue.php 1 patch
Braces   +4 added lines, -2 removed lines patch added patch discarded remove patch
@@ -76,9 +76,11 @@
 block discarded – undo
76 76
                 $cancellable->cancel();
77 77
             }
78 78
             catch (Error $ex)
79
-            {}
79
+            {
80
+}
80 81
             catch (Exception $ex)
81
-            {}
82
+            {
83
+}
82 84
 
83 85
             unset($this->queue[$i]);
84 86
 
Please login to merge, or discard this patch.