hauntd/yii2-vote

View on GitHub
migrations/m160620_131811_vote.php

Summary

Maintainability
A
0 mins
Test Coverage

Avoid using short method names like m160620_131811_vote::up(). The configured minimum method name length is 3.
Open

    public function up()
    {
        $this->createTable('{{%vote}}', [
            'id' => $this->primaryKey(),
            'entity' => $this->integer()->unsigned()->notNull(),
Severity: Minor
Found in migrations/m160620_131811_vote.php by phpmd

ShortMethodName

Since: 0.2

Detects when very short method names are used.

Example

class ShortMethod {
    public function a( $index ) { // Violation
    }
}

Source https://phpmd.org/rules/naming.html#shortmethodname

The class m160620_131811_vote is not named in CamelCase.
Open

class m160620_131811_vote extends Migration
{
    public function up()
    {
        $this->createTable('{{%vote}}', [
Severity: Minor
Found in migrations/m160620_131811_vote.php by phpmd

CamelCaseClassName

Since: 0.2

It is considered best practice to use the CamelCase notation to name classes.

Example

class class_name {
}

Source

There are no issues that match your filters.

Category
Status