Showing 426 of 426 total issues
Avoid using undefined variables such as '::$error_ids' which will lead to PHP notices. Open
static::addErrorToHtml($url, 'area_has_alt', static::$error_ids[$url], 'ignores');
- Read upRead up
- Exclude checks
UndefinedVariable
Since: 2.8.0
Detects when a variable is used that has not been defined before.
Example
class Foo
{
private function bar()
{
// $message is undefined
echo $message;
}
}
Source https://phpmd.org/rules/cleancode.html#undefinedvariable
Avoid using undefined variables such as '::$logs' which will lead to PHP notices. Open
return isset(static::$logs[$url]) ? static::$logs[$url] : array();
- Read upRead up
- Exclude checks
UndefinedVariable
Since: 2.8.0
Detects when a variable is used that has not been defined before.
Example
class Foo
{
private function bar()
{
// $message is undefined
echo $message;
}
}
Source https://phpmd.org/rules/cleancode.html#undefinedvariable
Avoid using undefined variables such as '$hl_htmls' which will lead to PHP notices. Open
if (empty(Validate::$hl_htmls[$url])) return false;
- Read upRead up
- Exclude checks
UndefinedVariable
Since: 2.8.0
Detects when a variable is used that has not been defined before.
Example
class Foo
{
private function bar()
{
// $message is undefined
echo $message;
}
}
Source https://phpmd.org/rules/cleancode.html#undefinedvariable
Avoid using undefined variables such as '::$hl_htmls' which will lead to PHP notices. Open
static::$hl_htmls[$url],
- Read upRead up
- Exclude checks
UndefinedVariable
Since: 2.8.0
Detects when a variable is used that has not been defined before.
Example
class Foo
{
private function bar()
{
// $message is undefined
echo $message;
}
}
Source https://phpmd.org/rules/cleancode.html#undefinedvariable
Avoid using undefined variables such as '::$results' which will lead to PHP notices. Open
return static::$results[$url][$name][$ua][$value];
- Read upRead up
- Exclude checks
UndefinedVariable
Since: 2.8.0
Detects when a variable is used that has not been defined before.
Example
class Foo
{
private function bar()
{
// $message is undefined
echo $message;
}
}
Source https://phpmd.org/rules/cleancode.html#undefinedvariable
Avoid using undefined variables such as '$hl_htmls' which will lead to PHP notices. Open
$str = self::ignoreElementsByStr(Validate::$hl_htmls[$url]);
- Read upRead up
- Exclude checks
UndefinedVariable
Since: 2.8.0
Detects when a variable is used that has not been defined before.
Example
class Foo
{
private function bar()
{
// $message is undefined
echo $message;
}
}
Source https://phpmd.org/rules/cleancode.html#undefinedvariable
Avoid using undefined variables such as '$hl_htmls' which will lead to PHP notices. Open
if (empty(Validate::$hl_htmls[$url])) return '';
- Read upRead up
- Exclude checks
UndefinedVariable
Since: 2.8.0
Detects when a variable is used that has not been defined before.
Example
class Foo
{
private function bar()
{
// $message is undefined
echo $message;
}
}
Source https://phpmd.org/rules/cleancode.html#undefinedvariable
Avoid using undefined variables such as '::$logs' which will lead to PHP notices. Open
if (static::$logs[$url][$error_name][self::$unspec] != -1)
- Read upRead up
- Exclude checks
UndefinedVariable
Since: 2.8.0
Detects when a variable is used that has not been defined before.
Example
class Foo
{
private function bar()
{
// $message is undefined
echo $message;
}
}
Source https://phpmd.org/rules/cleancode.html#undefinedvariable
Avoid using undefined variables such as '$suspicious_props' which will lead to PHP notices. Open
Model\Css::$suspicious_props[] = $prop_and_vals[0];
- Read upRead up
- Exclude checks
UndefinedVariable
Since: 2.8.0
Detects when a variable is used that has not been defined before.
Example
class Foo
{
private function bar()
{
// $message is undefined
echo $message;
}
}
Source https://phpmd.org/rules/cleancode.html#undefinedvariable
Avoid using undefined variables such as '::$error_ids' which will lead to PHP notices. Open
static::addErrorToHtml($url, 'suspicious_attributes', static::$error_ids[$url], 'ignores');
- Read upRead up
- Exclude checks
UndefinedVariable
Since: 2.8.0
Detects when a variable is used that has not been defined before.
Example
class Foo
{
private function bar()
{
// $message is undefined
echo $message;
}
}
Source https://phpmd.org/rules/cleancode.html#undefinedvariable
Avoid using undefined variables such as '::$error_ids' which will lead to PHP notices. Open
static::addErrorToHtml($url, 'must_be_numeric_attr', static::$error_ids[$url], 'ignores');
- Read upRead up
- Exclude checks
UndefinedVariable
Since: 2.8.0
Detects when a variable is used that has not been defined before.
Example
class Foo
{
private function bar()
{
// $message is undefined
echo $message;
}
}
Source https://phpmd.org/rules/cleancode.html#undefinedvariable
Avoid using undefined variables such as '::$error_ids' which will lead to PHP notices. Open
static::addErrorToHtml($url, 'img_input_has_alt', static::$error_ids[$url], 'ignores');
- Read upRead up
- Exclude checks
UndefinedVariable
Since: 2.8.0
Detects when a variable is used that has not been defined before.
Example
class Foo
{
private function bar()
{
// $message is undefined
echo $message;
}
}
Source https://phpmd.org/rules/cleancode.html#undefinedvariable
Avoid using undefined variables such as '::$error_ids' which will lead to PHP notices. Open
static::addErrorToHtml($url, 'invalid_page_lang', static::$error_ids[$url]);
- Read upRead up
- Exclude checks
UndefinedVariable
Since: 2.8.0
Detects when a variable is used that has not been defined before.
Example
class Foo
{
private function bar()
{
// $message is undefined
echo $message;
}
}
Source https://phpmd.org/rules/cleancode.html#undefinedvariable
Avoid using undefined variables such as '::$error_ids' which will lead to PHP notices. Open
return isset(static::$error_ids[$url]) ? static::$error_ids[$url] : array();
- Read upRead up
- Exclude checks
UndefinedVariable
Since: 2.8.0
Detects when a variable is used that has not been defined before.
Example
class Foo
{
private function bar()
{
// $message is undefined
echo $message;
}
}
Source https://phpmd.org/rules/cleancode.html#undefinedvariable
Avoid using undefined variables such as '::$logs' which will lead to PHP notices. Open
return isset(static::$logs[$url]) ? static::$logs[$url] : array();
- Read upRead up
- Exclude checks
UndefinedVariable
Since: 2.8.0
Detects when a variable is used that has not been defined before.
Example
class Foo
{
private function bar()
{
// $message is undefined
echo $message;
}
}
Source https://phpmd.org/rules/cleancode.html#undefinedvariable
Method recoverStr
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
private static function recoverStr($val)
{
return str_replace(
array(
self::$quoted_double,
Method isFisrtOfToday
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
public static function isFisrtOfToday ()
{
if ( ! is_null(static::$is_first_of_day)) return static::$is_first_of_day;
$today = date('Y-m-d');
Method evaluateTotal
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
public static function evaluateTotal()
{
// fetch pages
$args = array(
'list' => 'done',
Method fetchAll
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
public static function fetchAll($force = false, $version = null, $group_id = null)
{
if ( ! is_null(static::$vals) && ! $force) return static::$vals;
$ret = static::fetchRaw($version, $group_id);
Method yml
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
private static function yml()
{
include A11YC_LIB_PATH.'/spyc/Spyc.php';
if ( ! class_exists('Spyc')) Util::error('Spyc is not found');
$chekcs_text = file_get_contents(__DIR__.'/resources/old_checks.yml');