Code Duplication    Length = 11-11 lines in 2 locations

api/src/Storage/Merge.php 2 locations

@@ 1216-1226 (lines=11) @@
1213
1214
				break;
1215
		}
1216
		if($format && $names)
1217
		{
1218
			// Dealing with backtrack limit per AmigoJack 10-Jul-2010 comment on php.net preg-replace docs
1219
			do {
1220
				$result = preg_replace($format, $replacement, $content, -1);
1221
			}
1222
			// try to increase/double pcre.backtrack_limit failure
1223
			while(preg_last_error() == PREG_BACKTRACK_LIMIT_ERROR && self::increase_backtrack_limit());
1224
1225
			if ($result) $content = $result;  // On failure $result would be NULL
1226
		}
1227
	}
1228
1229
	/**
@@ 1353-1363 (lines=11) @@
1350
			case 'application/vnd.ms-excel.sheet.macroenabled.12':
1351
				break;
1352
		}
1353
		if($format && $names)
1354
		{
1355
			// Dealing with backtrack limit per AmigoJack 10-Jul-2010 comment on php.net preg-replace docs
1356
			do {
1357
				$result = preg_replace($format, $replacement, $content, -1);
1358
			}
1359
			// try to increase/double pcre.backtrack_limit failure
1360
			while(preg_last_error() == PREG_BACKTRACK_LIMIT_ERROR && self::increase_backtrack_limit());
1361
1362
			if ($result) $content = $result;  // On failure $result would be NULL
1363
		}
1364
	}
1365
1366
	/**