for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* m180618_131800_oauthScopes.php
*
* PHP version 5.6+
* Create applicants
* @author Maxime Deschamps <[email protected]>
* @copyright 2010-2018 Ibitux
* @license http://www.ibitux.com/license license
* @version XXX
* @link http://www.ibitux.com
* @package src\migrations
*/
use yii\db\Migration;
* Class m180618_131800_oauthScopes
* @since XXX
class m180618_131800_oauthScopes extends Migration
You can fix this by adding a namespace to your class:
namespace YourVendor; class YourClass { }
When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.
{
* @inheritdoc
public function safeUp()
$this->createTable('{{%oauthScopes}}', [
'id' => $this->string(255),
'definition' => $this->string(255),
'isDefault' => $this->boolean(),
'dateCreated' => $this->datetime(),
'dateUpdated' => $this->datetime(),
'dateDeleted' => $this->dateTime(),
'PRIMARY KEY(id)',
], 'ENGINE=InnoDB DEFAULT CHARSET=utf8');
return true;
}
public function safeDown()
$this->dropTable('{{%oauthScopes}}');
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.