From 7dcbf33a80017276b034ce93b9f002a2f7ce18a2 Mon Sep 17 00:00:00 2001 From: Shawn McCool Date: Mon, 16 Jul 2012 10:28:40 +0200 Subject: [PATCH] cleaned up help task --- laravel/cli/tasks/help.json | 2 +- laravel/cli/tasks/help.php | 9 +++++---- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/laravel/cli/tasks/help.json b/laravel/cli/tasks/help.json index 69e16fe6..3f614ad1 100644 --- a/laravel/cli/tasks/help.json +++ b/laravel/cli/tasks/help.json @@ -47,7 +47,7 @@ "command": "php artisan bundle:publish" } }, - "Unit Tests": { + "Unit Testing": { "test": { "description": "Run the application's tests.", "command": "php artisan test" diff --git a/laravel/cli/tasks/help.php b/laravel/cli/tasks/help.php index e81bc945..8cfcd768 100644 --- a/laravel/cli/tasks/help.php +++ b/laravel/cli/tasks/help.php @@ -6,21 +6,22 @@ class Help extends Task { /** - * List + * List available artisan commands. * * @param array $arguments * @return void */ public function commands() { + // read help contents - $command_data = json_decode(file_get_contents(__DIR__.'/help.json')); + $command_data = json_decode(File::get(__DIR__.'/help.json')); + + // format and display help contents $i=0; - foreach($command_data as $category => $commands) { - if($i++ != 0) echo PHP_EOL; echo PHP_EOL . "# $category" . PHP_EOL;