diff --git a/src/Illuminate/Foundation/Console/RuleMakeCommand.php b/src/Illuminate/Foundation/Console/RuleMakeCommand.php index c475ebb72671..dbbddf3fbddc 100644 --- a/src/Illuminate/Foundation/Console/RuleMakeCommand.php +++ b/src/Illuminate/Foundation/Console/RuleMakeCommand.php @@ -54,15 +54,9 @@ protected function buildClass($name) */ protected function getStub() { - $stub = '/stubs/rule.stub'; - - if ($this->option('invokable')) { - $stub = '/stubs/rule.invokable.stub'; - } - - if ($this->option('implicit') && $this->option('invokable')) { - $stub = str_replace('.stub', '.implicit.stub', $stub); - } + $stub = $this->option('implicit') + ? '/stubs/rule.implicit.stub' + : '/stubs/rule.stub'; return file_exists($customPath = $this->laravel->basePath(trim($stub, '/'))) ? $customPath @@ -89,7 +83,6 @@ protected function getOptions() { return [ ['implicit', 'i', InputOption::VALUE_NONE, 'Generate an implicit rule.'], - ['invokable', null, InputOption::VALUE_NONE, 'Generate a single method, invokable rule class.'], ]; } } diff --git a/src/Illuminate/Foundation/Console/stubs/rule.invokable.implicit.stub b/src/Illuminate/Foundation/Console/stubs/rule.implicit.stub similarity index 100% rename from src/Illuminate/Foundation/Console/stubs/rule.invokable.implicit.stub rename to src/Illuminate/Foundation/Console/stubs/rule.implicit.stub diff --git a/src/Illuminate/Foundation/Console/stubs/rule.invokable.stub b/src/Illuminate/Foundation/Console/stubs/rule.invokable.stub deleted file mode 100644 index ddf9d65765bd..000000000000 --- a/src/Illuminate/Foundation/Console/stubs/rule.invokable.stub +++ /dev/null @@ -1,21 +0,0 @@ -