mygento/yandexdelivery

View on GitHub
app/code/local/Mygento/Yandexdelivery/Model/Carrier/Todoor.php

Summary

Maintainability
A
0 mins
Test Coverage

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

class Mygento_Yandexdelivery_Model_Carrier_Todoor extends Mygento_Yandexdelivery_Model_Shipping
{

    protected $_subcode = 'todoor';

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_Carrier_Todoor is not named in CamelCase.
Open

class Mygento_Yandexdelivery_Model_Carrier_Todoor extends Mygento_Yandexdelivery_Model_Shipping
{

    protected $_subcode = 'todoor';

CamelCaseClassName

Since: 0.2

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

Example

class class_name {
}

Source

The property $_subcode is not named in camelCase.
Open

class Mygento_Yandexdelivery_Model_Carrier_Todoor extends Mygento_Yandexdelivery_Model_Shipping
{

    protected $_subcode = 'todoor';

CamelCasePropertyName

Since: 0.2

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

Example

class ClassName {
    protected $property_name;
}

Source

There are no issues that match your filters.

Category
Status