Code Duplication    Length = 13-13 lines in 2 locations

src/Phossa2/Storage/Path.php 2 locations

@@ 156-168 (lines=13) @@
153
    /**
154
     * {@inheritDoc}
155
     */
156
    public function setMeta(array $meta)/*# : bool */
157
    {
158
        if (!$this->exists()) {
159
            return false;
160
        }
161
162
        if (!empty($meta)) {
163
            $res = $this->getDriver()->setMeta($this->path, $meta);
164
            $this->resetError();
165
            return $res;
166
        }
167
        return true;
168
    }
169
170
    /**
171
     * {@inheritDoc}
@@ 201-213 (lines=13) @@
198
    /**
199
     * {@inheritDoc}
200
     */
201
    public function delete()/*# : bool */
202
    {
203
        if ($this->exists()) {
204
            if (!$this->isFilesystemDeletable()) {
205
                return false;
206
            }
207
208
            $res = $this->getDriver()->delete($this->path);
209
            $this->resetError();
210
            return $res;
211
        }
212
        return true;
213
    }
214
215
    /**
216
     * Get the driver