src/utils/AbstractInstance.php
The property $_instance is not named in camelCase. Open
Open
abstract class AbstractInstance
{
protected static $_instance = null;
- Read upRead up
- Exclude checks
CamelCasePropertyName
Since: 0.2
It is considered best practice to use the camelCase notation to name attributes.
Example
class ClassName {
protected $property_name;
}
Source
Property name "$_instance" should not be prefixed with an underscore to indicate visibility Open
Open
protected static $_instance = null;
- Exclude checks
The closing brace for the class must go on the next line after the body Open
Open
}
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
public static function instance()
- 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
protected static $_instance = null;
- 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
if (is_null(static::$_instance)) {
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
protected function __construct(){}
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
return static::$_instance;
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
static::$_instance = new static;
- 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
protected function __clone(){}
- Exclude checks
Opening brace should be on a new line Open
Open
protected function __clone(){}
- Exclude checks
Closing brace must be on a line by itself Open
Open
protected function __clone(){}
- Exclude checks
Opening brace should be on a new line Open
Open
protected function __construct(){}
- Exclude checks
Closing brace must be on a line by itself Open
Open
protected function __construct(){}
- Exclude checks