WrongTableNameMigration   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 11
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2
Metric Value
wmc 1
lcom 0
cbo 2
dl 0
loc 11
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A up() 0 5 1
1
<?php
2
3
namespace RDV\Bundle\MigrationBundle\Tests\Unit\Fixture\TestPackage;
4
5
use Doctrine\DBAL\Schema\Schema;
6
use RDV\Bundle\MigrationBundle\Migration\Migration;
7
use RDV\Bundle\MigrationBundle\Migration\QueryBag;
8
9
class WrongTableNameMigration implements Migration
10
{
11
    /**
12
     * @inheritdoc
13
     */
14
    public function up(Schema $schema, QueryBag $queries)
15
    {
16
        $table = $schema->createTable('extra_long_table_name_bigger_than_30_chars');
17
        $table->addColumn('id', 'integer');
18
    }
19
}
20