AbstractPlugin::defaultConfig()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 7

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 4
CRAP Score 1

Importance

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