Skip to content

Commit 8e7d8f3

Browse files
keradusfabpot
authored andcommitted
[CS] Apply phpdoc_annotation_without_dot
1 parent a40457a commit 8e7d8f3

34 files changed

+141
-142
lines changed

AbstractRendererEngine.php

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -139,14 +139,14 @@ abstract protected function loadResourceForBlockName($cacheKey, FormView $view,
139139
*
140140
* @see getResourceForBlockHierarchy()
141141
*
142-
* @param string $cacheKey The cache key used for storing the
143-
* resource.
144-
* @param FormView $view The form view for finding the applying
145-
* themes.
146-
* @param array $blockNameHierarchy The block hierarchy, with the most
147-
* specific block name at the end.
148-
* @param int $hierarchyLevel The level in the block hierarchy that
149-
* should be loaded.
142+
* @param string $cacheKey the cache key used for storing the
143+
* resource
144+
* @param FormView $view the form view for finding the applying
145+
* themes
146+
* @param array $blockNameHierarchy the block hierarchy, with the most
147+
* specific block name at the end
148+
* @param int $hierarchyLevel the level in the block hierarchy that
149+
* should be loaded
150150
*
151151
* @return bool True if the resource could be loaded, false otherwise
152152
*/

Button.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -371,7 +371,7 @@ public function handleRequest($request = null)
371371
*
372372
* @return $this
373373
*
374-
* @throws Exception\AlreadySubmittedException If the button has already been submitted.
374+
* @throws Exception\AlreadySubmittedException if the button has already been submitted
375375
*/
376376
public function submit($submittedData, $clearMissing = true)
377377
{

ButtonBuilder.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ class ButtonBuilder implements \IteratorAggregate, FormBuilderInterface
5858
* @param string $name The name of the button
5959
* @param array $options The button's options
6060
*
61-
* @throws InvalidArgumentException If the name is empty.
61+
* @throws InvalidArgumentException if the name is empty
6262
*/
6363
public function __construct($name, array $options = array())
6464
{

ChoiceList/ArrayChoiceList.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -222,8 +222,8 @@ protected function flatten(array $choices, $value, &$choicesByValues, &$keysByVa
222222
* @param array $choices The choices
223223
* @param array|null $cache The cache for previously checked entries. Internal
224224
*
225-
* @return bool Returns true if the choices can be cast to strings and
226-
* false otherwise.
225+
* @return bool returns true if the choices can be cast to strings and
226+
* false otherwise
227227
*/
228228
private function castableToString(array $choices, array &$cache = array())
229229
{

ChoiceList/Factory/CachingFactoryDecorator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ class CachingFactoryDecorator implements ChoiceListFactoryInterface
4848
*
4949
* @return string The SHA-256 hash
5050
*
51-
* @internal Should not be used by user-land code.
51+
* @internal should not be used by user-land code
5252
*/
5353
public static function generateHash($value, $namespace = '')
5454
{

ChoiceList/View/ChoiceGroupView.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@ class ChoiceGroupView implements \IteratorAggregate
3636
* Creates a new choice group view.
3737
*
3838
* @param string $label The label of the group
39-
* @param ChoiceGroupView[]|ChoiceView[] $choices The choice views in the
40-
* group.
39+
* @param ChoiceGroupView[]|ChoiceView[] $choices the choice views in the
40+
* group
4141
*/
4242
public function __construct($label, array $choices = array())
4343
{

ChoiceList/View/ChoiceListView.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,8 @@ class ChoiceListView
4040
* Creates a new choice list view.
4141
*
4242
* @param ChoiceGroupView[]|ChoiceView[] $choices The choice views
43-
* @param ChoiceGroupView[]|ChoiceView[] $preferredChoices The preferred
44-
* choice views.
43+
* @param ChoiceGroupView[]|ChoiceView[] $preferredChoices the preferred
44+
* choice views
4545
*/
4646
public function __construct(array $choices = array(), array $preferredChoices = array())
4747
{

DataMapperInterface.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ interface DataMapperInterface
2222
* @param mixed $data Structured data
2323
* @param FormInterface[]|\Traversable $forms A list of {@link FormInterface} instances
2424
*
25-
* @throws Exception\UnexpectedTypeException if the type of the data parameter is not supported.
25+
* @throws Exception\UnexpectedTypeException if the type of the data parameter is not supported
2626
*/
2727
public function mapDataToForms($data, $forms);
2828

@@ -32,7 +32,7 @@ public function mapDataToForms($data, $forms);
3232
* @param FormInterface[]|\Traversable $forms A list of {@link FormInterface} instances
3333
* @param mixed $data Structured data
3434
*
35-
* @throws Exception\UnexpectedTypeException if the type of the data parameter is not supported.
35+
* @throws Exception\UnexpectedTypeException if the type of the data parameter is not supported
3636
*/
3737
public function mapFormsToData($forms, &$data);
3838
}

DataTransformerInterface.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ interface DataTransformerInterface
4545
*
4646
* @return mixed The value in the transformed representation
4747
*
48-
* @throws TransformationFailedException When the transformation fails.
48+
* @throws TransformationFailedException when the transformation fails
4949
*/
5050
public function transform($value);
5151

@@ -71,7 +71,7 @@ public function transform($value);
7171
*
7272
* @return mixed The value in the original representation
7373
*
74-
* @throws TransformationFailedException When the transformation fails.
74+
* @throws TransformationFailedException when the transformation fails
7575
*/
7676
public function reverseTransform($value);
7777
}

Extension/Core/ChoiceList/ChoiceList.php

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -82,10 +82,10 @@ class ChoiceList implements ChoiceListInterface
8282
* level of the hierarchy may also be a \Traversable.
8383
* @param array $labels The array of labels. The structure of this array
8484
* should match the structure of $choices.
85-
* @param array $preferredChoices A flat array of choices that should be
86-
* presented to the user with priority.
85+
* @param array $preferredChoices a flat array of choices that should be
86+
* presented to the user with priority
8787
*
88-
* @throws UnexpectedTypeException If the choices are not an array or \Traversable.
88+
* @throws UnexpectedTypeException if the choices are not an array or \Traversable
8989
*/
9090
public function __construct($choices, array $labels, array $preferredChoices = array())
9191
{
@@ -260,16 +260,16 @@ public function getIndicesForValues(array $values)
260260
/**
261261
* Recursively adds the given choices to the list.
262262
*
263-
* @param array $bucketForPreferred The bucket where to store the preferred
264-
* view objects.
265-
* @param array $bucketForRemaining The bucket where to store the
266-
* non-preferred view objects.
263+
* @param array $bucketForPreferred the bucket where to store the preferred
264+
* view objects
265+
* @param array $bucketForRemaining the bucket where to store the
266+
* non-preferred view objects
267267
* @param array|\Traversable $choices The list of choices
268268
* @param array $labels The labels corresponding to the choices
269269
* @param array $preferredChoices The preferred choices
270270
*
271-
* @throws InvalidArgumentException If the structures of the choices and labels array do not match.
272-
* @throws InvalidConfigurationException If no valid value or index could be created for a choice.
271+
* @throws InvalidArgumentException if the structures of the choices and labels array do not match
272+
* @throws InvalidConfigurationException if no valid value or index could be created for a choice
273273
*/
274274
protected function addChoices(array &$bucketForPreferred, array &$bucketForRemaining, $choices, array $labels, array $preferredChoices)
275275
{
@@ -307,15 +307,15 @@ protected function addChoices(array &$bucketForPreferred, array &$bucketForRemai
307307
* Recursively adds a choice group.
308308
*
309309
* @param string $group The name of the group
310-
* @param array $bucketForPreferred The bucket where to store the preferred
311-
* view objects.
312-
* @param array $bucketForRemaining The bucket where to store the
313-
* non-preferred view objects.
310+
* @param array $bucketForPreferred the bucket where to store the preferred
311+
* view objects
312+
* @param array $bucketForRemaining the bucket where to store the
313+
* non-preferred view objects
314314
* @param array $choices The list of choices in the group
315315
* @param array $labels The labels corresponding to the choices in the group
316316
* @param array $preferredChoices The preferred choices
317317
*
318-
* @throws InvalidConfigurationException If no valid value or index could be created for a choice.
318+
* @throws InvalidConfigurationException if no valid value or index could be created for a choice
319319
*/
320320
protected function addChoiceGroup($group, array &$bucketForPreferred, array &$bucketForRemaining, array $choices, array $labels, array $preferredChoices)
321321
{
@@ -344,15 +344,15 @@ protected function addChoiceGroup($group, array &$bucketForPreferred, array &$bu
344344
/**
345345
* Adds a new choice.
346346
*
347-
* @param array $bucketForPreferred The bucket where to store the preferred
348-
* view objects.
349-
* @param array $bucketForRemaining The bucket where to store the
350-
* non-preferred view objects.
347+
* @param array $bucketForPreferred the bucket where to store the preferred
348+
* view objects
349+
* @param array $bucketForRemaining the bucket where to store the
350+
* non-preferred view objects
351351
* @param mixed $choice The choice to add
352352
* @param string $label The label for the choice
353353
* @param array $preferredChoices The preferred choices
354354
*
355-
* @throws InvalidConfigurationException If no valid value or index could be created.
355+
* @throws InvalidConfigurationException if no valid value or index could be created
356356
*/
357357
protected function addChoice(array &$bucketForPreferred, array &$bucketForRemaining, $choice, $label, array $preferredChoices)
358358
{
@@ -404,8 +404,8 @@ protected function isPreferred($choice, array $preferredChoices)
404404
*
405405
* @param mixed $choice The choice to create an index for
406406
*
407-
* @return int|string A unique index containing only ASCII letters,
408-
* digits and underscores.
407+
* @return int|string a unique index containing only ASCII letters,
408+
* digits and underscores
409409
*/
410410
protected function createIndex($choice)
411411
{

0 commit comments

Comments
 (0)