AbstractPlugin   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 3

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 1
lcom 1
cbo 3
dl 0
loc 15
ccs 4
cts 4
cp 1
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A defaultConfig() 0 7 1
1
<?php
2
3
namespace Twistor\Flysystem\Plugin;
4
5
use League\Flysystem\Config;
6
use League\Flysystem\Plugin\AbstractPlugin as FlysystemPlugin;
7
8
abstract class AbstractPlugin extends FlysystemPlugin
9
{
10
    /**
11
     * @var \League\Flysystem\Filesystem
12
     */
13
    protected $filesystem;
14
15 63
    protected function defaultConfig()
16
    {
17 63
        $config = new Config();
18 63
        $config->setFallback($this->filesystem->getConfig());
19
20 63
        return $config;
21
    }
22
}
23