for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace RealPage\JsonApi\Lumen;
use Illuminate\Support\ServiceProvider as IlluminateServiceProvider;
use RealPage\JsonApi\MediaTypeGuard;
use RealPage\JsonApi\EncoderService;
class ServiceProvider extends IlluminateServiceProvider
{
public function register()
$this->app->configure('json-api');
configure()
Illuminate\Contracts\Foundation\Application
registerConfiguredProviders()
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.
$this->mergeConfigFrom(__DIR__ . '/../../config/json-api.php', 'json-api');
$this->app->bind(MediaTypeGuard::class, function ($app) {
$app
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.
return new MediaTypeGuard(config('json-api.media-type'), config('json-api.accept-header-policy'));
});
$this->app->bind(EncoderService::class, function ($app) {
return new EncoderService(config('json-api'));
}
/**
* @return array
*/
public function provides()
return [MediaTypeGuard::class, EncoderService::class];
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.