class/Picture.php
Missing class import via use statement (line '55', column '33'). Open
Open
$this->permHelper = new \Xmf\Module\Helper\Permission();
- Read upRead up
- Exclude checks
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
Open
class Picture extends \XoopsObject
{
public $cod_img;
public $title;
public $date_created;
- 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 $uid_owner is not named in camelCase. Open
Open
class Picture extends \XoopsObject
{
public $cod_img;
public $title;
public $date_created;
- 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 $cod_img is not named in camelCase. Open
Open
class Picture extends \XoopsObject
{
public $cod_img;
public $title;
public $date_created;
- 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 $date_created is not named in camelCase. Open
Open
class Picture extends \XoopsObject
{
public $cod_img;
public $title;
public $date_created;
- 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
There must be one USE keyword per declaration Open
Open
use XoopsModules\Adslight\{
- Exclude checks