Conditions | 1 |
Paths | 1 |
Total Lines | 14 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
34 | public function safeUp() |
||
35 | { |
||
36 | $this->createTable('{{%oauthCypherKeys}}', [ |
||
37 | 'id' => $this->string(255), |
||
38 | 'publicKey' => $this->text(), |
||
39 | 'privateKey' => $this->text(), |
||
40 | 'encryptionAlgorithm' => $this->string(255), |
||
41 | 'dateCreated' => $this->datetime(), |
||
42 | 'dateUpdated' => $this->datetime(), |
||
43 | 'dateDeleted' => $this->dateTime(), |
||
44 | 'PRIMARY KEY(id)', |
||
45 | ], 'ENGINE=InnoDB DEFAULT CHARSET=utf8'); |
||
46 | return true; |
||
47 | } |
||
48 | |||
59 |
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.