Code Duplication    Length = 2-2 lines in 2 locations

classes/PodsMigrate.php 1 location

@@ 771-772 (lines=2) @@
768
            if ( false !== $output )
769
                echo "<br />" . date( 'Y-m-d h:i:sa' ) . " - <em>" . $data[ 'pod' ][ 'name' ] . "</em> - <em>" . $data[ 'pod' ][ 'name' ] . "</em> - <strong>Loading Pod: " . $data[ 'pod' ][ 'name' ] . "</strong>\n";
770
771
            if ( 2 > count( $data[ 'pod' ] ) )
772
                $data[ 'pod' ] = $api->load_pod( array( 'name' => $data[ 'pod' ][ 'name' ] ) );
773
774
            if ( empty( $data[ 'pod' ][ 'fields' ] ) )
775
                continue;

classes/PodsAPI.php 1 location

@@ 2200-2201 (lines=2) @@
2197
            PodsMeta::$taxonomies[ $pod[ 'id' ] ] = $this->load_pod( array( 'name' => $pod[ 'name' ] ) );
2198
        elseif ( 'media' == $pod[ 'type' ] )
2199
            PodsMeta::$media[ $pod[ 'id' ] ] = $this->load_pod( array( 'name' => $pod[ 'name' ] ) );
2200
        elseif ( 'user' == $pod[ 'type' ] )
2201
            PodsMeta::$user[ $pod[ 'id' ] ] = $this->load_pod( array( 'name' => $pod[ 'name' ] ) );
2202
        elseif ( 'comment' == $pod[ 'type' ] )
2203
            PodsMeta::$comment[ $pod[ 'id' ] ] = $this->load_pod( array( 'name' => $pod[ 'name' ] ) );
2204