Missing class import via use statement (line '68', column '31'). Open
$this->addElement(new \XoopsFormTextDateSelect(\AM_ADSLIGHT_PICTURES_DATE_CREATED, 'date_created', 0, \formatTimestamp($this->targetObject->getVar('date_created'), 's')));
- 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
Missing class import via use statement (line '70', column '31'). Open
$this->addElement(new \XoopsFormTextDateSelect(\AM_ADSLIGHT_PICTURES_DATE_UPDATED, 'date_updated', 0, \formatTimestamp($this->targetObject->getVar('date_updated'), 's')));
- 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
Missing class import via use statement (line '83', column '31'). Open
$this->addElement(new \XoopsFormTextArea(\AM_ADSLIGHT_PICTURES_URL, 'url', $this->targetObject->getVar('url'), 4, 47), false);
- 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
Missing class import via use statement (line '66', column '31'). Open
$this->addElement(new \XoopsFormText(\AM_ADSLIGHT_PICTURES_TITLE, 'title', 50, 255, $this->targetObject->getVar('title')), false);
- 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
Missing class import via use statement (line '85', column '31'). Open
$this->addElement(new \XoopsFormHidden('op', 'save'));
- 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
Missing class import via use statement (line '77', column '34'). Open
$listing_id_select = new \XoopsFormSelect(\AM_ADSLIGHT_PICTURES_LID, 'lid', $this->targetObject->getVar('lid'));
- 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
Missing class import via use statement (line '81', column '31'). Open
$this->addElement(new \XoopsFormSelectUser(\AM_ADSLIGHT_PICTURES_UID_OWNER, 'uid_owner', false, $this->targetObject->getVar('uid_owner'), 1, false), false);
- 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
Missing class import via use statement (line '59', column '23'). Open
$hidden = new \XoopsFormHidden('cod_img', $this->targetObject->getVar('cod_img'));
- 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
Missing class import via use statement (line '64', column '31'). Open
$this->addElement(new \XoopsFormLabel(\AM_ADSLIGHT_PICTURES_COD_IMG, $this->targetObject->getVar('cod_img'), 'cod_img'));
- 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
Missing class import via use statement (line '86', column '31'). Open
$this->addElement(new \XoopsFormButton('', 'submit', \_SUBMIT, 'submit'));
- 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
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 27. Open
<?php declare(strict_types=1);
- Exclude checks
Line exceeds 120 characters; contains 134 characters Open
$this->addElement(new \XoopsFormTextArea(\AM_ADSLIGHT_PICTURES_URL, 'url', $this->targetObject->getVar('url'), 4, 47), false);
- Exclude checks
Line exceeds 120 characters; contains 138 characters Open
$this->addElement(new \XoopsFormText(\AM_ADSLIGHT_PICTURES_TITLE, 'title', 50, 255, $this->targetObject->getVar('title')), false);
- Exclude checks
Line exceeds 120 characters; contains 164 characters Open
$this->addElement(new \XoopsFormSelectUser(\AM_ADSLIGHT_PICTURES_UID_OWNER, 'uid_owner', false, $this->targetObject->getVar('uid_owner'), 1, false), false);
- Exclude checks
Line exceeds 120 characters; contains 129 characters Open
$this->addElement(new \XoopsFormLabel(\AM_ADSLIGHT_PICTURES_COD_IMG, $this->targetObject->getVar('cod_img'), 'cod_img'));
- Exclude checks
Line exceeds 120 characters; contains 179 characters Open
$this->addElement(new \XoopsFormTextDateSelect(\AM_ADSLIGHT_PICTURES_DATE_CREATED, 'date_created', 0, \formatTimestamp($this->targetObject->getVar('date_created'), 's')));
- Exclude checks
Line exceeds 120 characters; contains 179 characters Open
$this->addElement(new \XoopsFormTextDateSelect(\AM_ADSLIGHT_PICTURES_DATE_UPDATED, 'date_updated', 0, \formatTimestamp($this->targetObject->getVar('date_updated'), 's')));
- Exclude checks
The variable $listing_id_select is not named in camelCase. Open
public function __construct($target)
{
$this->helper = $target->helper;
$this->targetObject = $target;
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $listing_id_select is not named in camelCase. Open
public function __construct($target)
{
$this->helper = $target->helper;
$this->targetObject = $target;
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $listing_id_select is not named in camelCase. Open
public function __construct($target)
{
$this->helper = $target->helper;
$this->targetObject = $target;
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}