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->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'));
});
$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 looks from parameters that have been defined for a function or method, but which are not used in the method body.