GetUrl   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 9
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 3
dl 0
loc 9
rs 10
c 1
b 0
f 0
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getMethod() 0 3 1
A handle() 0 3 1
1
<?php
2
namespace XiaohuiLam\LaravelFilesystem\Wantu\Plugins;
3
4
use League\Flysystem\Plugin\AbstractPlugin;
5
6
class GetUrl extends AbstractPlugin
7
{
8
    public function getMethod()
9
    {
10
        return 'getUrl';
11
    }
12
    public function handle($path)
13
    {
14
        return $this->filesystem->getAdapter()->getUrl($path);
15
    }
16
}
17