class/Categories.php
Avoid unused private fields such as '$cat_keywords'. Open
Open
private $cat_keywords;
- Read upRead up
- Exclude checks
UnusedPrivateField
Since: 0.2
Detects when a private field is declared and/or assigned a value, but not used.
Example
class Something
{
private static $FOO = 2; // Unused
private $i = 5; // Unused
private $j = 6;
public function addOne()
{
return $this->j++;
}
}
Source https://phpmd.org/rules/unusedcode.html#unusedprivatefield
The property $cat_moderate is not named in camelCase. Open
Open
class Categories extends \XoopsObject
{
public $cid;
public $pid;
public $title;
- 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 $cat_keywords is not named in camelCase. Open
Open
class Categories extends \XoopsObject
{
public $cid;
public $pid;
public $title;
- 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 $moderate_subcat is not named in camelCase. Open
Open
class Categories extends \XoopsObject
{
public $cid;
public $pid;
public $title;
- 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 $cat_desc is not named in camelCase. Open
Open
class Categories extends \XoopsObject
{
public $cid;
public $pid;
public $title;
- 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 $cat_order is not named in camelCase. Open
Open
class Categories extends \XoopsObject
{
public $cid;
public $pid;
public $title;
- 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
Scope keyword "public" must be followed by a single space Open
Open
public $cat_desc;
- Exclude checks
Scope keyword "public" must be followed by a single space Open
Open
public $img;
- Exclude checks
Scope keyword "public" must be followed by a single space Open
Open
public $cat_order;
- Exclude checks
Scope keyword "public" must be followed by a single space Open
Open
public $moderate_subcat;
- Exclude checks
Scope keyword "public" must be followed by a single space Open
Open
public $helper;
- Exclude checks
Scope keyword "public" must be followed by a single space Open
Open
public $affprice;
- Exclude checks
Scope keyword "public" must be followed by a single space Open
Open
public $cat_moderate;
- Exclude checks
Scope keyword "public" must be followed by a single space Open
Open
public $pid;
- Exclude checks
There must be one USE keyword per declaration Open
Open
use XoopsModules\Adslight\{
- Exclude checks
Scope keyword "public" must be followed by a single space Open
Open
public $cid;
- Exclude checks
Scope keyword "public" must be followed by a single space Open
Open
public $title;
- Exclude checks
Scope keyword "public" must be followed by a single space Open
Open
public $permHelper;
- Exclude checks