Conditions | 1 |
Paths | 1 |
Total Lines | 11 |
Lines | 0 |
Ratio | 0 % |
Tests | 6 |
CRAP Score | 1.0028 |
Changes | 0 |
1 | <?php |
||
25 | 3 | public function __call($method, $params) |
|
26 | { |
||
27 | 3 | $pipeline = new Pipeline(app()); |
|
28 | return $pipeline |
||
29 | 3 | ->via('handle') |
|
30 | 3 | ->send($params) |
|
31 | 3 | ->through($this->middlewares) |
|
32 | ->then((function ($params) use ($method) { |
||
33 | return ($this->$method(...$params)); |
||
34 | 3 | })->bindTo($this->callable, $this->callable)); |
|
35 | } |
||
36 | } |
||
37 |