Code Duplication    Length = 4-4 lines in 2 locations

classes/PodsAPI.php 2 locations

@@ 8274-8277 (lines=4) @@
8271
    public function __get ( $name ) {
8272
        $name = (string) $name;
8273
8274
        if ( !isset( $this->deprecated ) ) {
8275
            require_once( PODS_DIR . 'deprecated/classes/PodsAPI.php' );
8276
            $this->deprecated = new PodsAPI_Deprecated( $this );
8277
        }
8278
8279
        $var = null;
8280
@@ 8300-8303 (lines=4) @@
8297
    public function __call ( $name, $args ) {
8298
        $name = (string) $name;
8299
8300
        if ( !isset( $this->deprecated ) ) {
8301
            require_once( PODS_DIR . 'deprecated/classes/PodsAPI.php' );
8302
            $this->deprecated = new PodsAPI_Deprecated( $this );
8303
        }
8304
8305
        if ( method_exists( $this->deprecated, $name ) )
8306
            return call_user_func_array( array( $this->deprecated, $name ), $args );