lib/Ajde/Shop/Transaction/Provider/Paypal/Creditcard.php
Avoid excessively long class names like Ajde_Shop_Transaction_Provider_Paypal_Creditcard. Keep class name length under 40. Open
Open
class Ajde_Shop_Transaction_Provider_Paypal_Creditcard extends Ajde_Shop_Transaction_Provider_Paypal
{
public function getName()
{
return 'Creditcard';
- 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_Paypal_Creditcard is not named in CamelCase. Open
Open
class Ajde_Shop_Transaction_Provider_Paypal_Creditcard extends Ajde_Shop_Transaction_Provider_Paypal
{
public function getName()
{
return 'Creditcard';
- 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 {
}