fucongcong/framework

View on GitHub

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

Class Router implements RouterContract
{
/**
* 支持的http方法
*
Severity: Minor
Found in core/Group/Routing/Router.php by phpmd

The class App has a coupling between objects value of 13. Consider to reduce the number of dependencies under 13.
Open

class App
{
/**
* array instances
*
Severity: Minor
Found in core/Group/App/App.php by phpmd

Method put has 5 arguments (exceeds 4 allowed). Consider refactoring.
Open

public function put($tube, $data, $priority = null, $delaytime = null, $lifetime = null)
Severity: Minor
Found in core/Group/Queue/QueueService.php - About 35 mins to fix

    Method handleError has 5 arguments (exceeds 4 allowed). Consider refactoring.
    Open

    public function handleError($level, $message, $file = '', $line = 0, $context = [])
    Severity: Minor
    Found in core/Group/Handlers/ExceptionsHandler.php - About 35 mins to fix

      Function getConnectionLocator has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
      Open

      private function getConnectionLocator()
      {
      $config = $this->config;
      $connections = new ConnectionLocator;
       
       
      Severity: Minor
      Found in core/Group/Dao/Dao.php - About 35 mins to fix

      Terminating statement must be indented to the same level as the CASE body
      Open

      return $this->getDefault()->query($sql);
      Severity: Minor
      Found in core/Group/Dao/Dao.php by phpcodesniffer

      Visibility must be declared on method "init"
      Open

      abstract function init();

      Spaces must be used for alignment; tabs are not allowed
      Open

      {

      Spaces must be used for alignment; tabs are not allowed
      Open

      }

      Spaces must be used for alignment; tabs are not allowed
      Open

      $this->request = $request;

      Incorrect spacing between default value and equals sign for argument "$config"; expected 1 but found 0
      Open

      public function __construct($config =[], $servName)

      Spaces must be used for alignment; tabs are not allowed
      Open

      {
      Severity: Minor
      Found in core/Group/Queue/Bear.php by phpcodesniffer

      Spaces must be used for alignment; tabs are not allowed
      Open

      {

      Expected 1 blank line at end of file; 3 found
      Open

      }
      Severity: Minor
      Found in core/Group/App/helpers.php by phpcodesniffer

      The closing brace for the class must go on the next line after the body
      Open

      }

      Spaces must be used for alignment; tabs are not allowed
      Open

      protected $property;
      Severity: Minor
      Found in core/Group/Events/Event.php by phpcodesniffer

      Function closing brace must go on the next line following the body; found 1 blank lines before brace
      Open

      }

      Expected 0 spaces before opening brace; 1 found
      Open

      {

      Blank line found at end of control structure
      Open

      Spaces must be used for alignment; tabs are not allowed
      Open

      if (isset(self::$store[1][$key])) return self::$store[1][$key];
      Severity
      Category
      Status
      Source
      Language