src/Notifier/Engine/NoNotify.php
Avoid unused parameters such as '$notification'. Open
Open
public function send($notification)
- Read upRead up
- Exclude checks
UnusedFormalParameter
Since: 0.2
Avoid passing parameters to methods or constructors and then not using those parameters.
Example
class Foo
{
private function bar($howdy)
{
// $howdy is not used
}
}
Source https://phpmd.org/rules/unusedcode.html#unusedformalparameter
Each class must be in a namespace of at least one level (a top-level vendor name) Open
Open
class Notifier_Engine_NoNotify extends Notifier_Engine
- Exclude checks
The class Notifier_Engine_NoNotify is not named in CamelCase. Open
Open
class Notifier_Engine_NoNotify extends Notifier_Engine
{
/*
*
- 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
Class name "Notifier_Engine_NoNotify" is not in camel caps format Open
Open
class Notifier_Engine_NoNotify extends Notifier_Engine
- Exclude checks
Whitespace found at end of line Open
Open
*
- Exclude checks