Code Duplication    Length = 9-9 lines in 6 locations

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

@@ 186-194 (lines=9) @@
183
                case self::COUNT_REGISTRATIONS_ALL:
184
                    $count = $this->registration_model->count();
185
                    break;
186
                case self::COUNT_REGISTRATIONS_CANCELLED:
187
                    $count = $this->registration_model->count(
188
                        array(
189
                            array(
190
                                'STS_ID' => EEM_Registration::status_id_cancelled
191
                            )
192
                        )
193
                    );
194
                    break;
195
                case self::COUNT_REGISTRATIONS_INCOMPLETE:
196
                    $count = $this->registration_model->count(
197
                        array(
@@ 195-203 (lines=9) @@
192
                        )
193
                    );
194
                    break;
195
                case self::COUNT_REGISTRATIONS_INCOMPLETE:
196
                    $count = $this->registration_model->count(
197
                        array(
198
                            array(
199
                                'STS_ID' => EEM_Registration::status_id_incomplete
200
                            )
201
                        )
202
                    );
203
                    break;
204
                case self::COUNT_REGISTRATIONS_NOT_APPROVED:
205
                    $count = $this->registration_model->count(
206
                        array(
@@ 204-212 (lines=9) @@
201
                        )
202
                    );
203
                    break;
204
                case self::COUNT_REGISTRATIONS_NOT_APPROVED:
205
                    $count = $this->registration_model->count(
206
                        array(
207
                            array(
208
                                'STS_ID' => EEM_Registration::status_id_not_approved
209
                            )
210
                        )
211
                    );
212
                    break;
213
                case self::COUNT_REGISTRATIONS_DECLINED:
214
                    $count = $this->registration_model->count(
215
                        array(
@@ 213-221 (lines=9) @@
210
                        )
211
                    );
212
                    break;
213
                case self::COUNT_REGISTRATIONS_DECLINED:
214
                    $count = $this->registration_model->count(
215
                        array(
216
                            array(
217
                                'STS_ID' => EEM_Registration::status_id_declined
218
                            )
219
                        )
220
                    );
221
                    break;
222
                case self::COUNT_REGISTRATIONS_PENDING:
223
                    $count = $this->registration_model->count(
224
                        array(
@@ 222-230 (lines=9) @@
219
                        )
220
                    );
221
                    break;
222
                case self::COUNT_REGISTRATIONS_PENDING:
223
                    $count = $this->registration_model->count(
224
                        array(
225
                            array(
226
                                'STS_ID' => EEM_Registration::status_id_pending_payment
227
                            )
228
                        )
229
                    );
230
                    break;
231
                case self::COUNT_REGISTRATIONS_APPROVED:
232
                    $count = $this->registration_model->count(
233
                        array(
@@ 231-239 (lines=9) @@
228
                        )
229
                    );
230
                    break;
231
                case self::COUNT_REGISTRATIONS_APPROVED:
232
                    $count = $this->registration_model->count(
233
                        array(
234
                            array(
235
                                'STS_ID' => EEM_Registration::status_id_approved
236
                            )
237
                        )
238
                    );
239
                    break;
240
                case self::SUM_TRANSACTIONS_COMPLETE_TOTAL:
241
                    $count = $this->transaction_model->sum(
242
                        array(