Passed
Push — master ( 71375f...32edb5 )
by Alexander
07:08
created

SqlConditionBuilder   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 11
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 1
dl 0
loc 11
ccs 0
cts 8
cp 0
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A resolveConditionMethodName() 0 8 2
1
<?php declare(strict_types=1);
2
3
namespace Indigerd\Repository\TableGateway\ConditionBuilder;
4
5
class SqlConditionBuilder extends ConditionBuilder
6
{
7
    protected function resolveConditionMethodName($fieldName): string
8
    {
9
        if (\strpos($fieldName, '.') !== false) {
10
            $a = \explode('.', $fieldName);
11
            $fieldName = $a[1];
12
        }
13
        return parent::resolveConditionMethodName($fieldName);
14
    }
15
}
16