TikiWiki/tiki-manager

View on GitHub

Showing 2,085 of 2,085 total issues

Call with 1 arg(s) to \TikiManager\Hooks\TikiCommandHook::registerPreHookVars() which only takes 0 arg(s) defined at /code/src/Hooks/TikiCommandHook.php:139
Open

        parent::registerPreHookVars($vars);

Possibly zero references to use statement for classlike/namespace App (\TikiManager\Config\App)
Open

use TikiManager\Config\App;
Severity: Minor
Found in src/Command/StatsInstanceCommand.php by phan

When fetching an array index from a value of type array<string>|array<string>,</string></string> found an array index of type 1, but expected the index to be of type string
Open

            $next = $_GET[1];
Severity: Minor
Found in src/Libs/Audit/Checksum.php by phan

Saw possibly unextractable annotation for a fragment of comment '* @param string Type': after string, did not see an element name (will guess based on comment order)
Open

     * @param  string  Type
Severity: Info
Found in src/Ext/Password.php by phan

Function query defined at /code/src/Libs/Helpers/functions.php:246 was previously defined at /code/scripts/tiki/mysqldump.php:50
Open

function query($query, $params = null)
Severity: Minor
Found in src/Libs/Helpers/functions.php by phan

Saw possibly unextractable annotation for a fragment of comment '* @param integer Key': after integer, did not see an element name (will guess based on comment order)
Open

     * @param  integer Key
Severity: Info
Found in src/Ext/Password.php by phan

Invalid operator: left operand is array and right is not
Open

        $this->formatLevelMap = $formatLevelMap + $this->formatLevelMap;
Severity: Minor
Found in src/Logger/ConsoleLogger.php by phan

Saw possibly unextractable annotation for a fragment of comment '* @param string Character which could be use in the': after string, did not see an element name (will guess based on comment order)
Open

     * @param  string  Character which could be use in the
Severity: Info
Found in src/Ext/Password.php by phan

Suspicious array access to float|int
Open

        if (self::ERROR === $this->formatLevelMap[$level]) {
Severity: Minor
Found in src/Logger/ConsoleLogger.php by phan

Saw an @param annotation for config, but the param list of function setupConnection() : \TikiManager\Libs\Database\Database|null|static is empty
Open

     * @param Database|array $config
Severity: Info
Found in src/Libs/Database/Database.php by phan

Default value for string $default can't be false
Open

function promptUser($prompt, $default = false, $values = [])
Severity: Minor
Found in src/Libs/Helpers/functions.php by phan

Call to deprecated function \error() defined at /code/src/Libs/Helpers/functions.php:145
Open

        error("Invalid response.\n");
Severity: Minor
Found in src/Libs/Helpers/functions.php by phan

Possibly zero references to use statement for classlike/namespace App (\TikiManager\Config\App)
Open

use TikiManager\Config\App;
Severity: Minor
Found in src/Command/ReportManagerCommand.php by phan

Suspicious array access to nullable ?array
Open

                $db = new PDOWrapper('sqlite:' . $_ENV['DB_FILE']);
Severity: Minor
Found in src/Config/Environment.php by phan

Saw possibly unextractable annotation for a fragment of comment '* @param string Login': after string, did not see an element name (will guess based on comment order)
Open

     * @param  string  Login
Severity: Info
Found in src/Ext/Password.php by phan

Call to deprecated function \error() defined at /code/src/Libs/Helpers/functions.php:145
Open

            error("Unsupported query parameter type: array\n");
Severity: Minor
Found in src/Libs/Helpers/functions.php by phan

Call with 3 arg(s) to \TikiManager\Libs\VersionControl\Svn::exec() which only takes 2 arg(s) defined at /code/src/Libs/VersionControl/Svn.php:109
Open

        $allFiles = $this->exec($folder, $command, true);
Severity: Info
Found in src/Libs/VersionControl/Svn.php by phan

Saw an @param annotation for options, but it was not found in the param list of function __construct(\TikiManager\Application\Instance $instance, array $vcsOptions = null, ?\Psr\Log\LoggerInterface $logger = null)
Open

     * @param array $options An array with settings on how the VCS should behaviour

Possibly zero references to use statement for classlike/namespace Environment (\TikiManager\Config\Environment)
Open

use TikiManager\Config\Environment;
Severity: Minor
Found in src/Command/Helper/CommandHelper.php by phan

Suspicious array access to ?mixed
Open

            $payload[] = is_object($instance) ? $instance->id : $instance['id'];
Severity: Minor
Found in src/Command/Helper/CommandHelper.php by phan
Severity
Category
Status
Source
Language