@@ -9,8 +9,6 @@ |
||
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 |
@@ -23,7 +23,7 @@ discard block |
||
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 |
||
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.'); |