Code Duplication    Length = 7-7 lines in 2 locations

src/QRCode.php 2 locations

@@ 528-534 (lines=7) @@
525
		$data = array_fill(0, $totalCodeCount, null);
526
		$rsrange = range(0, $rsBlockCount - 1);
527
528
		foreach(range(0, $maxDcCount - 1) as $i){
529
			foreach($rsrange as $key){
530
				if($i < count($dcdata[$key])){
531
					$data[$index++] = $dcdata[$key][$i];
532
				}
533
			}
534
		}
535
536
		foreach(range(0, $maxEcCount - 1) as $i){
537
			foreach($rsrange as $key){
@@ 536-542 (lines=7) @@
533
			}
534
		}
535
536
		foreach(range(0, $maxEcCount - 1) as $i){
537
			foreach($rsrange as $key){
538
				if($i < count($ecdata[$key])){
539
					$data[$index++] = $ecdata[$key][$i];
540
				}
541
			}
542
		}
543
544
		return $data;
545
	}