fucongcong/framework

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

Summary

Maintainability
A
0 mins
Test Coverage

Showing 6 of 6 total issues

The method run() contains an exit expression.
Open

die($this->help);
Severity: Minor
Found in core/Group/Async/Async.php by phpmd

Avoid unused local variables such as '$server'.
Open

$server = new Server($config[$argv[1]], $argv[1]);
Severity: Minor
Found in core/Group/Async/Async.php by phpmd

The method checkArgv() contains an exit expression.
Open

die;
Severity: Minor
Found in core/Group/Async/Async.php by phpmd

Line exceeds 120 characters; contains 134 characters
Open

$log = isset($config[$argv[1]]['config']['log_file']) ? $config[$argv[1]]['config']['log_file'] : 'runtime/async/default.log';
Severity: Minor
Found in core/Group/Async/Async.php by phpcodesniffer

Inline control structures are not allowed
Open

if (!isset($config[$argv[1]])) return;
Severity: Minor
Found in core/Group/Async/Async.php by phpcodesniffer

Inline control structures are not allowed
Open

if (!isset($argv[1])) return;
Severity: Minor
Found in core/Group/Async/Async.php by phpcodesniffer
Category
Status