Code Duplication    Length = 7-7 lines in 2 locations

src/Model/Behavior/Traits/NormalContentsFileBehaviorTrait.php 1 location

@@ 59-65 (lines=7) @@
56
        $Folder->delete();
57
58
        //リサイズ画像作成
59
        if (!empty($fieldSettings['resize'])) {
60
            foreach ($fieldSettings['resize'] as $resizeSettings) {
61
                if (!$this->normalImageResize($newFilepath, $resizeSettings)) {
62
                    return false;
63
                }
64
            }
65
        }
66
        return true;
67
    }
68

src/Model/Behavior/Traits/S3ContentsFileBehaviorTrait.php 1 location

@@ 68-74 (lines=7) @@
65
        $S3->deleteRecursive($newFilepath . '/' . 'contents_file_resize_' . $fileInfo['field_name']);
66
67
        //リサイズ画像作成
68
        if (!empty($fieldSettings['resize'])) {
69
            foreach ($fieldSettings['resize'] as $resizeSettings) {
70
                if (!$this->s3ImageResize($newFilepath, $resizeSettings)) {
71
                    return false;
72
                }
73
            }
74
        }
75
        return true;
76
    }
77