Passed
Push — master ( f8f76e...e5015c )
by Bas
12:29
created

NormalizesDocumentFunctions   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 7
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A normalizeMerge() 0 3 1
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 NormalizesDocumentFunctions
13
{
14
    abstract protected function normalizeNumbers(QueryBuilder $queryBuilder);
15
16 2
    protected function normalizeMerge(QueryBuilder $queryBuilder)
17
    {
18 2
        $this->normalizeDocuments($queryBuilder);
0 ignored issues
show
Bug introduced by
The method normalizeDocuments() does not exist on LaravelFreelancerNL\Flue...alizesDocumentFunctions. Did you maybe mean normalizeNumbers()? ( Ignorable by Annotation )

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

18
        $this->/** @scrutinizer ignore-call */ 
19
               normalizeDocuments($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...
19 2
    }
20
}
21