for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace Umbrellio\Postgres\Compilers;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Schema\Grammars\Grammar;
use Umbrellio\Postgres\Schema\Builders\Routines\CreateTriggerBuilder;
class CreateTriggerCompiler
{
public static function compile(Grammar $grammar, Blueprint $blueprint, CreateTriggerBuilder $command): array
$grammar
If this is a false-positive, you can also ignore this issue in your code via the ignore-unused annotation
ignore-unused
public static function compile(/** @scrutinizer ignore-unused */ Grammar $grammar, Blueprint $blueprint, CreateTriggerBuilder $command): array
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.
$command
public static function compile(Grammar $grammar, Blueprint $blueprint, /** @scrutinizer ignore-unused */ CreateTriggerBuilder $command): array
$blueprint
public static function compile(Grammar $grammar, /** @scrutinizer ignore-unused */ Blueprint $blueprint, CreateTriggerBuilder $command): array
return [];
}
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.