Showing 20,971 of 20,976 total issues

The method _format is not named in camelCase.
Open

    protected function _format($value)
    {
        if (function_exists('money_format')) {
            return money_format('%!i', $value);
        } else {

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

    public static function _urlEncode($string)
    {
        return base64_encode($string);
    }
Severity: Minor
Found in lib/Ajde/Resource.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 _getItemModel is not named in camelCase.
Open

    protected function _getItemModel()
    {
        $cartItemModelName = $this->_cartItemModel;

        return new $cartItemModelName($this);
Severity: Minor
Found in lib/Ajde/Shop/Cart.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 _getCartModel is not named in camelCase.
Open

    protected function _getCartModel()
    {
        $cartModelName = $this->_cartModel;

        return new $cartModelName();
Severity: Minor
Found in lib/Ajde/Shop/Cart/Item.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 function __bootstrap()
    {
        // Session name
        $sessionName = config('app.id').'_session';
        session_name($sessionName);
Severity: Minor
Found in lib/Ajde/Session.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 _getLinkTemplateFilename is not named in camelCase.
Open

    protected function _getLinkTemplateFilename()
    {
        $format = $this->hasFormat() ? $this->getFormat() : null;

        return self::getLinkTemplateFilename($this->getType(), $format);
Severity: Minor
Found in lib/Ajde/Resource.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 _format is not named in camelCase.
Open

    protected function _format($value)
    {
        if (function_exists('money_format')) {
            return money_format('%!i', $value);
        } else {
Severity: Minor
Found in lib/Ajde/Shop/Cart/Item.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 _format is not named in camelCase.
Open

    protected function _format($value)
    {
        return money_format('%!i', $value);
    }
Severity: Minor
Found in lib/Ajde/Shop/Shipping/Method.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()
    {
        self::mergeClientToUser();

        return true;
Severity: Minor
Found in lib/Ajde/Shop/Cart/Merge.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 _urlDecode is not named in camelCase.
Open

    public static function _urlDecode($string)
    {
        return base64_decode($string);
    }
Severity: Minor
Found in lib/Ajde/Resource.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 rest_read is not named in camelCase.
Open

    private function rest_read($rest_resource, $id)
    {
        $id = $id ? urlencode($id) : 'undefined';
        $result = $this->performApiCall(self::REST_READ, "{$rest_resource}/{$id}");

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

    private function rest_list($rest_resource, $offset = 0, $limit = self::DEFAULT_LIMIT)
    {
        $api_path = $rest_resource.'?'.http_build_query(['offset' => $offset, 'count' => $limit]);

        $result = $this->performApiCall(self::REST_LIST, $api_path);

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

    private function _getShippingModel()
    {
        $shippingModelName = $this->_shippingModel;

        return new $shippingModelName($this);
Severity: Minor
Found in lib/Ajde/Shop/Transaction.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 _format is not named in camelCase.
Open

    protected function _format($value)
    {
        return money_format('%!i', $value);
    }
Severity: Minor
Found in lib/Ajde/Shop/Transaction.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 _getProviders is not named in camelCase.
Open

    private static function _getProviders()
    {
        $return = [];
        $providers = config('shop.transaction.providers');
        foreach ($providers as $provider) {
Severity: Minor
Found in lib/Ajde/Shop/Transaction.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 rest_create is not named in camelCase.
Open

    private function rest_create($rest_resource, $body)
    {
        $result = $this->performApiCall(self::REST_CREATE, $rest_resource, $body);

        return $this->copy($result, $this->getResourceObject($rest_resource));

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

    protected function _oauthRequest($url, $params)
    {
        if (!isset($params['access_token'])) {
            $params['access_token'] = $this->getAccessToken();
        }

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

    protected function _restserver($params)
    {
        // generic application level parameters
        $params['api_key'] = $this->getAppId();
        $params['format'] = 'json-strings';

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

    protected function _graph($path, $method = 'GET', $params = [])
    {
        if (is_array($method) && empty($params)) {
            $params = $method;
            $method = 'GET';

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

    protected function _getLocalResource()
    {
        return $this->_getResource('Ajde_Resource_Local');
    }

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