Commit 3518efc2 authored by Taylor Otwell's avatar Taylor Otwell Committed by GitHub

Merge pull request #56 from pakogn/fix/unnecesary-argument-0

remove unnecesary argument
parents 62c332b1 b35ef87b
...@@ -43,8 +43,7 @@ class NewCommand extends Command ...@@ -43,8 +43,7 @@ class NewCommand extends Command
} }
$this->verifyApplicationDoesntExist( $this->verifyApplicationDoesntExist(
$directory = ($input->getArgument('name')) ? getcwd().'/'.$input->getArgument('name') : getcwd(), $directory = ($input->getArgument('name')) ? getcwd().'/'.$input->getArgument('name') : getcwd()
$output
); );
$output->writeln('<info>Crafting application...</info>'); $output->writeln('<info>Crafting application...</info>');
...@@ -89,7 +88,7 @@ class NewCommand extends Command ...@@ -89,7 +88,7 @@ class NewCommand extends Command
* @param string $directory * @param string $directory
* @return void * @return void
*/ */
protected function verifyApplicationDoesntExist($directory, OutputInterface $output) protected function verifyApplicationDoesntExist($directory)
{ {
if ((is_dir($directory) || is_file($directory)) && $directory != getcwd()) { if ((is_dir($directory) || is_file($directory)) && $directory != getcwd()) {
throw new RuntimeException('Application already exists!'); throw new RuntimeException('Application already exists!');
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment