Skip to content

Commit f61075c

Browse files
committed
some update
1 parent f88922d commit f61075c

File tree

2 files changed

+9
-5
lines changed

2 files changed

+9
-5
lines changed

src/Base/AbstractApplication.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -427,7 +427,7 @@ public function showCommandList($quit = true)
427427
}
428428

429429
if (!$hasGroup) {
430-
$controllerArr[] = '... No register any group command(controller)';
430+
$controllerArr[] = '... Not register any group command(controller)';
431431
}
432432

433433
// all independent commands, Independent, Single, Alone
@@ -456,7 +456,7 @@ public function showCommandList($quit = true)
456456
}
457457

458458
if (!$hasCommand) {
459-
$commandArr[] = '... No register any group command(controller)';
459+
$commandArr[] = '... Not register any alone command';
460460
}
461461

462462
// built in commands

src/Traits/FormatOutputAwareTrait.php

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -220,11 +220,15 @@ public function __call($method, array $args = [])
220220
/**
221221
* @param mixed $data
222222
* @param bool $echo
223+
* @param int $flags
223224
* @return int|string
224225
*/
225-
public function json($data, $echo = true)
226-
{
227-
$string = json_encode($data, JSON_PRETTY_PRINT);
226+
public function json(
227+
$data,
228+
$echo = true,
229+
int $flags = JSON_PRETTY_PRINT|JSON_UNESCAPED_UNICODE|JSON_UNESCAPED_SLASHES
230+
) {
231+
$string = json_encode($data, $flags);
228232

229233
if ($echo) {
230234
return Show::write($string);

0 commit comments

Comments
 (0)