Showing 1,331 of 2,467 total issues
The class Command has an overall complexity of 131 which is very high. The configured complexity threshold is 50. Open
class Command extends Component
{
/**
* @var Connection the DB connection that this command is associated with
*/
- Exclude checks
The class DbManager has an overall complexity of 148 which is very high. The configured complexity threshold is 50. Open
class DbManager extends BaseManager
{
/**
* @var Connection|array|string the DB connection object or the application component ID of the DB connection.
* After the DbManager object is created, if you want to change this property, you should only assign it
- Exclude checks
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 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 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 Container has an overall complexity of 123 which is very high. The configured complexity threshold is 50. Open
class Container extends Component
{
/**
* @var array singleton objects indexed by their types
*/
- Exclude checks
The class Controller has 11 public methods. Consider refactoring Controller to keep number of public methods under 10. Open
class Controller extends \yii\base\Controller
{
/**
* @deprecated since 2.0.13. Use [[ExitCode::OK]] instead.
*/
- 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 Controller has an overall complexity of 109 which is very high. The configured complexity threshold is 50. Open
class Controller extends \yii\base\Controller
{
/**
* @deprecated since 2.0.13. Use [[ExitCode::OK]] instead.
*/
- Exclude checks
The class AssetController has an overall complexity of 115 which is very high. The configured complexity threshold is 50. Open
class AssetController extends Controller
{
/**
* @var string controller default action ID.
*/
- Exclude checks
The class BaseHtml has 68 non-getter- and setter-methods. Consider refactoring BaseHtml to keep number of methods under 25. Open
class BaseHtml
{
/**
* @var string Regular expression used for attribute name validation.
* @since 2.0.12
- 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 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
Source https://phpmd.org/rules/codesize.html#toomanypublicmethods
The class BaseActiveRecord has an overall complexity of 253 which is very high. The configured complexity threshold is 50. Open
abstract class BaseActiveRecord extends Model implements ActiveRecordInterface
{
/**
* @event Event an event that is triggered when the record is initialized via [[init()]].
*/
- Exclude checks
The class PhpManager has 31 non-getter- and setter-methods. Consider refactoring PhpManager to keep number of methods under 25. 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.
- 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 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 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 Component has 17 public methods. Consider refactoring Component to keep number of public methods under 10. Open
class Component extends BaseObject
{
/**
* @var array the attached event handlers (event name => handlers)
*/
- 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 Query has 42 public methods. Consider refactoring Query to keep number of public methods under 10. Open
class Query extends Component implements QueryInterface, ExpressionInterface
{
use QueryTrait;
/**
- 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 Schema has 26 non-getter- and setter-methods. Consider refactoring Schema to keep number of methods under 25. Open
abstract class Schema extends BaseObject
{
// The following are the supported abstract column data types.
const TYPE_PK = 'pk';
const TYPE_UPK = 'upk';
- 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 Schema has an overall complexity of 113 which is very high. The configured complexity threshold is 50. Open
abstract class Schema extends BaseObject
{
// The following are the supported abstract column data types.
const TYPE_PK = 'pk';
const TYPE_UPK = 'upk';
- Exclude checks
The class QueryBuilder has 29 non-getter- and setter-methods. Consider refactoring QueryBuilder to keep number of methods under 25. Open
class QueryBuilder extends \yii\db\QueryBuilder
{
/**
* @var array mapping from abstract column types (keys) to physical column types (values).
*/
- 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