@@ -62,9 +62,11 @@ |
||
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 | } |
@@ -378,13 +378,13 @@ |
||
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 | ); |
@@ -49,9 +49,11 @@ |
||
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; |
@@ -76,9 +76,11 @@ |
||
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 |