Code Duplication    Length = 7-7 lines in 2 locations

src/QRCode.php 2 locations

@@ 459-465 (lines=7) @@
456
		$data = array_fill(0, $totalCodeCount, null);
457
		$rsrange = range(0, $rsBlockCount - 1);
458
459
		foreach(range(0, $maxDcCount - 1) as $i){
460
			foreach($rsrange as $key){
461
				if($i < count($dcdata[$key])){
462
					$data[$index++] = $dcdata[$key][$i];
463
				}
464
			}
465
		}
466
467
		foreach(range(0, $maxEcCount - 1) as $i){
468
			foreach($rsrange as $key){
@@ 467-473 (lines=7) @@
464
			}
465
		}
466
467
		foreach(range(0, $maxEcCount - 1) as $i){
468
			foreach($rsrange as $key){
469
				if($i < count($ecdata[$key])){
470
					$data[$index++] = $ecdata[$key][$i];
471
				}
472
			}
473
		}
474
475
		return $data;
476
	}