Code Duplication    Length = 6-6 lines in 3 locations

classes/PodsAPI.php 3 locations

@@ 5308-5313 (lines=6) @@
5305
            if ( pods_api_cache() )
5306
                $pod = pods_transient_get( $transient . '_' . $params->post_name );
5307
5308
            if ( false !== $pod && ( ! $table_info || isset( $pod[ 'table' ] ) ) ) {
5309
                if ( in_array( $pod[ 'type' ], array( 'post_type', 'taxonomy' ) ) && is_object( $sitepress ) && !$icl_adjust_id_url_filter_off )
5310
                    $pod = array_merge( $pod, $this->get_table_info( $pod[ 'type' ], $pod[ 'object' ], $pod[ 'name' ], $pod ) );
5311
5312
                return $pod;
5313
            }
5314
5315
            $_pod = get_object_vars( $params );
5316
        }
@@ 5359-5364 (lines=6) @@
5356
                elseif ( pods_api_cache() )
5357
                    $pod = pods_transient_get( $transient . '_' . $params->name );
5358
5359
                if ( false !== $pod && ( ! $table_info || isset( $pod[ 'table' ] ) ) ) {
5360
                    if ( in_array( $pod[ 'type' ], array( 'post_type', 'taxonomy' ) ) && is_object( $sitepress ) && !$icl_adjust_id_url_filter_off )
5361
                        $pod = array_merge( $pod, $this->get_table_info( $pod[ 'type' ], $pod[ 'object' ], $pod[ 'name' ], $pod ) );
5362
5363
                    return $pod;
5364
                }
5365
            }
5366
5367
            if ( !isset( $params->name ) )
@@ 5395-5400 (lines=6) @@
5392
        if ( pods_api_cache() )
5393
            $pod = pods_transient_get( $transient . '_' . $_pod[ 'post_name' ] );
5394
5395
        if ( false !== $pod && ( ! $table_info || isset( $pod[ 'table' ] ) ) ) {
5396
            if ( in_array( $pod[ 'type' ], array( 'post_type', 'taxonomy' ) ) && is_object( $sitepress ) && !$icl_adjust_id_url_filter_off )
5397
                $pod = array_merge( $pod, $this->get_table_info( $pod[ 'type' ], $pod[ 'object' ], $pod[ 'name' ], $pod ) );
5398
5399
            return $pod;
5400
        }
5401
5402
        $pod = array(
5403
            'id' => $_pod[ 'ID' ],