mygento/yandexdelivery

View on GitHub
app/code/local/Mygento/Yandexdelivery/Block/Adminhtml/Shipment.php

Summary

Maintainability
A
0 mins
Test Coverage

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

class Mygento_Yandexdelivery_Block_Adminhtml_Shipment extends Mage_Adminhtml_Block_Widget_Grid_Container
{

    public function _construct()
    {

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

class Mygento_Yandexdelivery_Block_Adminhtml_Shipment extends Mage_Adminhtml_Block_Widget_Grid_Container
{

    public function _construct()
    {

CamelCaseClassName

Since: 0.2

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

Example

class class_name {
}

Source

The method _beforeToHtml is not named in camelCase.
Open

    public function _beforeToHtml()
    {
        $this->removeButton('add');
    }

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

The method _construct is not named in camelCase.
Open

    public function _construct()
    {
        $this->_controller = 'adminhtml_shipment';
        $this->_blockGroup = 'yandexdelivery';
        $this->_headerText = Mage::helper('yandexdelivery')->__('Shipment Manager');

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