Code Duplication    Length = 3-3 lines in 2 locations

includes/clientpool/SquidPurgeClient.php 1 location

@@ 204-206 (lines=3) @@
201
		if ( $wgSquidPurgeUseHostHeader ) {
202
			$url = wfParseUrl( $url );
203
			$host = $url['host'];
204
			if ( isset( $url['port'] ) && strlen( $url['port'] ) > 0 ) {
205
				$host .= ":" . $url['port'];
206
			}
207
			$path = $url['path'];
208
			if ( isset( $url['query'] ) && is_string( $url['query'] ) ) {
209
				$path = wfAppendQuery( $path, $url['query'] );

includes/libs/xmp/XMPValidate.php 1 location

@@ 313-315 (lines=3) @@
310
				// if hour is set, then minute must also be or regex above will fail.
311
				$val = $res[1] . ':' . $res[2] . ':' . $res[3]
312
					. ' ' . $res[4] . ':' . $res[5];
313
				if ( isset( $res[6] ) && $res[6] !== '' ) {
314
					$val .= ':' . $res[6];
315
				}
316
317
				return;
318
			}