Showing 2,467 of 2,467 total issues
The class MessageController has an overall complexity of 156 which is very high. The configured complexity threshold is 50. Open
class MessageController extends \yii\console\Controller
{
/**
* @var string controller default action ID.
*/
- Exclude checks
The class BaseConsole has 48 public methods. Consider refactoring BaseConsole to keep number of public methods under 10. Open
class BaseConsole
{
// foreground color control codes
const FG_BLACK = 30;
const FG_RED = 31;
- 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 ActiveRecord has an overall complexity of 75 which is very high. The configured complexity threshold is 50. Open
class ActiveRecord extends BaseActiveRecord
{
/**
* The insert operation. This is mainly used when overriding [[transactions()]] to specify which operations are transactional.
*/
- Exclude checks
The class ColumnSchemaBuilder has an overall complexity of 50 which is very high. The configured complexity threshold is 50. Open
class ColumnSchemaBuilder extends BaseObject
{
// Internally used constants representing categories that abstract column types fall under.
// See [[$categoryMap]] for mappings of abstract column types to category.
// @since 2.0.8
- Exclude checks
The class Target has an overall complexity of 55 which is very high. The configured complexity threshold is 50. Open
abstract class Target extends Component
{
/**
* @var array list of message categories that this target is interested in. Defaults to empty, meaning all categories.
* You can use an asterisk at the end of a category so that the category may be used to
- Exclude checks
The class BaseHtml has an overall complexity of 284 which is very high. The configured complexity threshold is 50. Open
class BaseHtml
{
/**
* @var string Regular expression used for attribute name validation.
* @since 2.0.12
- Exclude checks
The class Command has 55 non-getter- and setter-methods. Consider refactoring Command to keep number of methods under 25. Open
class Command extends Component
{
/**
* @var Connection the DB connection that this command is associated with
*/
- 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 BaseStringHelper has an overall complexity of 73 which is very high. The configured complexity threshold is 50. Open
class BaseStringHelper
{
/**
* Returns the number of bytes in the given string.
* This method ensures the string is treated as a byte array by using `mb_strlen()`.
- Exclude checks
The class ActiveQuery has 14 public methods. Consider refactoring ActiveQuery to keep number of public methods under 10. Open
class ActiveQuery extends Query implements ActiveQueryInterface
{
use ActiveQueryTrait;
use ActiveRelationTrait;
- 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 BaseActiveRecord has 40 public methods. Consider refactoring BaseActiveRecord to keep number of public methods under 10. Open
abstract class BaseActiveRecord extends Model implements ActiveRecordInterface
{
/**
* @event Event an event that is triggered when the record is initialized via [[init()]].
*/
- 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 PhpManager has an overall complexity of 149 which is very high. The configured complexity threshold is 50. Open
class PhpManager extends BaseManager
{
/**
* @var string the path of the PHP script that contains the authorization items.
* This can be either a file path or a [path alias](guide:concept-aliases) to the file.
- Exclude checks
The class BaseInflector has an overall complexity of 58 which is very high. The configured complexity threshold is 50. Open
class BaseInflector
{
/**
* @var array the rules for converting a word into its plural form.
* The keys are the regular expressions and the values are the corresponding replacements.
- Exclude checks
The class BaseVarDumper has an overall complexity of 50 which is very high. The configured complexity threshold is 50. Open
class BaseVarDumper
{
private static $_objects;
private static $_output;
private static $_depth;
- Exclude checks
The class BaseActiveRecord has 46 non-getter- and setter-methods. Consider refactoring BaseActiveRecord to keep number of methods under 25. Open
abstract class BaseActiveRecord extends Model implements ActiveRecordInterface
{
/**
* @event Event an event that is triggered when the record is initialized via [[init()]].
*/
- 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 Command has 47 public methods. Consider refactoring Command to keep number of public methods under 10. Open
class Command extends Component
{
/**
* @var Connection the DB connection that this command is associated with
*/
- 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 BaseConsole has 50 non-getter- and setter-methods. Consider refactoring BaseConsole to keep number of methods under 25. Open
class BaseConsole
{
// foreground color control codes
const FG_BLACK = 30;
const FG_RED = 31;
- 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 BaseFileHelper has an overall complexity of 209 which is very high. The configured complexity threshold is 50. Open
class BaseFileHelper
{
const PATTERN_NODIR = 1;
const PATTERN_ENDSWITH = 4;
const PATTERN_MUSTBEDIR = 8;
- Exclude checks
The class ActiveQuery has an overall complexity of 119 which is very high. The configured complexity threshold is 50. Open
class ActiveQuery extends Query implements ActiveQueryInterface
{
use ActiveQueryTrait;
use ActiveRelationTrait;
- Exclude checks
The class Query has an overall complexity of 142 which is very high. The configured complexity threshold is 50. Open
class Query extends Component implements QueryInterface, ExpressionInterface
{
use QueryTrait;
/**
- Exclude checks
The class BaseInflector has 16 public methods. Consider refactoring BaseInflector to keep number of public methods under 10. Open
class BaseInflector
{
/**
* @var array the rules for converting a word into its plural form.
* The keys are the regular expressions and the values are the corresponding replacements.
- 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