Failed Conditions
Pull Request — master (#28)
by Dallas
06:04
created

CreateProcedureCompiler::compile()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 1
Bugs 0 Features 1
Metric Value
eloc 1
c 1
b 0
f 1
dl 0
loc 3
ccs 0
cts 2
cp 0
rs 10
cc 1
nc 1
nop 3
crap 2
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Umbrellio\Postgres\Compilers;
6
7
use Illuminate\Database\Schema\Blueprint;
8
use Illuminate\Database\Schema\Grammars\Grammar;
9
use Umbrellio\Postgres\Schema\Builders\Routines\CreateProcedureBuilder;
10
11
class CreateProcedureCompiler
12
{
13
    public static function compile(Grammar $grammar, Blueprint $blueprint, CreateProcedureBuilder $command): array
0 ignored issues
show
Unused Code introduced by
The parameter $grammar is not used and could be removed. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-unused  annotation

13
    public static function compile(/** @scrutinizer ignore-unused */ Grammar $grammar, Blueprint $blueprint, CreateProcedureBuilder $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.

Loading history...
Unused Code introduced by
The parameter $command is not used and could be removed. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-unused  annotation

13
    public static function compile(Grammar $grammar, Blueprint $blueprint, /** @scrutinizer ignore-unused */ CreateProcedureBuilder $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.

Loading history...
Unused Code introduced by
The parameter $blueprint is not used and could be removed. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-unused  annotation

13
    public static function compile(Grammar $grammar, /** @scrutinizer ignore-unused */ Blueprint $blueprint, CreateProcedureBuilder $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.

Loading history...
14
    {
15
        return [];
16
    }
17
}
18