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

QueryBuilderProvider::buildConditions()   A

Complexity

Conditions 2
Paths 2

Size

Total Lines 10
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
cc 2
eloc 4
c 1
b 0
f 1
nc 2
nop 0
dl 0
loc 10
rs 10
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Yiisoft\Db\Tests\Oracle\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], 'oci');
18
        }
19
20
        return $conditions;
21
    }
22
}
23