Code Duplication    Length = 3-3 lines in 2 locations

classes/PodsForm.php 2 locations

@@ 910-912 (lines=3) @@
907
908
        if ( method_exists( self::$loaded[ $type ], 'value' ) ) {
909
            if ( is_array( $value ) && in_array( $type, self::tableless_field_types() ) ) {
910
                foreach ( $value as &$display_value ) {
911
                    $display_value = call_user_func_array( array( self::$loaded[ $type ], 'value' ), array( $display_value, $name, $options, $pod, $id, $traverse ) );
912
                }
913
            }
914
            else
915
                $value = call_user_func_array( array( self::$loaded[ $type ], 'value' ), array( $value, $name, $options, $pod, $id, $traverse ) );
@@ 941-943 (lines=3) @@
938
939
        if ( method_exists( self::$loaded[ $type ], 'display' ) ) {
940
            if ( is_array( $value ) && !in_array( $type, $tableless_field_types ) ) {
941
                foreach ( $value as $k => $display_value ) {
942
                    $value[ $k ] = call_user_func_array( array( self::$loaded[ $type ], 'display' ), array( $display_value, $name, $options, $pod, $id, $traverse ) );
943
                }
944
            }
945
            else
946
                $value = call_user_func_array( array( self::$loaded[ $type ], 'display' ), array( $value, $name, $options, $pod, $id, $traverse ) );