@@ -164,7 +164,7 @@ discard block |
||
| 164 | 164 | |
| 165 | 165 | if($x <= $this->moduleCount - 7){ |
| 166 | 166 | if( |
| 167 | - $this->matrix->check($x , $y) |
|
| 167 | + $this->matrix->check($x , $y) |
|
| 168 | 168 | && !$this->matrix->check($x + 1, $y) |
| 169 | 169 | && $this->matrix->check($x + 2, $y) |
| 170 | 170 | && $this->matrix->check($x + 3, $y) |
@@ -178,7 +178,7 @@ discard block |
||
| 178 | 178 | |
| 179 | 179 | if($y <= $this->moduleCount - 7){ |
| 180 | 180 | if( |
| 181 | - $this->matrix->check($x, $y) |
|
| 181 | + $this->matrix->check($x, $y) |
|
| 182 | 182 | && !$this->matrix->check($x, $y + 1) |
| 183 | 183 | && $this->matrix->check($x, $y + 2) |
| 184 | 184 | && $this->matrix->check($x, $y + 3) |
@@ -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); |
@@ -50,7 +50,6 @@ |
||
| 50 | 50 | * @see file_put_contents() |
| 51 | 51 | * |
| 52 | 52 | * @param string $data |
| 53 | - |
|
| 54 | 53 | * @return bool|int |
| 55 | 54 | */ |
| 56 | 55 | protected function saveToFile(string $data) { |
@@ -53,7 +53,7 @@ |
||
| 53 | 53 | |
| 54 | 54 | * @return bool|int |
| 55 | 55 | */ |
| 56 | - protected function saveToFile(string $data) { |
|
| 56 | + protected function saveToFile(string $data){ |
|
| 57 | 57 | return file_put_contents($this->options->cachefile, $data); |
| 58 | 58 | } |
| 59 | 59 | |
@@ -74,9 +74,9 @@ |
||
| 74 | 74 | $matrix = $this->matrix->matrix(); |
| 75 | 75 | |
| 76 | 76 | $svg = '<svg xmlns="http://www.w3.org/2000/svg" version="1.1" width="'.$length.'px" height="'.$length.'px">' |
| 77 | - .$this->options->eol |
|
| 78 | - .'<defs>'.$this->options->svgDefs.'</defs>' |
|
| 79 | - .$this->options->eol; |
|
| 77 | + .$this->options->eol |
|
| 78 | + .'<defs>'.$this->options->svgDefs.'</defs>' |
|
| 79 | + .$this->options->eol; |
|
| 80 | 80 | |
| 81 | 81 | foreach($this->options->moduleValues as $M_TYPE => $value){ |
| 82 | 82 | |