src/utils/AbstractInstance.php
Showing 17 of 17 total issues
The property $_instance is not named in camelCase. Open
Open
abstract class AbstractInstance{ protected static $_instance = null;
- Read upRead up
- Exclude checks
The closing brace for the class must go on the next line after the body Open
Open
}
- Exclude checks
Property name "$_instance" should not be prefixed with an underscore to indicate visibility Open
Open
protected static $_instance = null;
- 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
static::$_instance = new static;
- 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
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
{
- 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 __construct(){}
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
protected function __clone(){}
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
return static::$_instance;
- 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
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 __clone(){}
- Exclude checks