Completed
Pull Request — master (#10)
by
unknown
04:44
created

RefreshFile::handle()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 5
ccs 0
cts 5
cp 0
rs 9.4285
cc 1
eloc 3
nc 1
nop 1
crap 2
1
<?php
2
3
namespace Overtrue\Flysystem\Qiniu\Plugins;
4
5
use League\Flysystem\Plugin\AbstractPlugin;
6
7
/**
8
 * Class RefreshFile
9
 *
10
 * @package \Overtrue\Flysystem\Qiniu\Plugins
11
 */
12
class RefreshFile extends AbstractPlugin
13
{
14
    public function getMethod()
15
    {
16
        return 'refresh';
17
    }
18
19
    public function handle($path = [])
20
    {
21
        $adapter = $this->filesystem->getAdapter();
22
        return $adapter->refresh($path);
23
    }
24
}
25