Skip to content

Commit a60837b

Browse files
sergix44github-actions[bot]
authored andcommitted
Fix styling
1 parent 30295b9 commit a60837b

1 file changed

Lines changed: 5 additions & 8 deletions

File tree

src/Client.php

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -34,12 +34,7 @@ class Client extends RemoteClient
3434

3535
private ?string $hfToken;
3636

37-
/**
38-
* @param string $src
39-
* @param string|null $hfToken
40-
* @param Config|null $config
41-
*/
42-
public function __construct(string $src, ?string $hfToken = null, Config $config = null)
37+
public function __construct(string $src, string $hfToken = null, Config $config = null)
4338
{
4439
parent::__construct($src);
4540
$this->config = $config ?? $this->get(self::HTTP_CONFIG, dto: Config::class);
@@ -110,17 +105,19 @@ private function preparePayload(array $arguments): array
110105
$contents = stream_get_contents($filename);
111106
$finfo = new \finfo(FILEINFO_MIME_TYPE);
112107
$mime = $finfo->buffer($contents);
108+
113109
return [
114-
'data' => "data:$mime;base64," . base64_encode($contents),
110+
'data' => "data:$mime;base64,".base64_encode($contents),
115111
'name' => basename($filename),
116112
];
117113
}
118114

119115
if (is_string($arg) && file_exists($arg)) {
120116
$contents = file_get_contents($arg);
121117
$mime = mime_content_type($arg);
118+
122119
return [
123-
'data' => "data:$mime;base64," . base64_encode($contents),
120+
'data' => "data:$mime;base64,".base64_encode($contents),
124121
'name' => basename($arg),
125122
];
126123
}

0 commit comments

Comments
 (0)