@@ -630,10 +630,6 @@
Loading
630 630
            return true;
631 631
        }
632 632
633 -
        $ids = array_values(array_unique(array_map(function (Team $team) {
634 -
            return $team->getId();
635 -
        }, $teams)));
636 -
637 633
        $orProject = $qb->expr()->orX(
638 634
            'SIZE(p.teams) = 0',
639 635
            $qb->expr()->isMemberOf(':teams', 'p.teams')
@@ -646,6 +642,10 @@
Loading
646 642
        );
647 643
        $qb->andWhere($orCustomer);
648 644
645 +
        $ids = array_values(array_unique(array_map(function (Team $team) {
646 +
            return $team->getId();
647 +
        }, $teams)));
648 +
649 649
        $qb->setParameter('teams', $ids);
650 650
651 651
        return true;

@@ -13,6 +13,7 @@
Loading
13 13
use App\Entity\Customer;
14 14
use App\Entity\CustomerComment;
15 15
use App\Entity\Project;
16 +
use App\Entity\Team;
16 17
use App\Entity\Timesheet;
17 18
use App\Entity\User;
18 19
use App\Model\CustomerStatistic;
@@ -162,7 +163,11 @@
Loading
162 163
        );
163 164
        $qb->andWhere($or);
164 165
165 -
        $qb->setParameter('teams', $teams);
166 +
        $ids = array_values(array_unique(array_map(function (Team $team) {
167 +
            return $team->getId();
168 +
        }, $teams)));
169 +
170 +
        $qb->setParameter('teams', $ids);
166 171
    }
167 172
168 173
    /**

@@ -11,6 +11,7 @@
Loading
11 11
12 12
use App\Entity\Activity;
13 13
use App\Entity\Project;
14 +
use App\Entity\Team;
14 15
use App\Entity\Timesheet;
15 16
use App\Entity\User;
16 17
use App\Model\ActivityStatistic;
@@ -163,7 +164,11 @@
Loading
163 164
            $qb->andWhere($orCustomer);
164 165
        }
165 166
166 -
        $qb->setParameter('teams', $teams);
167 +
        $ids = array_values(array_unique(array_map(function (Team $team) {
168 +
            return $team->getId();
169 +
        }, $teams)));
170 +
171 +
        $qb->setParameter('teams', $ids);
167 172
    }
168 173
169 174
    /**

@@ -12,6 +12,7 @@
Loading
12 12
use App\Entity\Activity;
13 13
use App\Entity\Project;
14 14
use App\Entity\ProjectComment;
15 +
use App\Entity\Team;
15 16
use App\Entity\Timesheet;
16 17
use App\Entity\User;
17 18
use App\Model\ProjectStatistic;
@@ -161,7 +162,11 @@
Loading
161 162
        );
162 163
        $qb->andWhere($orCustomer);
163 164
164 -
        $qb->setParameter('teams', $teams);
165 +
        $ids = array_values(array_unique(array_map(function (Team $team) {
166 +
            return $team->getId();
167 +
        }, $teams)));
168 +
169 +
        $qb->setParameter('teams', $ids);
165 170
    }
166 171
167 172
    /**

@@ -11,6 +11,7 @@
Loading
11 11
12 12
use App\Entity\Customer;
13 13
use App\Entity\Invoice;
14 +
use App\Entity\Team;
14 15
use App\Entity\User;
15 16
use App\Repository\Loader\InvoiceLoader;
16 17
use App\Repository\Paginator\LoaderPaginator;
@@ -129,7 +130,11 @@
Loading
129 130
        );
130 131
        $qb->andWhere($orCustomer);
131 132
132 -
        $qb->setParameter('teams', $teams);
133 +
        $ids = array_values(array_unique(array_map(function (Team $team) {
134 +
            return $team->getId();
135 +
        }, $teams)));
136 +
137 +
        $qb->setParameter('teams', $ids);
133 138
    }
134 139
135 140
    private function getQueryBuilderForQuery(InvoiceQuery $query): QueryBuilder
Files Complexity Coverage
src 5,787 93.33%
Project Totals (530 files) 5787 93.33%
1
codecov:
2
  notify:
3
    require_ci_to_pass: yes
4

5
coverage:
6
  precision: 2
7
  round: down
8
  range: "80...100"
9

10
  status:
11
    project:
12
      default:
13
        threshold: 0.5%
14
    patch:
15
      default:
16
        threshold: 50%
17
    changes: no
18

19
parsers:
20
  gcov:
21
    branch_detection:
22
      conditional: yes
23
      loop: yes
24
      method: no
25
      macro: no
26

27
comment:
28
  layout: "diff, flags, files"
29
  behavior: default
30
  require_changes: yes
31
  require_base: no
32
  require_head: yes
33
  branches: null
Sunburst
The inner-most circle is the entire project, moving away from the center are folders then, finally, a single file. The size and color of each slice is representing the number of statements and the coverage, respectively.
Icicle
The top section represents the entire project. Proceeding with folders and finally individual files. The size and color of each slice is representing the number of statements and the coverage, respectively.
Grid
Each block represents a single file in the project. The size and color of each block is represented by the number of statements and the coverage, respectively.
Loading