sreichel/magento-StackExchange_DisableSearchBySku

View on GitHub

Showing 2 of 8 total issues

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

class StackExchange_DisableSearchBySku_Model_Observer
{
    /**
     * The product list block name in layout
     */

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_DisableSearchBySku_Helper_Data. Keep class name length under 40.
Open

class StackExchange_DisableSearchBySku_Helper_Data extends Mage_Core_Helper_Abstract
{
    /** @var string $_moduleName Module name */
    protected $_moduleName = 'StackExchange_DisableSearchBySku'; // phpcs:ignore
}

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