modules/OSSMailScanner/scanneractions/BindSSalesProcesses.php
Avoid excessively long class names like OSSMailScanner_BindSSalesProcesses_ScannerAction. Keep class name length under 40. Open
Open
class OSSMailScanner_BindSSalesProcesses_ScannerAction extends OSSMailScanner_PrefixScannerAction_Model
{
public $moduleName = 'SSalesProcesses';
public $tableName = 'u_yf_ssalesprocesses';
public $tableColumn = 'ssalesprocesses_no';
- 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
Each class must be in a namespace of at least one level (a top-level vendor name) Open
Open
class OSSMailScanner_BindSSalesProcesses_ScannerAction extends OSSMailScanner_PrefixScannerAction_Model
- Exclude checks
The class OSSMailScanner_BindSSalesProcesses_ScannerAction is not named in CamelCase. Open
Open
class OSSMailScanner_BindSSalesProcesses_ScannerAction extends OSSMailScanner_PrefixScannerAction_Model
{
public $moduleName = 'SSalesProcesses';
public $tableName = 'u_yf_ssalesprocesses';
public $tableColumn = 'ssalesprocesses_no';
- 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
Spaces must be used to indent lines; tabs are not allowed Open
Open
{
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
public function process(OSSMail_Mail_Model $mail)
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
public $moduleName = 'SSalesProcesses';
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
$this->mail = $mail;
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
return parent::findAndBind();
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
public $tableColumn = 'ssalesprocesses_no';
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
}
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
public $tableName = 'u_yf_ssalesprocesses';
- Exclude checks
Class name "OSSMailScanner_BindSSalesProcesses_ScannerAction" is not in camel caps format Open
Open
class OSSMailScanner_BindSSalesProcesses_ScannerAction extends OSSMailScanner_PrefixScannerAction_Model
- Exclude checks