vpietri/magento2-developer-quickdevbar

View on GitHub

Showing 185 of 185 total issues

Avoid variables with short names like $id. Configured minimum length is 3.
Open

        $id = ($this->getData('id')) ? $this->getData('id') : $this->getNameInLayout();
Severity: Minor
Found in Block/Tab/Panel.php by phpmd

ShortVariable

Since: 0.2

Detects when a field, local, or parameter has a very short name.

Example

class Something {
    private $q = 15; // VIOLATION - Field
    public static function main( array $as ) { // VIOLATION - Formal
        $r = 20 + $this->q; // VIOLATION - Local
        for (int $i = 0; $i < 10; $i++) { // Not a Violation (inside FOR)
            $r += $this->q;
        }
    }
}

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

The property $_jsonHelper is not named in camelCase.
Open

class Log extends \ADM\QuickDevBar\Block\Tab\Panel
{

    protected $_jsonHelper;

Severity: Minor
Found in Block/Tab/Content/Log.php by phpmd

CamelCasePropertyName

Since: 0.2

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

Example

class ClassName {
    protected $property_name;
}

Source

Avoid variables with short names like $f. Configured minimum length is 3.
Open

        $f = @fopen($filepath, "rb");
Severity: Minor
Found in Helper/Data.php by phpmd

ShortVariable

Since: 0.2

Detects when a field, local, or parameter has a very short name.

Example

class Something {
    private $q = 15; // VIOLATION - Field
    public static function main( array $as ) { // VIOLATION - Formal
        $r = 20 + $this->q; // VIOLATION - Local
        for (int $i = 0; $i < 10; $i++) { // Not a Violation (inside FOR)
            $r += $this->q;
        }
    }
}

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

The property $_resourceConfig is not named in camelCase.
Open

class ConfigUpdate extends \ADM\QuickDevBar\Controller\Index
{
    /**
     * @var \Magento\Config\Model\Resource\Config
     */
Severity: Minor
Found in Controller/Action/ConfigUpdate.php by phpmd

CamelCasePropertyName

Since: 0.2

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

Example

class ClassName {
    protected $property_name;
}

Source

Avoid variables with short names like $bt. Configured minimum length is 3.
Open

    public function formatTrace(array $bt)
Severity: Minor
Found in Block/Tab/Panel.php by phpmd

ShortVariable

Since: 0.2

Detects when a field, local, or parameter has a very short name.

Example

class Something {
    private $q = 15; // VIOLATION - Field
    public static function main( array $as ) { // VIOLATION - Formal
        $r = 20 + $this->q; // VIOLATION - Local
        for (int $i = 0; $i < 10; $i++) { // Not a Violation (inside FOR)
            $r += $this->q;
        }
    }
}

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

The property $_elements is not named in camelCase.
Open

class LayoutGenerateBlocksAfterObserver implements ObserverInterface
{

    private $_elements = [];

CamelCasePropertyName

Since: 0.2

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

Example

class ClassName {
    protected $property_name;
}

Source

Avoid variables with short names like $bt. Configured minimum length is 3.
Open

    public function formatSqlTrace(mixed $bt)
Severity: Minor
Found in Block/Tab/Content/Sql.php by phpmd

ShortVariable

Since: 0.2

Detects when a field, local, or parameter has a very short name.

Example

class Something {
    private $q = 15; // VIOLATION - Field
    public static function main( array $as ) { // VIOLATION - Formal
        $r = 20 + $this->q; // VIOLATION - Local
        for (int $i = 0; $i < 10; $i++) { // Not a Violation (inside FOR)
            $r += $this->q;
        }
    }
}

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

The property $_jsonHelper is not named in camelCase.
Open

class Wrapper extends Panel
{
    protected $_mainTabs;

    protected $_jsonHelper;
Severity: Minor
Found in Block/Tab/Wrapper.php by phpmd

CamelCasePropertyName

Since: 0.2

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

Example

class ClassName {
    protected $property_name;
}

Source

The property $_filePath is not named in camelCase.
Open

class Db extends \Zend_Db_Profiler
{
    protected static $_filePath;

    protected $queryBacktrace = [];
Severity: Minor
Found in Profiler/Db.php by phpmd

CamelCasePropertyName

Since: 0.2

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

Example

class ClassName {
    protected $property_name;
}

Source

The property $_storeManager is not named in camelCase.
Open

class ConfigUpdate extends \ADM\QuickDevBar\Controller\Index
{
    /**
     * @var \Magento\Config\Model\Resource\Config
     */
Severity: Minor
Found in Controller/Action/ConfigUpdate.php by phpmd

CamelCasePropertyName

Since: 0.2

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

Example

class ClassName {
    protected $property_name;
}

Source

The property $_resultRawFactory is not named in camelCase.
Open

abstract class Index extends \Magento\Backend\App\Action
{

    /**
     * @var \Magento\Framework\View\LayoutFactory
Severity: Minor
Found in Controller/Adminhtml/Index.php by phpmd

CamelCasePropertyName

Since: 0.2

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

Example

class ClassName {
    protected $property_name;
}

Source

The property $_mainTabs is not named in camelCase.
Open

class Wrapper extends Panel
{
    protected $_mainTabs;

    protected $_jsonHelper;
Severity: Minor
Found in Block/Tab/Wrapper.php by phpmd

CamelCasePropertyName

Since: 0.2

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

Example

class ClassName {
    protected $property_name;
}

Source

The property $_tabs is not named in camelCase.
Open

class ConfigSearch extends \ADM\QuickDevBar\Controller\Index
{

    /**
     * Tabs
Severity: Minor
Found in Controller/Action/ConfigSearch.php by phpmd

CamelCasePropertyName

Since: 0.2

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

Example

class ClassName {
    protected $property_name;
}

Source

The property $_qdbHelper is not named in camelCase.
Open

class IsEnabled extends \Magento\Config\Block\System\Config\Form\Field
{
    /**
     * @var \ADM\QuickDevBar\Helper\Data
     */

CamelCasePropertyName

Since: 0.2

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

Example

class ClassName {
    protected $property_name;
}

Source

The property $_mainTabs is not named in camelCase.
Open

class Toolbar extends \Magento\Framework\View\Element\Template
{
    protected $_mainTabs;

    protected $_qdnHelper;
Severity: Minor
Found in Block/Toolbar.php by phpmd

CamelCasePropertyName

Since: 0.2

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

Example

class ClassName {
    protected $property_name;
}

Source

The property $_frontUrl is not named in camelCase.
Open

class Panel extends \Magento\Framework\View\Element\Template
{
    protected $_mainTabs;
    protected $_frontUrl;

Severity: Minor
Found in Block/Tab/Panel.php by phpmd

CamelCasePropertyName

Since: 0.2

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

Example

class ClassName {
    protected $property_name;
}

Source

The property $_qdbHelperRegister is not named in camelCase.
Open

class Response
{
    /**
     *
     * @var \ADM\QuickDevBar\Helper\Register
Severity: Minor
Found in Plugin/Framework/Http/Response.php by phpmd

CamelCasePropertyName

Since: 0.2

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

Example

class ClassName {
    protected $property_name;
}

Source

The property $_mainTabs is not named in camelCase.
Open

class Panel extends \Magento\Framework\View\Element\Template
{
    protected $_mainTabs;
    protected $_frontUrl;

Severity: Minor
Found in Block/Tab/Panel.php by phpmd

CamelCasePropertyName

Since: 0.2

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

Example

class ClassName {
    protected $property_name;
}

Source

The property $_configStructure is not named in camelCase.
Open

class ConfigSearch extends \ADM\QuickDevBar\Controller\Index
{

    /**
     * Tabs
Severity: Minor
Found in Controller/Action/ConfigSearch.php by phpmd

CamelCasePropertyName

Since: 0.2

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

Example

class ClassName {
    protected $property_name;
}

Source

Avoid classes with short names like Db. Configured minimum length is 3.
Open

class Db extends \Zend_Db_Profiler
{
    protected static $_filePath;

    protected $queryBacktrace = [];
Severity: Minor
Found in Profiler/Db.php by phpmd

ShortClassName

Since: 2.9

Detects when classes or interfaces have a very short name.

Example

class Fo {

}

interface Fo {

}

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

Severity
Category
Status
Source
Language