lib/Ajde/Shop/Transaction/Provider/Mollie/Ideal.php
Avoid excessively long class names like Ajde_Shop_Transaction_Provider_Mollie_Ideal. Keep class name length under 40. Open
Open
class Ajde_Shop_Transaction_Provider_Mollie_Ideal extends Ajde_Shop_Transaction_Provider_Mollie
{
public function getName()
{
return 'iDeal';
- Read upRead up
- Exclude checks
LongClassName
Since: 2.9
Detects when classes or interfaces are declared with excessively long names.
Example
class ATooLongClassNameThatHintsAtADesignProblem {
}
interface ATooLongInterfaceNameThatHintsAtADesignProblem {
}
Source https://phpmd.org/rules/naming.html#longclassname
The class Ajde_Shop_Transaction_Provider_Mollie_Ideal is not named in CamelCase. Open
Open
class Ajde_Shop_Transaction_Provider_Mollie_Ideal extends Ajde_Shop_Transaction_Provider_Mollie
{
public function getName()
{
return 'iDeal';
- 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 {
}