Skip to content

Commit

Permalink
be keen to newcomers
Browse files Browse the repository at this point in the history
  • Loading branch information
OskarStark committed Feb 22, 2019
1 parent 9add5b6 commit 9600cee
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion ChoiceList/ArrayChoiceList.php
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ public function __construct($choices, callable $value = null)
// If a deterministic value generator was passed, use it later
$this->valueCallback = $value;
} else {
// Otherwise simply generate incrementing integers as values
// Otherwise generate incrementing integers as values
$i = 0;
$value = function () use (&$i) {
return $i++;
Expand Down
2 changes: 1 addition & 1 deletion ChoiceList/LazyChoiceList.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ class LazyChoiceList implements ChoiceListInterface
/**
* The callable creating string values for each choice.
*
* If null, choices are simply cast to strings.
* If null, choices are cast to strings.
*
* @var callable|null
*/
Expand Down
6 changes: 3 additions & 3 deletions Form.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,9 @@
*
* In most cases, format (1) and format (2) will be the same. For example,
* a checkbox field uses a Boolean value for both internal processing and
* storage in the object. In these cases you simply need to set a view
* transformer to convert between formats (2) and (3). You can do this by
* calling addViewTransformer().
* storage in the object. In these cases you need to set a view transformer
* to convert between formats (2) and (3). You can do this by calling
* addViewTransformer().
*
* In some cases though it makes sense to make format (1) configurable. To
* demonstrate this, let's extend our above date field to store the value
Expand Down
2 changes: 1 addition & 1 deletion FormRenderer.php
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ public function searchAndRenderBlock(FormView $view, $blockNameSuffix, array $va
// "form_widget" in this example (again, no matter in which theme).
// If the designer wants to explicitly fallback to "form_widget" in their
// custom "choice_widget", for example because they only want to wrap
// a <div> around the original implementation, they can simply call the
// a <div> around the original implementation, they can call the
// widget() function again to render the block for the parent type.
//
// The second kind is implemented in the following blocks.
Expand Down

0 comments on commit 9600cee

Please sign in to comment.