This commit is contained in:
Bostjan Rihter
2018-03-11 00:29:05 +01:00
parent ab2ad321fd
commit a08d080d96
2 changed files with 8 additions and 7 deletions
+3 -2
View File
@@ -161,8 +161,9 @@ class QRCode{
* @throws \chillerlan\QRCode\Data\QRCodeDataException
*/
public function getMatrix(string $data):QRMatrix {
//NOTE: input sanitization should be done outside
//$data = trim($data);
//NOTE: input sanitization should be done outside
//$data = trim($data);
if(empty($data)){
throw new QRCodeDataException('QRCode::getMatrix() No data given.');
}