Code Duplication    Length = 9-9 lines in 2 locations

src/Util.php 2 locations

@@ 89-97 (lines=9) @@
86
	 *
87
	 * @return int
88
	 */
89
	public static function getBCHTypeInfo($data){
90
		$d = $data << 10;
91
92
		while(self::getBCHDigit($d) - self::getBCHDigit(QRConst::G15) >= 0){
93
			$d ^= (QRConst::G15 << (self::getBCHDigit($d) - self::getBCHDigit(QRConst::G15)));
94
		}
95
96
		return (($data << 10)|$d)^QRConst::G15_MASK;
97
	}
98
99
	/**
100
	 * @param int $data
@@ 104-112 (lines=9) @@
101
	 *
102
	 * @return int
103
	 */
104
	public static function getBCHTypeNumber($data){
105
		$d = $data << 12;
106
107
		while(self::getBCHDigit($d) - self::getBCHDigit(QRConst::G18) >= 0){
108
			$d ^= (QRConst::G18 << (self::getBCHDigit($d) - self::getBCHDigit(QRConst::G18)));
109
		}
110
111
		return ($data << 12)|$d;
112
	}
113
114
	/**
115
	 * @param int $data