Skip to content

Commit

Permalink
Fixed #24
Browse files Browse the repository at this point in the history
  • Loading branch information
Catzilla committed Mar 21, 2021
1 parent 88c5393 commit edaac91
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Http/Controllers/GuiController.php
Expand Up @@ -126,7 +126,7 @@ protected function optionsToArray(Command $command): ?array {

$options = array_map(function (InputOption $option) {
return [
'title' => \Str::of($option->getName())->replace('_', ' ')->title()->__toString(),
'title' => \Str::of($option->getName())->snake()->replace('_', ' ')->title()->__toString(),
'name' => $option->getName(),
'description' => $option->getDescription(),
'shortcut' => $option->getShortcut(),
Expand All @@ -144,7 +144,7 @@ protected function argumentsToArray(Command $command): ?array {
$definition = $command->getDefinition();
$arguments = array_map(function (InputArgument $argument) {
return [
'title' => \Str::of($argument->getName())->replace('_', ' ')->title()->__toString(),
'title' => \Str::of($argument->getName())->snake()->replace('_', ' ')->title()->__toString(),
'name' => $argument->getName(),
'description' => $argument->getDescription(),
'default' => empty($default = $argument->getDefault()) ? null : $default,
Expand Down

0 comments on commit edaac91

Please sign in to comment.