Code Duplication    Length = 5-5 lines in 2 locations

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

@@ 375-379 (lines=5) @@
372
        }
373
        // total spaces available is just the sum of the spaces available for each datetime
374
        $spaces_remaining = array_sum($this->total_spaces);
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
@@ 463-467 (lines=5) @@
460
                \EEH_Debug_Tools::printr(' ', ' . NO TICKETS AVAILABLE FOR DATETIME', __FILE__, __LINE__);
461
            }
462
        }
463
        if ($this->debug) {
464
            \EEH_Debug_Tools::printr($this->total_spaces[ $datetime_identifier ], '$total_spaces', __FILE__,
465
                __LINE__);
466
            \EEH_Debug_Tools::printr($this->ticket_quantities, '$ticket_quantities', __FILE__, __LINE__);
467
            \EEH_Debug_Tools::printr($this->datetime_spaces, 'datetime_spaces', __FILE__, __LINE__);
468
        }
469
    }
470