|
@@ -130,7 +130,7 @@ discard block |
|
|
block discarded – undo |
|
130
|
130
|
} |
|
131
|
131
|
|
|
132
|
132
|
|
|
133
|
|
- private static function convertSql(array $data): array|bool |
|
|
133
|
+ private static function convertSql(array $data): array | bool |
|
134
|
134
|
{ |
|
135
|
135
|
$sql = []; |
|
136
|
136
|
$map = array_merge([ |
|
@@ -148,7 +148,7 @@ discard block |
|
|
block discarded – undo |
|
148
|
148
|
return [$sql, $map['file'], $map['id']]; |
|
149
|
149
|
} |
|
150
|
150
|
|
|
151
|
|
- private static function pullFile(array $data): null|UploadedFile |
|
|
151
|
+ private static function pullFile(array $data): null | UploadedFile |
|
152
|
152
|
{ |
|
153
|
153
|
if (array_key_exists('file', $data) && $data['file']) { |
|
154
|
154
|
return $data['file'] instanceof UploadedFile ? $data['file'] : null; |
Please login to merge, or discard this patch.