@@ -68,7 +68,7 @@ discard block |
||
| 68 | 68 | |
| 69 | 69 | // svg header |
| 70 | 70 | $svg = '<svg xmlns="http://www.w3.org/2000/svg" version="1.1" width="'.$length.'" height="'.$length.'" viewBox="0 0 '.$length.' '.$length.'">'.$this->options->eol. |
| 71 | - '<defs><style>rect{shape-rendering:crispEdges}</style></defs>'.$this->options->eol; |
|
| 71 | + '<defs><style>rect{shape-rendering:crispEdges}</style></defs>'.$this->options->eol; |
|
| 72 | 72 | |
| 73 | 73 | // @todo: optimize -> see https://github.com/alexeyten/qr-image/blob/master/lib/vector.js |
| 74 | 74 | foreach($this->options->moduleValues as $key => $value){ |
@@ -94,9 +94,9 @@ discard block |
||
| 94 | 94 | } |
| 95 | 95 | elseif($from >= 0){ |
| 96 | 96 | $svg .= '<rect x="'.($from * $this->options->scale).'" y="'.($y * $this->options->scale) |
| 97 | - .'" width="'.($this->options->scale * $count).'" height="'.$this->options->scale.'" fill="'.$value.'"' |
|
| 98 | - .(trim($this->options->cssClass) !== '' ? ' class="'.$this->options->cssClass.'"' :'').' />' |
|
| 99 | - .$this->options->eol; |
|
| 97 | + .'" width="'.($this->options->scale * $count).'" height="'.$this->options->scale.'" fill="'.$value.'"' |
|
| 98 | + .(trim($this->options->cssClass) !== '' ? ' class="'.$this->options->cssClass.'"' :'').' />' |
|
| 99 | + .$this->options->eol; |
|
| 100 | 100 | |
| 101 | 101 | // reset count |
| 102 | 102 | $from = -1; |
@@ -107,7 +107,7 @@ discard block |
||
| 107 | 107 | // close off the row, if applicable |
| 108 | 108 | if($from >= 0){ |
| 109 | 109 | $svg .= '<rect x="'.($from * $this->options->scale).'" y="'.($y * $this->options->scale) |
| 110 | - .'" width="'.($this->options->scale * $count).'" height="'.$this->options->scale.'" class="'.$this->options->cssClass.'" fill="'.$value.'" />'.$this->options->eol; |
|
| 110 | + .'" width="'.($this->options->scale * $count).'" height="'.$this->options->scale.'" class="'.$this->options->cssClass.'" fill="'.$value.'" />'.$this->options->eol; |
|
| 111 | 111 | } |
| 112 | 112 | } |
| 113 | 113 | } |
@@ -95,7 +95,7 @@ |
||
| 95 | 95 | elseif($from >= 0){ |
| 96 | 96 | $svg .= '<rect x="'.($from * $this->options->scale).'" y="'.($y * $this->options->scale) |
| 97 | 97 | .'" width="'.($this->options->scale * $count).'" height="'.$this->options->scale.'" fill="'.$value.'"' |
| 98 | - .(trim($this->options->cssClass) !== '' ? ' class="'.$this->options->cssClass.'"' :'').' />' |
|
| 98 | + .(trim($this->options->cssClass) !== '' ? ' class="'.$this->options->cssClass.'"' : '').' />' |
|
| 99 | 99 | .$this->options->eol; |
| 100 | 100 | |
| 101 | 101 | // reset count |
@@ -43,12 +43,12 @@ discard block |
||
| 43 | 43 | /** |
| 44 | 44 | * @var string |
| 45 | 45 | */ |
| 46 | - protected $authenticatorMode = Authenticator::DEFAULT_AUTH_MODE; |
|
| 46 | + protected $authenticatorMode = Authenticator::DEFAULT_AUTH_MODE; |
|
| 47 | 47 | |
| 48 | 48 | /** |
| 49 | 49 | * @var string |
| 50 | 50 | */ |
| 51 | - protected $authenticatorAlgo = Authenticator::DEFAULT_HASH_ALGO; |
|
| 51 | + protected $authenticatorAlgo = Authenticator::DEFAULT_HASH_ALGO; |
|
| 52 | 52 | |
| 53 | 53 | /** |
| 54 | 54 | * @param string $label |
@@ -56,7 +56,7 @@ discard block |
||
| 56 | 56 | * |
| 57 | 57 | * @return mixed |
| 58 | 58 | */ |
| 59 | - protected function getURIQRCode(string $label, string $issuer) { |
|
| 59 | + protected function getURIQRCode(string $label, string $issuer){ |
|
| 60 | 60 | $uri = $this->getAuthenticator()->setSecret($this->authenticatorSecret)->getUri($label, $issuer); |
| 61 | 61 | |
| 62 | 62 | return (new QRCode($this->qrOptions))->render($uri); |
@@ -56,7 +56,7 @@ |
||
| 56 | 56 | * |
| 57 | 57 | * @return mixed |
| 58 | 58 | */ |
| 59 | - protected function getURIQRCode(string $label, string $issuer) { |
|
| 59 | + protected function getURIQRCode(string $label, string $issuer){ |
|
| 60 | 60 | $uri = $this->getAuthenticator()->setSecret($this->authenticatorSecret)->getUri($label, $issuer); |
| 61 | 61 | |
| 62 | 62 | return (new QRCode($this->qrOptions))->render($uri); |