Code Duplication    Length = 15-15 lines in 2 locations

src/Adapter/Qrcode/PhpQrCode.php 2 locations

@@ 1858-1872 (lines=15) @@
1855
		}
1856
        
1857
		//----------------------------------------------------------------------
1858
		public function appendNum($bits, $num)
1859
		{
1860
			if ($bits == 0) 
1861
				return 0;
1862
1863
			$b = QRbitstream::newFromNum($bits, $num);
1864
            
1865
			if(is_null($b))
1866
				return -1;
1867
1868
			$ret = $this->append($b);
1869
			unset($b);
1870
1871
			return $ret;
1872
		}
1873
1874
		//----------------------------------------------------------------------
1875
		public function appendBytes($size, $data)
@@ 1875-1889 (lines=15) @@
1872
		}
1873
1874
		//----------------------------------------------------------------------
1875
		public function appendBytes($size, $data)
1876
		{
1877
			if ($size == 0) 
1878
				return 0;
1879
1880
			$b = QRbitstream::newFromBytes($size, $data);
1881
            
1882
			if(is_null($b))
1883
				return -1;
1884
1885
			$ret = $this->append($b);
1886
			unset($b);
1887
1888
			return $ret;
1889
		}
1890
        
1891
		//----------------------------------------------------------------------
1892
		public function toByte()