| Conditions | 1 |
| Paths | 1 |
| Total Lines | 13 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 35 | public function safeUp() |
||
| 36 | { |
||
| 37 | $this->createTable('{{%oauthScopes}}', [ |
||
| 38 | 'id' => $this->string(255), |
||
| 39 | 'definition' => $this->string(255), |
||
| 40 | 'isDefault' => $this->boolean(), |
||
| 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.