Code Duplication    Length = 7-7 lines in 2 locations

src/View/Helper/ContentsFileHelper.php 2 locations

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