Skip to content

Commit

Permalink
Update check system
Browse files Browse the repository at this point in the history
  • Loading branch information
HungNA - Technical Manager committed Aug 20, 2024
1 parent 936132f commit 267beb3
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/CheckSystem.php
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,7 @@ public function checkExtensionRequirement(string $extension = ''): array

return array(
'code' => $code,
'name' => $extension,
'message' => $message,
'status' => $code === true ? 'OK' : 'NOK'
);
Expand Down Expand Up @@ -215,11 +216,12 @@ public function checkExtension(string $extension = '')
*/
public function checkFunctionsRequirement(string $function_name = ''): array
{
$message = 'Requirement Extension: ' . $function_name;
$message = 'Requirement Functions: ' . $function_name;
$code = function_exists($function_name);

return array(
'code' => $code,
'name' => $function_name,
'message' => $message,
'status' => $code === true ? 'OK' : 'NOK'
);
Expand Down Expand Up @@ -288,6 +290,8 @@ public function checkFilePermission(string $filename = '', string $mode = 'read'
'message' => $message,
'status' => $status,
'checkStatus' => $checkStatus,
'filename' => $filename,
'mode' => $mode
);
}

Expand Down

0 comments on commit 267beb3

Please sign in to comment.