fucongcong/framework

View on GitHub
core/Group/Async/Handler/WorkHandler.php

Summary

Maintainability
A
45 mins
Test Coverage

Showing 8 of 8 total issues

Method __construct has 6 arguments (exceeds 4 allowed). Consider refactoring.
Open

public function __construct($serv, $fd, $fromId, $data, $cmd, $table)
Severity: Minor
Found in core/Group/Async/Handler/WorkHandler.php - About 45 mins to fix

    Avoid variables with short names like $fd. Configured minimum length is 3.
    Open

    protected $fd;

    Avoid variables with short names like $fd. Configured minimum length is 3.
    Open

    public function __construct($serv, $fd, $fromId, $data, $cmd, $table)

    Expected 0 spaces before opening brace; 1 found
    Open

    {

    Opening class brace must be on a line by itself
    Open

    {

    Whitespace found at end of line
    Open

    {

    Whitespace found at end of line
    Open

    abstract class WorkHandler

    Whitespace found at end of line
    Open

    {
    Category
    Status