Checkstyle fix
This commit is contained in:
parent
3022cfb81a
commit
27862d6fb1
|
@ -44,10 +44,8 @@ abstract class AbstractCommand extends ContainerAwareCommand
|
|||
*/
|
||||
protected $input;
|
||||
|
||||
|
||||
use FormattingHelpers;
|
||||
|
||||
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
|
|
|
@ -11,7 +11,6 @@
|
|||
namespace Propel\PropelBundle\Command;
|
||||
|
||||
use Propel\Runtime\Propel;
|
||||
use Symfony\Component\Console\Input\InputArgument;
|
||||
use Symfony\Component\Console\Input\InputInterface;
|
||||
use Symfony\Component\Console\Input\InputOption;
|
||||
use Symfony\Component\Console\Output\OutputInterface;
|
||||
|
@ -57,6 +56,7 @@ EOT
|
|||
{
|
||||
if (!$input->getOption('force')) {
|
||||
$output->writeln('<error>You have to use the "--force" option to drop the database.</error>');
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
@ -19,9 +19,6 @@ use Symfony\Component\Filesystem\Filesystem;
|
|||
use Symfony\Component\Finder\Finder;
|
||||
use Symfony\Component\HttpKernel\Bundle\BundleInterface;
|
||||
|
||||
use Propel\PropelBundle\DataFixtures\Loader\YamlDataLoader;
|
||||
use Propel\PropelBundle\DataFixtures\Loader\XmlDataLoader;
|
||||
|
||||
/**
|
||||
* FixturesLoadCommand
|
||||
*
|
||||
|
|
|
@ -46,6 +46,7 @@ class TableDropCommand extends ContainerAwareCommand
|
|||
{
|
||||
if (!$input->getOption('force')) {
|
||||
$output->writeln('<error>You have to use the "--force" option to drop some tables.</error>');
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -90,7 +91,7 @@ class TableDropCommand extends ContainerAwareCommand
|
|||
|
||||
$connection->exec('SET FOREIGN_KEY_CHECKS = 0;');
|
||||
|
||||
array_walk($tablesToDelete, function(&$table, $key, $dbAdapter) {
|
||||
array_walk($tablesToDelete, function (&$table, $key, $dbAdapter) {
|
||||
$table = $dbAdapter->quoteIdentifierTable($table);
|
||||
}, $adapter);
|
||||
|
||||
|
|
|
@ -140,7 +140,8 @@ abstract class AbstractDataHandler
|
|||
*
|
||||
* @return string[]
|
||||
*/
|
||||
protected function getModelSearchPaths($connectionName) {
|
||||
protected function getModelSearchPaths($connectionName)
|
||||
{
|
||||
$searchPath = array();
|
||||
|
||||
if (!empty($this->datasources[$connectionName]['connection']['model_paths'])) {
|
||||
|
|
|
@ -48,14 +48,14 @@ class YamlDataLoader extends AbstractDataLoader
|
|||
|
||||
if (null !== $this->container && $this->container->has('faker.generator')) {
|
||||
$generator = $this->container->get('faker.generator');
|
||||
$faker = function($type) use ($generator) {
|
||||
$faker = function ($type) use ($generator) {
|
||||
$args = func_get_args();
|
||||
array_shift($args);
|
||||
|
||||
echo Yaml::dump(call_user_func_array(array($generator, $type), $args)) . "\n";
|
||||
};
|
||||
} else {
|
||||
$faker = function($text) {
|
||||
$faker = function ($text) {
|
||||
echo $text . "\n";
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue