Code Duplication    Length = 7-9 lines in 2 locations

src/array.functions.php 2 locations

@@ 383-391 (lines=9) @@
380
		$size = ceil(count($input) / $size);
381
		$i = 0;
382
		$j = 0;
383
		foreach ($input as $k => $v)
384
		{
385
			if (++$j > $size)
386
			{
387
				$i++;
388
				$j = 1;
389
			}
390
			$data[$i][$k] = $v;
391
		}
392
		return $data;
393
	}
394
}
@@ 407-413 (lines=7) @@
404
	function array_chunk_hcolumn(array $input, $size){
405
		$data = array_fill(0, $size, array());
406
		$j = -1;
407
		foreach ($input as $k => $v)
408
		{
409
			if (++$j >= $size){
410
				$j = 0;
411
			}
412
			$data[$j][$k] = $v;
413
		}
414
		return $data;
415
	}
416
}