Conditions | 2 |
Paths | 2 |
Total Lines | 10 |
Lines | 0 |
Ratio | 0 % |
Tests | 4 |
CRAP Score | 2.032 |
Changes | 0 |
1 | <?php |
||
58 | 9 | private function sendItThroughPipes($params, Pipeline $pipeline, \Closure $core) |
|
59 | { |
||
60 | 9 | $result = $pipeline->via('handle')->send($params)->through($this->middlewares)->then($core); |
|
61 | |||
62 | 9 | if ($result instanceof \Throwable) { |
|
63 | throw $result; |
||
64 | } else { |
||
65 | 9 | return $result; |
|
66 | } |
||
67 | } |
||
68 | } |
||
69 |