| Conditions | 2 |
| Paths | 2 |
| Total Lines | 14 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 18 | public function handle(Container $app, Sandbox $sandbox) |
||
| 19 | { |
||
| 20 | if ($sandbox->isLaravel()) { |
||
| 21 | $kernel = $app->make(Kernel::class); |
||
| 22 | |||
| 23 | $closure = function () use ($app) { |
||
| 24 | $this->app = $app; |
||
|
|
|||
| 25 | }; |
||
| 26 | |||
| 27 | $resetKernel = $closure->bindTo($kernel, $kernel); |
||
| 28 | $resetKernel(); |
||
| 29 | } |
||
| 30 | |||
| 31 | return $app; |
||
| 32 | } |
||
| 34 |