TikiWiki/tiki-manager

View on GitHub

Showing 2,255 of 2,255 total issues

The class Instance has an overall complexity of 173 which is very high. The configured complexity threshold is 50.
Open

class Instance
{
    const TYPES = 'local,ftp,ssh';

    const SQL_SELECT_INSTANCE = <<<SQL
Severity: Minor
Found in src/Application/Instance.php by phpmd

The class Instance has 28 public methods. Consider refactoring Instance to keep number of public methods under 10.
Open

class Instance
{
    const TYPES = 'local,ftp,ssh';

    const SQL_SELECT_INSTANCE = <<<SQL
Severity: Minor
Found in src/Application/Instance.php by phpmd

TooManyPublicMethods

Since: 0.1

A class with too many public methods is probably a good suspect for refactoring, in order to reduce its complexity and find a way to have more fine grained objects.

By default it ignores methods starting with 'get' or 'set'.

Example

Source https://phpmd.org/rules/codesize.html#toomanypublicmethods

The class Backup has an overall complexity of 109 which is very high. The configured complexity threshold is 50.
Open

class Backup
{
    public const FULL_BACKUP = 'full';
    public const PARTIAL_BACKUP = 'partial';

Severity: Minor
Found in src/Application/Backup.php by phpmd

The class Backup has 11 public methods. Consider refactoring Backup to keep number of public methods under 10.
Open

class Backup
{
    public const FULL_BACKUP = 'full';
    public const PARTIAL_BACKUP = 'partial';

Severity: Minor
Found in src/Application/Backup.php by phpmd

TooManyPublicMethods

Since: 0.1

A class with too many public methods is probably a good suspect for refactoring, in order to reduce its complexity and find a way to have more fine grained objects.

By default it ignores methods starting with 'get' or 'set'.

Example

Source https://phpmd.org/rules/codesize.html#toomanypublicmethods

The class Checksum has 11 public methods. Consider refactoring Checksum to keep number of public methods under 10.
Open

class Checksum
{
    const SQL_SELECT_FILE_MAP = <<<SQL
        SELECT
            path, hash
Severity: Minor
Found in src/Libs/Audit/Checksum.php by phpmd

TooManyPublicMethods

Since: 0.1

A class with too many public methods is probably a good suspect for refactoring, in order to reduce its complexity and find a way to have more fine grained objects.

By default it ignores methods starting with 'get' or 'set'.

Example

Source https://phpmd.org/rules/codesize.html#toomanypublicmethods

The class Environment has an overall complexity of 76 which is very high. The configured complexity threshold is 50.
Open

class Environment
{
    private $homeDirectory;
    private $isLoaded = false;

Severity: Minor
Found in src/Config/Environment.php by phpmd

The class Password has an overall complexity of 78 which is very high. The configured complexity threshold is 50.
Open

class Password
{

    /**
     * Create a single password.
Severity: Minor
Found in src/Ext/Password.php by phpmd

The class Database has 14 public methods. Consider refactoring Database to keep number of public methods under 10.
Open

class Database
{
    /** @var Instance */
    private $instance;
    private $access;
Severity: Minor
Found in src/Libs/Database/Database.php by phpmd

TooManyPublicMethods

Since: 0.1

A class with too many public methods is probably a good suspect for refactoring, in order to reduce its complexity and find a way to have more fine grained objects.

By default it ignores methods starting with 'get' or 'set'.

Example

Source https://phpmd.org/rules/codesize.html#toomanypublicmethods

The class Database has an overall complexity of 65 which is very high. The configured complexity threshold is 50.
Open

class Database
{
    /** @var Instance */
    private $instance;
    private $access;
Severity: Minor
Found in src/Libs/Database/Database.php by phpmd

The class Restore has an overall complexity of 134 which is very high. The configured complexity threshold is 50.
Open

class Restore extends Backup
{
    const CLONE_PROCESS = 'clone';
    const RESTORE_PROCESS = 'restore';

Severity: Minor
Found in src/Application/Restore.php by phpmd

The class Restore has 14 public methods. Consider refactoring Restore to keep number of public methods under 10.
Open

class Restore extends Backup
{
    const CLONE_PROCESS = 'clone';
    const RESTORE_PROCESS = 'restore';

Severity: Minor
Found in src/Application/Restore.php by phpmd

TooManyPublicMethods

Since: 0.1

A class with too many public methods is probably a good suspect for refactoring, in order to reduce its complexity and find a way to have more fine grained objects.

By default it ignores methods starting with 'get' or 'set'.

Example

Source https://phpmd.org/rules/codesize.html#toomanypublicmethods

The class Command has an overall complexity of 67 which is very high. The configured complexity threshold is 50.
Open

class Command
{
    private $args;
    private $command;
    private $host;
Severity: Minor
Found in src/Libs/Host/Command.php by phpmd

The class Tiki has an overall complexity of 269 which is very high. The configured complexity threshold is 50.
Open

class Tiki extends Application
{
    private $installType = null;
    private $branch = null;
    private $installed = null;
Severity: Minor
Found in src/Application/Tiki.php by phpmd

The class Version has 12 public methods. Consider refactoring Version to keep number of public methods under 10.
Open

class Version
{
    const SQL_INSERT_VERSION = <<<SQL
        INSERT OR REPLACE INTO
            version
Severity: Minor
Found in src/Application/Version.php by phpmd

TooManyPublicMethods

Since: 0.1

A class with too many public methods is probably a good suspect for refactoring, in order to reduce its complexity and find a way to have more fine grained objects.

By default it ignores methods starting with 'get' or 'set'.

Example

Source https://phpmd.org/rules/codesize.html#toomanypublicmethods

The class Tiki has 25 public methods. Consider refactoring Tiki to keep number of public methods under 10.
Open

class Tiki extends Application
{
    private $installType = null;
    private $branch = null;
    private $installed = null;
Severity: Minor
Found in src/Application/Tiki.php by phpmd

TooManyPublicMethods

Since: 0.1

A class with too many public methods is probably a good suspect for refactoring, in order to reduce its complexity and find a way to have more fine grained objects.

By default it ignores methods starting with 'get' or 'set'.

Example

Source https://phpmd.org/rules/codesize.html#toomanypublicmethods

The class Tiki has 34 non-getter- and setter-methods. Consider refactoring Tiki to keep number of methods under 25.
Open

class Tiki extends Application
{
    private $installType = null;
    private $branch = null;
    private $installed = null;
Severity: Minor
Found in src/Application/Tiki.php by phpmd

TooManyMethods

Since: 0.1

A class with too many methods is probably a good suspect for refactoring, in order to reduce its complexity and find a way to have more fine grained objects.

By default it ignores methods starting with 'get' or 'set'.

The default was changed from 10 to 25 in PHPMD 2.3.

Example

Source https://phpmd.org/rules/codesize.html#toomanymethods

The class CloneInstanceCommand has an overall complexity of 74 which is very high. The configured complexity threshold is 50.
Open

class CloneInstanceCommand extends TikiManagerCommand
{
    use InstanceConfigure;
    use InstanceUpgrade;

Severity: Minor
Found in src/Command/CloneInstanceCommand.php by phpmd

The class CommandHelper has 18 public methods. Consider refactoring CommandHelper to keep number of public methods under 10.
Open

class CommandHelper
{
    /**
     * Get information from Instance Object
     *
Severity: Minor
Found in src/Command/Helper/CommandHelper.php by phpmd

TooManyPublicMethods

Since: 0.1

A class with too many public methods is probably a good suspect for refactoring, in order to reduce its complexity and find a way to have more fine grained objects.

By default it ignores methods starting with 'get' or 'set'.

Example

Source https://phpmd.org/rules/codesize.html#toomanypublicmethods

The class CommandHelper has an overall complexity of 86 which is very high. The configured complexity threshold is 50.
Open

class CommandHelper
{
    /**
     * Get information from Instance Object
     *
Severity: Minor
Found in src/Command/Helper/CommandHelper.php by phpmd

The class FTP has 12 public methods. Consider refactoring FTP to keep number of public methods under 10.
Open

class FTP
{
    private $host;
    private $port;
    private $user;
Severity: Minor
Found in src/Libs/Host/FTP.php by phpmd

TooManyPublicMethods

Since: 0.1

A class with too many public methods is probably a good suspect for refactoring, in order to reduce its complexity and find a way to have more fine grained objects.

By default it ignores methods starting with 'get' or 'set'.

Example

Source https://phpmd.org/rules/codesize.html#toomanypublicmethods

Severity
Category
Status
Source
Language