| Conditions | 1 |
| Paths | 1 |
| Total Lines | 14 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 2 | ||
| Bugs | 1 | Features | 1 |
| 1 | <?php |
||
| 11 | public function register() |
||
| 12 | { |
||
| 13 | $this->app->configure('json-api'); |
||
|
|
|||
| 14 | |||
| 15 | $this->mergeConfigFrom(__DIR__ . '/../../config/json-api.php', 'json-api'); |
||
| 16 | |||
| 17 | $this->app->bind(MediaTypeGuard::class, function ($app) { |
||
| 18 | return new MediaTypeGuard(config('json-api.media-type'), config('json-api.accept-header-policy')); |
||
| 19 | }); |
||
| 20 | |||
| 21 | $this->app->bind(EncoderService::class, function ($app) { |
||
| 22 | return new EncoderService(config('json-api')); |
||
| 23 | }); |
||
| 24 | } |
||
| 25 | |||
| 34 |
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.