Code Duplication    Length = 4-5 lines in 2 locations

classes/PodsAPI.php 1 location

@@ 8600-8603 (lines=4) @@
8597
            $this->deprecated = new PodsAPI_Deprecated( $this );
8598
        }
8599
8600
        if ( method_exists( $this->deprecated, $name ) )
8601
            return call_user_func_array( array( $this->deprecated, $name ), $args );
8602
        else
8603
            pods_deprecated( "PodsAPI::{$name}", '2.0' );
8604
    }
8605
8606
	/**

classes/Pods.php 1 location

@@ 4567-4571 (lines=5) @@
4564
4565
		$pod_class_exists = class_exists( 'Pod' );
4566
4567
		if ( method_exists( $this->deprecated, $name ) ) {
4568
			return call_user_func_array( array( $this->deprecated, $name ), $args );
4569
			// @codingStandardsIgnoreLine
4570
		} elseif ( ! $pod_class_exists || Pod::$deprecated_notice ) {
4571
			pods_deprecated( "Pods::{$name}", '2.0' );
4572
		}
4573
4574
		return null;