Code Duplication    Length = 17-17 lines in 2 locations

classes/PodsMeta.php 2 locations

@@ 1623-1639 (lines=17) @@
1620
                        pods_no_conflict_off( 'user' );
1621
                    }
1622
1623
                    if ( 'hidden' == $field[ 'type' ] ) {
1624
                        $hidden_fields[] = array(
1625
                            'field' => $field,
1626
                            'value' => $value
1627
                        );
1628
                    }
1629
                    else {
1630
            ?>
1631
                <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 ) ); ?>">
1632
                    <th scope="row" valign="top"><?php echo PodsForm::label( 'pods_meta_' . $field[ 'name' ], $field[ 'label' ], $field[ 'help' ], $field ); ?></th>
1633
                    <td>
1634
                        <?php echo PodsForm::field( 'pods_meta_' . $field[ 'name' ], $value, $field[ 'type' ], $field, $pod, $id ); ?>
1635
                        <?php echo PodsForm::comment( 'pods_meta_' . $field[ 'name' ], $field[ 'description' ], $field ); ?>
1636
                    </td>
1637
                </tr>
1638
            <?php
1639
                    }
1640
                }
1641
            ?>
1642
        </tbody>
@@ 1985-2001 (lines=17) @@
1982
                if ( !empty( $pod ) )
1983
                    $value = $pod->field( array( 'name' => $field[ 'name' ], 'in_form' => true ) );
1984
1985
                if ( 'hidden' == $field[ 'type' ] ) {
1986
                    $hidden_fields[] = array(
1987
                        'field' => $field,
1988
                        'value' => $value
1989
                    );
1990
                }
1991
                else {
1992
        ?>
1993
            <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 ) ); ?>">
1994
                <th scope="row" valign="top"><?php echo PodsForm::label( 'pods_meta_' . $field[ 'name' ], $field[ 'label' ], $field[ 'help' ], $field ); ?></th>
1995
                <td>
1996
                    <?php echo PodsForm::field( 'pods_meta_' . $field[ 'name' ], $value, $field[ 'type' ], $field, $pod, $id ); ?>
1997
                    <?php echo PodsForm::comment( 'pods_meta_' . $field[ 'name' ], $field[ 'description' ], $field ); ?>
1998
                </td>
1999
            </tr>
2000
        <?php
2001
                }
2002
            }
2003
        ?>
2004
    </table>