Skip to content

Commit 59a3e92

Browse files
committed
refactoring method call
1 parent 4435522 commit 59a3e92

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Image.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ public static function fromForm(array $file): Image
217217
public function form(array $file): Image
218218
{
219219
if (isset($file) && isset($file["name"]) && $file["name"] != "") {
220-
$this->fromPath($file["tmp_name"]);
220+
$this->path($file["tmp_name"]);
221221
}
222222
return $this;
223223
}
@@ -278,7 +278,7 @@ public static function fromBase64(string $base64): Image
278278
*/
279279
public function base64(string $base64): Image
280280
{
281-
return $this->fromData(\base64_decode($base64));
281+
return $this->data(\base64_decode($base64));
282282
}
283283

284284
/**
@@ -329,7 +329,7 @@ public function curl(string $url, array $curlOptions = [], bool $failOnError = f
329329
return $this->resetFields();
330330
}
331331

332-
return $this->fromData($image);
332+
return $this->data($image);
333333
}
334334

335335

0 commit comments

Comments
 (0)