Code Duplication    Length = 5-8 lines in 2 locations

includes/libs/ArrayUtils.php 1 location

@@ 175-182 (lines=8) @@
172
				if ( count( $valueret ) ) {
173
					$ret[$key] = $valueret;
174
				}
175
			} else {
176
				foreach ( $arrays as $array ) {
177
					if ( isset( $array[$key] ) && $array[$key] === $value ) {
178
						continue 2;
179
					}
180
				}
181
				$ret[$key] = $value;
182
			}
183
		}
184
185
		return $ret;

includes/registration/ExtensionProcessor.php 1 location

@@ 428-432 (lines=5) @@
425
		if ( !is_array( $value ) ) {
426
			throw new InvalidArgumentException( "The value for '$name' should be an array (from $path)" );
427
		}
428
		if ( isset( $array[$name] ) ) {
429
			$array[$name] = array_merge_recursive( $array[$name], $value );
430
		} else {
431
			$array[$name] = $value;
432
		}
433
	}
434
435
	public function getExtraAutoloaderPaths( $dir, array $info ) {