Skip to content

Commit

Permalink
[2.3] CS And DocBlock Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
GrahamCampbell authored and fabpot committed Dec 22, 2014
1 parent 7eecc50 commit 1082181
Show file tree
Hide file tree
Showing 45 changed files with 150 additions and 128 deletions.
12 changes: 8 additions & 4 deletions AbstractExtension.php
Expand Up @@ -20,25 +20,29 @@
abstract class AbstractExtension implements FormExtensionInterface
{
/**
* The types provided by this extension
* The types provided by this extension.
*
* @var FormTypeInterface[] An array of FormTypeInterface
*/
private $types;

/**
* The type extensions provided by this extension
* The type extensions provided by this extension.
*
* @var FormTypeExtensionInterface[] An array of FormTypeExtensionInterface
*/
private $typeExtensions;

/**
* The type guesser provided by this extension
* The type guesser provided by this extension.
*
* @var FormTypeGuesserInterface
*/
private $typeGuesser;

/**
* Whether the type guesser has been loaded
* Whether the type guesser has been loaded.
*
* @var bool
*/
private $typeGuesserLoaded = false;
Expand Down
8 changes: 0 additions & 8 deletions Button.php
Expand Up @@ -206,26 +206,20 @@ public function setData($modelData)

/**
* Unsupported method.
*
* @return null Always returns null.
*/
public function getData()
{
}

/**
* Unsupported method.
*
* @return null Always returns null.
*/
public function getNormData()
{
}

/**
* Unsupported method.
*
* @return null Always returns null.
*/
public function getViewData()
{
Expand Down Expand Up @@ -273,8 +267,6 @@ public function getName()

/**
* Unsupported method.
*
* @return null Always returns null.
*/
public function getPropertyPath()
{
Expand Down
20 changes: 0 additions & 20 deletions ButtonBuilder.php
Expand Up @@ -544,8 +544,6 @@ public function getFormConfig()

/**
* Unsupported method.
*
* @return null Always returns null.
*/
public function getEventDispatcher()
{
Expand All @@ -561,8 +559,6 @@ public function getName()

/**
* Unsupported method.
*
* @return null Always returns null.
*/
public function getPropertyPath()
{
Expand Down Expand Up @@ -640,8 +636,6 @@ public function getModelTransformers()

/**
* Unsupported method.
*
* @return null Always returns null.
*/
public function getDataMapper()
{
Expand Down Expand Up @@ -679,8 +673,6 @@ public function getErrorBubbling()

/**
* Unsupported method.
*
* @return null Always returns null.
*/
public function getEmptyData()
{
Expand Down Expand Up @@ -723,17 +715,13 @@ public function getAttribute($name, $default = null)

/**
* Unsupported method.
*
* @return null Always returns null.
*/
public function getData()
{
}

/**
* Unsupported method.
*
* @return null Always returns null.
*/
public function getDataClass()
{
Expand All @@ -751,35 +739,27 @@ public function getDataLocked()

/**
* Unsupported method.
*
* @return null Always returns null.
*/
public function getFormFactory()
{
}

/**
* Unsupported method.
*
* @return null Always returns null.
*/
public function getAction()
{
}

/**
* Unsupported method.
*
* @return null Always returns null.
*/
public function getMethod()
{
}

/**
* Unsupported method.
*
* @return null Always returns null.
*/
public function getRequestHandler()
{
Expand Down
6 changes: 4 additions & 2 deletions CallbackTransformer.php
Expand Up @@ -17,13 +17,15 @@
class CallbackTransformer implements DataTransformerInterface
{
/**
* The callback used for forward transform
* The callback used for forward transform.
*
* @var callable
*/
private $transform;

/**
* The callback used for reverse transform
* The callback used for reverse transform.
*
* @var callable
*/
private $reverseTransform;
Expand Down
4 changes: 2 additions & 2 deletions Extension/Core/ChoiceList/ChoiceListInterface.php
Expand Up @@ -29,14 +29,14 @@
interface ChoiceListInterface
{
/**
* Returns the list of choices
* Returns the list of choices.
*
* @return array The choices with their indices as keys
*/
public function getChoices();

/**
* Returns the values for the choices
* Returns the values for the choices.
*
* @return array The values with the corresponding choice indices as keys
*/
Expand Down
6 changes: 3 additions & 3 deletions Extension/Core/ChoiceList/LazyChoiceList.php
Expand Up @@ -14,7 +14,7 @@
use Symfony\Component\Form\Exception\InvalidArgumentException;

/**
* A choice list that is loaded lazily
* A choice list that is loaded lazily.
*
* This list loads itself as soon as any of the getters is accessed for the
* first time. You should implement loadChoiceList() in your child classes,
Expand All @@ -25,7 +25,7 @@
abstract class LazyChoiceList implements ChoiceListInterface
{
/**
* The loaded choice list
* The loaded choice list.
*
* @var ChoiceListInterface
*/
Expand Down Expand Up @@ -128,7 +128,7 @@ public function getIndicesForValues(array $values)
}

/**
* Loads the choice list
* Loads the choice list.
*
* Should be implemented by child classes.
*
Expand Down
Expand Up @@ -23,7 +23,8 @@
class BooleanToStringTransformer implements DataTransformerInterface
{
/**
* The value emitted upon transform if the input is true
* The value emitted upon transform if the input is true.
*
* @var string
*/
private $trueValue;
Expand Down
11 changes: 6 additions & 5 deletions Extension/Core/DataTransformer/DataTransformerChain.php
Expand Up @@ -15,20 +15,21 @@
use Symfony\Component\Form\Exception\TransformationFailedException;

/**
* Passes a value through multiple value transformers
* Passes a value through multiple value transformers.
*
* @author Bernhard Schussek <bschussek@gmail.com>
*/
class DataTransformerChain implements DataTransformerInterface
{
/**
* The value transformers
* The value transformers.
*
* @var DataTransformerInterface[]
*/
protected $transformers;

/**
* Uses the given value transformers to transform values
* Uses the given value transformers to transform values.
*
* @param array $transformers
*/
Expand All @@ -38,7 +39,7 @@ public function __construct(array $transformers)
}

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

/**
* Passes the value through the reverseTransform() method of all nested
* transformers
* transformers.
*
* The transformers receive the value in the reverse order as they were passed
* to the constructor. Each transformer receives the result of the previous
Expand Down
Expand Up @@ -15,7 +15,7 @@
use Symfony\Component\Form\Exception\UnexpectedTypeException;

/**
* Transforms between a normalized time and a localized time string
* Transforms between a normalized time and a localized time string.
*
* @author Bernhard Schussek <bschussek@gmail.com>
* @author Florian Eckerstorfer <florian@eckerstorfer.org>
Expand Down Expand Up @@ -149,7 +149,7 @@ public function reverseTransform($value)
}

/**
* Returns a preconfigured IntlDateFormatter instance
* Returns a preconfigured IntlDateFormatter instance.
*
* @return \IntlDateFormatter
*
Expand Down
11 changes: 6 additions & 5 deletions Extension/Core/DataTransformer/DateTimeToStringTransformer.php
Expand Up @@ -15,21 +15,22 @@
use Symfony\Component\Form\Exception\UnexpectedTypeException;

/**
* Transforms between a date string and a DateTime object
* Transforms between a date string and a DateTime object.
*
* @author Bernhard Schussek <bschussek@gmail.com>
* @author Florian Eckerstorfer <florian@eckerstorfer.org>
*/
class DateTimeToStringTransformer extends BaseDateTimeTransformer
{
/**
* Format used for generating strings
* Format used for generating strings.
*
* @var string
*/
private $generateFormat;

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

/**
* Transforms a \DateTime instance to a string
* Transforms a \DateTime instance to a string.
*
* @see \DateTime::format() for supported formats
*
Expand Down Expand Up @@ -87,7 +88,7 @@ public function __construct($inputTimezone = null, $outputTimezone = null, $form

/**
* Transforms a DateTime object into a date string with the configured format
* and timezone
* and timezone.
*
* @param \DateTime $value A DateTime object
*
Expand Down
Expand Up @@ -14,7 +14,7 @@
use Symfony\Component\Form\Exception\TransformationFailedException;

/**
* Transforms between a timestamp and a DateTime object
* Transforms between a timestamp and a DateTime object.
*
* @author Bernhard Schussek <bschussek@gmail.com>
* @author Florian Eckerstorfer <florian@eckerstorfer.org>
Expand Down Expand Up @@ -53,7 +53,7 @@ public function transform($value)
}

/**
* Transforms a timestamp in the configured timezone into a DateTime object
* Transforms a timestamp in the configured timezone into a DateTime object.
*
* @param string $value A timestamp
*
Expand Down
Expand Up @@ -86,7 +86,7 @@ public function transform($value)
}

/**
* Transforms a localized number into an integer or float
* Transforms a localized number into an integer or float.
*
* @param string $value The localized value
*
Expand Down Expand Up @@ -158,7 +158,7 @@ public function reverseTransform($value)
}

/**
* Returns a preconfigured \NumberFormatter instance
* Returns a preconfigured \NumberFormatter instance.
*
* @return \NumberFormatter
*/
Expand Down
Expand Up @@ -134,7 +134,7 @@ public function reverseTransform($value)
}

/**
* Returns a preconfigured \NumberFormatter instance
* Returns a preconfigured \NumberFormatter instance.
*
* @return \NumberFormatter
*/
Expand Down
6 changes: 4 additions & 2 deletions Extension/Core/EventListener/MergeCollectionListener.php
Expand Up @@ -22,13 +22,15 @@
class MergeCollectionListener implements EventSubscriberInterface
{
/**
* Whether elements may be added to the collection
* Whether elements may be added to the collection.
*
* @var bool
*/
private $allowAdd;

/**
* Whether elements may be removed from the collection
* Whether elements may be removed from the collection.
*
* @var bool
*/
private $allowDelete;
Expand Down

0 comments on commit 1082181

Please sign in to comment.