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);
}
- Read upRead up
- Exclude checks
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');
- Exclude checks
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);
- Read upRead up
- Exclude checks
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');
- Exclude checks
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);
}
- Read upRead up
- Exclude checks
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]
*
- Read upRead up
- Exclude checks
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);
- Read upRead up
- Exclude checks
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;
/**
- Read upRead up
- Exclude checks
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;
/**
- Read upRead up
- Exclude checks
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]
*
- Read upRead up
- Exclude checks
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 = [];
- Read upRead up
- Exclude checks
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 = [];
- Read upRead up
- Exclude checks
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 = [];
- Read upRead up
- Exclude checks
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');
- Exclude checks
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);
}
- Read upRead up
- Exclude checks
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);
}
- Read upRead up
- Exclude checks
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);
}
- Read upRead up
- Exclude checks
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 = [];
/**
- Read upRead up
- Exclude checks
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;
- Read upRead up
- Exclude checks
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');
- Exclude checks