Replace all echos with Util::result where applicable

This commit is contained in:
Ely Deckers 2022-02-21 08:44:58 +01:00
parent d76b2d0cb1
commit 78f7056bb2
1 changed files with 3 additions and 3 deletions

View File

@ -666,10 +666,10 @@ class Command
public static function gw_status()
{
echo implode(",",
return Util::result(implode(",",
array_map(
fn($gw) => sprintf("%s.%s", $gw["name"], $gw["status"]),
PfEnv::return_gateways_status(true)));
PfEnv::return_gateways_status(true))));
}
public static function if_speedtest_value($if_name, $value)
@ -898,7 +898,7 @@ class Command
// File is present
public static function file_exists($filename)
{
echo Util::b2int(file_exists($filename));
return Util::result(Util::b2int(file_exists($filename)));
}
public static function speedtest_cron()