Test Failed
Push — master ( 7450e6...eb23ea )
by Carlos
14:57
created

FileUrl   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 1

Importance

Changes 0
Metric Value
wmc 2
lcom 1
cbo 1
dl 0
loc 12
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getMethod() 0 4 1
A handle() 0 4 1
1
<?php
2
3
/*
4
 * This file is part of the overtrue/flysystem-qiniu.
5
 * (c) overtrue <[email protected]>
6
 * This source file is subject to the MIT license that is bundled
7
 * with this source code in the file LICENSE.
8
 */
9
10
namespace Overtrue\Flysystem\Qiniu\Plugins;
11
12
use League\Flysystem\Plugin\AbstractPlugin;
13
14
class FileUrl extends AbstractPlugin
15
{
16
    public function getMethod()
17
    {
18
        return 'getUrl';
19
    }
20
21
    public function handle($path)
22
    {
23
        return $this->filesystem->getAdapter()->getUrl($path);
24
    }
25
}
26