Code Duplication    Length = 4-5 lines in 2 locations

classes/Pods.php 1 location

@@ 4503-4507 (lines=5) @@
4500
4501
		$pod_class_exists = class_exists( 'Pod' );
4502
4503
		if ( method_exists( $this->deprecated, $name ) ) {
4504
			return call_user_func_array( array( $this->deprecated, $name ), $args );
4505
		} elseif ( ! $pod_class_exists || Pod::$deprecated_notice ) {
4506
			pods_deprecated( "Pods::{$name}", '2.0' );
4507
		}
4508
4509
		return null;
4510
	}

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
	/**