Conditions | 2 |
Paths | 2 |
Total Lines | 10 |
Lines | 0 |
Ratio | 0 % |
Tests | 3 |
CRAP Score | 2.0625 |
Changes | 0 |
1 | <?php |
||
16 | 3 | public function getCachedServicesPath(): string |
|
17 | { |
||
18 | // This checks if we are running on a Laravel Vapor managed instance |
||
19 | // and sets the path to a writable one (services path is not on a writable storage in Vapor). |
||
20 | 3 | if(!is_null(env('VAPOR_MAINTENANCE_MODE', null))) { |
|
21 | return Str::replaceLast('config.php', $this->getSnakeName() . '_module.php', $this->app->getCachedConfigPath()); |
||
|
|||
22 | } |
||
23 | |||
24 | 3 | return Str::replaceLast('services.php', $this->getSnakeName() . '_module.php', $this->app->getCachedServicesPath()); |
|
25 | } |
||
26 | |||
47 |
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.