Passed
Push — master ( 0e9c59...109301 )
by alpha
11:56
created

AliyunOssAdapter::listDirObjects()   C

Complexity

Conditions 10
Paths 18

Size

Total Lines 70

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 110

Importance

Changes 0
Metric Value
dl 0
loc 70
ccs 0
cts 40
cp 0
rs 6.7878
c 0
b 0
f 0
cc 10
nc 18
nop 2
crap 110

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
4
namespace AlphaSnow\AliyunOss;
5
6
use Aliyun\Flysystem\AliyunOss\AliyunOssAdapter as BaseAdapter;
7
use League\Flysystem\Adapter\CanOverwriteFiles;
8
9
/**
10
 * Class AliyunOssAdapter
11
 * @package AlphaSnow\AliyunOss
12
 */
13
class AliyunOssAdapter extends BaseAdapter implements CanOverwriteFiles
14
{
15
16
}