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
- Exclude checks
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
- Read upRead up
- Exclude checks
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';
- Exclude checks
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';
- Read upRead up
- Exclude checks
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
- Read upRead up
- Exclude checks
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;
- Exclude checks
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.
- Exclude checks
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;
- Read upRead up
- Exclude checks
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;
- Exclude checks
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';
- Exclude checks
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';
- Read upRead up
- Exclude checks
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;
- Exclude checks
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;
- Exclude checks
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
- Read upRead up
- Exclude checks
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;
- Read upRead up
- Exclude checks
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;
- Read upRead up
- Exclude checks
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;
- Exclude checks
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
*
- Read upRead up
- Exclude checks
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
*
- Exclude checks
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;
- Read upRead up
- Exclude checks
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