Code Duplication    Length = 9-9 lines in 2 locations

includes/class-give-license-handler.php 2 locations

@@ 723-731 (lines=9) @@
720
		 *
721
		 * @return bool
722
		 */
723
		public function is_license( $licence_data = null ){
724
			$license_data = empty( $licence_data ) ? $this->license_data : $licence_data;
725
726
			if ( apply_filters( 'give_is_license', ( is_object( $license_data ) && ! empty( $license_data ) && property_exists( $license_data, 'license' ) ) ) ) {
727
				return true;
728
			}
729
730
			return false;
731
		}
732
733
		/**
734
		 * Check if subscription is subscription object of no.
@@ 743-751 (lines=9) @@
740
		 *
741
		 * @return bool
742
		 */
743
		public function is_subscription( $subscription_data = null ){
744
			$subscription_data = empty( $subscription_data ) ? $this->license_data : $subscription_data;
745
746
			if ( apply_filters( 'give_is_subscription', ( is_object( $subscription_data ) && ! empty( $subscription_data ) && property_exists( $subscription_data, 'license_key' ) ) ) ) {
747
				return true;
748
			}
749
750
			return false;
751
		}
752
753
		/**
754
		 * Check if license is valid or not.