for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace NovaTextCard;
use Illuminate\Support\Facades\Route;
use Laravel\Nova\Events\ServingNova;
use Laravel\Nova\Nova;
class ServiceProvider extends \Illuminate\Support\ServiceProvider
{
/**
* Bootstrap any application services.
*
* @return void
*/
public function boot()
$this->app->booted(function () {
$this->routes();
});
Nova::serving(function (ServingNova $event) {
$event
If this is a false-positive, you can also ignore this issue in your code via the ignore-unused annotation
ignore-unused
Nova::serving(function (/** @scrutinizer ignore-unused */ ServingNova $event) {
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.
Nova::script('nova-text-card', __DIR__.'/../dist/js/card.js');
Nova::style('nova-text-card', __DIR__.'/../dist/css/card.css');
}
* Register the card's routes.
protected function routes()
if ($this->app->routesAreCached()) {
return;
Route::middleware(['nova'])
->prefix('nova-vendor/nova-text-card')
->group(__DIR__.'/../routes/api.php');
* Register any application services.
public function register()
//
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.