| Conditions | 1 |
| Paths | 1 |
| Total Lines | 11 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 9 |
| CRAP Score | 1 |
| Changes | 0 | ||
| 1 | <?php |
||
| 24 | 94 | private function makeReaction(): \Closure |
|
| 25 | { |
||
| 26 | 94 | $chain = resolve(Chain::class); |
|
| 27 | 94 | $responder = resolve(ResponderFactory::class)->make(); |
|
| 28 | 94 | $beforeResponse = $chain->beforeResponse(); |
|
| 29 | 94 | $debug = $chain->debugInfo; |
|
| 30 | |||
| 31 | 94 | return function () use ($beforeResponse, $responder, $debug) { |
|
| 32 | 54 | event('heyman_reaction_is_happening', $debug); |
|
| 33 | 54 | $beforeResponse(); |
|
| 34 | 53 | $responder(); |
|
| 35 | 94 | }; |
|
| 38 |