vpietri/magento2-developer-quickdevbar

View on GitHub

Showing 185 of 185 total issues

The method _getRelativeFilePath is not named in camelCase.
Open

    protected function _getRelativeFilePath($absolutePath)
    {
        return str_replace($this->directoryList->getRoot() . DIRECTORY_SEPARATOR, '', $absolutePath);
    }
Severity: Minor
Found in Helper/Translate.php by phpmd

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 _toHtml is not named in camelCase.
Open

    protected function _toHtml()
    {
        try {
            $buffer = parent::_toHtml();
            return $this->sanitizeOutput($buffer);
Severity: Minor
Found in Block/Tab/Panel.php by phpmd

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 _loadDbTranslation is not named in camelCase.
Open

    protected function _loadDbTranslation()
    {
        $this->_data['db'] = $this->_translateResource->getTranslationArray(null, $this->getLocale());
        return $this;
    }
Severity: Minor
Found in Helper/Translate.php by phpmd

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 _loadPackTranslation is not named in camelCase.
Open

    protected function _loadPackTranslation()
    {
        $this->_data['pack'] = $this->packDictionary->getDictionary($this->getLocale());
        return $this;
    }
Severity: Minor
Found in Helper/Translate.php by phpmd

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 _toHtml is not named in camelCase.
Open

    protected function _toHtml()
    {
        return $this->showPhpInfo();
    }
Severity: Minor
Found in Block/Tab/Content/PhpInfo.php by phpmd

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 _isAllowed is not named in camelCase.
Open

    protected function _isAllowed()
    {
        return $this->_qdbHelper->isToolbarAccessAllowed();
    }
Severity: Minor
Found in Controller/Index.php by phpmd

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 _getElementHtml is not named in camelCase.
Open

    protected function _getElementHtml(AbstractElement $element)
    {
        $html = [];
        if ($this->_qdbHelper->isToolbarAccessAllowed(true)) {
            $html[] = __('Yep');

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 _buildFlatConfig is not named in camelCase.
Open

    protected function _buildFlatConfig($scope, $path = '')
    {
        $flatConfig = [];
        if (is_array($scope)) {
            foreach ($scope as $scopeKey => $scopeValue) {
Severity: Minor
Found in Block/Tab/Content/Config.php by phpmd

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 _loadThemeTranslation is not named in camelCase.
Open

    protected function _loadThemeTranslation()
    {
        $file = $this->_getThemeTranslationFile($this->getLocale());
        if ($file) {
            $relativePath = $this->_getRelativeFilePath($file);
Severity: Minor
Found in Helper/Translate.php by phpmd

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

TODO found
Open

        //TODO: Show $response = $observer->getResponse();

TODO found
Open

                //TODO: unlink only files starting with 'qdb_register_' . $sessionId
Severity: Minor
Found in Helper/Data.php by fixme

TODO found
Open

//TODO: Add view cache

TODO found
Open

//                //TODO: unlink only files starting with 'qdb_register_' . $sessionId
Severity: Minor
Found in Helper/Data.php by fixme

TODO found
Open

        //TODO: save Register Data to use Ajax
Severity: Minor
Found in Helper/Data.php by fixme

TODO found
Open

//TODO: Add all cache type

TODO found
Open

       //TODO: Show $response->getHeaders()

TODO found
Open

        // TODO: Implement pullData() method.
Severity: Minor
Found in Service/Elasticsearch.php by fixme

TODO found
Open

    TODO: remplacer par un plugin afterSend
Severity: Minor
Found in etc/events.xml by fixme

TODO found
Open

            //TODO: remove foreach
Severity: Minor
Found in Helper/Data.php by fixme

TODO found
Open

     * TODO: To removed
Severity: Minor
Found in Helper/Data.php by fixme
Severity
Category
Status
Source
Language