Showing 651 of 651 total issues

The parameter $use_sections is not named in camelCase.
Open

    public function load($file = '', $use_sections = false, $fail_gracefully = false, $_module = '')
    {
        if (in_array($file, $this->is_loaded, true)) {
            return $this->item($file);
        }
Severity: Minor
Found in third_party/MX/Config.php by phpmd

CamelCaseParameterName

Since: 0.2

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

Example

class ClassName {
    public function doSomething($user_name) {
    }
}

Source

A file should declare new symbols (classes, functions, constants, etc.) and cause no other side effects, or it should execute logic with side effects, but should not do both. The first symbol is defined on line 38 and the first side effect is on line 1.
Open

<?php defined('BASEPATH') or exit('No direct script access allowed');
Severity: Minor
Found in third_party/MX/Router.php by phpcodesniffer

The parameter $alt_path is not named in camelCase.
Open

    public function load($langfile, $lang = '', $return = false, $add_suffix = true, $alt_path = '', $_module = '')
    {
        if (is_array($langfile)) {
            foreach ($langfile as $_lang) {
                $this->load($_lang);
Severity: Minor
Found in third_party/MX/Lang.php by phpmd

CamelCaseParameterName

Since: 0.2

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

Example

class ClassName {
    public function doSomething($user_name) {
    }
}

Source

A file should declare new symbols (classes, functions, constants, etc.) and cause no other side effects, or it should execute logic with side effects, but should not do both. The first symbol is defined on line 6 and the first side effect is on line 1.
Open

<?php defined('BASEPATH') or exit('No direct script access allowed');
Severity: Minor
Found in core/MY_Loader.php by phpcodesniffer

The parameter $_module is not named in camelCase.
Open

    public function load($file = '', $use_sections = false, $fail_gracefully = false, $_module = '')
    {
        if (in_array($file, $this->is_loaded, true)) {
            return $this->item($file);
        }
Severity: Minor
Found in third_party/MX/Config.php by phpmd

CamelCaseParameterName

Since: 0.2

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

Example

class ClassName {
    public function doSomething($user_name) {
    }
}

Source

The class MX_Lang is not named in CamelCase.
Open

class MX_Lang extends CI_Lang
{
    /**
     * [load description]
     *
Severity: Minor
Found in third_party/MX/Lang.php by phpmd

CamelCaseClassName

Since: 0.2

It is considered best practice to use the CamelCase notation to name classes.

Example

class class_name {
}

Source

The parameter $_module is not named in camelCase.
Open

    public function load($langfile, $lang = '', $return = false, $add_suffix = true, $alt_path = '', $_module = '')
    {
        if (is_array($langfile)) {
            foreach ($langfile as $_lang) {
                $this->load($_lang);
Severity: Minor
Found in third_party/MX/Lang.php by phpmd

CamelCaseParameterName

Since: 0.2

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

Example

class ClassName {
    public function doSomething($user_name) {
    }
}

Source

Avoid classes with short names like CI. Configured minimum length is 3.
Open

class CI extends CI_Controller
{
    public static $APP;

    /**
Severity: Minor
Found in third_party/MX/Base.php by phpmd

ShortClassName

Since: 2.9

Detects when classes or interfaces have a very short name.

Example

class Fo {

}

interface Fo {

}

Source https://phpmd.org/rules/naming.html#shortclassname

Avoid classes with short names like CI. Configured minimum length is 3.
Open

class CI
{
    public static $APP;

    /**
Severity: Minor
Found in third_party/MX/Ci.php by phpmd

ShortClassName

Since: 2.9

Detects when classes or interfaces have a very short name.

Example

class Fo {

}

interface Fo {

}

Source https://phpmd.org/rules/naming.html#shortclassname

The class MX_Config is not named in CamelCase.
Open

class MX_Config extends CI_Config
{
    /**
     * [load description]
     *
Severity: Minor
Found in third_party/MX/Config.php by phpmd

CamelCaseClassName

Since: 0.2

It is considered best practice to use the CamelCase notation to name classes.

Example

class class_name {
}

Source

The property $_ci_plugins is not named in camelCase.
Open

class MX_Loader extends CI_Loader
{
    protected $_module;

    public $_ci_plugins = [];
Severity: Minor
Found in third_party/MX/Loader.php by phpmd

CamelCasePropertyName

Since: 0.2

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

Example

class ClassName {
    protected $property_name;
}

Source

The property $_ci_cached_vars is not named in camelCase.
Open

class MX_Loader extends CI_Loader
{
    protected $_module;

    public $_ci_plugins = [];
Severity: Minor
Found in third_party/MX/Loader.php by phpmd

CamelCasePropertyName

Since: 0.2

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

Example

class ClassName {
    protected $property_name;
}

Source

The class MX_Loader is not named in CamelCase.
Open

class MX_Loader extends CI_Loader
{
    protected $_module;

    public $_ci_plugins = [];
Severity: Minor
Found in third_party/MX/Loader.php by phpmd

CamelCaseClassName

Since: 0.2

It is considered best practice to use the CamelCase notation to name classes.

Example

class class_name {
}

Source

A file should declare new symbols (classes, functions, constants, etc.) and cause no other side effects, or it should execute logic with side effects, but should not do both. The first symbol is defined on line 3 and the first side effect is on line 1.
Open

<?php defined('BASEPATH') or exit('No direct script access allowed');
Severity: Minor
Found in third_party/MX/Modules.php by phpcodesniffer

The parameter $fail_gracefully is not named in camelCase.
Open

    public function load($file = '', $use_sections = false, $fail_gracefully = false, $_module = '')
    {
        if (in_array($file, $this->is_loaded, true)) {
            return $this->item($file);
        }
Severity: Minor
Found in third_party/MX/Config.php by phpmd

CamelCaseParameterName

Since: 0.2

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

Example

class ClassName {
    public function doSomething($user_name) {
    }
}

Source

The parameter $use_sections is not named in camelCase.
Open

    public function config($file, $use_sections = false, $fail_gracefully = false)
    {
        return CI::$APP->config->load($file, $use_sections, $fail_gracefully, $this->_module);
    }
Severity: Minor
Found in third_party/MX/Loader.php by phpmd

CamelCaseParameterName

Since: 0.2

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

Example

class ClassName {
    public function doSomething($user_name) {
    }
}

Source

The parameter $fail_gracefully is not named in camelCase.
Open

    public function config($file, $use_sections = false, $fail_gracefully = false)
    {
        return CI::$APP->config->load($file, $use_sections, $fail_gracefully, $this->_module);
    }
Severity: Minor
Found in third_party/MX/Loader.php by phpmd

CamelCaseParameterName

Since: 0.2

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

Example

class ClassName {
    public function doSomething($user_name) {
    }
}

Source

The class MX_Controller is not named in CamelCase.
Open

class MX_Controller
{
    public $autoload = [];

    /**
Severity: Minor
Found in third_party/MX/Controller.php by phpmd

CamelCaseClassName

Since: 0.2

It is considered best practice to use the CamelCase notation to name classes.

Example

class class_name {
}

Source

The parameter $query_builder is not named in camelCase.
Open

    public function database($params = '', $return = false, $query_builder = null)
    {
        if ($return === false && $query_builder === null &&
            isset(CI::$APP->db) && is_object(CI::$APP->db) && ! empty(CI::$APP->db->conn_id)) {
            return false;
Severity: Minor
Found in third_party/MX/Loader.php by phpmd

CamelCaseParameterName

Since: 0.2

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

Example

class ClassName {
    public function doSomething($user_name) {
    }
}

Source

A file should declare new symbols (classes, functions, constants, etc.) and cause no other side effects, or it should execute logic with side effects, but should not do both. The first symbol is defined on line 6 and the first side effect is on line 1.
Open

<?php defined('BASEPATH') or exit('No direct script access allowed');
Severity: Minor
Found in core/MY_Router.php by phpcodesniffer
Severity
Category
Status
Source
Language