Total Complexity | 2 |
Total Lines | 27 |
Duplicated Lines | 0 % |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
24 | class MigrationTable extends QtMigration |
||
25 | { |
||
26 | |||
27 | /** |
||
28 | * Migrations table name |
||
29 | */ |
||
30 | const TABLE = 'migrations'; |
||
31 | |||
32 | /** |
||
33 | * Creates the migrations table |
||
34 | * @param TableFactory|null $tableFactory |
||
35 | */ |
||
36 | public function up(?TableFactory $tableFactory) |
||
37 | { |
||
38 | $table = $tableFactory->create(self::TABLE); |
||
|
|||
39 | $table->addColumn('id', Type::INT, 11)->autoIncrement(); |
||
40 | $table->addColumn('migration', Type::VARCHAR, 255); |
||
41 | $table->addColumn('applied_at', Type::TIMESTAMP)->default('CURRENT_TIMESTAMP', false); |
||
42 | } |
||
43 | |||
44 | /** |
||
45 | * Drops the migrations table |
||
46 | * @param TableFactory|null $tableFactory |
||
47 | */ |
||
48 | public function down(?TableFactory $tableFactory) |
||
51 | } |
||
52 | |||
54 |
This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.
This is most likely a typographical error or the method has been renamed.