Skip to content

Commit

Permalink
Merge branch '2.8' into 3.3
Browse files Browse the repository at this point in the history
* 2.8:
  [DI] minor docblock fixes
  • Loading branch information
nicolas-grekas committed Oct 24, 2017
2 parents c75c4de + 220e64f commit 4b7aa22
Show file tree
Hide file tree
Showing 32 changed files with 9 additions and 269 deletions.
14 changes: 0 additions & 14 deletions AbstractRendererEngine.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,24 +23,10 @@ abstract class AbstractRendererEngine implements FormRendererEngineInterface
*/
const CACHE_KEY_VAR = 'cache_key';

/**
* @var array
*/
protected $defaultThemes;

/**
* @var array
*/
protected $themes = array();

/**
* @var array
*/
protected $resources = array();

/**
* @var array
*/
private $resourceHierarchyLevels = array();

/**
Expand Down
2 changes: 0 additions & 2 deletions Button.php
Original file line number Diff line number Diff line change
Expand Up @@ -273,8 +273,6 @@ public function getPropertyPath()
/**
* Unsupported method.
*
* @param FormError $error
*
* @throws BadMethodCallException
*/
public function addError(FormError $error)
Expand Down
10 changes: 0 additions & 10 deletions ButtonBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -184,8 +184,6 @@ public function addEventListener($eventName, $listener, $priority = 0)
*
* This method should not be invoked.
*
* @param EventSubscriberInterface $subscriber
*
* @throws BadMethodCallException
*/
public function addEventSubscriber(EventSubscriberInterface $subscriber)
Expand Down Expand Up @@ -272,8 +270,6 @@ public function setAttributes(array $attributes)
*
* This method should not be invoked.
*
* @param DataMapperInterface $dataMapper
*
* @throws BadMethodCallException
*/
public function setDataMapper(DataMapperInterface $dataMapper = null)
Expand Down Expand Up @@ -396,8 +392,6 @@ public function setCompound($compound)
/**
* Sets the type of the button.
*
* @param ResolvedFormTypeInterface $type The type of the button
*
* @return $this
*/
public function setType(ResolvedFormTypeInterface $type)
Expand Down Expand Up @@ -440,8 +434,6 @@ public function setDataLocked($locked)
*
* This method should not be invoked.
*
* @param FormFactoryInterface $formFactory
*
* @throws BadMethodCallException
*/
public function setFormFactory(FormFactoryInterface $formFactory)
Expand Down Expand Up @@ -476,8 +468,6 @@ public function setMethod($method)
/**
* Unsupported method.
*
* @param RequestHandlerInterface $requestHandler
*
* @throws BadMethodCallException
*/
public function setRequestHandler(RequestHandlerInterface $requestHandler)
Expand Down
8 changes: 0 additions & 8 deletions ChoiceList/Factory/CachingFactoryDecorator.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,6 @@
*/
class CachingFactoryDecorator implements ChoiceListFactoryInterface
{
/**
* @var ChoiceListFactoryInterface
*/
private $decoratedFactory;

/**
Expand Down Expand Up @@ -89,11 +86,6 @@ private static function flatten(array $array, &$output)
}
}

/**
* Decorates the given factory.
*
* @param ChoiceListFactoryInterface $decoratedFactory The decorated factory
*/
public function __construct(ChoiceListFactoryInterface $decoratedFactory)
{
$this->decoratedFactory = $decoratedFactory;
Expand Down
13 changes: 0 additions & 13 deletions ChoiceList/Factory/PropertyAccessDecorator.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,22 +41,9 @@
*/
class PropertyAccessDecorator implements ChoiceListFactoryInterface
{
/**
* @var ChoiceListFactoryInterface
*/
private $decoratedFactory;

/**
* @var PropertyAccessorInterface
*/
private $propertyAccessor;

/**
* Decorates the given factory.
*
* @param ChoiceListFactoryInterface $decoratedFactory The decorated factory
* @param null|PropertyAccessorInterface $propertyAccessor The used property accessor
*/
public function __construct(ChoiceListFactoryInterface $decoratedFactory, PropertyAccessorInterface $propertyAccessor = null)
{
$this->decoratedFactory = $decoratedFactory;
Expand Down
2 changes: 0 additions & 2 deletions ChoiceList/View/ChoiceView.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,6 @@ class ChoiceView

/**
* Additional attributes for the HTML tag.
*
* @var array
*/
public $attr;

Expand Down
8 changes: 0 additions & 8 deletions Extension/Core/DataMapper/PropertyPathMapper.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,16 +23,8 @@
*/
class PropertyPathMapper implements DataMapperInterface
{
/**
* @var PropertyAccessorInterface
*/
private $propertyAccessor;

/**
* Creates a new property path mapper.
*
* @param PropertyAccessorInterface $propertyAccessor The property accessor
*/
public function __construct(PropertyAccessorInterface $propertyAccessor = null)
{
$this->propertyAccessor = $propertyAccessor ?: PropertyAccess::createPropertyAccessor();
Expand Down
3 changes: 0 additions & 3 deletions Extension/Core/DataTransformer/ChoiceToValueTransformer.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,6 @@ class ChoiceToValueTransformer implements DataTransformerInterface
{
private $choiceList;

/**
* @param ChoiceListInterface $choiceList
*/
public function __construct(ChoiceListInterface $choiceList)
{
$this->choiceList = $choiceList;
Expand Down
7 changes: 0 additions & 7 deletions Extension/Core/DataTransformer/ChoicesToValuesTransformer.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,17 +22,12 @@ class ChoicesToValuesTransformer implements DataTransformerInterface
{
private $choiceList;

/**
* @param ChoiceListInterface $choiceList
*/
public function __construct(ChoiceListInterface $choiceList)
{
$this->choiceList = $choiceList;
}

/**
* @param array $array
*
* @return array
*
* @throws TransformationFailedException if the given value is not an array
Expand All @@ -51,8 +46,6 @@ public function transform($array)
}

/**
* @param array $array
*
* @return array
*
* @throws TransformationFailedException if the given value is not an array
Expand Down
7 changes: 1 addition & 6 deletions Extension/Core/DataTransformer/DataTransformerChain.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,17 +21,12 @@
*/
class DataTransformerChain implements DataTransformerInterface
{
/**
* The value transformers.
*
* @var DataTransformerInterface[]
*/
protected $transformers;

/**
* Uses the given value transformers to transform values.
*
* @param array $transformers
* @param DataTransformerInterface[] $transformers
*/
public function __construct(array $transformers)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,6 @@ public function transform($value)
/**
* Extracts the duplicated value from an array.
*
* @param array $array
*
* @return mixed The value
*
* @throws TransformationFailedException if the given value is not an array or
Expand Down
29 changes: 7 additions & 22 deletions Extension/Core/EventListener/ResizeFormListener.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,35 +24,20 @@
*/
class ResizeFormListener implements EventSubscriberInterface
{
/**
* @var string
*/
protected $type;

/**
* @var array
*/
protected $options;

/**
* Whether children could be added to the group.
*
* @var bool
*/
protected $allowAdd;

/**
* Whether children could be removed from the group.
*
* @var bool
*/
protected $allowDelete;

/**
* @var bool
*/
private $deleteEmpty;

/**
* @param string $type
* @param array $options
* @param bool $allowAdd whether children could be added to the group
* @param bool $allowDelete whether children could be removed from the group
* @param bool $deleteEmpty
*/
public function __construct($type, array $options = array(), $allowAdd = false, $allowDelete = false, $deleteEmpty = false)
{
$this->type = $type;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,6 @@ public static function getSubscribedEvents()

/**
* Listener for the {@link FormEvents::POST_SET_DATA} event.
*
* @param FormEvent $event The event object
*/
public function postSetData(FormEvent $event)
{
Expand All @@ -65,8 +63,6 @@ public function postSetData(FormEvent $event)

/**
* Listener for the {@link FormEvents::POST_SUBMIT} event.
*
* @param FormEvent $event The event object
*/
public function postSubmit(FormEvent $event)
{
Expand Down
3 changes: 0 additions & 3 deletions Extension/DataCollector/FormDataCollector.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,6 @@
*/
class FormDataCollector extends DataCollector implements FormDataCollectorInterface
{
/**
* @var FormDataExtractor
*/
private $dataExtractor;

/**
Expand Down
16 changes: 0 additions & 16 deletions Extension/DataCollector/FormDataCollectorInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,37 +24,26 @@ interface FormDataCollectorInterface extends DataCollectorInterface
{
/**
* Stores configuration data of the given form and its children.
*
* @param FormInterface $form A root form
*/
public function collectConfiguration(FormInterface $form);

/**
* Stores the default data of the given form and its children.
*
* @param FormInterface $form A root form
*/
public function collectDefaultData(FormInterface $form);

/**
* Stores the submitted data of the given form and its children.
*
* @param FormInterface $form A root form
*/
public function collectSubmittedData(FormInterface $form);

/**
* Stores the view variables of the given form view and its children.
*
* @param FormView $view A root form view
*/
public function collectViewVariables(FormView $view);

/**
* Specifies that the given objects represent the same conceptual form.
*
* @param FormInterface $form A form object
* @param FormView $view A view object
*/
public function associateFormWithView(FormInterface $form, FormView $view);

Expand All @@ -63,8 +52,6 @@ public function associateFormWithView(FormInterface $form, FormView $view);
* a tree-like data structure.
*
* The result can be queried using {@link getData()}.
*
* @param FormInterface $form A root form
*/
public function buildPreliminaryFormTree(FormInterface $form);

Expand All @@ -85,9 +72,6 @@ public function buildPreliminaryFormTree(FormInterface $form);
* tree, only the view data will be included in the result. If a
* corresponding {@link FormInterface} exists otherwise, call
* {@link associateFormWithView()} before calling this method.
*
* @param FormInterface $form A root form
* @param FormView $view A root view
*/
public function buildFinalFormTree(FormInterface $form, FormView $view);

Expand Down
2 changes: 0 additions & 2 deletions Extension/DataCollector/FormDataExtractor.php
Original file line number Diff line number Diff line change
Expand Up @@ -166,8 +166,6 @@ public function extractViewVariables(FormView $view)
/**
* Recursively builds an HTML ID for a form.
*
* @param FormInterface $form The form
*
* @return string The HTML ID
*/
private function buildId(FormInterface $form)
Expand Down
8 changes: 0 additions & 8 deletions Extension/DataCollector/FormDataExtractorInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,35 +24,27 @@ interface FormDataExtractorInterface
/**
* Extracts the configuration data of a form.
*
* @param FormInterface $form The form
*
* @return array Information about the form's configuration
*/
public function extractConfiguration(FormInterface $form);

/**
* Extracts the default data of a form.
*
* @param FormInterface $form The form
*
* @return array Information about the form's default data
*/
public function extractDefaultData(FormInterface $form);

/**
* Extracts the submitted data of a form.
*
* @param FormInterface $form The form
*
* @return array Information about the form's submitted data
*/
public function extractSubmittedData(FormInterface $form);

/**
* Extracts the view variables of a form.
*
* @param FormView $view The form view
*
* @return array Information about the view's variables
*/
public function extractViewVariables(FormView $view);
Expand Down
Loading

0 comments on commit 4b7aa22

Please sign in to comment.