fucongcong/framework

View on GitHub

Showing 1,150 of 1,150 total issues

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 $task_worker_num is not named in camelCase.
Open

public function setTubes()
{
foreach ($this->jobs as $tube => $job) {
$task_worker_num = 0;
foreach ($job as $key => $value) {
Severity: Minor
Found in core/Group/Queue/TubeListener.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 $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

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

The variable $server_type is not named in camelCase.
Open

public function init()
{
$this->checkStatus();
 
$pid = posix_getpid();
Severity: Minor
Found in core/Group/RpcKernal.php by phpmd

The variable $task_worker_num is not named in camelCase.
Open

public function setTubes()
{
foreach ($this->jobs as $tube => $job) {
$task_worker_num = 0;
foreach ($job as $key => $value) {
Severity: Minor
Found in core/Group/Queue/TubeListener.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 $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

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 $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 $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 $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 $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

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 $filename_part 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 $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 $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

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 $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
Severity
Category
Status
Source
Language