TikiWiki/tiki-manager

View on GitHub

Showing 2,255 of 2,255 total issues

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

        $delFlat = array_keys($del);
Severity: Minor
Found in src/Libs/Helpers/Checksum.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 '$new' which will lead to PHP notices.
Open

        $newFlat = array_keys($new);
Severity: Minor
Found in src/Libs/Helpers/Checksum.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 '$new' which will lead to PHP notices.
Open

        while ($input != 's' && count($new)) {
Severity: Minor
Found in src/Libs/Helpers/Checksum.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 '$new' which will lead to PHP notices.
Open

                        unset($new[$file]);
Severity: Minor
Found in src/Libs/Helpers/Checksum.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 '$folders' which will lead to PHP notices.
Open

        return $folders;
Severity: Minor
Found in src/Application/Tiki.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 '$folders' which will lead to PHP notices.
Open

                $folders['data'][] = $line;
Severity: Minor
Found in src/Application/Tiki.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 '$folders' which will lead to PHP notices.
Open

        $folders['app'] = [$webroot];
Severity: Minor
Found in src/Application/Tiki.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

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

class Tiki extends Application
{
    private $installType = null;
    private $branch = null;
    private $installed = null;
Severity: Minor
Found in src/Application/Tiki.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 '$total' which will lead to PHP notices.
Open

        $humanTotal = $this->humanReadableSize($total, 1);
Severity: Minor
Found in src/Report/Backup.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 '$free' which will lead to PHP notices.
Open

        $availableRatio = $free / $total * 100;
Severity: Minor
Found in src/Report/Backup.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 '$total' which will lead to PHP notices.
Open

        $availableRatio = $free / $total * 100;
Severity: Minor
Found in src/Report/Backup.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 '$used' which will lead to PHP notices.
Open

        $this->getDiskUsage($used, $total, $free);
Severity: Minor
Found in src/Report/Backup.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 '$used' which will lead to PHP notices.
Open

        $humanUsed = $this->humanReadableSize($used, 1);
Severity: Minor
Found in src/Report/Backup.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 '$used' which will lead to PHP notices.
Open

        $usedRatio = $used / $total * 100;
Severity: Minor
Found in src/Report/Backup.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 '$total' which will lead to PHP notices.
Open

        $usedRatio = $used / $total * 100;
Severity: Minor
Found in src/Report/Backup.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 '$total' which will lead to PHP notices.
Open

        $this->getDiskUsage($used, $total, $free);
Severity: Minor
Found in src/Report/Backup.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 '$free' which will lead to PHP notices.
Open

        $this->getDiskUsage($used, $total, $free);
Severity: Minor
Found in src/Report/Backup.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 '$free' which will lead to PHP notices.
Open

        $humanFree = $this->humanReadableSize($free, 1);
Severity: Minor
Found in src/Report/Backup.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 renderInstancesTable has 29 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public static function renderInstancesTable($output, $rows, bool $all_infos = false)
    {
        if (empty($rows)) {
            return false;
        }
Severity: Minor
Found in src/Command/Helper/CommandHelper.php - About 1 hr to fix

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

        private function modify($helper, $input, $output)
        {
            $report = new ReportManager;
            $instances = $report->getReportInstances();
            $instancesInfo = CommandHelper::getInstancesInfo($instances);
    Severity: Minor
    Found in src/Command/ReportManagerCommand.php - About 1 hr to fix
      Severity
      Category
      Status
      Source
      Language