for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace ThinkOne\NovaFlexibleContentFieldShortcode;
use Laravel\Nova\Events\ServingNova;
use Laravel\Nova\Nova;
class ServiceProvider extends \Illuminate\Support\ServiceProvider
{
/**
* Bootstrap any application services.
*
* @return void
*/
public function boot()
if ($this->app->runningInConsole()) {
$this->publishes([
__DIR__ . '/../config/nfc-shortcode.php' => config_path('nfc-shortcode.php'),
], 'config');
$this->commands([
]);
}
/** @psalm-suppress UndefinedClass **/
if (class_exists(Nova::class)) {
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-flexible-content-field-shortcode', __DIR__ . '/../dist/js/field.js');
Nova::style('nova-flexible-content-field-shortcode', __DIR__ . '/../dist/css/field.css');
});
* Register any application services.
public function register()
$this->mergeConfigFrom(__DIR__ . '/../config/nfc-shortcode.php', 'nfc-shortcode');
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.