lightster/hodor

View on GitHub
src/Hodor/Database/Phpmig/PgsqlPhpmigAdapter.php

Summary

Maintainability
A
1 hr
Test Coverage

Showing 2 of 2 total issues

Method down has 26 lines of code (exceeds 25 allowed). Consider refactoring.
Open

public function down(Migration $migration)
{
$version = $migration->getVersion();
$sql = <<<SQL
SELECT *
Severity: Minor
Found in src/Hodor/Database/Phpmig/PgsqlPhpmigAdapter.php - About 1 hr to fix

Avoid using short method names like PgsqlPhpmigAdapter::up(). The configured minimum method name length is 3.
Open

public function up(Migration $migration)
{
$migration_reflection = new ReflectionClass(get_class($migration));
 
$this->yo_pdo->insert('migrations.migrations', [
Category
Status