app/code/local/Mygento/Yandexdelivery/Model/Source/Weight.php
Avoid excessively long class names like Mygento_Yandexdelivery_Model_Source_Weight. Keep class name length under 40. Open
Open
class Mygento_Yandexdelivery_Model_Source_Weight
{
public function toOptionArray()
{
- Read upRead up
- Exclude checks
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
The class Mygento_Yandexdelivery_Model_Source_Weight is not named in CamelCase. Open
Open
class Mygento_Yandexdelivery_Model_Source_Weight
{
public function toOptionArray()
{
- 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 {
}