Code Duplication    Length = 6-6 lines in 3 locations

classes/PodsAPI.php 3 locations

@@ 5317-5322 (lines=6) @@
5314
            if ( pods_api_cache() )
5315
                $pod = pods_transient_get( $transient . '_' . $params->post_name );
5316
5317
            if ( false !== $pod && ( ! $table_info || isset( $pod[ 'table' ] ) ) ) {
5318
	            // @todo Is this needed anymore for WPML?
5319
                if ( in_array( $pod[ 'type' ], array( 'post_type', 'taxonomy' ) ) && is_object( $sitepress ) && !$icl_adjust_id_url_filter_off )
5320
                    $pod = array_merge( $pod, $this->get_table_info( $pod[ 'type' ], $pod[ 'object' ], $pod[ 'name' ], $pod ) );
5321
5322
                return $pod;
5323
            }
5324
5325
            $_pod = get_object_vars( $params );
@@ 5369-5374 (lines=6) @@
5366
                elseif ( pods_api_cache() )
5367
                    $pod = pods_transient_get( $transient . '_' . $params->name );
5368
5369
                if ( false !== $pod && ( ! $table_info || isset( $pod[ 'table' ] ) ) ) {
5370
                    if ( in_array( $pod[ 'type' ], array( 'post_type', 'taxonomy' ) ) && is_object( $sitepress ) && !$icl_adjust_id_url_filter_off )
5371
                        $pod = array_merge( $pod, $this->get_table_info( $pod[ 'type' ], $pod[ 'object' ], $pod[ 'name' ], $pod ) );
5372
5373
                    return $pod;
5374
                }
5375
            }
5376
5377
            if ( !isset( $params->name ) )
@@ 5405-5410 (lines=6) @@
5402
        if ( pods_api_cache() )
5403
            $pod = pods_transient_get( $transient . '_' . $_pod[ 'post_name' ] );
5404
5405
        if ( false !== $pod && ( ! $table_info || isset( $pod[ 'table' ] ) ) ) {
5406
            if ( in_array( $pod[ 'type' ], array( 'post_type', 'taxonomy' ) ) && is_object( $sitepress ) && !$icl_adjust_id_url_filter_off )
5407
                $pod = array_merge( $pod, $this->get_table_info( $pod[ 'type' ], $pod[ 'object' ], $pod[ 'name' ], $pod ) );
5408
5409
            return $pod;
5410
        }
5411
5412
        $pod = array(
5413
            'id' => $_pod[ 'ID' ],