mambax7/adslight

View on GitHub
class/Picture.php

Summary

Maintainability
A
0 mins
Test Coverage

Missing class import via use statement (line '55', column '33').
Open

        $this->permHelper = new \Xmf\Module\Helper\Permission();
Severity: Minor
Found in class/Picture.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 property $date_updated is not named in camelCase.
Open

class Picture extends \XoopsObject
{
    public $cod_img;
    public $title;
    public $date_created;
Severity: Minor
Found in class/Picture.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 $uid_owner is not named in camelCase.
Open

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

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

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

There must be one USE keyword per declaration
Open

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

There are no issues that match your filters.

Category
Status