| Conditions | 1 |
| Paths | 1 |
| Total Lines | 14 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 4 | ||
| Bugs | 2 | Features | 0 |
| 1 | <?php |
||
| 16 | public function boot() |
||
| 17 | { |
||
| 18 | $this->loadMigrationsFrom(__DIR__ . '/database/migrations/'); |
||
|
|
|||
| 19 | |||
| 20 | $this->publishes([ |
||
| 21 | __DIR__ . '/database/migrations/' => database_path('migrations') |
||
| 22 | ], 'migrations'); |
||
| 23 | |||
| 24 | $this->publishes([ |
||
| 25 | __DIR__ . '/config/languages.php' => config_path('languages.php'), |
||
| 26 | ], 'config'); |
||
| 27 | |||
| 28 | Collection::macro('for', function ($field, $code) { |
||
| 29 | return $this->where('key', $field)->where('locale', $code)->pluck('value')->first() ?? $field; |
||
| 30 | }); |
||
| 37 |
This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.
This is most likely a typographical error or the method has been renamed.