Noop   A
last analyzed

Complexity

Total Complexity 20

Size/Duplication

Total Lines 167
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 53.33%

Importance

Changes 0
Metric Value
wmc 20
c 0
b 0
f 0
lcom 0
cbo 1
dl 0
loc 167
ccs 40
cts 75
cp 0.5333
rs 10

20 Methods

Rating   Name   Duplication   Size   Complexity  
A updateObject() 0 4 1
A isComplete() 0 4 1
A setComplete() 0 4 1
A copy() 0 4 1
A rename() 0 4 1
A storeContents() 0 4 1
A storeMiss() 0 4 1
A flush() 0 4 1
A autosave() 0 4 1
A save() 0 4 1
A load() 0 4 1
A has() 0 4 1
A read() 0 4 1
A readStream() 0 4 1
A listContents() 0 4 1
A getMetadata() 0 4 1
A getSize() 0 4 1
A getMimetype() 0 4 1
A getTimestamp() 0 4 1
A getVisibility() 0 4 1
1
<?php
2
3
namespace League\Flysystem\Cached\Storage;
4
5
class Noop extends AbstractCache
6
{
7
    /**
8
     * {@inheritdoc}
9
     */
10
    protected $autosave = false;
11
12
    /**
13
     * {@inheritdoc}
14
     */
15 3
    public function updateObject($path, array $object, $autosave = false)
16
    {
17 3
        return $object;
18
    }
19
20
    /**
21
     * {@inheritdoc}
22
     */
23 3
    public function isComplete($dirname, $recursive)
24
    {
25 3
        return false;
26
    }
27
28
    /**
29
     * {@inheritdoc}
30
     */
31 3
    public function setComplete($dirname, $recursive)
32
    {
33
        //
34 3
    }
35
36
    /**
37
     * {@inheritdoc}
38
     */
39 3
    public function copy($path, $newpath)
40
    {
41 3
        return false;
42
    }
43
44
    /**
45
     * {@inheritdoc}
46
     */
47 3
    public function rename($path, $newpath)
48
    {
49 3
        return false;
50
    }
51
52
    /**
53
     * {@inheritdoc}
54
     */
55 3
    public function storeContents($directory, array $contents, $recursive = false)
56
    {
57 3
        return $contents;
58
    }
59
60
    /**
61
     * {@inheritdoc}
62
     */
63 3
    public function storeMiss($path)
64
    {
65 3
        return $this;
66
    }
67
68
    /**
69
     * {@inheritdoc}
70
     */
71 3
    public function flush()
72
    {
73
        //
74 3
    }
75
76
    /**
77
     * {@inheritdoc}
78
     */
79 3
    public function autosave()
80
    {
81
        //
82 3
    }
83
84
    /**
85
     * {@inheritdoc}
86
     */
87 3
    public function save()
88
    {
89
        //
90 3
    }
91
92
    /**
93
     * {@inheritdoc}
94
     */
95 3
    public function load()
96
    {
97
        //
98 3
    }
99
100
    /**
101
     * {@inheritdoc}
102
     */
103 3
    public function has($path)
104
    {
105 3
        return;
106
    }
107
108
    /**
109
     * {@inheritdoc}
110
     */
111 3
    public function read($path)
112
    {
113 3
        return false;
114
    }
115
116
    /**
117
     * {@inheritdoc}
118
     */
119 3
    public function readStream($path)
120
    {
121 3
        return false;
122
    }
123
124
    /**
125
     * {@inheritdoc}
126
     */
127 3
    public function listContents($directory = '', $recursive = false)
128
    {
129 3
        return [];
130
    }
131
132
    /**
133
     * {@inheritdoc}
134
     */
135 3
    public function getMetadata($path)
136
    {
137 3
        return false;
138
    }
139
140
    /**
141
     * {@inheritdoc}
142
     */
143 3
    public function getSize($path)
144
    {
145 3
        return false;
146
    }
147
148
    /**
149
     * {@inheritdoc}
150
     */
151 3
    public function getMimetype($path)
152
    {
153 3
        return false;
154
    }
155
156
    /**
157
     * {@inheritdoc}
158
     */
159 3
    public function getTimestamp($path)
160
    {
161 3
        return false;
162
    }
163
164
    /**
165
     * {@inheritdoc}
166
     */
167 3
    public function getVisibility($path)
168
    {
169 3
        return false;
170
    }
171
}
172