tests/Codes/Armaments/ProjectileCodeTest.php
Missing class import via use statement (line '15', column '27'). Open
Open
$constants = (new \ReflectionClass($sutClass))->getConstants();
- 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 method It_is_projectile is not named in camelCase. Open
Open
public function It_is_projectile()
{
$sutClass = self::getSutClass();
$constants = (new \ReflectionClass($sutClass))->getConstants();
$value = reset($constants);
- 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() {
}
}
Source
The method I_can_find_out_if_is_dart is not named in camelCase. Open
Open
abstract public function I_can_find_out_if_is_dart();
- 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() {
}
}
Source
The method I_can_find_out_if_is_arrow is not named in camelCase. Open
Open
abstract public function I_can_find_out_if_is_arrow();
- 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() {
}
}
Source
The method I_can_find_out_if_is_sling_stone is not named in camelCase. Open
Open
abstract public function I_can_find_out_if_is_sling_stone();
- 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() {
}
}