sreichel/magento-StackExchange_LockAttributes

View on GitHub

Showing 2 of 10 total issues

Avoid excessively long class names like StackExchange_LockAttributes_Model_Observer. Keep class name length under 40.
Open

class StackExchange_LockAttributes_Model_Observer
{
    /**
     * Make product attributes uneditable
     *

LongClassName

Since: 2.9

Detects when classes or interfaces are declared with excessively long names.

Example

class ATooLongClassNameThatHintsAtADesignProblem {

}

interface ATooLongInterfaceNameThatHintsAtADesignProblem {

}

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

Avoid excessively long class names like StackExchange_LockAttributes_Model_System_Config_Source_Product_Attributes_All. Keep class name length under 40.
Open

class StackExchange_LockAttributes_Model_System_Config_Source_Product_Attributes_All
{
    /**
     * @var array $options
     */

LongClassName

Since: 2.9

Detects when classes or interfaces are declared with excessively long names.

Example

class ATooLongClassNameThatHintsAtADesignProblem {

}

interface ATooLongInterfaceNameThatHintsAtADesignProblem {

}

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

Severity
Category
Status
Source
Language