| Conditions | 2 |
| Paths | 4 |
| Total Lines | 19 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 10 |
| CRAP Score | 2 |
| Changes | 2 | ||
| Bugs | 1 | Features | 0 |
| 1 | <?php namespace Lanin\Laravel\SetupWizard\Support\Bootstrap; |
||
| 15 | 6 | public function bootstrap(Application $app) |
|
| 16 | { |
||
| 17 | try |
||
| 18 | { |
||
| 19 | 6 | Dotenv::makeMutable(); |
|
| 20 | 6 | Dotenv::load($app->environmentPath(), $app->environmentFile()); |
|
| 21 | 4 | Dotenv::makeImmutable(); |
|
| 22 | 6 | } catch (InvalidArgumentException $e) |
|
| 23 | { |
||
| 24 | // |
||
| 25 | } |
||
| 26 | |||
| 27 | 6 | $app->detectEnvironment( |
|
| 28 | 6 | function () |
|
| 29 | { |
||
| 30 | 6 | return env('APP_ENV', 'production'); |
|
| 31 | } |
||
| 32 | 6 | ); |
|
| 33 | 6 | } |
|
| 34 | } |
||
| 35 |
This check marks calls to methods that do not seem to exist on an object.
This is most likely the result of a method being renamed without all references to it being renamed likewise.