Ver Fonte

Indentation.

Bostjan Rihter há 7 anos atrás
pai
commit
ab2ad321fd
2 ficheiros alterados com 7 adições e 8 exclusões
  1. 2 3
      src/QRCode.php
  2. 5 5
      tests/QRCodeTest.php

+ 2 - 3
src/QRCode.php

@@ -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
tests/QRCodeTest.php

@@ -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'])]);