Code Duplication    Length = 4-4 lines in 2 locations

classes/PodsAPI.php 2 locations

@@ 8367-8370 (lines=4) @@
8364
    public function __get ( $name ) {
8365
        $name = (string) $name;
8366
8367
        if ( !isset( $this->deprecated ) ) {
8368
            require_once( PODS_DIR . 'deprecated/classes/PodsAPI.php' );
8369
            $this->deprecated = new PodsAPI_Deprecated( $this );
8370
        }
8371
8372
        $var = null;
8373
@@ 8393-8396 (lines=4) @@
8390
    public function __call ( $name, $args ) {
8391
        $name = (string) $name;
8392
8393
        if ( !isset( $this->deprecated ) ) {
8394
            require_once( PODS_DIR . 'deprecated/classes/PodsAPI.php' );
8395
            $this->deprecated = new PodsAPI_Deprecated( $this );
8396
        }
8397
8398
        if ( method_exists( $this->deprecated, $name ) )
8399
            return call_user_func_array( array( $this->deprecated, $name ), $args );