Просмотр исходного кода

:octocat: added link to https://github.com/chillerlan/php-qrcode/issues/15

codemasher 7 лет назад
Родитель
Сommit
23a7e851eb
1 измененных файлов с 4 добавлено и 3 удалено
  1. 4 3
      src/QRCode.php

+ 4 - 3
src/QRCode.php

@@ -161,9 +161,10 @@ class QRCode{
 	 * @throws \chillerlan\QRCode\Data\QRCodeDataException
 	 * @throws \chillerlan\QRCode\Data\QRCodeDataException
 	 */
 	 */
 	public function getMatrix(string $data):QRMatrix {
 	public function getMatrix(string $data):QRMatrix {
-		//NOTE: input sanitization should be done outside
-		//$data = trim($data);
-		
+		// https://github.com/chillerlan/php-qrcode/pull/15
+		// NOTE: input sanitization should be done outside
+		// $data = trim($data);
+
 		if(empty($data)){
 		if(empty($data)){
 			throw new QRCodeDataException('QRCode::getMatrix() No data given.');
 			throw new QRCodeDataException('QRCode::getMatrix() No data given.');
 		}
 		}