@@ -268,10 +268,6 @@
Loading
268 268
            }
269 269
        }
270 270
271 -
        // this will make sure, that we do not accidentally create results with multiple rows,
272 -
        // which would result in a wrong LIMIT with paginated results
273 -
        $qb->addGroupBy('c');
274 -
275 271
        return $qb;
276 272
    }
277 273

@@ -366,13 +366,6 @@
Loading
366 366
            }
367 367
        }
368 368
369 -
        // this will make sure, that we do not accidentally create results with multiple rows,
370 -
        // which would result in a wrong LIMIT with paginated results
371 -
        $qb->addGroupBy('p');
372 -
373 -
        // the second group by is needed to satisfy SQL standard (ONLY_FULL_GROUP_BY)
374 -
        $qb->addGroupBy($orderBy);
375 -
376 369
        return $qb;
377 370
    }
378 371

@@ -115,18 +115,16 @@
Loading
115 115
            $teams = array_merge($teams, $user->getTeams()->toArray());
116 116
        }
117 117
118 -
        $qb
119 -
            ->leftJoin('i.customer', 'c')
120 -
            ->leftJoin('c.teams', 'c_teams');
118 +
        $qb->leftJoin('i.customer', 'c');
121 119
122 120
        if (empty($teams)) {
123 -
            $qb->andWhere($qb->expr()->isNull('c_teams'));
121 +
            $qb->andWhere('SIZE(c.teams) = 0');
124 122
125 123
            return;
126 124
        }
127 125
128 126
        $orCustomer = $qb->expr()->orX(
129 -
            $qb->expr()->isNull('c_teams'),
127 +
            'SIZE(c.teams) = 0',
130 128
            $qb->expr()->isMemberOf(':teams', 'c.teams')
131 129
        );
132 130
        $qb->andWhere($orCustomer);
@@ -154,13 +152,6 @@
Loading
154 152
155 153
        $this->addPermissionCriteria($qb, $query->getCurrentUser());
156 154
157 -
        // this will make sure, that we do not accidentally create results with multiple rows,
158 -
        // which would result in a wrong LIMIT with paginated results
159 -
        $qb->addGroupBy('i');
160 -
161 -
        // the second group by is needed to satisfy SQL standard (ONLY_FULL_GROUP_BY)
162 -
        $qb->addGroupBy($orderBy);
163 -
164 155
        return $qb;
165 156
    }
166 157
Files Complexity Coverage
src 5,787 93.35%
Project Totals (530 files) 5787 93.35%
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