Showing 16 of 36 total issues
Method transactionalUp
has 82 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
protected function transactionalUp(YoPdo $yo_pdo) { $sql = <<<SQLCREATE SEQUENCE buffered_jobs_buffered_job_id_seq;CREATE SEQUENCE failed_jobs_failed_job_id_seq;
- Create a ticketCreate a ticket
Method transactionalUp
has 55 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
protected function transactionalUp(YoPdo $yo_pdo) { $sql = <<<SQLCREATE TABLE scheduled_jobs(
- Create a ticketCreate a ticket
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
Method processScheduledJobs
has 39 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private function processScheduledJobs() { $sql = <<<SQLINSERT INTO buffered_jobs(
- Create a ticketCreate a ticket
Method configure
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
protected function configure() { $this ->setName('test:generate-config') ->setDescription('Generate a config file for tests')
- Create a ticketCreate a ticket
Method markJobAsFinished
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private function markJobAsFinished($status, array $meta) { $sql = <<<SQLSELECT *FROM queued_jobs
- Create a ticketCreate a ticket
Method getJobsToRunGenerator
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function getJobsToRunGenerator() { $this->processScheduledJobs(); $sql = <<<SQL
- Create a ticketCreate a ticket
Method transactionalUp
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
protected function transactionalUp(YoPdo $yo_pdo) { $sql = <<<SQLALTER TABLE buffered_jobs ADD COLUMN mutex_id VARCHAR DEFAULT 'hodor:' || currval('buffered_jobs_buffered_job_id_seq'::regclass);
- Create a ticketCreate a ticket
Method bufferJob
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function bufferJob($queue_name, array $job) { $table_name = 'buffered_jobs'; $status_column = 'inserted'; if (isset($job['options']['run_after'])) {
- Create a ticketCreate a ticket
Method down
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function down(Migration $migration) { $version = $migration->getVersion(); $sql = <<<SQLSELECT *
- Create a ticketCreate a ticket
Function getJobsToRunGenerator
has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring. Open
Open
public function getJobsToRunGenerator() { $buffered_jobs = $this->sortBufferedJobs( $this->filterFutureJobs($this->database->getAll('buffered_jobs')) );
- Read upRead up
- 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 __DIR__ . '/MigrationTemplate.php';
- 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 $buffered_jobs;
- 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