Skip to content

Commit 0b88dfd

Browse files
[TASK] Improve CaseViewHelper docs description (#1045)
1 parent 45c31c2 commit 0b88dfd

File tree

2 files changed

+11
-6
lines changed

2 files changed

+11
-6
lines changed

Documentation/ViewHelpers/Fluid.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

src/ViewHelpers/Format/CaseViewHelper.php

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,19 +19,24 @@
1919
* Possible modes are:
2020
*
2121
* ``lower``
22-
* Transforms the input string to its lowercase representation
22+
* Transforms the input string to lowercase
23+
* Example: "Hello World" -> "hello world"
2324
*
2425
* ``upper``
25-
* Transforms the input string to its uppercase representation
26+
* Transforms the input string to uppercase
27+
* Example: "Hello World" -> "HELLO WORLD"
2628
*
2729
* ``capital``
28-
* Transforms the input string to its first letter upper-cased, i.e. capitalization
30+
* Transforms the first character of the input string to uppercase
31+
* Example: "hello world" -> "Hello world"
2932
*
3033
* ``uncapital``
31-
* Transforms the input string to its first letter lower-cased, i.e. uncapitalization
34+
* Transforms the input string to its first letter lower-cased
35+
* Example: "Hello World" -> "hello World"
3236
*
3337
* ``capitalWords``
34-
* Not supported yet: Transforms the input string to each containing word being capitalized
38+
* Transforms the input string to capitalize each word
39+
* Example: "hello world" -> "Hello World"
3540
*
3641
* Note that the behavior will be the same as in the appropriate PHP function `mb_convert_case`_;
3742
* especially regarding locale and multibyte behavior.

0 commit comments

Comments
 (0)