Code Duplication    Length = 11-13 lines in 2 locations

classes/PodsMeta.php 2 locations

@@ 919-931 (lines=13) @@
916
            if ( empty( $group[ 'label' ] ) )
917
                $group[ 'label' ] = get_post_type_object( $post_type )->labels->label;
918
919
            if ( $field_found ) {
920
                $pods_field_found = true;
921
                add_meta_box(
922
                    'pods-meta-' . sanitize_title( $group[ 'label' ] ),
923
                    $group[ 'label' ],
924
                    array( $this, 'meta_post' ),
925
                    $post_type,
926
                    $group[ 'context' ],
927
                    $group[ 'priority' ],
928
                    array( 'group' => $group )
929
                );
930
931
            }
932
        }
933
934
		if ( $pods_field_found ) {
@@ 1929-1939 (lines=11) @@
1926
                }
1927
            }
1928
1929
            if ( $field_found ) {
1930
                add_meta_box(
1931
                    'pods-meta-' . sanitize_title( $group[ 'label' ] ),
1932
                    $group[ 'label' ],
1933
                    array( $this, 'meta_comment' ),
1934
                    $comment_type,
1935
                    $group[ 'context' ],
1936
                    $group[ 'priority' ],
1937
                    array( 'group' => $group )
1938
                );
1939
            }
1940
        }
1941
    }
1942