jidaikobo-shibata/a11yc

View on GitHub

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');
Severity: Minor
Found in classes/Validate/Check/AreaHasAlt.php by phpmd

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();
Severity: Minor
Found in classes/Validate/Get.php by phpmd

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;
Severity: Minor
Found in classes/Element/Get/Each.php by phpmd

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],
Severity: Minor
Found in classes/Validate/Check/Langless.php by phpmd

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];
Severity: Minor
Found in classes/Validate/Get.php by phpmd

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]);
Severity: Minor
Found in classes/Element/Get.php by phpmd

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 '';
Severity: Minor
Found in classes/Element/Get/Each.php by phpmd

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)
Severity: Minor
Found in classes/Validate/Check/CssTotal.php by phpmd

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];
Severity: Minor
Found in classes/Model/CssFormat.php by phpmd

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');

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');

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');

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]);
Severity: Minor
Found in classes/Validate/Check/Langless.php by phpmd

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();
Severity: Minor
Found in classes/Validate/Get.php by phpmd

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();
Severity: Minor
Found in classes/Validate/Get.php by phpmd

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,
Severity: Minor
Found in classes/Element.php - About 1 hr to fix

    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');
    Severity: Minor
    Found in classes/Maintenance.php - About 1 hr to fix

      Method evaluateTotal has 29 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          public static function evaluateTotal()
          {
              // fetch pages
              $args = array(
                  'list' => 'done',
      Severity: Minor
      Found in classes/Evaluate.php - About 1 hr to fix

        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);
        
        
        Severity: Minor
        Found in classes/Model/DataFetch.php - About 1 hr to fix

          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');
          Severity: Minor
          Found in classes/Update/One2Two.php - About 1 hr to fix
            Severity
            Category
            Status
            Source
            Language