Code Duplication    Length = 17-17 lines in 2 locations

classes/PodsMeta.php 2 locations

@@ 1629-1645 (lines=17) @@
1626
                        pods_no_conflict_off( 'user' );
1627
                    }
1628
1629
                    if ( 'hidden' == $field[ 'type' ] ) {
1630
                        $hidden_fields[] = array(
1631
                            'field' => $field,
1632
                            'value' => $value
1633
                        );
1634
                    }
1635
                    else {
1636
            ?>
1637
                <tr class="form-field pods-field <?php echo esc_attr( 'pods-form-ui-row-type-' . $field[ 'type' ] . ' pods-form-ui-row-name-' . PodsForm::clean( $field[ 'name' ], true ) ); ?>">
1638
                    <th scope="row" valign="top"><?php echo PodsForm::label( 'pods_meta_' . $field[ 'name' ], $field[ 'label' ], $field[ 'help' ], $field ); ?></th>
1639
                    <td>
1640
                        <?php echo PodsForm::field( 'pods_meta_' . $field[ 'name' ], $value, $field[ 'type' ], $field, $pod, $id ); ?>
1641
                        <?php echo PodsForm::comment( 'pods_meta_' . $field[ 'name' ], $field[ 'description' ], $field ); ?>
1642
                    </td>
1643
                </tr>
1644
            <?php
1645
                    }
1646
                }
1647
            ?>
1648
        </tbody>
@@ 1991-2007 (lines=17) @@
1988
                if ( !empty( $pod ) )
1989
                    $value = $pod->field( array( 'name' => $field[ 'name' ], 'in_form' => true ) );
1990
1991
                if ( 'hidden' == $field[ 'type' ] ) {
1992
                    $hidden_fields[] = array(
1993
                        'field' => $field,
1994
                        'value' => $value
1995
                    );
1996
                }
1997
                else {
1998
        ?>
1999
            <tr class="form-field pods-field <?php echo esc_attr( 'pods-form-ui-row-type-' . $field[ 'type' ] . ' pods-form-ui-row-name-' . PodsForm::clean( $field[ 'name' ], true ) ); ?>">
2000
                <th scope="row" valign="top"><?php echo PodsForm::label( 'pods_meta_' . $field[ 'name' ], $field[ 'label' ], $field[ 'help' ], $field ); ?></th>
2001
                <td>
2002
                    <?php echo PodsForm::field( 'pods_meta_' . $field[ 'name' ], $value, $field[ 'type' ], $field, $pod, $id ); ?>
2003
                    <?php echo PodsForm::comment( 'pods_meta_' . $field[ 'name' ], $field[ 'description' ], $field ); ?>
2004
                </td>
2005
            </tr>
2006
        <?php
2007
                }
2008
            }
2009
        ?>
2010
    </table>