Code Duplication    Length = 6-6 lines in 2 locations

src/wp-includes/Text/Diff/Engine/string.php 2 locations

@@ 178-183 (lines=6) @@
175
                $j++;
176
            }
177
178
            while ($i < $max_i && ($max_j-$j) <= 1) {
179
                if ($diff[$i] != '' && substr($diff[$i], 0, 1) != ' ') {
180
                    break;
181
                }
182
                $array[] = substr($diff[$i++], 2);
183
            }
184
185
            while ($j < $max_j && ($max_i-$i) <= 1) {
186
                if ($diff[$j] != '' && substr($diff[$j], 0, 1) != ' ') {
@@ 185-190 (lines=6) @@
182
                $array[] = substr($diff[$i++], 2);
183
            }
184
185
            while ($j < $max_j && ($max_i-$i) <= 1) {
186
                if ($diff[$j] != '' && substr($diff[$j], 0, 1) != ' ') {
187
                    break;
188
                }
189
                $array[] = substr($diff[$j++], 2);
190
            }
191
            if (count($array) > 0) {
192
                $edits[] = new Text_Diff_Op_copy($array);
193
            }