common/migrations/db/m140703_123803_article.php
Method safeUp
has 45 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function safeUp()
{
$tableOptions = null;
if ($this->db->driverName === 'mysql') {
$tableOptions = 'CHARACTER SET utf8 COLLATE utf8_unicode_ci ENGINE=InnoDB';
The class m140703_123803_article is not named in CamelCase. Open
Open
class m140703_123803_article extends Migration
{
public function safeUp()
{
$tableOptions = null;
- Read upRead up
- Exclude checks
CamelCaseClassName
Since: 0.2
It is considered best practice to use the CamelCase notation to name classes.
Example
class class_name {
}