diff --git a/HttpServer/Http/Response.php b/HttpServer/Http/Response.php index d89d6097..0ce11d94 100644 --- a/HttpServer/Http/Response.php +++ b/HttpServer/Http/Response.php @@ -147,9 +147,12 @@ class Response extends Application private function printResult($result) { $result = Help::toString($result); - $string = PHP_EOL . 'Command Result: ' . PHP_EOL . PHP_EOL; - $string .= empty($result) ? 'success!' : $result . PHP_EOL . PHP_EOL; + if (empty($result)) { + $string .= 'success!' . PHP_EOL . PHP_EOL; + } else { + $string .= $result . PHP_EOL . PHP_EOL; + } $string .= 'Command End!' . PHP_EOL . PHP_EOL; echo $string;