Code Duplication    Length = 9-9 lines in 6 locations

core/domain/services/pue/StatsGatherer.php 6 locations

@@ 199-207 (lines=9) @@
196
                case self::COUNT_REGISTRATIONS_ALL:
197
                    $count = $this->registration_model->count();
198
                    break;
199
                case self::COUNT_REGISTRATIONS_CANCELLED:
200
                    $count = $this->registration_model->count(
201
                        array(
202
                            array(
203
                                'STS_ID' => EEM_Registration::status_id_cancelled,
204
                            ),
205
                        )
206
                    );
207
                    break;
208
                case self::COUNT_REGISTRATIONS_INCOMPLETE:
209
                    $count = $this->registration_model->count(
210
                        array(
@@ 208-216 (lines=9) @@
205
                        )
206
                    );
207
                    break;
208
                case self::COUNT_REGISTRATIONS_INCOMPLETE:
209
                    $count = $this->registration_model->count(
210
                        array(
211
                            array(
212
                                'STS_ID' => EEM_Registration::status_id_incomplete,
213
                            ),
214
                        )
215
                    );
216
                    break;
217
                case self::COUNT_REGISTRATIONS_NOT_APPROVED:
218
                    $count = $this->registration_model->count(
219
                        array(
@@ 217-225 (lines=9) @@
214
                        )
215
                    );
216
                    break;
217
                case self::COUNT_REGISTRATIONS_NOT_APPROVED:
218
                    $count = $this->registration_model->count(
219
                        array(
220
                            array(
221
                                'STS_ID' => EEM_Registration::status_id_not_approved,
222
                            ),
223
                        )
224
                    );
225
                    break;
226
                case self::COUNT_REGISTRATIONS_DECLINED:
227
                    $count = $this->registration_model->count(
228
                        array(
@@ 226-234 (lines=9) @@
223
                        )
224
                    );
225
                    break;
226
                case self::COUNT_REGISTRATIONS_DECLINED:
227
                    $count = $this->registration_model->count(
228
                        array(
229
                            array(
230
                                'STS_ID' => EEM_Registration::status_id_declined,
231
                            ),
232
                        )
233
                    );
234
                    break;
235
                case self::COUNT_REGISTRATIONS_PENDING:
236
                    $count = $this->registration_model->count(
237
                        array(
@@ 235-243 (lines=9) @@
232
                        )
233
                    );
234
                    break;
235
                case self::COUNT_REGISTRATIONS_PENDING:
236
                    $count = $this->registration_model->count(
237
                        array(
238
                            array(
239
                                'STS_ID' => EEM_Registration::status_id_pending_payment,
240
                            ),
241
                        )
242
                    );
243
                    break;
244
                case self::COUNT_REGISTRATIONS_APPROVED:
245
                    $count = $this->registration_model->count(
246
                        array(
@@ 244-252 (lines=9) @@
241
                        )
242
                    );
243
                    break;
244
                case self::COUNT_REGISTRATIONS_APPROVED:
245
                    $count = $this->registration_model->count(
246
                        array(
247
                            array(
248
                                'STS_ID' => EEM_Registration::status_id_approved,
249
                            ),
250
                        )
251
                    );
252
                    break;
253
                case self::SUM_TRANSACTIONS_COMPLETE_TOTAL:
254
                    $count = $this->transaction_model->sum(
255
                        array(