Completed
Push — master ( 3b85e8...220fac )
by Anton
16s
created

Crud::createOne()   B

Complexity

Conditions 5
Paths 12

Size

Total Lines 84
Code Lines 49

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 30

Importance

Changes 1
Bugs 0 Features 0
Metric Value
nc 12
dl 0
loc 84
ccs 0
cts 45
cp 0
c 1
b 0
f 0
cc 5
eloc 49
nop 1
crap 30
rs 8.35

How to fix   Long Method   

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
 * @copyright Bluz PHP Team
4
 * @link      https://github.com/bluzphp/skeleton
5
 */
6
7
declare(strict_types=1);
8
9
namespace Application\Users;
10
11
/**
12
 * Crud
13
 *
14
 * @package  Application\Users
15
 *
16
 * @method   Table getTable()
17
 *
18
 * @author   Anton Shevchuk
19
 * @created  30.10.12 16:11
20
 */
21
class Crud extends \Bluz\Crud\Table
22
{
23
}
24