Completed
Push — develop ( 689c42...2e835d )
by Peter
15:33
created

WhitespaceCropper::execute()   D

Complexity

Conditions 13
Paths 256

Size

Total Lines 67
Code Lines 44

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 67
rs 4.3252
cc 13
eloc 44
nc 256
nop 1

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
 * Webino (https://github.com/webino/)
4
 *
5
 * @link      https://github.com/webino/WebinoImageThumb/ for the canonical source repository
6
 * @copyright Copyright (c) 2013-2014 Webino, s. r. o. (http://webino.sk/)
7
 * @license   BSD-3-Clause
8
 */
9
10
namespace WebinoImageThumb\PhpThumb\Plugin;
11
12
use PHPThumb\GD as PHPThumb;
13
14
/**
15
 * @todo remove
16
 * @deprecated use \PHPThumb\Plugins\WhitespaceCropper instead
17
 */
18
class WhitespaceCropper extends \PHPThumb\Plugins\WhitespaceCropper
19
{
20
21
}
22