mirror of
https://github.com/chillerlan/php-qrcode.git
synced 2026-08-22 02:44:27 +00:00
Indentation.
This commit is contained in:
+2
-3
@@ -161,9 +161,8 @@ class QRCode{
|
||||
* @throws \chillerlan\QRCode\Data\QRCodeDataException
|
||||
*/
|
||||
public function getMatrix(string $data):QRMatrix {
|
||||
//NOTE: data sanitation 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.');
|
||||
}
|
||||
|
||||
@@ -94,12 +94,12 @@ class QRCodeTest extends QRTestAbstract{
|
||||
$this->qrcode->getMatrix('');
|
||||
}
|
||||
|
||||
public function testTrim() {
|
||||
$m1 = $this->qrcode->getMatrix('hello');
|
||||
$m2 = $this->qrcode->getMatrix('hello '); // added space
|
||||
public function testTrim() {
|
||||
$m1 = $this->qrcode->getMatrix('hello');
|
||||
$m2 = $this->qrcode->getMatrix('hello '); // added space
|
||||
|
||||
$this->assertNotEquals($m1, $m2);
|
||||
}
|
||||
$this->assertNotEquals($m1, $m2);
|
||||
}
|
||||
|
||||
public function testImageTransparencyBGDefault(){
|
||||
$this->qrcode = $this->reflection->newInstanceArgs([new QROptions(['imageTransparencyBG' => 'foo'])]);
|
||||
|
||||
Reference in New Issue
Block a user