Failed Conditions
Pull Request — master (#28)
by Dallas
05:15
created

CreateFunctionCompiler   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 5
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 1
Bugs 0 Features 1
Metric Value
wmc 1
eloc 2
c 1
b 0
f 1
dl 0
loc 5
ccs 0
cts 2
cp 0
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A compile() 0 3 1
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\CreateFunctionBuilder;
10
11
class CreateFunctionCompiler
12
{
13
    public static function compile(Grammar $grammar, Blueprint $blueprint, CreateFunctionBuilder $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, CreateFunctionBuilder $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 */ CreateFunctionBuilder $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, CreateFunctionBuilder $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