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