src/PHPixie/ORM/Relationships/Type/NestedSet/Handler.php

Summary

Maintainability
B
4 hrs
Test Coverage

Method mapDatabaseQuery has 36 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public function mapDatabaseQuery($builder, $side, $group, $plan)
    {
        $config = $side->config();
        $repository = $this->repository($config);

Severity: Minor
Found in src/PHPixie/ORM/Relationships/Type/NestedSet/Handler.php - About 1 hr to fix

    Method mapPreload has 35 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        public function mapPreload($side, $property, $result, $plan, $relatedLoader)
        {
            $config = $side->config();
            $repository = $this->repository($config);
    
    
    Severity: Minor
    Found in src/PHPixie/ORM/Relationships/Type/NestedSet/Handler.php - About 1 hr to fix

      Method unlinkPlan has 32 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          public function unlinkPlan($side, $items)
          {
              $config = $side->config();
              $repository = $this->repository($config);
      
      
      Severity: Minor
      Found in src/PHPixie/ORM/Relationships/Type/NestedSet/Handler.php - About 1 hr to fix

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

            public function mapPreload($side, $property, $result, $plan, $relatedLoader)
        Severity: Minor
        Found in src/PHPixie/ORM/Relationships/Type/NestedSet/Handler.php - About 35 mins to fix

          There are no issues that match your filters.

          Category
          Status