remove unnecesary argument

parent 53c96fda
......@@ -43,8 +43,7 @@ class NewCommand extends Command
}
$this->verifyApplicationDoesntExist(
$directory = ($input->getArgument('name')) ? getcwd().'/'.$input->getArgument('name') : getcwd(),
$output
$directory = ($input->getArgument('name')) ? getcwd().'/'.$input->getArgument('name') : getcwd()
);
$output->writeln('<info>Crafting application...</info>');
......@@ -89,7 +88,7 @@ class NewCommand extends Command
* @param string $directory
* @return void
*/
protected function verifyApplicationDoesntExist($directory, OutputInterface $output)
protected function verifyApplicationDoesntExist($directory)
{
if ((is_dir($directory) || is_file($directory)) && $directory != getcwd()) {
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