@@ -38,7 +38,7 @@ |
||
38 | 38 | |
39 | 39 | private const logTable = [ |
40 | 40 | 0, // the first value is never returned, index starts at 1 |
41 | - 0, 1, 25, 2, 50, 26, 198, 3, 223, 51, 238, 27, 104, 199, 75, |
|
41 | + 0, 1, 25, 2, 50, 26, 198, 3, 223, 51, 238, 27, 104, 199, 75, |
|
42 | 42 | 4, 100, 224, 14, 52, 141, 239, 129, 28, 193, 105, 248, 200, 8, 76, 113, |
43 | 43 | 5, 138, 101, 47, 225, 36, 15, 33, 53, 147, 142, 218, 240, 18, 130, 69, |
44 | 44 | 29, 181, 194, 125, 106, 39, 249, 185, 201, 154, 9, 120, 77, 228, 114, 166, |
@@ -580,7 +580,7 @@ |
||
580 | 580 | $this->hasSkipped = true; |
581 | 581 | |
582 | 582 | return (int)((abs($firstConfirmedCenter->getX() - $center->getX()) - |
583 | - abs($firstConfirmedCenter->getY() - $center->getY())) / 2); |
|
583 | + abs($firstConfirmedCenter->getY() - $center->getY())) / 2); |
|
584 | 584 | } |
585 | 585 | } |
586 | 586 | } |
@@ -73,8 +73,8 @@ discard block |
||
73 | 73 | |
74 | 74 | if($file !== null){ |
75 | 75 | return '<!DOCTYPE html>'. |
76 | - '<head><meta charset="UTF-8"><title>QR Code</title></head>'. |
|
77 | - '<body>'.$this->options->eol.$html.'</body>'; |
|
76 | + '<head><meta charset="UTF-8"><title>QR Code</title></head>'. |
|
77 | + '<body>'.$this->options->eol.$html.'</body>'; |
|
78 | 78 | } |
79 | 79 | |
80 | 80 | return $html; |
@@ -89,9 +89,9 @@ discard block |
||
89 | 89 | $matrix = $this->matrix->matrix(); |
90 | 90 | |
91 | 91 | $svg = sprintf($this->svgHeader, $this->options->cssClass, $this->options->svgViewBoxSize ?? $this->moduleCount) |
92 | - .$this->options->eol |
|
93 | - .'<defs>'.$this->options->svgDefs.'</defs>' |
|
94 | - .$this->options->eol; |
|
92 | + .$this->options->eol |
|
93 | + .'<defs>'.$this->options->svgDefs.'</defs>' |
|
94 | + .$this->options->eol; |
|
95 | 95 | |
96 | 96 | foreach($this->moduleValues as $M_TYPE => $value){ |
97 | 97 | $path = ''; |
@@ -145,7 +145,7 @@ discard block |
||
145 | 145 | // if saving to file, append the correct headers |
146 | 146 | if($file !== null){ |
147 | 147 | return '<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">'. |
148 | - $this->options->eol.$svg; |
|
148 | + $this->options->eol.$svg; |
|
149 | 149 | } |
150 | 150 | |
151 | 151 | if($this->options->imageBase64){ |