vpietri/magento2-developer-quickdevbar

View on GitHub

Showing 169 of 169 total issues

The property $_mergeService is not named in camelCase.
Open

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


    protected $_mergeService;
Severity: Minor
Found in Controller/Action/CacheCss.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 $_appConfig is not named in camelCase.
Open

class Config extends \ADM\QuickDevBar\Block\Tab\Panel
{
    protected $_config_values;

    protected $_appConfig;
Severity: Minor
Found in Block/Tab/Content/Config.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 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 $_qdbHelper is not named in camelCase.
Open

class Index extends \Magento\Framework\App\Action\Action
{
    /**
     * @var \ADM\QuickDevBar\Helper\Data
     */
Severity: Minor
Found in Controller/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 $_filePath is not named in camelCase.
Open

class Debug extends \Magento\Framework\App\Helper\AbstractHelper
{
    private static $_filePath;


Severity: Minor
Found in Helper/Debug.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 $_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

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

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

The property $_config_values is not named in camelCase.
Open

class Config extends \ADM\QuickDevBar\Block\Tab\Panel
{
    protected $_config_values;

    protected $_appConfig;
Severity: Minor
Found in Block/Tab/Content/Config.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 $_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 $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

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

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

    public function addDump(string $output, array $bt)
Severity: Minor
Found in Service/Dumper.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 $_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 $_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 $_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 $_hasLoaded is not named in camelCase.
Open

class Translate extends \Magento\Framework\Translate
{
    /**
     * Checks if we have loaded our translation data.
     *
Severity: Minor
Found in Helper/Translate.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 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

Severity
Category
Status
Source
Language