Code Duplication    Length = 4-4 lines in 2 locations

classes/PodsMeta.php 2 locations

@@ 982-985 (lines=4) @@
979
        if ( is_object( $post ) && false === strpos( $_SERVER[ 'REQUEST_URI' ], '/post-new.php' ) )
980
            $id = $post->ID;
981
982
        if ( empty( self::$current_pod_data ) || !is_object( self::$current_pod ) || self::$current_pod->pod != $metabox[ 'args' ][ 'group' ][ 'pod' ][ 'name' ] )
983
            self::$current_pod = pods( $metabox[ 'args' ][ 'group' ][ 'pod' ][ 'name' ], $id, true );
984
		elseif ( self::$current_pod->id() != $id )
985
			self::$current_pod->fetch( $id );
986
987
        $pod = self::$current_pod;
988
@@ 1969-1972 (lines=4) @@
1966
            if ( is_object( $comment ) )
1967
                $id = $comment->comment_ID;
1968
1969
            if ( !is_object( self::$current_pod ) || self::$current_pod->pod != $metabox[ 'args' ][ 'group' ][ 'pod' ][ 'name' ] )
1970
                self::$current_pod = pods( $metabox[ 'args' ][ 'group' ][ 'pod' ][ 'name' ], $id, true );
1971
			elseif ( self::$current_pod->id() != $id )
1972
				self::$current_pod->fetch( $id );
1973
1974
            $pod = self::$current_pod;
1975