TikiWiki/tiki-manager

View on GitHub

Showing 2,235 of 2,235 total issues

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

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

Possibly zero references to use statement for classlike/namespace Logger (\Monolog\Logger)
Open

use Monolog\Logger;
Severity: Minor
Found in src/Command/TikiManagerCommand.php by phan

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

            $this->vcs_instance->update($this->instance->webroot, $version->branch, $lag, $revision);
Severity: Info
Found in src/Application/Tiki.php by phan

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

        $result = CommandHelper::clearFolderContents($cachePath, $logger);
Severity: Minor
Found in src/Command/ClearCacheCommand.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/StatsInstanceCommand.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);

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

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

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 \appendFlush() defined at /code/src/Libs/Helpers/functions.php:118
Open

    echo color("$text\n", 'cyan') . appendFlush();
Severity: Minor
Found in src/Libs/Helpers/functions.php by phan

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

    echo color("$text\n", 'cyan') . appendFlush();
Severity: Minor
Found in src/Libs/Helpers/functions.php by phan

Function num_fields defined at /code/scripts/tiki/mysqldump.php:139 was previously defined at /code/scripts/tiki/mysqldump.php:87
Open

    function num_fields($result)
Severity: Minor
Found in scripts/tiki/mysqldump.php by phan

Argument 1 (str) is int but \md5() takes string
Open

        $name = md5(time()) . '.tar';
Severity: Minor
Found in src/Access/FTP.php by phan

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:471
Open

        $result = CommandHelper::removeFiles($databaseFile, $logger);
Severity: Minor
Found in src/Command/DeleteDatabaseCommand.php by phan

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

use TikiManager\Access\Access;
Severity: Minor
Found in src/Command/EditInstanceCommand.php by phan

Possibly zero references to use statement for classlike/namespace RemoteSourceNotFoundException (\TikiManager\Manager\Update\RemoteSourceNotFoundException)
Open

use TikiManager\Manager\Update\RemoteSourceNotFoundException;
Severity: Minor
Found in src/Command/ManagerUpdateCommand.php by phan

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

            $toInstance->getBestAccess('scripting')->uploadFile($tmpFile, $targetFile);
Severity: Critical
Found in src/Command/StatsInstanceCommand.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

Doc-block of getHooksFolder contains declared return type null which is incompatible with the return type string declared in the signature
Open

     * @return null|string
Severity: Minor
Found in src/Hooks/HookHandler.php by phan
Severity
Category
Status
Source
Language