@@ -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 |