server/src/app/Console/Commands/Inspire.php
changeset 2 00e2916104fe
parent 1 01a844d292ac
equal deleted inserted replaced
1:01a844d292ac 2:00e2916104fe
     1 <?php namespace App\Console\Commands;
     1 <?php
       
     2 
       
     3 namespace CorpusParole\Console\Commands;
     2 
     4 
     3 use Illuminate\Console\Command;
     5 use Illuminate\Console\Command;
     4 use Illuminate\Foundation\Inspiring;
     6 use Illuminate\Foundation\Inspiring;
     5 
     7 
     6 class Inspire extends Command {
     8 class Inspire extends Command
       
     9 {
       
    10     /**
       
    11      * The console command name.
       
    12      *
       
    13      * @var string
       
    14      */
       
    15     protected $name = 'inspire';
     7 
    16 
     8 	/**
    17     /**
     9 	 * The console command name.
    18      * The console command description.
    10 	 *
    19      *
    11 	 * @var string
    20      * @var string
    12 	 */
    21      */
    13 	protected $name = 'inspire';
    22     protected $description = 'Display an inspiring quote';
    14 
    23 
    15 	/**
    24     /**
    16 	 * The console command description.
    25      * Execute the console command.
    17 	 *
    26      *
    18 	 * @var string
    27      * @return mixed
    19 	 */
    28      */
    20 	protected $description = 'Display an inspiring quote';
    29     public function handle()
    21 
    30     {
    22 	/**
    31         $this->comment(PHP_EOL.Inspiring::quote().PHP_EOL);
    23 	 * Execute the console command.
    32     }
    24 	 *
       
    25 	 * @return mixed
       
    26 	 */
       
    27 	public function handle()
       
    28 	{
       
    29 		$this->comment(PHP_EOL.Inspiring::quote().PHP_EOL);
       
    30 	}
       
    31 
       
    32 }
    33 }