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

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