Code Duplication    Length = 3-3 lines in 2 locations

classes/PodsForm.php 2 locations

@@ 948-950 (lines=3) @@
945
946
        if ( method_exists( self::$loaded[ $type ], 'value' ) ) {
947
            if ( is_array( $value ) && in_array( $type, self::tableless_field_types() ) ) {
948
                foreach ( $value as &$display_value ) {
949
                    $display_value = call_user_func_array( array( self::$loaded[ $type ], 'value' ), array( $display_value, $name, $options, $pod, $id, $traverse ) );
950
                }
951
            }
952
            else
953
                $value = call_user_func_array( array( self::$loaded[ $type ], 'value' ), array( $value, $name, $options, $pod, $id, $traverse ) );
@@ 979-981 (lines=3) @@
976
977
        if ( method_exists( self::$loaded[ $type ], 'display' ) ) {
978
            if ( is_array( $value ) && !in_array( $type, $tableless_field_types ) ) {
979
                foreach ( $value as $k => $display_value ) {
980
                    $value[ $k ] = call_user_func_array( array( self::$loaded[ $type ], 'display' ), array( $display_value, $name, $options, $pod, $id, $traverse ) );
981
                }
982
            }
983
            else
984
                $value = call_user_func_array( array( self::$loaded[ $type ], 'display' ), array( $value, $name, $options, $pod, $id, $traverse ) );