TikiWiki/tiki-manager

View on GitHub
src/Libs/Helpers/VersionControl.php

Summary

Maintainability
A
0 mins
Test Coverage

formatBranch accesses the super-global variable $_ENV.
Open

    public static function formatBranch($branch, $vcs = null)
    {
        $vcs = strtolower($vcs ?? $_ENV['DEFAULT_VCS']);

        if ($vcs == 'svn') {
Severity: Minor
Found in src/Libs/Helpers/VersionControl.php by phpmd

Superglobals

Since: 0.2

Accessing a super-global variable directly is considered a bad practice. These variables should be encapsulated in objects that are provided by a framework, for instance.

Example

class Foo {
    public function bar() {
        $name = $_POST['foo'];
    }
}

Source

There are no issues that match your filters.

Category
Status