Code Duplication    Length = 5-5 lines in 2 locations

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

@@ 359-363 (lines=5) @@
356
            // less the sum of all tickets sold for these datetimes
357
            $spaces_remaining -= array_sum($this->tickets_sold);
358
        }
359
        if ($this->debug) {
360
            \EEH_Debug_Tools::printr($this->total_spaces, '$this->total_spaces', __FILE__, __LINE__);
361
            \EEH_Debug_Tools::printr($this->tickets_sold, '$this->tickets_sold', __FILE__, __LINE__);
362
            \EEH_Debug_Tools::printr($spaces_remaining, '$spaces_remaining', __FILE__, __LINE__);
363
        }
364
        return $spaces_remaining;
365
    }
366
@@ 414-418 (lines=5) @@
411
                echo "\n . NO TICKETS AVAILABLE FOR DATETIME";
412
            }
413
        }
414
        if ($this->debug) {
415
            \EEH_Debug_Tools::printr($this->total_spaces[$datetime_identifier], '$spaces_remaining', __FILE__, __LINE__);
416
            \EEH_Debug_Tools::printr($this->ticket_quantities, '$ticket_quantities', __FILE__, __LINE__);
417
            \EEH_Debug_Tools::printr($this->datetime_spaces, 'datetime_spaces', __FILE__, __LINE__);
418
        }
419
    }
420
421