Code Duplication    Length = 7-7 lines in 2 locations

src/View/Helper/ContentsFileHelper.php 2 locations

@@ 184-190 (lines=7) @@
181
            }
182
        } else {
183
            $resizeText = '';
184
            if (
185
                empty($fileInfo['resize']['width'])
186
            ) {
187
                $resizeText .= '0';
188
            } else {
189
                $resizeText .= $fileInfo['resize']['width'];
190
            }
191
            $resizeText .= '_';
192
            if (
193
                empty($fileInfo['resize']['height'])
@@ 192-198 (lines=7) @@
189
                $resizeText .= $fileInfo['resize']['width'];
190
            }
191
            $resizeText .= '_';
192
            if (
193
                empty($fileInfo['resize']['height'])
194
            ) {
195
                $resizeText .= '0';
196
            } else {
197
                $resizeText .= $fileInfo['resize']['height'];
198
            }
199
            if (Configure::read('ContentsFile.Setting.randomFile') === true && $fileInfo['file_random_path'] != '') {
200
                $staticS3Url .= 'contents_file_resize_' . $fileInfo['file_random_path'] . '/' . $resizeText;
201
            } else {