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

MySQLDriver::getTable()   C

Complexity

Conditions 11
Paths 194

Size

Total Lines 78
Code Lines 49

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 56
CRAP Score 11

Importance

Changes 5
Bugs 2 Features 2
Metric Value
c 5
b 2
f 2
dl 0
loc 78
ccs 56
cts 56
cp 1
rs 5.0375
cc 11
eloc 49
nc 194
nop 1
crap 11

How to fix   Long Method    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\MySQLDriver as BaseDriver;
6
7
/**
8
 * MySQL Driver
9
 *
10
 * A database driver extension for MySQL.
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 MySQLDriver extends BaseDriver
18
{
19
}
20