for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* @copyright Copyright (c) 2016 Canis.io
* @license MIT
*/
namespace Canis\Lumen\Jwt;
use Auth;
use Illuminate\Support\ServiceProvider as BaseServiceProvider;
class ServiceProvider extends BaseServiceProvider
{
private $jwt;
$jwt
This check marks private properties in classes that are never used. Those properties can be removed.
public function boot()
$this->app->configure('jwt');
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.
Auth::extend('jwt', function($app, $name, array $config) {
$guard = new Guard($name, Auth::createUserProvider($config['provider']), $app['request'], $config);
$app->refresh('request', $guard, 'setRequest');
return $guard;
});
}
* Register the service provider.
*
* @return void
public function register()
This check marks private properties in classes that are never used. Those properties can be removed.