Skip to content

Commit

Permalink
Applied fixes from StyleCI (#2)
Browse files Browse the repository at this point in the history
  • Loading branch information
sleimanx2 committed Jun 13, 2016
1 parent 3c84be8 commit f0ac5fa
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
6 changes: 2 additions & 4 deletions src/Console/Mapping/ReRun.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@
namespace Sleimanx2\Plastic\Console\Mapping;

use Illuminate\Console\Command;
use Illuminate\Console\ConfirmableTrait;
use Sleimanx2\Plastic\Mappings\Mappings;

class ReRun extends Command
{
Expand Down Expand Up @@ -36,11 +34,11 @@ public function __construct()
public function handle()
{
$this->call('mapping:reset', [
'--database' => $this->option('database')
'--database' => $this->option('database'),
]);

$this->call('mapping:run', [
'--database' => $this->option('database')
'--database' => $this->option('database'),
]);
}
}
1 change: 0 additions & 1 deletion src/Console/Mapping/Run.php
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,6 @@ public function handle()
}
}


protected function prepareDatabase()
{
$this->mapper->setConnection($this->option('database'));
Expand Down
2 changes: 1 addition & 1 deletion src/MappingServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ protected function registerMapper()
*/
protected function registerCommands()
{
$commands = ['Install', 'Reset', 'Make', 'Run','ReRun'];
$commands = ['Install', 'Reset', 'Make', 'Run', 'ReRun'];

foreach ($commands as $command) {
$this->{'register'.$command.'Command'}();
Expand Down

0 comments on commit f0ac5fa

Please sign in to comment.