PHPixie/Database

View on GitHub
src/PHPixie/Database/Driver/Mongo/Query/Item.php

Summary

Maintainability
F
3 days
Test Coverage

Item has 99 functions (exceeds 20 allowed). Consider refactoring.
Open

abstract class Item extends \PHPixie\Database\Driver\Mongo\Query
                    implements \PHPixie\Database\Driver\Mongo\Conditions\Builder
{
    public function __construct($connection, $parser, $builder)
    {
Severity: Major
Found in src/PHPixie/Database/Driver/Mongo/Query/Item.php - About 1 day to fix

    File Item.php has 418 lines of code (exceeds 250 allowed). Consider refactoring.
    Open

    <?php
    
    namespace PHPixie\Database\Driver\Mongo\Query;
    
    abstract class Item extends \PHPixie\Database\Driver\Mongo\Query
    Severity: Minor
    Found in src/PHPixie/Database/Driver/Mongo/Query/Item.php - About 6 hrs to fix

      Method addContainerOperatorCondition has 6 arguments (exceeds 4 allowed). Consider refactoring.
      Open

          protected function addContainerOperatorCondition($logic, $negate, $field, $operator, $values, $containerName = null)
      Severity: Minor
      Found in src/PHPixie/Database/Driver/Mongo/Query/Item.php - About 45 mins to fix

        Method addOperatorCondition has 5 arguments (exceeds 4 allowed). Consider refactoring.
        Open

            public function addOperatorCondition($logic, $negate, $field, $operator, $values)
        Severity: Minor
        Found in src/PHPixie/Database/Driver/Mongo/Query/Item.php - About 35 mins to fix

          Method addWhereOperatorCondition has 5 arguments (exceeds 4 allowed). Consider refactoring.
          Open

              public function addWhereOperatorCondition($logic, $negate, $field, $operator, $values)
          Severity: Minor
          Found in src/PHPixie/Database/Driver/Mongo/Query/Item.php - About 35 mins to fix

            Method addContainerInOperatorCondition has 5 arguments (exceeds 4 allowed). Consider refactoring.
            Open

                protected function addContainerInOperatorCondition($field, $values, $logic, $negate, $containerName = null)
            Severity: Minor
            Found in src/PHPixie/Database/Driver/Mongo/Query/Item.php - About 35 mins to fix

              Method addContainerSubdocumentPlaceholder has 5 arguments (exceeds 4 allowed). Consider refactoring.
              Open

                  protected function addContainerSubdocumentPlaceholder($field, $logic = 'and', $negate = false, $allowEmpty = true, $containerName = null)
              Severity: Minor
              Found in src/PHPixie/Database/Driver/Mongo/Query/Item.php - About 35 mins to fix

                Method addContainerSubarrayItemPlaceholder has 5 arguments (exceeds 4 allowed). Consider refactoring.
                Open

                    protected function addContainerSubarrayItemPlaceholder($field, $logic = 'and', $negate = false, $allowEmpty = true, $containerName = null)
                Severity: Minor
                Found in src/PHPixie/Database/Driver/Mongo/Query/Item.php - About 35 mins to fix

                  There are no issues that match your filters.

                  Category
                  Status