fucongcong/framework

View on GitHub

Showing 1,150 of 1,150 total issues

Opening brace should be on a new line
Open

public static function getShort($str, $length = 40, $ext = '…') {

Expected 1 space after IF keyword; 0 found
Open

if($count > 99999){

Opening brace should be on a new line
Open

public function getNextPage () {

Opening brace should be on a new line
Open

public static function truncateHtml( $text, $length = 40, $ellipsis = '…' ) {

Opening brace should be on a new line
Open

public static function html($text, $tags = null) {

Opening brace should be on a new line
Open

public static function getWordCount($str) {

Expected 0 spaces before closing bracket; 1 found
Open

$count = mb_strlen( str_replace(array(' ',' '), '', strip_tags($str) ), 'UTF-8');

Expected 1 newline at end of file; 0 found
Open

}

Opening brace should be on a new line
Open

public static function text($text, $parse_br = false, $quote_style = ENT_NOQUOTES) {

No space found after comma in function call
Open

$text = str_replace('\\','\\\\',$text);

Expected 1 space after closing parenthesis; found 0
Open

if($count > 99999){

No space found after comma in function call
Open

$text = str_replace('\\','\\\\',$text);

Space after opening parenthesis of function call prohibited
Open

$count = mb_strlen( str_replace(array(' ',' '), '', strip_tags($str) ), 'UTF-8');

Opening brace should be on a new line
Open

public static function getLength($str, $filter = false) {

Opening brace should be on a new line
Open

public function getPages () {

Expected 1 newline at end of file; 0 found
Open

}

The variable $cache_dir is not named in camelCase.
Open

public function register()
{
$this->app->singleton('twig', function(){
$path = \Config::get('view::path');
$loader = new \Twig_Loader_Filesystem(__ROOT__.$path);

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

public function stop()
{
$pid = $this->getPid();
 
if (!empty($pid) && $pid) {
Severity: Minor
Found in core/Group/Cron/Cron.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
Severity
Category
Status
Source
Language