core/MY_Router.php

Summary

Maintainability
A
0 mins
Test Coverage

Reference to undeclared constant \APPPATH
Open

require APPPATH.'third_party/MX/Router.php';
Severity: Minor
Found in core/MY_Router.php by phan

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

class MY_Router extends MX_Router
Severity: Minor
Found in core/MY_Router.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 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

The class MY_Router is not named in CamelCase.
Open

class MY_Router extends MX_Router
{
}
Severity: Minor
Found in core/MY_Router.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

Class name "MY_Router" is not in camel caps format
Open

class MY_Router extends MX_Router
Severity: Minor
Found in core/MY_Router.php by phpcodesniffer

There are no issues that match your filters.

Category
Status