lib/Ajde/Component/Markdown.php
Missing class import via use statement (line '31', column '19'). Open
Open
throw new Ajde_Component_Exception('Missing required attributes for component call');
- 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
TODO found Open
Open
// TODO:
- Exclude checks
The class Ajde_Component_Markdown is not named in CamelCase. Open
Open
class Ajde_Component_Markdown 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 {
}
Source
The method _init is not named in camelCase. Open
Open
protected function _init()
{
return [
'text' => 'toHtml',
];
- Read upRead up
- Exclude checks
CamelCaseMethodName
Since: 0.2
It is considered best practice to use the camelCase notation to name methods.
Example
class ClassName {
public function get_name() {
}
}