for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/*
* This file is part of the Laravel Platfourm package.
*
* (c) Avtandil Kikabidze aka LONGMAN <[email protected]>
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Longman\Platfourm\Auth;
use Illuminate\Auth\AuthManager;
use Illuminate\Foundation\Support\Providers\AuthServiceProvider as ServiceProvider;
use Longman\Platfourm\Auth\RemoteUserProvider;
use Longman\Platfourm\Auth\Repositories\RemoteUserRepository;
class AuthServiceProvider extends ServiceProvider
{
/**
* Register any application authentication / authorization services.
* @param \Illuminate\Contracts\Auth\Access\Gate $gate
$gate
This check looks for PHPDoc comments describing methods or function parameters that do not exist on the corresponding method or function.
Consider the following example. The parameter $italy is not defined by the method finale(...).
$italy
finale(...)
/** * @param array $germany * @param array $island * @param array $italy */ function finale($germany, $island) { return "2:1"; }
The most likely cause is that the parameter was removed, but the annotation was not.
* @return void
public function boot(AuthManager $auth)
$auth
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.
}
* Register bindings in the container.
public function register()
$this->app->singleton(
\Longman\Platfourm\Contracts\Auth\AuthUserService::class,
\Longman\Platfourm\Auth\Services\AuthUserService::class
);
This check looks for PHPDoc comments describing methods or function parameters that do not exist on the corresponding method or function.
Consider the following example. The parameter
$italy
is not defined by the methodfinale(...)
.The most likely cause is that the parameter was removed, but the annotation was not.