@@ -112,7 +112,7 @@ |
||
| 112 | 112 | if ($directory) { |
| 113 | 113 | $dirs[] = $directory; |
| 114 | 114 | } |
| 115 | - $dirs[] = __DIR__.'/Templates'; |
|
| 115 | + $dirs[] = __DIR__ . '/Templates'; |
|
| 116 | 116 | |
| 117 | 117 | return $dirs; |
| 118 | 118 | } |
@@ -24,13 +24,13 @@ |
||
| 24 | 24 | } |
| 25 | 25 | $content = base64_encode($image); |
| 26 | 26 | |
| 27 | - return 'data:image/'.$mime.';base64,'.$content; |
|
| 27 | + return 'data:image/' . $mime . ';base64,' . $content; |
|
| 28 | 28 | } |
| 29 | 29 | |
| 30 | 30 | public function getMimeType($raw) |
| 31 | 31 | { |
| 32 | 32 | $text = substr($raw, 0, 8); |
| 33 | - if ($text == "\x89\x50\x4E\x47\x0D\x0A\x1A\x0A"){ |
|
| 33 | + if ($text == "\x89\x50\x4E\x47\x0D\x0A\x1A\x0A") { |
|
| 34 | 34 | return 'png'; |
| 35 | 35 | } |
| 36 | 36 | |
@@ -55,7 +55,7 @@ |
||
| 55 | 55 | $client->getTipoDoc(), |
| 56 | 56 | $client->getNumDoc(), |
| 57 | 57 | ]; |
| 58 | - $content = implode('|', $params).'|'; |
|
| 58 | + $content = implode('|', $params) . '|'; |
|
| 59 | 59 | |
| 60 | 60 | return $this->getQrImage($content); |
| 61 | 61 | } |