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

@@ 4551-4555 (lines=5) @@
4548
4549
		$pod_class_exists = class_exists( 'Pod' );
4550
4551
		if ( method_exists( $this->deprecated, $name ) ) {
4552
			return call_user_func_array( array( $this->deprecated, $name ), $args );
4553
			// @codingStandardsIgnoreLine
4554
		} elseif ( ! $pod_class_exists || Pod::$deprecated_notice ) {
4555
			pods_deprecated( "Pods::{$name}", '2.0' );
4556
		}
4557
4558
		return null;