Code Duplication    Length = 4-4 lines in 2 locations

classes/PodsAPI.php 2 locations

@@ 8516-8519 (lines=4) @@
8513
    public function __get ( $name ) {
8514
        $name = (string) $name;
8515
8516
        if ( !isset( $this->deprecated ) ) {
8517
            require_once( PODS_DIR . 'deprecated/classes/PodsAPI.php' );
8518
            $this->deprecated = new PodsAPI_Deprecated( $this );
8519
        }
8520
8521
        $var = null;
8522
@@ 8542-8545 (lines=4) @@
8539
    public function __call ( $name, $args ) {
8540
        $name = (string) $name;
8541
8542
        if ( !isset( $this->deprecated ) ) {
8543
            require_once( PODS_DIR . 'deprecated/classes/PodsAPI.php' );
8544
            $this->deprecated = new PodsAPI_Deprecated( $this );
8545
        }
8546
8547
        if ( method_exists( $this->deprecated, $name ) )
8548
            return call_user_func_array( array( $this->deprecated, $name ), $args );