| Conditions | 1 |
| Paths | 1 |
| Total Lines | 9 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 7 |
| CRAP Score | 1 |
| Changes | 0 | ||
| 1 | <?php |
||
| 35 | 9 | protected function registerResponseMacro(string $name) |
|
| 36 | { |
||
| 37 | 9 | Response::macro( |
|
| 38 | 9 | $name, |
|
| 39 | 9 | function () { |
|
| 40 | 3 | $builder = app(Builder::class); |
|
| 41 | 3 | $factory = new ResponseFactory(/* @scrutinizer ignore-type */ $this, $builder); |
|
| 42 | |||
| 43 | 3 | return $factory->make(...\func_get_args()); |
|
|
|
|||
| 44 | 9 | } |
|
| 53 |