third_party/MX/Base.php

Summary

Maintainability
A
0 mins
Test Coverage

Missing class import via use statement (line '59', column '25').
Open

            $LANG = new MX_Lang;
Severity: Minor
Found in third_party/MX/Base.php by phpmd

MissingImport

Since: 2.7.0

Importing all external classes in a file through use statements makes them clearly visible.

Example

function make() {
    return new \stdClass();
}

Source http://phpmd.org/rules/cleancode.html#MissingImport

Missing class import via use statement (line '62', column '24').
Open

            $CFG = new MX_Config;
Severity: Minor
Found in third_party/MX/Base.php by phpmd

MissingImport

Since: 2.7.0

Importing all external classes in a file through use statements makes them clearly visible.

Example

function make() {
    return new \stdClass();
}

Source http://phpmd.org/rules/cleancode.html#MissingImport

The phpdoc comment for @method cannot occur on a method
Open

     * @method __construct
Severity: Info
Found in third_party/MX/Base.php by phan

Saw unextractable annotation for comment '* @method __construct'
Open

     * @method __construct
Severity: Info
Found in third_party/MX/Base.php by phan

Reference to undeclared class \CI_Controller (Did you mean class \MX_Controller)
Open

        parent::__construct();
Severity: Critical
Found in third_party/MX/Base.php by phan

Class extends undeclared class \CI_Controller (Did you mean class \MX_Controller)
Open

class CI extends CI_Controller
Severity: Critical
Found in third_party/MX/Base.php by phan

Each class must be in a namespace of at least one level (a top-level vendor name)
Open

class CI extends CI_Controller
Severity: Minor
Found in third_party/MX/Base.php by phpcodesniffer

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 40 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/Base.php by phpcodesniffer

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

The variable $CFG is not named in camelCase.
Open

    public function __construct()
    {

        // assign the application instance
        self::$APP = $this;
Severity: Minor
Found in third_party/MX/Base.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 $LANG is not named in camelCase.
Open

    public function __construct()
    {

        // assign the application instance
        self::$APP = $this;
Severity: Minor
Found in third_party/MX/Base.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 $LANG is not named in camelCase.
Open

    public function __construct()
    {

        // assign the application instance
        self::$APP = $this;
Severity: Minor
Found in third_party/MX/Base.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 $CFG is not named in camelCase.
Open

    public function __construct()
    {

        // assign the application instance
        self::$APP = $this;
Severity: Minor
Found in third_party/MX/Base.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 $LANG is not named in camelCase.
Open

    public function __construct()
    {

        // assign the application instance
        self::$APP = $this;
Severity: Minor
Found in third_party/MX/Base.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 $CFG is not named in camelCase.
Open

    public function __construct()
    {

        // assign the application instance
        self::$APP = $this;
Severity: Minor
Found in third_party/MX/Base.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

There are no issues that match your filters.

Category
Status