Query   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 100%

Importance

Changes 2
Bugs 2 Features 1
Metric Value
wmc 1
c 2
b 2
f 1
lcom 0
cbo 1
dl 0
loc 12
ccs 2
cts 2
cp 1
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A buildRelationClauses() 0 6 1
1
<?php
2
3
/*
4
 * This file is part of the "RocketORM" package.
5
 *
6
 * https://github.com/RocketORM/ORM
7
 *
8
 * For the full license information, please view the LICENSE
9
 * file that was distributed with this source code.
10
 */
11
12
namespace Rocket\ORM\Model\Query\SQLite;
13
14
use Rocket\ORM\Model\Query\Query as BaseQuery;
15
16
/**
17
 * @author Sylvain Lorinet <[email protected]>
18
 */
19
abstract class Query extends BaseQuery
20
{
21
    /**
22
     * @inheritdoc
23
     */
24 2
    protected function buildRelationClauses()
25
    {
26
        // Remove the database name
27
28 2
        return preg_replace('/`([a-zA-Z0-9_-]+)`\./', '', parent::buildRelationClauses());
29
    }
30
}
31