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