GetUrl   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 20
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
wmc 2
eloc 3
dl 0
loc 20
c 0
b 0
f 0
ccs 0
cts 7
cp 0
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A handle() 0 3 1
A getMethod() 0 3 1
1
<?php
2
3
namespace Freyo\Flysystem\QcloudCOSv4\Plugins;
4
5
use League\Flysystem\Plugin\AbstractPlugin;
6
7
class GetUrl extends AbstractPlugin
8
{
9
    /**
10
     * Get the method name.
11
     *
12
     * @return string
13
     */
14
    public function getMethod()
15
    {
16
        return 'getUrl';
17
    }
18
19
    /**
20
     * @param $path
21
     *
22
     * @return bool
23
     */
24
    public function handle($path)
25
    {
26
        return $this->filesystem->getAdapter()->applyPathPrefix($path);
27
    }
28
}
29