Code Duplication    Length = 4-4 lines in 2 locations

build/integration/features/bootstrap/Sharing.php 2 locations

@@ 421-424 (lines=4) @@
418
			$fd = $body->getRowsHash();
419
420
			foreach($fd as $field => $value) {
421
				if (substr($field, 0, 10 ) === "share_with"){
422
					$value = str_replace("REMOTE", substr($this->remoteBaseUrl, 0, -5), $value);
423
					$value = str_replace("LOCAL", substr($this->localBaseUrl, 0, -5), $value);
424
				}
425
				if (substr($field, 0, 6 ) === "remote"){
426
					$value = str_replace("REMOTE", substr($this->remoteBaseUrl, 0, -4), $value);
427
					$value = str_replace("LOCAL", substr($this->localBaseUrl, 0, -4), $value);
@@ 425-428 (lines=4) @@
422
					$value = str_replace("REMOTE", substr($this->remoteBaseUrl, 0, -5), $value);
423
					$value = str_replace("LOCAL", substr($this->localBaseUrl, 0, -5), $value);
424
				}
425
				if (substr($field, 0, 6 ) === "remote"){
426
					$value = str_replace("REMOTE", substr($this->remoteBaseUrl, 0, -4), $value);
427
					$value = str_replace("LOCAL", substr($this->localBaseUrl, 0, -4), $value);
428
				}
429
				if (!$this->isFieldInResponse($field, $value)){
430
					PHPUnit_Framework_Assert::fail("$field" . " doesn't have value " . "$value");
431
				}