src/Hodor/Database/Phpmig/PgsqlPhpmigAdapter.php
Method down
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function down(Migration $migration)
{
$version = $migration->getVersion();
$sql = <<<SQL
SELECT *
- Create a ticketCreate a ticket
Avoid using short method names like PgsqlPhpmigAdapter::up(). The configured minimum method name length is 3. Open
Open
public function up(Migration $migration)
{
$migration_reflection = new ReflectionClass(get_class($migration));
$this->yo_pdo->insert('migrations.migrations', [
- Read upRead up
- Create a ticketCreate a ticket
- Exclude checks
ShortMethodName
Since: 0.2
Detects when very short method names are used.
Example
class ShortMethod {
public function a( $index ) { // Violation
}
}