Showing 1,150 of 1,150 total issues
The class Router has a coupling between objects value of 14. Consider to reduce the number of dependencies under 13. Open
Open
Class Router implements RouterContract{ /** * 支持的http方法 *
- Read upRead up
- Exclude checks
The class App has a coupling between objects value of 13. Consider to reduce the number of dependencies under 13. Open
Open
class App{ /** * array instances *
- Read upRead up
- Exclude checks
Method put
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
public function put($tube, $data, $priority = null, $delaytime = null, $lifetime = null)
Method handleError
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
public function handleError($level, $message, $file = '', $line = 0, $context = [])
Function getConnectionLocator
has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring. Open
Open
private function getConnectionLocator() { $config = $this->config; $connections = new ConnectionLocator;
- Read upRead up
Terminating statement must be indented to the same level as the CASE body Open
Open
return $this->getDefault()->query($sql);
- Exclude checks
Visibility must be declared on method "init" Open
Open
abstract function init();
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
Open
{
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
Open
}
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
Open
$this->request = $request;
- Exclude checks
Incorrect spacing between default value and equals sign for argument "$config"; expected 1 but found 0 Open
Open
public function __construct($config =[], $servName)
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
Open
{
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
Open
{
- Exclude checks
Expected 1 blank line at end of file; 3 found Open
Open
}
- 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 for alignment; tabs are not allowed Open
Open
protected $property;
- Exclude checks
Function closing brace must go on the next line following the body; found 1 blank lines before brace Open
Open
}
- Exclude checks
Expected 0 spaces before opening brace; 1 found Open
Open
{
- Exclude checks
Blank line found at end of control structure Open
Open
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
Open
if (isset(self::$store[1][$key])) return self::$store[1][$key];
- Exclude checks