Code Duplication    Length = 5-5 lines in 2 locations

app/modules/Image/Storage.php 2 locations

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