| Conditions | 3 |
| Paths | 3 |
| Total Lines | 11 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 21 | public function handle(Closure $function, Closure $secondary = null) |
||
| 22 | { |
||
| 23 | try { |
||
| 24 | return call_user_func($function); |
||
| 25 | } catch (Throwable $e) { |
||
| 26 | if (is_callable($secondary)) { |
||
| 27 | return call_user_func($secondary); |
||
| 28 | } |
||
| 29 | throw new DualCacheException($e->getMessage(), $e->getCode(), $e); |
||
| 30 | } |
||
| 31 | } |
||
| 32 | } |
||
| 33 |