Passed
Push — ci-build-matrix ( 1c3307...9a015f )
by Hung
02:21
created

TestUtil   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 7
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
dl 0
loc 7
rs 10
c 0
b 0
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A getConnectionDriver() 0 5 1
1
<?php
2
3
namespace Foolz\SphinxQL\Tests;
4
5
class TestUtil
6
{
7
    public static function getConnectionDriver()
8
    {
9
        $connection = '\\Foolz\\SphinxQL\\Drivers\\'.$GLOBALS['driver'].'\\Connection';
10
11
        return new $connection();
12
    }
13
}
14