Conditions | 1 |
Paths | 1 |
Total Lines | 13 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
33 | public function change() |
||
34 | { |
||
35 | $table = $this->table('oauth_refresh_tokens'); |
||
36 | $table |
||
37 | ->addColumn('identifier', 'string', ['limit' => 100]) |
||
38 | ->addColumn('access_token_id', 'integer', []) |
||
39 | ->addColumn('expires_at', 'datetime', ['null' => true]) |
||
40 | ->addColumn('created', 'datetime') |
||
41 | ->addColumn('updated', 'datetime', ['null' => true]) |
||
42 | ->addIndex(['identifier'], ['unique' => true]) |
||
43 | ->addIndex(['access_token_id'], []) |
||
44 | ->create(); |
||
45 | } |
||
46 | } |
||
47 |
You can fix this by adding a namespace to your class:
When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.