Code Duplication    Length = 6-6 lines in 2 locations

app/modules/Image/Storage.php 2 locations

@@ 217-222 (lines=6) @@
214
    public function originalWidthHeight()
215
    {
216
        $imageSize = getimagesize($this->originalAbsPath());
217
        if (!empty($imageSize)) {
218
            return [
219
                'width'  => $imageSize[0],
220
                'height' => $imageSize[1]
221
            ];
222
        }
223
224
    }
225
@@ 470-475 (lines=6) @@
467
        $cachedAbsPath = IMG_ROOT_PATH . $this->calculateCachedRelPath();
468
        if (file_exists($cachedAbsPath)) {
469
            $imageSize = getimagesize($cachedAbsPath);
470
            if (!empty($imageSize)) {
471
                return [
472
                    'width'  => $imageSize[0],
473
                    'height' => $imageSize[1]
474
                ];
475
            }
476
        } else {
477
            return [
478
                'width'  => null,