Showing 20,971 of 20,976 total issues

The method XYZ_RGB is not named in camelCase.
Open

    public function XYZ_RGB($o)
    {
        $M = $this->_XYZ_RGB;
        $z = [];

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

    public function xyY_XYZ($o)
    {
        return [
            'X' => ($o['x'] * $o['Y']) / $o['y'],
            'Y' => $o['Y'],

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

    protected function _needsCdata($str)
    {
        return $this->_isXhtml && preg_match('/(?:[<&]|\\-\\-|\\]\\]>)/', $str);
    }

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

    protected function _removePreCB($m)
    {
        return $this->_reservePlace("<pre{$m[1]}");
    }

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

    private static function _mimetypes()
    {
        return include 'mimetypes.php';
    }
Severity: Minor
Found in lib/Ajde/Fs/File.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 _isWhitelisted is not named in camelCase.
Open

    private static function _isWhitelisted()
    {
        $route = issetor($_GET['_route'], false);
        foreach (config('security.csrf.postWhitelistRoutes') as $whitelist) {
            if (stripos($route, $whitelist) === 0) {
Severity: Minor
Found in lib/Ajde/Http/Request.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 _ is not named in camelCase.
Open

    public static function _($ident, $module = null)
    {
        return self::getInstance()->get($ident, $module);
    }
Severity: Minor
Found in lib/Ajde/Lang/Adapter/Abstract.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 _commentCB is not named in camelCase.
Open

    protected function _commentCB($m)
    {
        return (0 === strpos($m[1], '[') || false !== strpos($m[1], '<!['))
            ? $m[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 _getTokenDictionary is not named in camelCase.
Open

    private static function _getTokenDictionary(&$session = null)
    {
        if (!isset($session)) {
            $session = new Ajde_Session('AC.Form');
        }
Severity: Minor
Found in lib/Ajde/Http/Request.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 _ is not named in camelCase.
Open

    abstract public static function _(
        $message,
        $channel = self::CHANNEL_INFO,
        $level = self::LEVEL_INFORMATIONAL,
        $description = '',
Severity: Minor
Found in lib/Ajde/Log/Writer/Abstract.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 _ is not named in camelCase.
Open

    public static function _(
        $message,
        $channel = Ajde_Log::CHANNEL_INFO,
        $level = Ajde_Log::LEVEL_INFORMATIONAL,
        $description = '',
Severity: Minor
Found in lib/Ajde/Log/Writer/Php.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 _ is not named in camelCase.
Open

    public static function _(
        $message,
        $channel = Ajde_Log::CHANNEL_INFO,
        $level = Ajde_Log::LEVEL_INFORMATIONAL,
        $description = '',
Severity: Minor
Found in lib/Ajde/Log/Writer/File.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 _getSoundcloudUrl is not named in camelCase.
Open

    private function _getSoundcloudUrl()
    {
        if (substr($this->_code, 0, 7) == 'http://' || substr($this->_code, 0, 8) == 'https://') {
            $apiUrl = 'http://api.soundcloud.com/resolve.json?url='.urlencode($this->_code).'&client_id='.$this->_key();
            $hash = json_decode(Ajde_Http_Curl::get($apiUrl));
Severity: Minor
Found in lib/Ajde/Embed/Soundcloud.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 _removeStyleCB is not named in camelCase.
Open

    protected function _removeStyleCB($m)
    {
        $openStyle = "<style{$m[1]}";
        $css = $m[2];
        // remove HTML comments

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

    private function _getYoutubeId()
    {
        if (substr($this->_code, 0, 15) == 'http://youtu.be') {
            return substr($this->_code, 16, 11);
        } else {
Severity: Minor
Found in lib/Ajde/Embed/Youtube.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 _ is not named in camelCase.
Open

    public static function _(
        $message,
        $channel = Ajde_Log::CHANNEL_INFO,
        $level = Ajde_Log::LEVEL_INFORMATIONAL,
        $description = '',
Severity: Minor
Found in lib/Ajde/Log/Writer/Db.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 _tokenHash is not named in camelCase.
Open

    private static function _tokenHash($token)
    {
        return md5($token.$_SERVER['REMOTE_ADDR'].$_SERVER['HTTP_USER_AGENT'].config('security.secret'));
    }
Severity: Minor
Found in lib/Ajde/Http/Request.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 _getHashFromSession is not named in camelCase.
Open

    private static function _getHashFromSession($token)
    {
        $tokenDictionary = self::_getTokenDictionary();

        return issetor($tokenDictionary[$token], '');
Severity: Minor
Found in lib/Ajde/Http/Request.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 _load is not named in camelCase.
Open

    protected function _load($sql, $values, $populate = true)
    {
        $return = parent::_load($sql, $values, $populate);
        if (Ajde_Lang::getInstance()->autoTranslateModels() && $return) {
            // get translation
Severity: Minor
Found in lib/Ajde/Lang/Proxy/Model.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 _loadTranslationData is not named in camelCase.
Open

    public function _loadTranslationData($filename, $locale, array $options = [])
    {
        $this->_data = [];
        $this->_bigEndian = false;
        $this->_file = @fopen($filename, 'rb');
Severity: Minor
Found in lib/Ajde/Lang/Adapter/Gettext.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