Completed
Push — d64 ( e16005...d3b177 )
by Welling
02:04
created
src/File.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@  discard block
 block discarded – undo
28 28
     {
29 29
         $this->path = $path;
30 30
 
31
-        foreach($attributes as $attribute) {
31
+        foreach ($attributes as $attribute) {
32 32
             if (property_exists($this, $attribute)) {
33 33
                 $this->{$attribute} = $attribute;
34 34
             }
@@ -77,10 +77,10 @@  discard block
 block discarded – undo
77 77
         if (file_exists($path)) {
78 78
             $ext = pathinfo($path, PATHINFO_EXTENSION);
79 79
             $mimeType = mime_content_type($path);
80
-            $attributes['name'] = pathinfo($path, PATHINFO_FILENAME) . '.' . $ext;
80
+            $attributes['name'] = pathinfo($path, PATHINFO_FILENAME).'.'.$ext;
81 81
             $attributes['type'] = $mimeType;
82 82
             $content = file_get_contents($path);
83
-            $base64 = 'data:' . $mimeType . ';base64,' . base64_encode($content);
83
+            $base64 = 'data:'.$mimeType.';base64,'.base64_encode($content);
84 84
             $attributes['data'] = $base64;
85 85
         } else {
86 86
             throw new \Exception('Missing "file" or "data" attribute.');
Please login to merge, or discard this patch.