Code Duplication    Length = 7-7 lines in 2 locations

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

@@ 66-72 (lines=7) @@
63
        $Folder->delete();
64
65
        //リサイズ画像作成
66
        if (!empty($fieldSettings['resize'])) {
67
            foreach ($fieldSettings['resize'] as $resizeSettings) {
68
                if (!$this->normalImageResize($newFilepath, $resizeSettings)) {
69
                    return false;
70
                }
71
            }
72
        }
73
        return true;
74
    }
75

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

@@ 79-85 (lines=7) @@
76
        $S3->deleteRecursive($newFilepath . '/' . 'contents_file_resize_' . $fileInfo['field_name']);
77
78
        //リサイズ画像作成
79
        if (!empty($fieldSettings['resize'])) {
80
            foreach ($fieldSettings['resize'] as $resizeSettings) {
81
                if (!$this->s3ImageResize($newFilepath, $resizeSettings)) {
82
                    return false;
83
                }
84
            }
85
        }
86
        return true;
87
    }
88