src/Notifier/Exception/EngineLoad.php

Summary

Maintainability
A
0 mins
Test Coverage

Each class must be in a namespace of at least one level (a top-level vendor name)
Open

class Notifier_Exception_EngineLoad extends \Pluf\Exception

The class Notifier_Exception_EngineLoad is not named in CamelCase.
Open

class Notifier_Exception_EngineLoad extends \Pluf\Exception
{

    /**
     *
Severity: Minor
Found in src/Notifier/Exception/EngineLoad.php by phpmd

CamelCaseClassName

Since: 0.2

It is considered best practice to use the CamelCase notation to name classes.

Example

class class_name {
}

Source

Expected 0 spaces before opening parenthesis; 1 found
Open

    public function __construct ($message = "Impossible to load notifier engine.", $previous = null, $link = null, 

Multi-line function declarations must define one parameter per line
Open

    public function __construct ($message = "Impossible to load notifier engine.", $previous = null, $link = null, 

Multi-line function declarations must define one parameter per line
Open

    public function __construct ($message = "Impossible to load notifier engine.", $previous = null, $link = null, 

The closing parenthesis of a multi-line function declaration must be on a new line
Open

            $developerMessage = null)

The first parameter of a multi-line function declaration must be on the line after the opening bracket
Open

    public function __construct ($message = "Impossible to load notifier engine.", $previous = null, $link = null, 

Multi-line function declaration not indented correctly; expected 8 spaces but found 12
Open

            $developerMessage = null)

The closing parenthesis and the opening brace of a multi-line function declaration must be on the same line
Open

    {

Expected "function abc(...)"; found "function abc (...)"
Open

    public function __construct ($message = "Impossible to load notifier engine.", $previous = null, $link = null, 

Only one argument is allowed per line in a multi-line function call
Open

        parent::__construct($message, 4401, $previous, 500, $link, 

Only one argument is allowed per line in a multi-line function call
Open

        parent::__construct($message, 4401, $previous, 500, $link, 

Only one argument is allowed per line in a multi-line function call
Open

        parent::__construct($message, 4401, $previous, 500, $link, 

Only one argument is allowed per line in a multi-line function call
Open

        parent::__construct($message, 4401, $previous, 500, $link, 

Whitespace found at end of line
Open

     * @param string $link            

Whitespace found at end of line
Open

     * @param string $message            

Whitespace found at end of line
Open

     * @param \Pluf\Exception $previous            

Whitespace found at end of line
Open

    public function __construct ($message = "Impossible to load notifier engine.", $previous = null, $link = null, 

Closing parenthesis of a multi-line function call must be on a line by itself
Open

                $developerMessage);

Multi-line function call not indented correctly; expected 8 spaces but found 16
Open

                $developerMessage);

Whitespace found at end of line
Open

 * 

Whitespace found at end of line
Open

     * @param string $developerMessage            

Class name "Notifier_Exception_EngineLoad" is not in camel caps format
Open

class Notifier_Exception_EngineLoad extends \Pluf\Exception

Opening parenthesis of a multi-line function call must be the last content on the line
Open

        parent::__construct($message, 4401, $previous, 500, $link, 

Expected 1 newline at end of file; 0 found
Open

}

Whitespace found at end of line
Open

        parent::__construct($message, 4401, $previous, 500, $link, 

There are no issues that match your filters.

Category
Status