Completed
Push — master ( 2fc6a6...b45ed6 )
by Roberto
05:22 queued 02:34
created
src/Common/DaCommon.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -113,7 +113,7 @@  discard block
 block discarded – undo
113 113
             //ativar modo debug
114 114
             error_reporting(E_ALL);
115 115
             ini_set('display_errors', 'On');
116
-            set_error_handler(function (int $errnum, string $errmsg, string $errfile, int $errline) {
116
+            set_error_handler(function(int $errnum, string $errmsg, string $errfile, int $errline) {
117 117
                 throw new \Exception("Erro identificado $errnum: '$errmsg' $errfile [linha:" . $errline . "]");
118 118
             });
119 119
         } else {
@@ -266,7 +266,7 @@  discard block
 block discarded – undo
266 266
         }
267 267
         if (substr($logo, 0, 24) !== 'data://text/plain;base64') {
268 268
             if (is_file($logo)) {
269
-                $logo = 'data://text/plain;base64,'. base64_encode(file_get_contents($logo));
269
+                $logo = 'data://text/plain;base64,' . base64_encode(file_get_contents($logo));
270 270
             } else {
271 271
                 //se não é uma string e nem um file retorna nulo
272 272
                 return null;
@@ -308,6 +308,6 @@  discard block
 block discarded – undo
308 308
         imagedestroy($image);
309 309
         $logo = ob_get_contents(); // read from buffer
310 310
         ob_end_clean();
311
-        return 'data://text/plain;base64,'.base64_encode($logo);
311
+        return 'data://text/plain;base64,' . base64_encode($logo);
312 312
     }
313 313
 }
Please login to merge, or discard this patch.