for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* m180622_161900_oauthCypherKeys.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 m180622_161900_oauthCypherKeys
* @since XXX
class m180622_161900_oauthCypherKeys 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('{{%oauthCypherKeys}}', [
'id' => $this->string(255),
'publicKey' => $this->text(),
'privateKey' => $this->text(),
'encryptionAlgorithm' => $this->string(255),
'dateCreated' => $this->datetime(),
'dateUpdated' => $this->datetime(),
'dateDeleted' => $this->dateTime(),
'PRIMARY KEY(id)',
], 'ENGINE=InnoDB DEFAULT CHARSET=utf8');
return true;
}
public function safeDown()
$this->dropTable('{{%oauthCypherKeys}}');
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.