Code Duplication    Length = 3-3 lines in 2 locations

classes/PodsForm.php 2 locations

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