yiisoft/yii2

View on GitHub

Showing 1,331 of 2,467 total issues

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

abstract class SqlTokenizer extends Component
{
    /**
     * @var string SQL code.
     */
Severity: Minor
Found in framework/db/SqlTokenizer.php by phpmd

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

class Schema extends \yii\db\Schema implements ConstraintFinderInterface
{
    use ConstraintFinderTrait;

    /**
Severity: Minor
Found in framework/db/sqlite/Schema.php by phpmd

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

class QueryBuilder extends \yii\db\QueryBuilder
{
    /**
     * @var array mapping from abstract column types (keys) to physical column types (values).
     */
Severity: Minor
Found in framework/db/sqlite/QueryBuilder.php by phpmd

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

class Security extends Component
{
    /**
     * @var string The cipher to use for encryption and decryption.
     */
Severity: Minor
Found in framework/base/Security.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 YiiRequirementChecker has an overall complexity of 59 which is very high. The configured complexity threshold is 50.
Open

class YiiRequirementChecker
{
    /**
     * @var Check result
     */

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

abstract class ErrorHandler extends Component
{
    /**
     * @event Event an event that is triggered when the handler is called by shutdown function via [[handleFatalError()]].
     * @since 2.0.46
Severity: Minor
Found in framework/base/ErrorHandler.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 Module has an overall complexity of 86 which is very high. The configured complexity threshold is 50.
Open

class Module extends ServiceLocator
{
    /**
     * @event ActionEvent an event raised before executing a controller action.
     * You may set [[ActionEvent::isValid]] to be `false` to cancel the action execution.
Severity: Minor
Found in framework/base/Module.php by phpmd

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

class MultipartFormDataParser extends BaseObject implements RequestParserInterface
{
    /**
     * @var bool whether to parse raw body even for 'POST' request and `$_FILES` already populated.
     * By default this option is disabled saving performance for 'POST' requests, which are already

The class Migration has 31 public methods. Consider refactoring Migration to keep number of public methods under 10.
Open

class Migration extends Component implements MigrationInterface
{
    use SchemaBuilderTrait;

    /**
Severity: Minor
Found in framework/db/Migration.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 ErrorHandler has an overall complexity of 53 which is very high. The configured complexity threshold is 50.
Open

abstract class ErrorHandler extends Component
{
    /**
     * @event Event an event that is triggered when the handler is called by shutdown function via [[handleFatalError()]].
     * @since 2.0.46
Severity: Minor
Found in framework/base/ErrorHandler.php by phpmd

The class Session has 21 public methods. Consider refactoring Session to keep number of public methods under 10.
Open

class Session extends Component implements \IteratorAggregate, \ArrayAccess, \Countable
{
    /**
     * @var string|null Holds the original session module (before a custom handler is registered) so that it can be
     * restored when a Session component without custom handler is used after one that has.
Severity: Minor
Found in framework/web/Session.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 QueryBuilder has an overall complexity of 97 which is very high. The configured complexity threshold is 50.
Open

class QueryBuilder extends \yii\db\QueryBuilder
{
    /**
     * @var array mapping from abstract column types (keys) to physical column types (values).
     */
Severity: Minor
Found in framework/db/mssql/QueryBuilder.php by phpmd

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

class Schema extends \yii\db\Schema implements ConstraintFinderInterface
{
    use ViewFinderTrait;
    use ConstraintFinderTrait;

Severity: Minor
Found in framework/db/pgsql/Schema.php by phpmd

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

class QueryBuilder extends \yii\db\QueryBuilder
{
    /**
     * @var array mapping from abstract column types (keys) to physical column types (values).
     */
Severity: Minor
Found in framework/db/oci/QueryBuilder.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 QueryBuilder has an overall complexity of 53 which is very high. The configured complexity threshold is 50.
Open

class QueryBuilder extends \yii\db\QueryBuilder
{
    /**
     * @var array mapping from abstract column types (keys) to physical column types (values).
     */
Severity: Minor
Found in framework/db/oci/QueryBuilder.php by phpmd

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

class Controller extends Component implements ViewContextInterface
{
    /**
     * @event ActionEvent an event raised right before executing a controller action.
     * You may set [[ActionEvent::isValid]] to be false to cancel the action execution.
Severity: Minor
Found in framework/base/Controller.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 View has 19 public methods. Consider refactoring View to keep number of public methods under 10.
Open

class View extends Component implements DynamicContentAwareInterface
{
    /**
     * @event Event an event that is triggered by [[beginPage()]].
     */
Severity: Minor
Found in framework/base/View.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 View has an overall complexity of 57 which is very high. The configured complexity threshold is 50.
Open

class View extends Component implements DynamicContentAwareInterface
{
    /**
     * @event Event an event that is triggered by [[beginPage()]].
     */
Severity: Minor
Found in framework/base/View.php by phpmd

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

class DataReader extends \yii\base\BaseObject implements \Iterator, \Countable
{
    /**
     * @var \PDOStatement the PDOStatement associated with the command
     */
Severity: Minor
Found in framework/db/DataReader.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 Application has an overall complexity of 72 which is very high. The configured complexity threshold is 50.
Open

abstract class Application extends Module
{
    /**
     * @event Event an event raised before the application starts to handle a request.
     */
Severity: Minor
Found in framework/base/Application.php by phpmd
Severity
Category
Status
Source
Language