Code Duplication    Length = 3-3 lines in 3 locations

library/Requests/IRI.php 3 locations

@@ 638-640 (lines=3) @@
635
					|| $character > 0x7E && $character < 0xA0
636
					|| $character > 0xD7FF && $character < 0xF900
637
				) {
638
					for ($j = $start; $j <= $i; $j++) {
639
						$string .= '%' . strtoupper($bytes[$j]);
640
					}
641
				}
642
				else {
643
					for ($j = $start; $j <= $i; $j++) {
@@ 643-645 (lines=3) @@
640
					}
641
				}
642
				else {
643
					for ($j = $start; $j <= $i; $j++) {
644
						$string .= chr(hexdec($bytes[$j]));
645
					}
646
				}
647
			}
648
		}
@@ 653-655 (lines=3) @@
650
		// If we have any bytes left over they are invalid (i.e., we are
651
		// mid-way through a multi-byte sequence)
652
		if ($remaining) {
653
			for ($j = $start; $j < $len; $j++) {
654
				$string .= '%' . strtoupper($bytes[$j]);
655
			}
656
		}
657
658
		return $string;