Code Duplication    Length = 5-5 lines in 2 locations

src/array.functions.php 2 locations

@@ 227-231 (lines=5) @@
224
	{
225
		$tmp = &$array;
226
		$path = explode($separator, $path);
227
		while (count($path) > 1) {
228
			$key = array_shift($path);
229
			if (!isset($tmp[$key])) return;
230
			$tmp = &$tmp[$key];
231
		}
232
		unset($tmp[array_shift($path)]);
233
	}
234
}
@@ 250-254 (lines=5) @@
247
	{
248
		$tmp = &$array;
249
		$path = explode($separator, $path);
250
		while (count($path) > 1) {
251
			$key = array_shift($path);
252
			if (!isset($tmp[$key])) $tmp[$key] = array();
253
			$tmp = &$tmp[$key];
254
		}
255
		$tmp[array_shift($path)] = $value;
256
	}
257
}