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

FileUrl::getMethod()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 0
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