Skip to content

Commit

Permalink
Clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
kaidesu committed Mar 1, 2016
1 parent 8bbe169 commit 8fadc3b
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/Console/Commands/ModuleMigrateCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ public function fire()
$this->prepareDatabase();

if (! empty($this->argument('slug'))) {
$module = $this->module->getProperties($this->argument('slug'));
$module = $this->module->where('slug', $this->argument('slug'))->first();

if ($this->module->isEnabled($module['slug'])) {
return $this->migrate($module['slug']);
Expand Down
2 changes: 1 addition & 1 deletion src/Console/Commands/ModuleSeedCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ public function fire()
*/
protected function seed($slug)
{
$module = $this->module->getProperties($slug);
$module = $this->module->where('slug', $slug)->first();
$params = [];
$namespacePath = $this->module->getNamespace();
$rootSeeder = $module['namespace'].'DatabaseSeeder';
Expand Down
2 changes: 1 addition & 1 deletion src/Console/Generators/MakeControllerCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ public function fire()
$this->container['className'] = $this->argument('name');

if ($this->module->exists($this->container['slug'])) {
$this->container['module'] = $this->module->getProperties($this->container['slug']);
$this->container['module'] = $this->module->where('slug', $this->container['slug'])->first();

$this->makeFile();

Expand Down
2 changes: 1 addition & 1 deletion src/Console/Generators/MakeRequestCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ public function fire()
$this->container['className'] = $this->argument('name');

if ($this->module->exists($this->container['slug'])) {
$this->container['module'] = $this->module->getProperties($this->container['slug']);
$this->container['module'] = $this->module->where('slug', $this->container['slug'])->first();

$this->makeFile();

Expand Down

0 comments on commit 8fadc3b

Please sign in to comment.