Completed
Push — d64 ( 6654da...3ef1d3 )
by Welling
02:34
created
src/ClientRemote.php 1 patch
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -9,8 +9,6 @@
 block discarded – undo
9 9
  */
10 10
 
11 11
 namespace Directus\SDK;
12
-use Directus\Util\ArrayUtils;
13
-use Directus\Util\StringUtils;
14 12
 
15 13
 /**
16 14
  * Client Remote
Please login to merge, or discard this patch.
src/AbstractClient.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@  discard block
 block discarded – undo
23 23
 
24 24
     protected function parseData($tableName, array $data)
25 25
     {
26
-        $method = 'parseOn' . StringUtils::underscoreToCamelCase($tableName, true);
26
+        $method = 'parseOn'.StringUtils::underscoreToCamelCase($tableName, true);
27 27
         if (method_exists($this, $method)) {
28 28
             $data = call_user_func_array([$this, $method], [$data]);
29 29
         }
@@ -37,10 +37,10 @@  discard block
 block discarded – undo
37 37
         if (file_exists($path)) {
38 38
             $ext = pathinfo($path, PATHINFO_EXTENSION);
39 39
             $mimeType = mime_content_type($path);
40
-            $attributes['name'] = pathinfo($path, PATHINFO_FILENAME) . '.' . $ext;
40
+            $attributes['name'] = pathinfo($path, PATHINFO_FILENAME).'.'.$ext;
41 41
             $attributes['type'] = $mimeType;
42 42
             $content = file_get_contents($path);
43
-            $base64 = 'data:' . $mimeType . ';base64,' . base64_encode($content);
43
+            $base64 = 'data:'.$mimeType.';base64,'.base64_encode($content);
44 44
             $attributes['data'] = $base64;
45 45
         } else {
46 46
             throw new \Exception('Missing "file" or "data" attribute.');
Please login to merge, or discard this patch.