From 9600cee14342e9da51bd19974412b4966feb8aff Mon Sep 17 00:00:00 2001 From: Oskar Stark Date: Fri, 22 Feb 2019 14:34:02 +0100 Subject: [PATCH] be keen to newcomers --- ChoiceList/ArrayChoiceList.php | 2 +- ChoiceList/LazyChoiceList.php | 2 +- Form.php | 6 +++--- FormRenderer.php | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/ChoiceList/ArrayChoiceList.php b/ChoiceList/ArrayChoiceList.php index c33dda70ca..e2ed7a685b 100644 --- a/ChoiceList/ArrayChoiceList.php +++ b/ChoiceList/ArrayChoiceList.php @@ -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++; diff --git a/ChoiceList/LazyChoiceList.php b/ChoiceList/LazyChoiceList.php index b81ad48b91..0fb32734d5 100644 --- a/ChoiceList/LazyChoiceList.php +++ b/ChoiceList/LazyChoiceList.php @@ -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 */ diff --git a/Form.php b/Form.php index 1822cf6e18..6fc862174e 100644 --- a/Form.php +++ b/Form.php @@ -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 diff --git a/FormRenderer.php b/FormRenderer.php index 16f0a65ac1..8b15e0344d 100644 --- a/FormRenderer.php +++ b/FormRenderer.php @@ -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
around the original implementation, they can simply call the + // a
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.