Code Duplication    Length = 3-3 lines in 2 locations

classes/PodsForm.php 2 locations

@@ 954-956 (lines=3) @@
951
952
        if ( method_exists( self::$loaded[ $type ], 'value' ) ) {
953
            if ( is_array( $value ) && in_array( $type, self::tableless_field_types() ) ) {
954
                foreach ( $value as &$display_value ) {
955
                    $display_value = call_user_func_array( array( self::$loaded[ $type ], 'value' ), array( $display_value, $name, $options, $pod, $id, $traverse ) );
956
                }
957
            }
958
            else
959
                $value = call_user_func_array( array( self::$loaded[ $type ], 'value' ), array( $value, $name, $options, $pod, $id, $traverse ) );
@@ 985-987 (lines=3) @@
982
983
        if ( method_exists( self::$loaded[ $type ], 'display' ) ) {
984
            if ( is_array( $value ) && !in_array( $type, $tableless_field_types ) ) {
985
                foreach ( $value as $k => $display_value ) {
986
                    $value[ $k ] = call_user_func_array( array( self::$loaded[ $type ], 'display' ), array( $display_value, $name, $options, $pod, $id, $traverse ) );
987
                }
988
            }
989
            else
990
                $value = call_user_func_array( array( self::$loaded[ $type ], 'display' ), array( $value, $name, $options, $pod, $id, $traverse ) );