Skip to content

Commit 9e033f6

Browse files
committed
Unify file reading methods.
Changelog excerpt: - Unified the methods for reading files to a singular method.
1 parent 6e24d5f commit 9e033f6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/CLI.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,7 @@ public function recursiveCommand(string $Command, callable $Callable): string
300300
private function peMeta(string $File): string
301301
{
302302
return $this->recursiveCommand($File, function ($Params) {
303-
$Data = $this->Loader->readFileContent($Params);
303+
$Data = $this->Loader->readFile($Params);
304304
$Returnable = '';
305305
if (substr($Data, 0, 2) !== 'MZ') {
306306
return $this->Loader->L10N->getString('cli_pe1') . "\n";
@@ -397,7 +397,7 @@ private function coexFile(string $Clean): string
397397
if (filter_var($Params, FILTER_VALIDATE_URL)) {
398398
$Data = $this->Loader->Request->request($Params);
399399
} elseif (is_file($Params) && is_readable($Params)) {
400-
$Data = $this->Loader->readFileContent($Params);
400+
$Data = $this->Loader->readFile($Params);
401401
}
402402
if (empty($Data)) {
403403
return $this->Loader->L10N->getString('response.Invalid data') . "\n";
@@ -424,7 +424,7 @@ private function hashFile(string $Clean): string
424424
if (filter_var($Params, FILTER_VALIDATE_URL)) {
425425
$Data = $this->Loader->Request->request($Params);
426426
} elseif (is_file($Params) && is_readable($Params)) {
427-
$Data = $this->Loader->readFileContent($Params);
427+
$Data = $this->Loader->readFile($Params);
428428
}
429429
if (empty($Data)) {
430430
return $this->Loader->L10N->getString('response.Invalid data') . "\n";

0 commit comments

Comments
 (0)