Skip to content

Commit

Permalink
rename method
Browse files Browse the repository at this point in the history
  • Loading branch information
recca0120 committed Aug 18, 2017
1 parent da89f6e commit 8759f33
Show file tree
Hide file tree
Showing 8 changed files with 32 additions and 16 deletions.
5 changes: 3 additions & 2 deletions src/Console/Commands/Artisan.php
Expand Up @@ -49,15 +49,16 @@ class Artisan extends Command
public function __construct(ArtisanContract $artisan)
{
parent::__construct();

$this->artisan = $artisan;
}

/**
* handle.
* Handle the command.
*
* @throws \InvalidArgumentException
*/
public function fire()
public function handle()
{
$command = $this->forceCommand($this->option('command'));

Expand Down
6 changes: 4 additions & 2 deletions src/Console/Commands/ArtisanTinker.php
Expand Up @@ -22,9 +22,11 @@ class ArtisanTinker extends Command
protected $description = 'artisn tinker';

/**
* fire.
* Handle the command.
*
* @throws \InvalidArgumentException
*/
public function fire()
public function handle()
{
$command = $this->option('command');

Expand Down
6 changes: 4 additions & 2 deletions src/Console/Commands/Cleanup.php
Expand Up @@ -43,9 +43,11 @@ public function __construct(Filesystem $files)
}

/**
* fire.
* Handle the command.
*
* @throws \InvalidArgumentException
*/
public function fire()
public function handle()
{
set_time_limit(0);
$root = function_exists('base_path') === true ? base_path() : getcwd();
Expand Down
6 changes: 4 additions & 2 deletions src/Console/Commands/Composer.php
Expand Up @@ -44,9 +44,11 @@ public function __construct(Filesystem $files)
}

/**
* handle.
* Handle the command.
*
* @throws \InvalidArgumentException
*/
public function fire()
public function handle()
{
$this->install();

Expand Down
6 changes: 4 additions & 2 deletions src/Console/Commands/Find.php
Expand Up @@ -77,9 +77,11 @@ public function run(InputInterface $input, OutputInterface $output)
}

/**
* fire.
* Handle the command.
*
* @throws \InvalidArgumentException
*/
public function fire()
public function handle()
{
$path = $this->argument('path');
$name = $this->option('name');
Expand Down
7 changes: 5 additions & 2 deletions src/Console/Commands/Mysql.php
Expand Up @@ -38,13 +38,16 @@ class Mysql extends Command
public function __construct(DatabaseManager $databaseManager)
{
parent::__construct();

$this->databaseManager = $databaseManager;
}

/**
* fire.
* Handle the command.
*
* @throws \InvalidArgumentException
*/
public function fire()
public function handle()
{
$query = $this->option('command');
$connection = $this->databaseManager->connection();
Expand Down
6 changes: 4 additions & 2 deletions src/Console/Commands/Tail.php
Expand Up @@ -44,9 +44,11 @@ public function __construct(Filesystem $files)
}

/**
* fire.
* Handle the command.
*
* @throws \InvalidArgumentException
*/
public function fire()
public function handle()
{
$path = $this->argument('path');
$lines = (int) $this->option('lines');
Expand Down
6 changes: 4 additions & 2 deletions src/Console/Commands/Vi.php
Expand Up @@ -43,9 +43,11 @@ public function __construct(Filesystem $files)
}

/**
* fire.
* Handle the command.
*
* @throws \InvalidArgumentException
*/
public function fire()
public function handle()
{
$path = $this->argument('path');
$text = $this->option('text');
Expand Down

0 comments on commit 8759f33

Please sign in to comment.