Code Duplication    Length = 4-4 lines in 2 locations

classes/PodsAPI.php 2 locations

@@ 8422-8425 (lines=4) @@
8419
    public function __get ( $name ) {
8420
        $name = (string) $name;
8421
8422
        if ( !isset( $this->deprecated ) ) {
8423
            require_once( PODS_DIR . 'deprecated/classes/PodsAPI.php' );
8424
            $this->deprecated = new PodsAPI_Deprecated( $this );
8425
        }
8426
8427
        $var = null;
8428
@@ 8448-8451 (lines=4) @@
8445
    public function __call ( $name, $args ) {
8446
        $name = (string) $name;
8447
8448
        if ( !isset( $this->deprecated ) ) {
8449
            require_once( PODS_DIR . 'deprecated/classes/PodsAPI.php' );
8450
            $this->deprecated = new PodsAPI_Deprecated( $this );
8451
        }
8452
8453
        if ( method_exists( $this->deprecated, $name ) )
8454
            return call_user_func_array( array( $this->deprecated, $name ), $args );