for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace iMokhles\MultiAuthCommand;
use Illuminate\Database\Migrations\MigrationCreator;
use Illuminate\Support\Composer;
use Illuminate\Support\ServiceProvider;
use iMokhles\MultiAuthCommand\Command\MultiAuthListThemes;
use iMokhles\MultiAuthCommand\Command\MultiAuthPrepare;
class MultiAuthCommandServiceProvider extends ServiceProvider
{
/**
* Bootstrap the application services.
*
* @return void
*/
public function boot()
//
}
* Register the application services.
public function register()
$this->registerInstallCommand();
* Register the make:multi-auth command.
private function registerInstallCommand()
$this->app->singleton('command.imokhles.make.multi-auth', function ($app) {
return new MultiAuthPrepare(new MigrationCreator($app['files'], $app->basePath('Stubs')), new Composer($app['files']));
});
$this->app->singleton('command.imokhles.make.multi-auth.list-themes', 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 MultiAuthListThemes();
$this->commands([
'MultiAuthPrepare' => 'command.imokhles.make.multi-auth',
'MultiAuthListThemes' => 'command.imokhles.make.multi-auth.list-themes',
]);
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.