|  | @@ -6,21 +6,22 @@ use Laravel\File;
 | 
											
												
													
														|  |  class Help extends Task {
 |  |  class Help extends Task {
 | 
											
												
													
														|  |  
 |  |  
 | 
											
												
													
														|  |  	/**
 |  |  	/**
 | 
											
												
													
														|  | -	 * List 
 |  | 
 | 
											
												
													
														|  | 
 |  | +	 * List available artisan commands. 
 | 
											
												
													
														|  |  	 *
 |  |  	 *
 | 
											
												
													
														|  |  	 * @param  array  $arguments
 |  |  	 * @param  array  $arguments
 | 
											
												
													
														|  |  	 * @return void
 |  |  	 * @return void
 | 
											
												
													
														|  |  	 */
 |  |  	 */
 | 
											
												
													
														|  |  	public function commands()
 |  |  	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'));
 | 
											
												
													
														|  |  
 |  |  
 | 
											
												
													
														|  | -		$i=0;
 |  | 
 | 
											
												
													
														|  | 
 |  | +		// format and display help contents
 | 
											
												
													
														|  |  
 |  |  
 | 
											
												
													
														|  | 
 |  | +		$i=0;
 | 
											
												
													
														|  |  		foreach($command_data as $category => $commands)
 |  |  		foreach($command_data as $category => $commands)
 | 
											
												
													
														|  |  		{
 |  |  		{
 | 
											
												
													
														|  | -
 |  | 
 | 
											
												
													
														|  |  			if($i++ != 0) echo PHP_EOL;
 |  |  			if($i++ != 0) echo PHP_EOL;
 | 
											
												
													
														|  |  
 |  |  
 | 
											
												
													
														|  |  			echo PHP_EOL . "# $category" . PHP_EOL;
 |  |  			echo PHP_EOL . "# $category" . PHP_EOL;
 |