Passed
Pull Request — master (#12)
by Bas
02:32
created

NormalizesArrayFunctions::normalizeCountDistinct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 1
nc 1
nop 1
dl 0
loc 3
ccs 2
cts 2
cp 1
crap 1
rs 10
c 1
b 0
f 0
1
<?php
2
3
namespace LaravelFreelancerNL\FluentAQL\Traits;
4
5
use LaravelFreelancerNL\FluentAQL\QueryBuilder;
6
7
/**
8
 * Trait hasFunctions.
9
 *
10
 * AQL Function API calls.
11
 */
12
trait NormalizesArrayFunctions
13
{
14 2
    protected function normalizeFirst(QueryBuilder $queryBuilder)
15
    {
16 2
        $this->normalizeArrays($queryBuilder);
0 ignored issues
show
Bug introduced by
The method normalizeArrays() does not exist on LaravelFreelancerNL\Flue...ormalizesArrayFunctions. Did you maybe mean normalizeLast()? ( Ignorable by Annotation )

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

16
        $this->/** @scrutinizer ignore-call */ 
17
               normalizeArrays($queryBuilder);

This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.

This is most likely a typographical error or the method has been renamed.

Loading history...
17 2
    }
18
19 1
    protected function normalizeLast(QueryBuilder $queryBuilder)
20
    {
21 1
        $this->normalizeArrays($queryBuilder);
22 1
    }
23
24 2
    protected function normalizeLength(QueryBuilder $queryBuilder)
25
    {
26 2
        $this->normalizeArrays($queryBuilder);
27 2
    }
28
29 1
    protected function normalizeCountDistinct(QueryBuilder $queryBuilder)
30
    {
31 1
        $this->normalizeArrays($queryBuilder);
32 1
    }
33
}
34