for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace App\Http\Cart;
use Illuminate\Support\ServiceProvider;
/**
* Class CartServiceProvider
* @package App\Http\Cart
*/
class CartServiceProvider extends ServiceProvider
{
* Bootstrap the application services.
*
* @return void
public function boot()
//
}
* Register the application services.
public function register()
$this->app->singleton(Cart::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 Cart();
});
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.