Conditions | 2 |
Paths | 1 |
Total Lines | 11 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Tests | 6 |
CRAP Score | 2 |
Changes | 0 |
1 | <?php |
||
45 | public function __invoke(...$arguments): object |
||
46 | { |
||
47 | 2 | $arguments = Sequence::of(...$arguments)->map(static function($argument) { |
|
48 | 2 | if ($argument instanceof Lazy) { |
|
49 | 1 | return $argument->load(); |
|
50 | } |
||
51 | |||
52 | 2 | return $argument; |
|
53 | 2 | }); |
|
54 | |||
55 | 2 | return $arguments->first()->{$this->method}(...$arguments->drop(1)); |
|
56 | } |
||
68 |