midasplatform/Midas

View on GitHub
core/database/upgrade/3.2.12.php

Summary

Maintainability
A
0 mins
Test Coverage

Each class must be in a namespace of at least one level (a top-level vendor name)
Open

class Upgrade_3_2_12 extends MIDASUpgrade

The class Upgrade_3_2_12 is not named in CamelCase.
Open

class Upgrade_3_2_12 extends MIDASUpgrade
{
    /** Upgrade a MySQL database. */
    public function mysql()
    {
Severity: Minor
Found in core/database/upgrade/3.2.12.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

Method name "_movePasswords" should not be prefixed with an underscore to indicate visibility
Open

    private function _movePasswords()

Class name "Upgrade_3_2_12" is not in camel caps format
Open

class Upgrade_3_2_12 extends MIDASUpgrade

The method _movePasswords is not named in camelCase.
Open

    private function _movePasswords()
    {
        // Move hashes from user table to password table
        $sql = $this->db->select()
            ->from(array('user'), array('password'))
Severity: Minor
Found in core/database/upgrade/3.2.12.php by phpmd

CamelCaseMethodName

Since: 0.2

It is considered best practice to use the camelCase notation to name methods.

Example

class ClassName {
    public function get_name() {
    }
}

Source

There are no issues that match your filters.

Category
Status