From 9e033f680ea9ed243443fae2584a899204c1787b Mon Sep 17 00:00:00 2001 From: Caleb Mazalevskis Date: Mon, 25 Sep 2023 18:01:10 +0800 Subject: [PATCH] Unify file reading methods. Changelog excerpt: - Unified the methods for reading files to a singular method. --- src/CLI.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/CLI.php b/src/CLI.php index 8aa1e0b..e30d227 100644 --- a/src/CLI.php +++ b/src/CLI.php @@ -300,7 +300,7 @@ public function recursiveCommand(string $Command, callable $Callable): string private function peMeta(string $File): string { return $this->recursiveCommand($File, function ($Params) { - $Data = $this->Loader->readFileContent($Params); + $Data = $this->Loader->readFile($Params); $Returnable = ''; if (substr($Data, 0, 2) !== 'MZ') { return $this->Loader->L10N->getString('cli_pe1') . "\n"; @@ -397,7 +397,7 @@ private function coexFile(string $Clean): string if (filter_var($Params, FILTER_VALIDATE_URL)) { $Data = $this->Loader->Request->request($Params); } elseif (is_file($Params) && is_readable($Params)) { - $Data = $this->Loader->readFileContent($Params); + $Data = $this->Loader->readFile($Params); } if (empty($Data)) { return $this->Loader->L10N->getString('response.Invalid data') . "\n"; @@ -424,7 +424,7 @@ private function hashFile(string $Clean): string if (filter_var($Params, FILTER_VALIDATE_URL)) { $Data = $this->Loader->Request->request($Params); } elseif (is_file($Params) && is_readable($Params)) { - $Data = $this->Loader->readFileContent($Params); + $Data = $this->Loader->readFile($Params); } if (empty($Data)) { return $this->Loader->L10N->getString('response.Invalid data') . "\n";