Skip to content

Commit c6e761a

Browse files
GrahamCampbellfabpot
authored andcommitted
[2.3] CS And DocBlock Fixes
1 parent a3fb398 commit c6e761a

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

45 files changed

+150
-128
lines changed

AbstractExtension.php

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,25 +20,29 @@
2020
abstract class AbstractExtension implements FormExtensionInterface
2121
{
2222
/**
23-
* The types provided by this extension
23+
* The types provided by this extension.
24+
*
2425
* @var FormTypeInterface[] An array of FormTypeInterface
2526
*/
2627
private $types;
2728

2829
/**
29-
* The type extensions provided by this extension
30+
* The type extensions provided by this extension.
31+
*
3032
* @var FormTypeExtensionInterface[] An array of FormTypeExtensionInterface
3133
*/
3234
private $typeExtensions;
3335

3436
/**
35-
* The type guesser provided by this extension
37+
* The type guesser provided by this extension.
38+
*
3639
* @var FormTypeGuesserInterface
3740
*/
3841
private $typeGuesser;
3942

4043
/**
41-
* Whether the type guesser has been loaded
44+
* Whether the type guesser has been loaded.
45+
*
4246
* @var bool
4347
*/
4448
private $typeGuesserLoaded = false;

Button.php

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -206,26 +206,20 @@ public function setData($modelData)
206206

207207
/**
208208
* Unsupported method.
209-
*
210-
* @return null Always returns null.
211209
*/
212210
public function getData()
213211
{
214212
}
215213

216214
/**
217215
* Unsupported method.
218-
*
219-
* @return null Always returns null.
220216
*/
221217
public function getNormData()
222218
{
223219
}
224220

225221
/**
226222
* Unsupported method.
227-
*
228-
* @return null Always returns null.
229223
*/
230224
public function getViewData()
231225
{
@@ -273,8 +267,6 @@ public function getName()
273267

274268
/**
275269
* Unsupported method.
276-
*
277-
* @return null Always returns null.
278270
*/
279271
public function getPropertyPath()
280272
{

ButtonBuilder.php

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -544,8 +544,6 @@ public function getFormConfig()
544544

545545
/**
546546
* Unsupported method.
547-
*
548-
* @return null Always returns null.
549547
*/
550548
public function getEventDispatcher()
551549
{
@@ -561,8 +559,6 @@ public function getName()
561559

562560
/**
563561
* Unsupported method.
564-
*
565-
* @return null Always returns null.
566562
*/
567563
public function getPropertyPath()
568564
{
@@ -640,8 +636,6 @@ public function getModelTransformers()
640636

641637
/**
642638
* Unsupported method.
643-
*
644-
* @return null Always returns null.
645639
*/
646640
public function getDataMapper()
647641
{
@@ -679,8 +673,6 @@ public function getErrorBubbling()
679673

680674
/**
681675
* Unsupported method.
682-
*
683-
* @return null Always returns null.
684676
*/
685677
public function getEmptyData()
686678
{
@@ -723,17 +715,13 @@ public function getAttribute($name, $default = null)
723715

724716
/**
725717
* Unsupported method.
726-
*
727-
* @return null Always returns null.
728718
*/
729719
public function getData()
730720
{
731721
}
732722

733723
/**
734724
* Unsupported method.
735-
*
736-
* @return null Always returns null.
737725
*/
738726
public function getDataClass()
739727
{
@@ -751,35 +739,27 @@ public function getDataLocked()
751739

752740
/**
753741
* Unsupported method.
754-
*
755-
* @return null Always returns null.
756742
*/
757743
public function getFormFactory()
758744
{
759745
}
760746

761747
/**
762748
* Unsupported method.
763-
*
764-
* @return null Always returns null.
765749
*/
766750
public function getAction()
767751
{
768752
}
769753

770754
/**
771755
* Unsupported method.
772-
*
773-
* @return null Always returns null.
774756
*/
775757
public function getMethod()
776758
{
777759
}
778760

779761
/**
780762
* Unsupported method.
781-
*
782-
* @return null Always returns null.
783763
*/
784764
public function getRequestHandler()
785765
{

CallbackTransformer.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,15 @@
1717
class CallbackTransformer implements DataTransformerInterface
1818
{
1919
/**
20-
* The callback used for forward transform
20+
* The callback used for forward transform.
21+
*
2122
* @var callable
2223
*/
2324
private $transform;
2425

2526
/**
26-
* The callback used for reverse transform
27+
* The callback used for reverse transform.
28+
*
2729
* @var callable
2830
*/
2931
private $reverseTransform;

Extension/Core/ChoiceList/ChoiceListInterface.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,14 +29,14 @@
2929
interface ChoiceListInterface
3030
{
3131
/**
32-
* Returns the list of choices
32+
* Returns the list of choices.
3333
*
3434
* @return array The choices with their indices as keys
3535
*/
3636
public function getChoices();
3737

3838
/**
39-
* Returns the values for the choices
39+
* Returns the values for the choices.
4040
*
4141
* @return array The values with the corresponding choice indices as keys
4242
*/

Extension/Core/ChoiceList/LazyChoiceList.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
use Symfony\Component\Form\Exception\InvalidArgumentException;
1515

1616
/**
17-
* A choice list that is loaded lazily
17+
* A choice list that is loaded lazily.
1818
*
1919
* This list loads itself as soon as any of the getters is accessed for the
2020
* first time. You should implement loadChoiceList() in your child classes,
@@ -25,7 +25,7 @@
2525
abstract class LazyChoiceList implements ChoiceListInterface
2626
{
2727
/**
28-
* The loaded choice list
28+
* The loaded choice list.
2929
*
3030
* @var ChoiceListInterface
3131
*/
@@ -128,7 +128,7 @@ public function getIndicesForValues(array $values)
128128
}
129129

130130
/**
131-
* Loads the choice list
131+
* Loads the choice list.
132132
*
133133
* Should be implemented by child classes.
134134
*

Extension/Core/DataTransformer/BooleanToStringTransformer.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@
2323
class BooleanToStringTransformer implements DataTransformerInterface
2424
{
2525
/**
26-
* The value emitted upon transform if the input is true
26+
* The value emitted upon transform if the input is true.
27+
*
2728
* @var string
2829
*/
2930
private $trueValue;

Extension/Core/DataTransformer/DataTransformerChain.php

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,20 +15,21 @@
1515
use Symfony\Component\Form\Exception\TransformationFailedException;
1616

1717
/**
18-
* Passes a value through multiple value transformers
18+
* Passes a value through multiple value transformers.
1919
*
2020
* @author Bernhard Schussek <[email protected]>
2121
*/
2222
class DataTransformerChain implements DataTransformerInterface
2323
{
2424
/**
25-
* The value transformers
25+
* The value transformers.
26+
*
2627
* @var DataTransformerInterface[]
2728
*/
2829
protected $transformers;
2930

3031
/**
31-
* Uses the given value transformers to transform values
32+
* Uses the given value transformers to transform values.
3233
*
3334
* @param array $transformers
3435
*/
@@ -38,7 +39,7 @@ public function __construct(array $transformers)
3839
}
3940

4041
/**
41-
* Passes the value through the transform() method of all nested transformers
42+
* Passes the value through the transform() method of all nested transformers.
4243
*
4344
* The transformers receive the value in the same order as they were passed
4445
* to the constructor. Each transformer receives the result of the previous
@@ -62,7 +63,7 @@ public function transform($value)
6263

6364
/**
6465
* Passes the value through the reverseTransform() method of all nested
65-
* transformers
66+
* transformers.
6667
*
6768
* The transformers receive the value in the reverse order as they were passed
6869
* to the constructor. Each transformer receives the result of the previous

Extension/Core/DataTransformer/DateTimeToLocalizedStringTransformer.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
use Symfony\Component\Form\Exception\UnexpectedTypeException;
1616

1717
/**
18-
* Transforms between a normalized time and a localized time string
18+
* Transforms between a normalized time and a localized time string.
1919
*
2020
* @author Bernhard Schussek <[email protected]>
2121
* @author Florian Eckerstorfer <[email protected]>
@@ -149,7 +149,7 @@ public function reverseTransform($value)
149149
}
150150

151151
/**
152-
* Returns a preconfigured IntlDateFormatter instance
152+
* Returns a preconfigured IntlDateFormatter instance.
153153
*
154154
* @return \IntlDateFormatter
155155
*

Extension/Core/DataTransformer/DateTimeToStringTransformer.php

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,21 +15,22 @@
1515
use Symfony\Component\Form\Exception\UnexpectedTypeException;
1616

1717
/**
18-
* Transforms between a date string and a DateTime object
18+
* Transforms between a date string and a DateTime object.
1919
*
2020
* @author Bernhard Schussek <[email protected]>
2121
* @author Florian Eckerstorfer <[email protected]>
2222
*/
2323
class DateTimeToStringTransformer extends BaseDateTimeTransformer
2424
{
2525
/**
26-
* Format used for generating strings
26+
* Format used for generating strings.
27+
*
2728
* @var string
2829
*/
2930
private $generateFormat;
3031

3132
/**
32-
* Format used for parsing strings
33+
* Format used for parsing strings.
3334
*
3435
* Different than the {@link $generateFormat} because formats for parsing
3536
* support additional characters in PHP that are not supported for
@@ -49,7 +50,7 @@ class DateTimeToStringTransformer extends BaseDateTimeTransformer
4950
private $parseUsingPipe;
5051

5152
/**
52-
* Transforms a \DateTime instance to a string
53+
* Transforms a \DateTime instance to a string.
5354
*
5455
* @see \DateTime::format() for supported formats
5556
*
@@ -87,7 +88,7 @@ public function __construct($inputTimezone = null, $outputTimezone = null, $form
8788

8889
/**
8990
* Transforms a DateTime object into a date string with the configured format
90-
* and timezone
91+
* and timezone.
9192
*
9293
* @param \DateTime $value A DateTime object
9394
*

Extension/Core/DataTransformer/DateTimeToTimestampTransformer.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
use Symfony\Component\Form\Exception\TransformationFailedException;
1515

1616
/**
17-
* Transforms between a timestamp and a DateTime object
17+
* Transforms between a timestamp and a DateTime object.
1818
*
1919
* @author Bernhard Schussek <[email protected]>
2020
* @author Florian Eckerstorfer <[email protected]>
@@ -53,7 +53,7 @@ public function transform($value)
5353
}
5454

5555
/**
56-
* Transforms a timestamp in the configured timezone into a DateTime object
56+
* Transforms a timestamp in the configured timezone into a DateTime object.
5757
*
5858
* @param string $value A timestamp
5959
*

Extension/Core/DataTransformer/NumberToLocalizedStringTransformer.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ public function transform($value)
8686
}
8787

8888
/**
89-
* Transforms a localized number into an integer or float
89+
* Transforms a localized number into an integer or float.
9090
*
9191
* @param string $value The localized value
9292
*
@@ -158,7 +158,7 @@ public function reverseTransform($value)
158158
}
159159

160160
/**
161-
* Returns a preconfigured \NumberFormatter instance
161+
* Returns a preconfigured \NumberFormatter instance.
162162
*
163163
* @return \NumberFormatter
164164
*/

Extension/Core/DataTransformer/PercentToLocalizedStringTransformer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ public function reverseTransform($value)
134134
}
135135

136136
/**
137-
* Returns a preconfigured \NumberFormatter instance
137+
* Returns a preconfigured \NumberFormatter instance.
138138
*
139139
* @return \NumberFormatter
140140
*/

Extension/Core/EventListener/MergeCollectionListener.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,15 @@
2222
class MergeCollectionListener implements EventSubscriberInterface
2323
{
2424
/**
25-
* Whether elements may be added to the collection
25+
* Whether elements may be added to the collection.
26+
*
2627
* @var bool
2728
*/
2829
private $allowAdd;
2930

3031
/**
31-
* Whether elements may be removed from the collection
32+
* Whether elements may be removed from the collection.
33+
*
3234
* @var bool
3335
*/
3436
private $allowDelete;

0 commit comments

Comments
 (0)