@@ -56,15 +56,15 @@ discard block |
||
| 56 | 56 | */ |
| 57 | 57 | public function then(callable $onFulfilled = null, callable $onRejected = null, callable $onProgress = null) |
| 58 | 58 | { |
| 59 | - $this->adaptee->then(function () use ($onFulfilled) { |
|
| 59 | + $this->adaptee->then(function() use ($onFulfilled) { |
|
| 60 | 60 | if (null !== $onFulfilled) { |
| 61 | 61 | return call_user_func_array($onFulfilled, func_get_args()); |
| 62 | 62 | } |
| 63 | - }, function () use ($onRejected) { |
|
| 63 | + }, function() use ($onRejected) { |
|
| 64 | 64 | if (null !== $onRejected) { |
| 65 | 65 | return call_user_func_array($onRejected, func_get_args()); |
| 66 | 66 | } |
| 67 | - }, function () use ($onProgress) { |
|
| 67 | + }, function() use ($onProgress) { |
|
| 68 | 68 | if (null !== $onProgress) { |
| 69 | 69 | return call_user_func_array($onProgress, func_get_args()); |
| 70 | 70 | } |
@@ -82,15 +82,15 @@ discard block |
||
| 82 | 82 | */ |
| 83 | 83 | public function done(callable $onFulfilled = null, callable $onRejected = null, callable $onProgress = null) |
| 84 | 84 | { |
| 85 | - $this->adaptee->done(function () use ($onFulfilled) { |
|
| 85 | + $this->adaptee->done(function() use ($onFulfilled) { |
|
| 86 | 86 | if (null !== $onFulfilled) { |
| 87 | 87 | return call_user_func_array($onFulfilled, func_get_args()); |
| 88 | 88 | } |
| 89 | - }, function () use ($onRejected) { |
|
| 89 | + }, function() use ($onRejected) { |
|
| 90 | 90 | if (null !== $onRejected) { |
| 91 | 91 | return call_user_func_array($onRejected, func_get_args()); |
| 92 | 92 | } |
| 93 | - }, function () use ($onProgress) { |
|
| 93 | + }, function() use ($onProgress) { |
|
| 94 | 94 | if (null !== $onProgress) { |
| 95 | 95 | return call_user_func_array($onProgress, func_get_args()); |
| 96 | 96 | } |
@@ -106,7 +106,7 @@ discard block |
||
| 106 | 106 | */ |
| 107 | 107 | public function otherwise(callable $onRejected) |
| 108 | 108 | { |
| 109 | - $this->adaptee->otherwise(function () use ($onRejected) { |
|
| 109 | + $this->adaptee->otherwise(function() use ($onRejected) { |
|
| 110 | 110 | return call_user_func_array($onRejected, func_get_args()); |
| 111 | 111 | }); |
| 112 | 112 | |
@@ -120,7 +120,7 @@ discard block |
||
| 120 | 120 | */ |
| 121 | 121 | public function always(callable $onAlways) |
| 122 | 122 | { |
| 123 | - $this->adaptee->always(function () use ($onAlways) { |
|
| 123 | + $this->adaptee->always(function() use ($onAlways) { |
|
| 124 | 124 | return call_user_func_array($onAlways, func_get_args()); |
| 125 | 125 | }); |
| 126 | 126 | |
@@ -134,7 +134,7 @@ discard block |
||
| 134 | 134 | */ |
| 135 | 135 | public function progress(callable $onProgress) |
| 136 | 136 | { |
| 137 | - $this->adaptee->progress(function () use ($onProgress) { |
|
| 137 | + $this->adaptee->progress(function() use ($onProgress) { |
|
| 138 | 138 | return call_user_func_array($onProgress, func_get_args()); |
| 139 | 139 | }); |
| 140 | 140 | |