fucongcong/framework

View on GitHub

Showing 1,150 of 1,150 total issues

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

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

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

public function onTask(swoole_server $serv, $fd, $fromId, $data)
Severity: Minor
Found in core/Group/Async/Server/Server.php by phpmd

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

private function updateTaskCount($fd, $incr = 1){
Severity: Minor
Found in core/Group/Async/Server/Server.php by phpmd

The parameter $quote_style is not named in camelCase.
Open

public static function text($text, $parse_br = false, $quote_style = ENT_NOQUOTES) {
if (is_numeric($text))
$text = (string)$text;
 
if (!is_string($text))
Severity: Minor
Found in core/Group/Common/SecurityToolkit.php by phpmd

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

$v3 = explode("/", $v2);
Severity: Minor
Found in core/Group/Cron/ParseCrontab.php by phpmd

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

public function handleException($e)

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

public function onFinish(swoole_server $serv, $fd, $data)
Severity: Minor
Found in core/Group/Async/Server/Server.php by phpmd

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)

The parameter $route_key is not named in camelCase.
Open

public function pregUrl($matches, $route_key, $routing);

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

$d = file_get_contents($fileDir."/".$fileName);
Severity: Minor
Found in core/Group/Cron/Cron.php by phpmd

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

protected function renderHttpResponse($e)

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

static protected function _parse_cron_number($s, $min, $max)
Severity: Minor
Found in core/Group/Cron/ParseCrontab.php by phpmd

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

private function sendData(swoole_server $serv, $fd, $data){
Severity: Minor
Found in core/Group/Async/Server/Server.php by phpmd

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

private function newProcess($i)
Severity: Minor
Found in core/Group/Cron/Cron.php by phpmd

The parameter $crontab_string is not named in camelCase.
Open

static public function parse($crontab_string, $timezone = "PRC", $start_time = null)
{
date_default_timezone_set($timezone);
 
if (!preg_match('/^((\*(\/[0-9]+)?)|[0-9\-\,\/]+)\s+((\*(\/[0-9]+)?)|[0-9\-\,\/]+)\s+((\*(\/[0-9]+)?)|[0-9\-\,\/]+)\s+((\*(\/[0-9]+)?)|[0-9\-\,\/]+)\s+((\*(\/[0-9]+)?)|[0-9\-\,\/]+)\s+((\*(\/[0-9]+)?)|[0-9\-\,\/]+)$/i', trim($crontab_string))) {
Severity: Minor
Found in core/Group/Cron/ParseCrontab.php by phpmd

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

public static function hashKey($prefix, $id)
Severity: Minor
Found in core/Group/Redis/RedisHelper.php by phpmd

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

protected $fd;

The parameter $parse_br is not named in camelCase.
Open

public static function text($text, $parse_br = false, $quote_style = ENT_NOQUOTES) {
if (is_numeric($text))
$text = (string)$text;
 
if (!is_string($text))
Severity: Minor
Found in core/Group/Common/SecurityToolkit.php by phpmd
Severity
Category
Status
Source
Language