Completed
Push — master ( ec2154...751b89 )
by Rougin
04:27
created

DatabaseDriver::getDriver()   D

Complexity

Conditions 10
Paths 96

Size

Total Lines 43
Code Lines 28

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 31
CRAP Score 10

Importance

Changes 2
Bugs 1 Features 1
Metric Value
c 2
b 1
f 1
dl 0
loc 43
ccs 31
cts 31
cp 1
rs 4.8196
cc 10
eloc 28
nc 96
nop 2
crap 10

How to fix   Complexity   

Long Method

Small methods make your code easier to understand, in particular if combined with a good name. Besides, if your method is small, finding a good name is usually much easier.

For example, if you find yourself adding comments to a method's body, this is usually a good sign to extract the commented part to a new method, and use the comment as a starting point when coming up with a good name for this new method.

Commonly applied refactorings include:

1
<?php
2
3
namespace Rougin\Describe\Drivers;
4
5
use Rougin\Describe\Driver\DatabaseDriver as BaseDriver;
6
7
/**
8
 * Database Driver
9
 *
10
 * A database driver for using available database drivers.
11
 * NOTE: To be removed in v1.0.0
12
 *
13
 * @package  Describe
14
 * @category Drivers
15
 * @author   Rougin Royce Gutib <[email protected]>
16
 */
17
class DatabaseDriver extends BaseDriver
18
{
19
}
20