Indentation.

This commit is contained in:
Bostjan Rihter
2018-03-11 00:26:46 +01:00
parent 788fc0780e
commit ab2ad321fd
2 changed files with 7 additions and 8 deletions
+2 -3
View File
@@ -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.');
}
+5 -5
View File
@@ -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'])]);