TikiWiki/tiki-manager

View on GitHub

Showing 2,085 of 2,085 total issues

Argument 1 (path) is ?string but \dirname() takes string
Open

        $rootPath = ($isPhar ? realpath(dirname($pharPath)) : $this->homeDirectory);
Severity: Minor
Found in src/Config/Environment.php by phan

Suspicious array access to nullable ?array
Open

            $key = $_ENV['SSH_KEY'];
Severity: Minor
Found in src/Config/Environment.php by phan

Suspicious array access to nullable ?array
Open

            @chmod($_ENV['SSH_KEY'], 0600);
Severity: Minor
Found in src/Config/Environment.php by phan

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

     * @param  integer Length of the password
Severity: Info
Found in src/Ext/Password.php by phan

Returning type null but getStdout() is declared to return resource
Open

        return $this->stdout ?: null;
Severity: Minor
Found in src/Libs/Host/Command.php by phan

Suspicious array access to null
Open

            $instancesInfo[] = [
Severity: Minor
Found in src/Command/Helper/CommandHelper.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/ListInstanceCommand.php by phan

Call with 1 arg(s) to \TikiManager\Logger\ArrayHandler::__construct() which only takes 0 arg(s) defined at /code/src/Logger/ArrayHandler.php:7
Open

                $arrHandler = new ArrayHandler(Logger::ERROR);

Suspicious array access to nullable ?array|null
Open

        if (file_exists($_ENV['TRIM_DATA'] . "/id_dsa") &&
Severity: Minor
Found in src/Config/Environment.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

Possibly zero references to use statement for classlike/namespace Version (\TikiManager\Application\Version)
Open

use TikiManager\Application\Version;
Severity: Minor
Found in src/Hooks/InstanceCloneHook.php by phan

Argument 2 (port) is string but \ftp_connect() takes int
Open

        $conn = ftp_connect($this->host, $this->port, 15);
Severity: Minor
Found in src/Libs/Host/FTP.php by phan

Argument 2 (log) is \Monolog\Logger but \TikiManager\Command\ImportInstanceCommand::isMissingPHPRequirements() takes \Psr\Log\LoggerInterface defined at /code/src/Command/Traits/InstanceConfigure.php:626
Open

            if (! $skipPhpCheck && $this->isMissingPHPRequirements($instance, $this->logger)) {
Severity: Minor
Found in src/Command/ImportInstanceCommand.php by phan

Returning type false but execute() is declared to return int
Open

            return false;

Argument 2 (logger) is \Symfony\Component\Console\Logger\ConsoleLogger but \TikiManager\Command\Helper\CommandHelper::removeFiles() takes \Psr\Log\LoggerInterface defined at /code/src/Command/Helper/CommandHelper.php:404
Open

        $result = CommandHelper::removeFiles($databaseFile, $logger);
Severity: Minor
Found in src/Command/ResetManagerCommand.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/SetupUpdateCommand.php by phan

Call to method getBestAccess on non-class type ?mixed
Open

            if (!$toInstance->getBestAccess('scripting')->fileExists($targetFile)) {
Severity: Critical
Found in src/Command/StatsInstanceCommand.php by phan

Suspicious array access to nullable ?array
Open

            if (! is_writable(dirname($_ENV['SSH_KEY']))) {
Severity: Minor
Found in src/Config/Environment.php by phan

Suspicious array access to nullable ?array
Open

        if (! file_exists($_ENV['DB_FILE'])) {
Severity: Minor
Found in src/Config/Environment.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
Severity
Category
Status
Source
Language