Code Duplication    Length = 7-7 lines in 2 locations

src/View/Helper/ContentsFileHelper.php 2 locations

@@ 134-140 (lines=7) @@
131
            $staticS3Url .= $fileInfo['field_name'];
132
        } else {
133
            $resizeText = '';
134
            if (
135
                empty($fileInfo['resize']['width'])
136
            ) {
137
                $resizeText .= '0';
138
            } else {
139
                $resizeText .= $fileInfo['resize']['width'];
140
            }
141
            $resizeText .= '_';
142
            if (
143
                empty($fileInfo['resize']['height'])
@@ 142-148 (lines=7) @@
139
                $resizeText .= $fileInfo['resize']['width'];
140
            }
141
            $resizeText .= '_';
142
            if (
143
                empty($fileInfo['resize']['height'])
144
            ) {
145
                $resizeText .= '0';
146
            } else {
147
                $resizeText .= $fileInfo['resize']['height'];
148
            }
149
            $staticS3Url .= 'contents_file_resize_' . $fileInfo['field_name'] . '/' . $resizeText;
150
        }
151
        return $staticS3Url;