Code Duplication    Length = 6-6 lines in 3 locations

classes/PodsAPI.php 3 locations

@@ 5313-5318 (lines=6) @@
5310
            if ( pods_api_cache() )
5311
                $pod = pods_transient_get( $transient . '_' . $params->post_name );
5312
5313
            if ( false !== $pod && ( ! $table_info || isset( $pod[ 'table' ] ) ) ) {
5314
                if ( in_array( $pod[ 'type' ], array( 'post_type', 'taxonomy' ) ) && is_object( $sitepress ) && !$icl_adjust_id_url_filter_off )
5315
                    $pod = array_merge( $pod, $this->get_table_info( $pod[ 'type' ], $pod[ 'object' ], $pod[ 'name' ], $pod ) );
5316
5317
                return $pod;
5318
            }
5319
5320
            $_pod = get_object_vars( $params );
5321
        }
@@ 5364-5369 (lines=6) @@
5361
                elseif ( pods_api_cache() )
5362
                    $pod = pods_transient_get( $transient . '_' . $params->name );
5363
5364
                if ( false !== $pod && ( ! $table_info || isset( $pod[ 'table' ] ) ) ) {
5365
                    if ( in_array( $pod[ 'type' ], array( 'post_type', 'taxonomy' ) ) && is_object( $sitepress ) && !$icl_adjust_id_url_filter_off )
5366
                        $pod = array_merge( $pod, $this->get_table_info( $pod[ 'type' ], $pod[ 'object' ], $pod[ 'name' ], $pod ) );
5367
5368
                    return $pod;
5369
                }
5370
            }
5371
5372
            if ( !isset( $params->name ) )
@@ 5400-5405 (lines=6) @@
5397
        if ( pods_api_cache() )
5398
            $pod = pods_transient_get( $transient . '_' . $_pod[ 'post_name' ] );
5399
5400
        if ( false !== $pod && ( ! $table_info || isset( $pod[ 'table' ] ) ) ) {
5401
            if ( in_array( $pod[ 'type' ], array( 'post_type', 'taxonomy' ) ) && is_object( $sitepress ) && !$icl_adjust_id_url_filter_off )
5402
                $pod = array_merge( $pod, $this->get_table_info( $pod[ 'type' ], $pod[ 'object' ], $pod[ 'name' ], $pod ) );
5403
5404
            return $pod;
5405
        }
5406
5407
        $pod = array(
5408
            'id' => $_pod[ 'ID' ],