Code Duplication    Length = 12-13 lines in 2 locations

core/db_classes/EE_Ticket.class.php 2 locations

@@ 931-942 (lines=12) @@
928
     * @return void
929
     * @throws \EE_Error
930
     */
931
	public function increase_reserved( $qty = 1 ) {
932
		$qty = absint( $qty );
933
		$reserved = $this->reserved() + $qty;
934
		$this->_increase_reserved_for_datetimes( $qty );
935
		$this->set_reserved( $reserved );
936
        do_action(
937
            'AHEE__EE_Ticket__increase_reserved',
938
            $this,
939
            $qty,
940
            $reserved
941
        );
942
    }
943
944
945
@@ 975-987 (lines=13) @@
972
     * @return void
973
     * @throws \EE_Error
974
     */
975
	public function decrease_reserved( $qty = 1, $adjust_datetimes = true ) {
976
		$reserved = $this->reserved() - absint( $qty );
977
		if ( $adjust_datetimes ) {
978
			$this->_decrease_reserved_for_datetimes( $qty );
979
		}
980
		$this->set_reserved( $reserved );
981
        do_action(
982
            'AHEE__EE_Ticket__decrease_reserved',
983
            $this,
984
            $qty,
985
            $reserved
986
        );
987
    }
988
989
990