mambax7/adslight

View on GitHub
class/Categories.php

Summary

Maintainability
A
0 mins
Test Coverage

Avoid unused private fields such as '$cat_keywords'.
Open

    private $cat_keywords;
Severity: Minor
Found in class/Categories.php by phpmd

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

class Categories extends \XoopsObject
{
    public  $cid;
    public  $pid;
    public  $title;
Severity: Minor
Found in class/Categories.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 $cat_keywords is not named in camelCase.
Open

class Categories extends \XoopsObject
{
    public  $cid;
    public  $pid;
    public  $title;
Severity: Minor
Found in class/Categories.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 $moderate_subcat is not named in camelCase.
Open

class Categories extends \XoopsObject
{
    public  $cid;
    public  $pid;
    public  $title;
Severity: Minor
Found in class/Categories.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 $cat_desc is not named in camelCase.
Open

class Categories extends \XoopsObject
{
    public  $cid;
    public  $pid;
    public  $title;
Severity: Minor
Found in class/Categories.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 $cat_order is not named in camelCase.
Open

class Categories extends \XoopsObject
{
    public  $cid;
    public  $pid;
    public  $title;
Severity: Minor
Found in class/Categories.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

Scope keyword "public" must be followed by a single space
Open

    public  $cat_desc;
Severity: Minor
Found in class/Categories.php by phpcodesniffer

Scope keyword "public" must be followed by a single space
Open

    public  $img;
Severity: Minor
Found in class/Categories.php by phpcodesniffer

Scope keyword "public" must be followed by a single space
Open

    public  $cat_order;
Severity: Minor
Found in class/Categories.php by phpcodesniffer

Scope keyword "public" must be followed by a single space
Open

    public  $moderate_subcat;
Severity: Minor
Found in class/Categories.php by phpcodesniffer

Scope keyword "public" must be followed by a single space
Open

    public  $helper;
Severity: Minor
Found in class/Categories.php by phpcodesniffer

Scope keyword "public" must be followed by a single space
Open

    public  $affprice;
Severity: Minor
Found in class/Categories.php by phpcodesniffer

Scope keyword "public" must be followed by a single space
Open

    public  $cat_moderate;
Severity: Minor
Found in class/Categories.php by phpcodesniffer

Scope keyword "public" must be followed by a single space
Open

    public  $pid;
Severity: Minor
Found in class/Categories.php by phpcodesniffer

There must be one USE keyword per declaration
Open

use XoopsModules\Adslight\{
Severity: Minor
Found in class/Categories.php by phpcodesniffer

Scope keyword "public" must be followed by a single space
Open

    public  $cid;
Severity: Minor
Found in class/Categories.php by phpcodesniffer

Scope keyword "public" must be followed by a single space
Open

    public  $title;
Severity: Minor
Found in class/Categories.php by phpcodesniffer

Scope keyword "public" must be followed by a single space
Open

    public  $permHelper;
Severity: Minor
Found in class/Categories.php by phpcodesniffer

There are no issues that match your filters.

Category
Status