Showing 20,971 of 20,976 total issues

The variable $full_salt is not named in camelCase.
Open

    public function verifyHash($password)
    {
        $hash = $this->get($this->passwordField);
        if (empty($hash)) {
            return false;
Severity: Minor
Found in lib/Ajde/User.php by phpmd

CamelCaseVariableName

Since: 0.2

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

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $header_content is not named in camelCase.
Open

    public static function split_header($header, $only_allow_oauth_parameters = true)
    {
        $pattern = '/(([-_a-z]*)=("([^"]*)"|([^,]*)),?)/';
        $offset = 0;
        $params = [];

CamelCaseVariableName

Since: 0.2

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

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $full_salt is not named in camelCase.
Open

    public function verifyHash($password)
    {
        $hash = $this->get($this->passwordField);
        if (empty($hash)) {
            return false;
Severity: Minor
Found in lib/Ajde/User.php by phpmd

CamelCaseVariableName

Since: 0.2

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

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $_parentAclCache is not named in camelCase.
Open

    public function validateParent($uid, $gid)
    {
        $rootId = $this->getRoot(false);
        if (isset(self::$_parentAclCache[$rootId])) {
            $users = self::$_parentAclCache[$rootId];
Severity: Minor
Found in core/modules/node/model/NodeModel.php by phpmd

CamelCaseVariableName

Since: 0.2

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

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $oauth_token is not named in camelCase.
Open

    public function __construct($consumer_key, $consumer_secret, $oauth_token = null, $oauth_token_secret = null)
    {
        $this->sha1_method = new OAuthSignatureMethod_HMAC_SHA1();
        $this->consumer = new OAuthConsumer($consumer_key, $consumer_secret);
        if (!empty($oauth_token) && !empty($oauth_token_secret)) {

CamelCaseVariableName

Since: 0.2

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

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $sign_in_with_twitter is not named in camelCase.
Open

    public function getAuthorizeURL($token, $sign_in_with_twitter = true)
    {
        if (is_array($token)) {
            $token = $token['oauth_token'];
        }

CamelCaseVariableName

Since: 0.2

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

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $oauth_verifier is not named in camelCase.
Open

    public function getAccessToken($oauth_verifier)
    {
        $parameters = [];
        $parameters['oauth_verifier'] = $oauth_verifier;
        $request = $this->oAuthRequest($this->accessTokenURL(), 'GET', $parameters);

CamelCaseVariableName

Since: 0.2

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

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $request_token is not named in camelCase.
Open

    public function getAuthenticationURL($returnto = '')
    {
        $connection = $this->getProvider();

        /* Get temporary credentials. */
Severity: Minor
Found in lib/Ajde/User/Sso/Twitter.php by phpmd

CamelCaseVariableName

Since: 0.2

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

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $entity_id is not named in camelCase.
Open

    public function addJson()
    {
        $cart = new CartModel();
        $cart->loadCurrent();

CamelCaseVariableName

Since: 0.2

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

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $_parentAclCache is not named in camelCase.
Open

    public function validateParent($uid, $gid)
    {
        $rootId = $this->getRoot(false);
        if (isset(self::$_parentAclCache[$rootId])) {
            $users = self::$_parentAclCache[$rootId];
Severity: Minor
Found in core/modules/node/model/NodeModel.php by phpmd

CamelCaseVariableName

Since: 0.2

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

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $entity_id is not named in camelCase.
Open

    public function addJson()
    {
        $cart = new CartModel();
        $cart->loadCurrent();

CamelCaseVariableName

Since: 0.2

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

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $_parentAclCache is not named in camelCase.
Open

    public function validateParent($uid, $gid)
    {
        $rootId = $this->getRoot(false);
        if (isset(self::$_parentAclCache[$rootId])) {
            $users = self::$_parentAclCache[$rootId];
Severity: Minor
Found in core/modules/node/model/NodeModel.php by phpmd

CamelCaseVariableName

Since: 0.2

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

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $eu_countries is not named in camelCase.
Open

    public static function isEUCountry($country)
    {
        $eu_countries = [
            'albania',
            'andorra',

CamelCaseVariableName

Since: 0.2

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

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $eu_countries is not named in camelCase.
Open

    public static function isEUCountry($country)
    {
        $eu_countries = [
            'albania',
            'andorra',

CamelCaseVariableName

Since: 0.2

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

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $tmp_path is not named in camelCase.
Open

    private function saveFileFromWeb($fieldName)
    {
        if ($this->has($fieldName) &&
            (substr(strtolower($this->get($fieldName)), 0, 7) === 'http://' ||
                substr(strtolower($this->get($fieldName)), 0, 8) === 'https://')
Severity: Minor
Found in core/modules/user/model/UserModel.php by phpmd

CamelCaseVariableName

Since: 0.2

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

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $tmp_path is not named in camelCase.
Open

    private function saveFileFromWeb($fieldName)
    {
        if ($this->has($fieldName) &&
            (substr(strtolower($this->get($fieldName)), 0, 7) === 'http://' ||
                substr(strtolower($this->get($fieldName)), 0, 8) === 'https://')
Severity: Minor
Found in core/modules/user/model/UserModel.php by phpmd

CamelCaseVariableName

Since: 0.2

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

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $tmp_path is not named in camelCase.
Open

    private function saveFileFromWeb($fieldName)
    {
        if ($this->has($fieldName) &&
            (substr(strtolower($this->get($fieldName)), 0, 7) === 'http://' ||
                substr(strtolower($this->get($fieldName)), 0, 8) === 'https://')
Severity: Minor
Found in core/modules/user/model/UserModel.php by phpmd

CamelCaseVariableName

Since: 0.2

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

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $tmp_path is not named in camelCase.
Open

    private function saveFileFromWeb($fieldName)
    {
        if ($this->has($fieldName) &&
            (substr(strtolower($this->get($fieldName)), 0, 7) === 'http://' ||
                substr(strtolower($this->get($fieldName)), 0, 8) === 'https://')
Severity: Minor
Found in core/modules/user/model/UserModel.php by phpmd

CamelCaseVariableName

Since: 0.2

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

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

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

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