core/Group/Queue/QueueService.php
Showing 12 of 12 total issues
Method put
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
public function put($tube, $data, $priority = null, $delaytime = null, $lifetime = null)
Missing class import via use statement (line '38', column '50'). Open
Open
if (count($this->server) <= 0) throw new \Exception("beanstalkd服务没有启动", 1);
- Read upRead up
- Exclude checks
The method initServer uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them. Open
Open
} else { foreach ($server as $one) { $this->init($one['host'], $one['port']); } }
- Read upRead up
- Exclude checks
Blank line found at start of control structure Open
Open
if(!$this->server[$key]->getConnection()->isServiceListening()) {
- Exclude checks
Inline control structures are not allowed Open
Open
if (count($this->server) <= 0) throw new \Exception("beanstalkd服务没有启动", 1);
- Exclude checks
Whitespace found at end of line Open
Open
{
- Exclude checks
Opening parenthesis of a multi-line function call must be the last content on the line Open
Open
\EventDispatcher::dispatch(QueueEvent::CRASH,
- Exclude checks
Expected 1 space after IF keyword; 0 found Open
Open
if(!$this->server[$key]->getConnection()->isServiceListening()) {
- Exclude checks
Multi-line function call not indented correctly; expected 12 spaces but found 16 Open
Open
);
- Exclude checks
Closing parenthesis of a multi-line function call must be on a line by itself Open
Open
$this->server[$key]->getConnection()->getPort())
- Exclude checks
Opening parenthesis of a multi-line function call must be the last content on the line Open
Open
new QueueEvent($this->server[$key]->getConnection()->getHost(),
- Exclude checks
Whitespace found at end of line Open
Open
{
- Exclude checks