Passed
Pull Request — master (#377)
by Alexander
03:29 queued 56s
created

QueryBuilderProvider   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A buildConditions() 0 10 2
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Yiisoft\Db\Tests\Pgsql\Provider;
6
7
use Yiisoft\Db\Tests\Support\DbHelper;
8
9
final class QueryBuilderProvider extends \Yiisoft\Db\Tests\Provider\QueryBuilderProvider
10
{
11
    public function buildConditions(): array
12
    {
13
        $conditions = parent::buildConditions();
14
15
        /* adjust dbms specific escaping */
16
        foreach ($conditions as $i => $condition) {
17
            $conditions[$i][1] = DbHelper::replaceQuotes($condition[1], 'pgsql');
18
        }
19
20
        return $conditions;
21
    }
22
}
23