NullFsComponent   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 2
dl 0
loc 10
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A initAdapter() 0 4 1
1
<?php
2
/**
3
 * This file is part of the 2amigos/yii2-flysystem-component project.
4
 *
5
 * (c) 2amigOS! <http://2amigos.us/>
6
 *
7
 * For the full copyright and license information, please view
8
 * the LICENSE file that was distributed with this source code.
9
 */
10
namespace dosamigos\flysystem;
11
12
use League\Flysystem\Adapter\NullAdapter;
13
14
/**
15
 * Used mostly for testing. Acts like "/dev/null"
16
 */
17
class NullFsComponent extends AbstractFsComponent
18
{
19
    /**
20
     * @return NullAdapter
21
     */
22
    protected function initAdapter()
23
    {
24
        return new NullAdapter();
25
    }
26
}
27