Code Duplication    Length = 6-6 lines in 2 locations

app/modules/Image/Storage.php 2 locations

@@ 218-223 (lines=6) @@
215
    public function originalWidthHeight()
216
    {
217
        $imageSize = getimagesize($this->originalAbsPath());
218
        if (!empty($imageSize)) {
219
            return [
220
                'width'  => $imageSize[0],
221
                'height' => $imageSize[1]
222
            ];
223
        }
224
    }
225
226
    /**
@@ 481-486 (lines=6) @@
478
        $cachedAbsPath = IMG_ROOT_PATH . $this->calculateCachedRelPath();
479
        if (file_exists($cachedAbsPath)) {
480
            $imageSize = getimagesize($cachedAbsPath);
481
            if (!empty($imageSize)) {
482
                return [
483
                    'width'  => $imageSize[0],
484
                    'height' => $imageSize[1]
485
                ];
486
            }
487
        } else {
488
            return [
489
                'width'  => null,