src/Hodor/Database/Phpmig/Container.php
Method addDefaultServices
has 44 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function addDefaultServices($config_file = null)
{
$this->addConfigFileService($config_file);
$this['hodor.config.factory'] = $this->share(
- Create a ticketCreate a ticket
Avoid too many return
statements within this method. Open
Open
return __DIR__ . '/MigrationTemplate.php';
- Create a ticketCreate a ticket
Avoid too many return
statements within this method. Open
Open
return $container['phpmig.adapter']->getMigrationsPath();
- Create a ticketCreate a ticket
Avoid too many return
statements within this method. Open
Open
return $db_factory->getAdapter($db_config)->getYoPdo();
- Create a ticketCreate a ticket
Avoid too many return
statements within this method. Open
Open
return new PgsqlPhpmigAdapter($db_adapter);
- Create a ticketCreate a ticket