for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace JeroenG\GuestPass;
use Illuminate\Support\ServiceProvider;
class GuestPassServiceProvider extends ServiceProvider
{
/**
* Perform post-registration booting of services.
*
* @return void
*/
public function boot()
// Make the migrations available.
$this->loadMigrationsFrom(__DIR__.'/../database/migrations');
// Register the routes.
app('guestpass')->routes();
}
* Register any package services.
public function register()
$this->app->singleton('guestpass', 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 GuestPassService;
});
* Get the services provided by the provider.
* @return array
string[]
This check looks for the generic type array as a return type and suggests a more specific type. This type is inferred from the actual code.
array
public function provides()
return ['guestpass'];
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.