Commit a0a6d8fe authored by Taylor Otwell's avatar Taylor Otwell

condense check

parent 41b4e7ec
......@@ -84,13 +84,9 @@ class NewCommand extends Command
*/
protected function verifyApplicationDoesntExist($directory, OutputInterface $output)
{
if (is_dir($directory)) {
if (is_dir($directory) || is_file($directory)) {
throw new RuntimeException('Application already exists!');
}
if (is_file($directory)) {
throw new RuntimeException('Cannot make an Application with that name due to a naming conflict!');
}
}
/**
......
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