lib/Ajde/Component/Resource.php
Method requireResource
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
$type,
$action,
$format = 'html',
$base = null,
$position = Ajde_Document_Format_Html::RESOURCE_POSITION_DEFAULT,
Missing class import via use statement (line '48', column '25'). Open
Open
$resource = new Ajde_Resource_Remote($type, $url, $arguments);
- 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 '38', column '25'). Open
Open
$resource = new Ajde_Resource_Public($type, $filename, $arguments);
- 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 '28', column '25'). Open
Open
$resource = new Ajde_Resource_Local($type, $base, $action, $format, $arguments);
- 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 class Ajde_Component_Resource is not named in CamelCase. Open
Open
class Ajde_Component_Resource extends Ajde_Component
{
public static function processStatic(Ajde_Template_Parser $parser, $attributes)
{
$instance = new self($parser, $attributes);
- Read upRead up
- Exclude checks
CamelCaseClassName
Since: 0.2
It is considered best practice to use the CamelCase notation to name classes.
Example
class class_name {
}