Noop::isComplete()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1.125

Importance

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