Showing 20,971 of 20,976 total issues

The method _doHardBreaks_callback is not named in camelCase.
Open

    public function _doHardBreaks_callback($matches)
    {
        return $this->hashPart("<br$this->empty_element_suffix\n");
    }

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

    protected function _init()
    {
        return [
            'escape' => 'escape',
            'clean'  => 'clean',
Severity: Minor
Found in lib/Ajde/Component/String.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 _processGranularity is not named in camelCase.
Open

    private function _processGranularity($from_segment, $to_segment)
    {
        $delimiters = $this->granularityStack[$this->stackpointer++];
        $has_next_stage = $this->stackpointer < count($this->granularityStack);
        foreach (self::doFragmentDiff($from_segment, $to_segment, $delimiters) as $fragment_edit) {
Severity: Minor
Found in lib/Ajde/Component/lib/finediff.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 _doCodeBlocks_callback is not named in camelCase.
Open

    public function _doCodeBlocks_callback($matches)
    {
        $codeblock = $matches[1];

        $codeblock = $this->outdent($codeblock);

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

    protected function _getHtmlAttributes()
    {
        $attributes = [];
        $attributes['type'] = 'text';
        $attributes['value'] = Ajde_Component_String::escape($this->getValue());
Severity: Minor
Found in lib/Ajde/Crud/Field/Text.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 php_syntax_error is not named in camelCase.
Open

    public static function php_syntax_error($code)
    {
        $braces = 0;
        $inString = 0;
        foreach (token_get_all('<?php '.$code) as $token) {

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

    protected function _getInputTemplate()
    {
        return $this->_getTemplate('field/'.$this->_type);
    }
Severity: Minor
Found in lib/Ajde/Crud/Field.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 _getTemplate is not named in camelCase.
Open

    protected function _getTemplate($action)
    {
        $template = null;
        if (Ajde_Template::exist(MODULE_DIR.'_core/', 'crud/'.$action) !== false) {
            $template = new Ajde_Template(MODULE_DIR.'_core/', 'crud/'.$action);
Severity: Minor
Found in lib/Ajde/Crud/Field.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 _doHeaders_callback_setext is not named in camelCase.
Open

    public function _doHeaders_callback_setext($matches)
    {
        // Terrible hack to check we haven't found an empty list item.
        if ($matches[2] == '-' && preg_match('{^-(?: |$)}', $matches[1])) {
            return $matches[0];

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

    public function _doLists_callback($matches)
    {
        // Re-usable patterns to match list item bullets and number markers:
        $marker_ul_re = '[*+-]';
        $marker_ol_re = '\d+[\.]';

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

    protected function _init()
    {
        return [
            'text' => 'html',
        ];
Severity: Minor
Found in lib/Ajde/Component/Qrcode.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 __bootstrap is not named in camelCase.
Open

    public static function __bootstrap()
    {
        if (($user = Ajde_User::getLoggedIn()) && $user->getDebug()) {
            Config::set('app.debug', true);

Severity: Minor
Found in lib/Ajde/Core/Autodebug.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 _getHtmlAttributes is not named in camelCase.
Open

    protected function _getHtmlAttributes()
    {
        $attributes = [];
        $attributes['type'] = 'hidden';
        $attributes['value'] = Ajde_Component_String::escape($this->getValue());
Severity: Minor
Found in lib/Ajde/Crud/Field/Timespan.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 _unhash_callback is not named in camelCase.
Open

    public function _unhash_callback($matches)
    {
        return $this->html_hashes[$matches[0]];
    }

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

    public function __fallback($method, $arguments)
    {
        if (Ajde_Event::has('Ajde_Controller', 'call')) {
            return Ajde_Event::trigger('Ajde_Controller', 'call', [$method, $arguments]);
        }
Severity: Minor
Found in lib/Ajde/Controller.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 _select is not named in camelCase.
Open

    protected function _select($name, $key = null)
    {
        $key = isset($key) ? $key : $name;
        // Get new active object
        $className = get_class($this).'_'.ucfirst($name);
Severity: Minor
Found in lib/Ajde/Crud/Options.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 _attributeParse is not named in camelCase.
Open

    protected function _attributeParse()
    {
        foreach ($this->_parseRules as $attributeSet => $rule) {
            if (array_key_exists($attributeSet, $this->attributes)) {
                return $rule;
Severity: Minor
Found in lib/Ajde/Component.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 _setcookie is not named in camelCase.
Open

    protected function _setcookie($value, $lifetime)
    {
        $path = config('app.path');
        $domain = config('security.cookie.domain');
        $secure = config('security.cookie.secure');
Severity: Minor
Found in lib/Ajde/Cookie.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 _getCustomTemplateBase is not named in camelCase.
Open

    protected function _getCustomTemplateBase()
    {
        return MODULE_DIR.$this->_crud->getCustomTemplateModule().'/';
    }
Severity: Minor
Found in lib/Ajde/Crud/Field.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 _getHtmlAttributes is not named in camelCase.
Open

    protected function _getHtmlAttributes()
    {
        $attributes = [];
        $attributes['type'] = 'time';
        if ($this->getValue()) {
Severity: Minor
Found in lib/Ajde/Crud/Field/Time.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

Severity
Category
Status
Source
Language