Code Duplication    Length = 5-5 lines in 2 locations

app/modules/Image/Storage.php 2 locations

@@ 256-260 (lines=5) @@
253
        $pathParts[] = 'cache';
254
        $pathParts[] = $this->type;
255
256
        if (is_int($this->id)) {
257
            $idPart = floor($this->id / 1000);
258
        } else {
259
            $idPart = $this->id;
260
        }
261
        $pathParts[] = $idPart;
262
263
        $fileParts = [];
@@ 302-306 (lines=5) @@
299
        $pathParts[] = 'original';
300
        $pathParts[] = $this->type;
301
302
        if (is_int($this->id)) {
303
            $idPart = floor($this->id / 1000);
304
        } else {
305
            $idPart = $this->id;
306
        }
307
        $pathParts[] = $idPart;
308
309
        $fileParts = [];