Code Duplication    Length = 5-5 lines in 2 locations

core/domain/services/event/EventSpacesCalculator.php 2 locations

@@ 375-379 (lines=5) @@
372
            // less the sum of all tickets sold for these datetimes
373
            $spaces_remaining -= array_sum($this->tickets_sold);
374
        }
375
        if ($this->debug) {
376
            \EEH_Debug_Tools::printr($this->total_spaces, '$this->total_spaces', __FILE__, __LINE__);
377
            \EEH_Debug_Tools::printr($this->tickets_sold, '$this->tickets_sold', __FILE__, __LINE__);
378
            \EEH_Debug_Tools::printr($spaces_remaining, '$spaces_remaining', __FILE__, __LINE__);
379
        }
380
        return $spaces_remaining;
381
    }
382
@@ 430-434 (lines=5) @@
427
                \EEH_Debug_Tools::printr(' ', ' . NO TICKETS AVAILABLE FOR DATETIME', __FILE__, __LINE__);
428
            }
429
        }
430
        if ($this->debug) {
431
            \EEH_Debug_Tools::printr($this->total_spaces[ $datetime_identifier ], '$spaces_remaining', __FILE__,
432
                __LINE__);
433
            \EEH_Debug_Tools::printr($this->ticket_quantities, '$ticket_quantities', __FILE__, __LINE__);
434
            \EEH_Debug_Tools::printr($this->datetime_spaces, 'datetime_spaces', __FILE__, __LINE__);
435
        }
436
    }
437