Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
afshinakhgar committed Jan 1, 2018
1 parent 5adfda8 commit 71bab5b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/Command/MakeMiddleware.php
Expand Up @@ -48,10 +48,10 @@ protected function execute(InputInterface $input, OutputInterface $output)
// $question->setMaxAttempts(2);
$q = $helper->ask($input, $output, $question);

if ($q)) {
if ($q) {
@mkdir($directory);
}

if (!is_dir($directory)) {
$output->writeln('<error>Couldn\'t create directory.</error>');
return;
Expand Down

0 comments on commit 71bab5b

Please sign in to comment.