Skip to content
This repository has been archived by the owner on Apr 29, 2021. It is now read-only.

Commit

Permalink
Fix command option handling
Browse files Browse the repository at this point in the history
  • Loading branch information
garethnic committed Jun 29, 2017
1 parent da50a7c commit c3b98e9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/RepoScaffold.php
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ public function handle()

$this->makeMigration($createMigration);

$this->makeResourceController($name, $createResourceController);
$this->makeResourceController($createResourceController);

return $this->info('Your structure has been created');
}
Expand All @@ -88,9 +88,9 @@ private function makeMigration($option)
*
* @param $option
*/
private function makeResourceController($name, $option = null)
private function makeResourceController($option)
{
if ($option !== null) {
if ($option) {
$controllerName = Str::studly(class_basename($this->argument('name')));
$controllerNameFile = $controllerName . 'Controller.php';

Expand Down

0 comments on commit c3b98e9

Please sign in to comment.