XoopsModules25x/apcal

View on GitHub

Showing 26,336 of 26,336 total issues

The class PatTemplate has 46 public methods and attributes. Consider reducing the number of public items to less than 45.
Open

    class PatTemplate
    {
        /**
         * Constructor
         *
Severity: Minor
Found in include/patTemplate.php by phpmd

ExcessivePublicCount

Since: 0.1

A large number of public methods and attributes declared in a class can indicate the class may need to be broken up as increased effort will be required to thoroughly test it.

Example

public class Foo {
    public $value;
    public $something;
    public $var;
    // [... more more public attributes ...]

    public function doWork() {}
    public function doMoreWork() {}
    public function doWorkAgain() {}
    // [... more more public methods ...]
}

Source https://phpmd.org/rules/codesize.html#excessivepubliccount

Avoid using undefined variables such as '$new_vars' which will lead to PHP notices.
Open

                $this->addVars($template, $new_vars);
Severity: Minor
Found in include/patTemplate.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 '$unused' which will lead to PHP notices.
Open

                    if (is_array($unused) && count($unused) > 0) {
Severity: Minor
Found in include/patTemplate.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 '$unused' which will lead to PHP notices.
Open

                        for ($k = 0, $kMax = count($unused); $k <= $kMax; ++$k) {
Severity: Minor
Found in include/patTemplate.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 '$skin_folder' which will lead to PHP notices.
Open

        $cal->images_url  = "$mod_url/assets/images/$skin_folder";
Severity: Minor
Found in include/search.inc.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 '$skin_folder' which will lead to PHP notices.
Open

        $cal->images_url  = "$mod_url/assets/images/$skin_folder";
Severity: Minor
Found in blocks/apcal_after_schedule.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 '$ymids' which will lead to PHP notices.
Open

                        $ymids[$k] = $ymids[$k - 1];
Severity: Minor
Found in include/Text_Diff.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 '$ymids' which will lead to PHP notices.
Open

                    $ymids[$i][$chunk - 1] = $this->seq[$i];
Severity: Minor
Found in include/Text_Diff.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 '$ymatches' which will lead to PHP notices.
Open

                $ymatches[$this->yv[$i]][] = $i;
Severity: Minor
Found in include/Text_Diff.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 '$seps' which will lead to PHP notices.
Open

            $seps[] = $flip ? array($y1, $x1) : array($x1, $y1);
Severity: Minor
Found in include/Text_Diff.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 '$seps' which will lead to PHP notices.
Open

        return array($this->lcs, $seps);
Severity: Minor
Found in include/Text_Diff.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 '$ymids' which will lead to PHP notices.
Open

                        $ymids[$k] = $ymids[$k - 1];
Severity: Minor
Found in include/Text_Diff.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 '$seps' which will lead to PHP notices.
Open

        $seps[] = $flip ? array($ylim, $xlim) : array($xlim, $ylim);
Severity: Minor
Found in include/Text_Diff.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 '$ymatches' which will lead to PHP notices.
Open

                $ymatches[$this->xv[$i]][] = $i;
Severity: Minor
Found in include/Text_Diff.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 '$attributes' which will lead to PHP notices.
Open

            return $attributes;
Severity: Minor
Found in include/patTemplate.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 '$unused' which will lead to PHP notices.
Open

                                echo '                   <td class="text">' . $unused[$k] . "</td>\n";
Severity: Minor
Found in include/patTemplate.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 '$skin_folder' which will lead to PHP notices.
Open

        $cal->images_path = "$mod_path/assets/images/$skin_folder";
Severity: Minor
Found in blocks/apcal_after_schedule.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 '$lineno' which will lead to PHP notices.
Open

                    die("Error in template '" . $fname . "': unkown closing tag in line " . $lineno);
Severity: Minor
Found in include/patTemplate.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 '$arr' which will lead to PHP notices.
Open

                        $arr[$this->templates[$i]] = $this->getParsedTemplate($this->templates[$i]);
Severity: Minor
Found in include/patTemplate.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 '$unused' which will lead to PHP notices.
Open

                                $unused[] = $matches[0][$k];
Severity: Minor
Found in include/patTemplate.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

Severity
Category
Status
Source
Language