Skip to content

Commit

Permalink
Merge pull request #566 from BenMorel/toolreturntype
Browse files Browse the repository at this point in the history
Added missing return statement to AbstractCommand.
  • Loading branch information
guilhermeblanco committed Feb 3, 2013
2 parents ef1ed58 + 2bfbe03 commit d3cbdfc
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ protected function execute(InputInterface $input, OutputInterface $output)
return $this->executeSchemaCommand($input, $output, $tool, $metadatas);
} else {
$output->writeln('No Metadata Classes to process.');
return 0;
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -74,5 +74,7 @@ protected function executeSchemaCommand(InputInterface $input, OutputInterface $
$schemaTool->createSchema($metadatas);
$output->writeln('Database schema created successfully!');
}

return 0;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -116,5 +116,7 @@ protected function executeSchemaCommand(InputInterface $input, OutputInterface $
}

$output->writeln('Nothing to drop. The database is empty!');

return 0;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ protected function executeSchemaCommand(InputInterface $input, OutputInterface $
if (0 === count($sqls)) {
$output->writeln('Nothing to update - your database is already in sync with the current entity metadata.');

return;
return 0;
}

$dumpSql = true === $input->getOption('dump-sql');
Expand Down

0 comments on commit d3cbdfc

Please sign in to comment.