fucongcong/framework

View on GitHub

Showing 1,150 of 1,150 total issues

The variable $work_id is not named in camelCase.
Open

public function __construct()
{
$this->mkDir(__FILEROOT__.'runtime/cron-server');
$http = new swoole_http_server('0.0.0.0', '10008');
$http->set(array(
Severity: Minor
Found in core/Group/Cron/CronAdmin.php by phpmd

The variable $new_filename is not named in camelCase.
Open

public static function mungeFilename($filename, $extensions)
{
$original = $filename;
 
// Remove any null bytes. See http://php.net/manual/en/security.filesystem.nullbytes.php
Severity: Minor
Found in core/Group/Common/FileToolkit.php by phpmd

The variable $work_id is not named in camelCase.
Open

public function stop()
{
$pid = $this->getPid();
if (!empty($pid) && $pid) {
if (swoole_process::kill($pid, 0)) {
Severity: Minor
Found in core/Group/Queue/Bear.php by phpmd

The variable $worker_count is not named in camelCase.
Open

private function setSignal()
{
//子进程结束时主进程收到的信号
swoole_process::signal(SIGCHLD, function ($signo) {
 
 
Severity: Minor
Found in core/Group/Queue/Bear.php by phpmd

The variable $worker_count is not named in camelCase.
Open

private function setSignal()
{
//子进程结束时主进程收到的信号
swoole_process::signal(SIGCHLD, function ($signo) {
 
 
Severity: Minor
Found in core/Group/Queue/Bear.php by phpmd

The variable $package_eof is not named in camelCase.
Open

public function call($server, $cmd, $data, $getRecv = true)
{
$data = \Group\Async\DataPack::pack($cmd, $data);
 
static $client = null;
Severity: Minor
Found in core/Group/Async/Client/Client.php by phpmd

The variable $package_eof is not named in camelCase.
Open

public function call($server, $cmd, $data, $getRecv = true)
{
$data = \Group\Async\DataPack::pack($cmd, $data);
 
static $client = null;
Severity: Minor
Found in core/Group/Async/Client/Client.php by phpmd

The variable $task_count is not named in camelCase.
Open

public function onFinish(swoole_server $serv, $fd, $data)
{
try {
list($cmd, $one, $info) = \Group\Async\DataPack::unpack($data);
$config = $this->config;
Severity: Minor
Found in core/Group/Async/Server/Server.php by phpmd

The variable $server_type is not named in camelCase.
Open

public function __construct($server_type)
{
$this->server_type = $server_type;
$this->config = require(__ROOT__."config/rpc.php");
$this->cacheDir = $this->config['cache_dir'];
Severity: Minor
Found in core/Group/RpcKernal.php by phpmd

The variable $task_count is not named in camelCase.
Open

private function getTaskCount($fd){
$task_count = $this->table->get($fd);
return $task_count['count'];
}
Severity: Minor
Found in core/Group/Async/Server/Server.php by phpmd

The variable $worker_count is not named in camelCase.
Open

private function setSignal()
{
//子进程结束时主进程收到的信号
swoole_process::signal(SIGCHLD, function ($signo) {
 
 
Severity: Minor
Found in core/Group/Cron/Cron.php by phpmd

The variable $work_id is not named in camelCase.
Open

public function __construct()
{
$this->mkDir(__FILEROOT__.'runtime/cron-server');
$http = new swoole_http_server('0.0.0.0', '10008');
$http->set(array(
Severity: Minor
Found in core/Group/Cron/CronAdmin.php by phpmd

The variable $work_id is not named in camelCase.
Open

public function __construct()
{
$this->mkDir(__FILEROOT__.'runtime/cron-server');
$http = new swoole_http_server('0.0.0.0', '10008');
$http->set(array(
Severity: Minor
Found in core/Group/Cron/CronAdmin.php by phpmd

The variable $_min is not named in camelCase.
Open

static protected function _parse_cron_number($s, $min, $max)
{
$result = array();
$v1 = explode(",", $s);
foreach ($v1 as $v2) {
Severity: Minor
Found in core/Group/Cron/ParseCrontab.php by phpmd

The variable $_max is not named in camelCase.
Open

static protected function _parse_cron_number($s, $min, $max)
{
$result = array();
$v1 = explode(",", $s);
foreach ($v1 as $v2) {
Severity: Minor
Found in core/Group/Cron/ParseCrontab.php by phpmd

The variable $work_id is not named in camelCase.
Open

public function stop()
{
$pid = $this->getPid();
if (!empty($pid) && $pid) {
if (swoole_process::kill($pid, 0)) {
Severity: Minor
Found in core/Group/Queue/Bear.php by phpmd

The variable $start_time 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

The variable $final_extension is not named in camelCase.
Open

public static function mungeFilename($filename, $extensions)
{
$original = $filename;
 
// Remove any null bytes. See http://php.net/manual/en/security.filesystem.nullbytes.php
Severity: Minor
Found in core/Group/Common/FileToolkit.php by phpmd

The variable $worker_count is not named in camelCase.
Open

private function setSignal()
{
//子进程结束时主进程收到的信号
swoole_process::signal(SIGCHLD, function ($signo) {
 
 
Severity: Minor
Found in core/Group/Cron/Cron.php by phpmd

The variable $filename_parts is not named in camelCase.
Open

public static function mungeFilename($filename, $extensions)
{
$original = $filename;
 
// Remove any null bytes. See http://php.net/manual/en/security.filesystem.nullbytes.php
Severity: Minor
Found in core/Group/Common/FileToolkit.php by phpmd
Severity
Category
Status
Source
Language