diff --git a/.php_cs.dist b/.php_cs.dist index 6282431a41..25f1f4c931 100644 --- a/.php_cs.dist +++ b/.php_cs.dist @@ -12,7 +12,6 @@ return PhpCsFixer\Config::create() 'no_unreachable_default_argument_value' => false, 'braces' => array('allow_single_line_closure' => true), 'heredoc_to_nowdoc' => false, - 'phpdoc_annotation_without_dot' => false, )) ->setRiskyAllowed(true) ->setFinder( diff --git a/src/Symfony/Bridge/Doctrine/DependencyInjection/AbstractDoctrineExtension.php b/src/Symfony/Bridge/Doctrine/DependencyInjection/AbstractDoctrineExtension.php index 940ca6fdf9..b3fecad9df 100644 --- a/src/Symfony/Bridge/Doctrine/DependencyInjection/AbstractDoctrineExtension.php +++ b/src/Symfony/Bridge/Doctrine/DependencyInjection/AbstractDoctrineExtension.php @@ -301,7 +301,7 @@ abstract class AbstractDoctrineExtension extends Extension * @param ContainerBuilder $container A ContainerBuilder instance * @param string $cacheName * - * @throws \InvalidArgumentException In case of unknown driver type. + * @throws \InvalidArgumentException in case of unknown driver type */ protected function loadObjectManagerCacheDriver(array $objectManager, ContainerBuilder $container, $cacheName) { diff --git a/src/Symfony/Bridge/Doctrine/DependencyInjection/CompilerPass/RegisterMappingsPass.php b/src/Symfony/Bridge/Doctrine/DependencyInjection/CompilerPass/RegisterMappingsPass.php index e37e4f66c2..7f169fe1ae 100644 --- a/src/Symfony/Bridge/Doctrine/DependencyInjection/CompilerPass/RegisterMappingsPass.php +++ b/src/Symfony/Bridge/Doctrine/DependencyInjection/CompilerPass/RegisterMappingsPass.php @@ -108,15 +108,15 @@ abstract class RegisterMappingsPass implements CompilerPassInterface * * @param Definition|Reference $driver Driver DI definition or reference * @param string[] $namespaces List of namespaces handled by $driver - * @param string[] $managerParameters List of container parameters that could - * hold the manager name. + * @param string[] $managerParameters list of container parameters that could + * hold the manager name * @param string $driverPattern Pattern for the metadata driver service name * @param string|false $enabledParameter Service container parameter that must be * present to enable the mapping. Set to false * to not do any check, optional. * @param string $configurationPattern Pattern for the Configuration service name - * @param string $registerAliasMethodName Name of Configuration class method to - * register alias. + * @param string $registerAliasMethodName name of Configuration class method to + * register alias * @param string[] $aliasMap Map of alias to namespace */ public function __construct($driver, array $namespaces, array $managerParameters, $driverPattern, $enabledParameter = false, $configurationPattern = '', $registerAliasMethodName = '', array $aliasMap = array()) @@ -174,7 +174,7 @@ abstract class RegisterMappingsPass implements CompilerPassInterface * @return string The name of the chain driver service * * @throws ParameterNotFoundException if non of the managerParameters has a - * non-empty value. + * non-empty value */ protected function getChainDriverServiceName(ContainerBuilder $container) { @@ -185,7 +185,7 @@ abstract class RegisterMappingsPass implements CompilerPassInterface * Create the service definition for the metadata driver. * * @param ContainerBuilder $container passed on in case an extending class - * needs access to the container. + * needs access to the container * * @return Definition|Reference the metadata driver to add to all chain drivers */ @@ -202,7 +202,7 @@ abstract class RegisterMappingsPass implements CompilerPassInterface * @return string a service definition name * * @throws ParameterNotFoundException if none of the managerParameters has a - * non-empty value. + * non-empty value */ private function getConfigurationServiceName(ContainerBuilder $container) { @@ -219,7 +219,7 @@ abstract class RegisterMappingsPass implements CompilerPassInterface * * @return string The name of the active manager * - * @throws ParameterNotFoundException If none of the managerParameters is found in the container. + * @throws ParameterNotFoundException if none of the managerParameters is found in the container */ private function getManagerName(ContainerBuilder $container) { diff --git a/src/Symfony/Bridge/Doctrine/Form/ChoiceList/DoctrineChoiceLoader.php b/src/Symfony/Bridge/Doctrine/Form/ChoiceList/DoctrineChoiceLoader.php index 9343876ef3..02280c4fe8 100644 --- a/src/Symfony/Bridge/Doctrine/Form/ChoiceList/DoctrineChoiceLoader.php +++ b/src/Symfony/Bridge/Doctrine/Form/ChoiceList/DoctrineChoiceLoader.php @@ -65,8 +65,8 @@ class DoctrineChoiceLoader implements ChoiceLoaderInterface * @param ObjectManager $manager The object manager * @param string $class The class name of the * loaded objects - * @param IdReader $idReader The reader for the object - * IDs. + * @param IdReader $idReader the reader for the object + * IDs * @param null|EntityLoaderInterface $objectLoader The objects loader */ public function __construct(ChoiceListFactoryInterface $factory, ObjectManager $manager, $class, IdReader $idReader = null, EntityLoaderInterface $objectLoader = null) diff --git a/src/Symfony/Bridge/Doctrine/Form/ChoiceList/EntityChoiceList.php b/src/Symfony/Bridge/Doctrine/Form/ChoiceList/EntityChoiceList.php index d22a85466f..72d7a6f10b 100644 --- a/src/Symfony/Bridge/Doctrine/Form/ChoiceList/EntityChoiceList.php +++ b/src/Symfony/Bridge/Doctrine/Form/ChoiceList/EntityChoiceList.php @@ -389,8 +389,8 @@ class EntityChoiceList extends ObjectChoiceList * * @param mixed $entity The choice to create an index for * - * @return int|string A unique index containing only ASCII letters, - * digits and underscores. + * @return int|string a unique index containing only ASCII letters, + * digits and underscores */ protected function createIndex($entity) { diff --git a/src/Symfony/Bridge/Doctrine/Form/ChoiceList/IdReader.php b/src/Symfony/Bridge/Doctrine/Form/ChoiceList/IdReader.php index cd966ea986..0161adf3b4 100644 --- a/src/Symfony/Bridge/Doctrine/Form/ChoiceList/IdReader.php +++ b/src/Symfony/Bridge/Doctrine/Form/ChoiceList/IdReader.php @@ -20,7 +20,7 @@ use Symfony\Component\Form\Exception\RuntimeException; * * @author Bernhard Schussek * - * @internal This class is meant for internal use only. + * @internal this class is meant for internal use only */ class IdReader { @@ -79,8 +79,8 @@ class IdReader /** * Returns whether the class has a single-column ID. * - * @return bool Returns `true` if the class has a single-column ID and - * `false` otherwise. + * @return bool returns `true` if the class has a single-column ID and + * `false` otherwise */ public function isSingleId() { @@ -90,8 +90,8 @@ class IdReader /** * Returns whether the class has a single-column integer ID. * - * @return bool Returns `true` if the class has a single-column integer ID - * and `false` otherwise. + * @return bool returns `true` if the class has a single-column integer ID + * and `false` otherwise */ public function isIntId() { diff --git a/src/Symfony/Bundle/FrameworkBundle/Templating/Helper/FormHelper.php b/src/Symfony/Bundle/FrameworkBundle/Templating/Helper/FormHelper.php index 47c434aa47..8375fb0235 100644 --- a/src/Symfony/Bundle/FrameworkBundle/Templating/Helper/FormHelper.php +++ b/src/Symfony/Bundle/FrameworkBundle/Templating/Helper/FormHelper.php @@ -257,7 +257,7 @@ class FormHelper extends Helper * * @return string A CSRF token * - * @throws \BadMethodCallException When no CSRF provider was injected in the constructor. + * @throws \BadMethodCallException when no CSRF provider was injected in the constructor */ public function csrfToken($intention) { diff --git a/src/Symfony/Component/Config/Definition/BaseNode.php b/src/Symfony/Component/Config/Definition/BaseNode.php index dbf36335b6..09d047994a 100644 --- a/src/Symfony/Component/Config/Definition/BaseNode.php +++ b/src/Symfony/Component/Config/Definition/BaseNode.php @@ -38,7 +38,7 @@ abstract class BaseNode implements NodeInterface * @param string $name The name of the node * @param NodeInterface $parent The parent of this node * - * @throws \InvalidArgumentException if the name contains a period. + * @throws \InvalidArgumentException if the name contains a period */ public function __construct($name, NodeInterface $parent = null) { diff --git a/src/Symfony/Component/Config/Definition/Builder/ArrayNodeDefinition.php b/src/Symfony/Component/Config/Definition/Builder/ArrayNodeDefinition.php index 03bb0cfdee..f2d22fd1f5 100644 --- a/src/Symfony/Component/Config/Definition/Builder/ArrayNodeDefinition.php +++ b/src/Symfony/Component/Config/Definition/Builder/ArrayNodeDefinition.php @@ -97,10 +97,10 @@ class ArrayNodeDefinition extends NodeDefinition implements ParentNodeDefinition /** * Adds children with a default value when none are defined. * - * @param int|string|array|null $children The number of children|The child name|The children names to be added - * * This method is applicable to prototype nodes only. * + * @param int|string|array|null $children the number of children|The child name|The children names to be added + * * @return $this */ public function addDefaultChildrenIfNoneSet($children = null) diff --git a/src/Symfony/Component/Console/Question/Question.php b/src/Symfony/Component/Console/Question/Question.php index 373501d691..f466254324 100644 --- a/src/Symfony/Component/Console/Question/Question.php +++ b/src/Symfony/Component/Console/Question/Question.php @@ -187,7 +187,7 @@ class Question * * @return $this * - * @throws \InvalidArgumentException In case the number of attempts is invalid. + * @throws \InvalidArgumentException in case the number of attempts is invalid */ public function setMaxAttempts($attempts) { diff --git a/src/Symfony/Component/Debug/Tests/DebugClassLoaderTest.php b/src/Symfony/Component/Debug/Tests/DebugClassLoaderTest.php index 1843418e91..437f1e2ecf 100644 --- a/src/Symfony/Component/Debug/Tests/DebugClassLoaderTest.php +++ b/src/Symfony/Component/Debug/Tests/DebugClassLoaderTest.php @@ -208,7 +208,7 @@ class DebugClassLoaderTest extends TestCase $xError = array( 'type' => E_USER_DEPRECATED, - 'message' => 'The Test\Symfony\Component\Debug\Tests\\'.$class.' class '.$type.' Symfony\Component\Debug\Tests\Fixtures\\'.$super.' that is deprecated but this is a test deprecation notice.', + 'message' => 'The Test\Symfony\Component\Debug\Tests\\'.$class.' class '.$type.' Symfony\Component\Debug\Tests\Fixtures\\'.$super.' that is deprecated but this is a test deprecation notice', ); $this->assertSame($xError, $lastError); diff --git a/src/Symfony/Component/Debug/Tests/Fixtures/DeprecatedClass.php b/src/Symfony/Component/Debug/Tests/Fixtures/DeprecatedClass.php index b4c78cd140..51fde5af8a 100644 --- a/src/Symfony/Component/Debug/Tests/Fixtures/DeprecatedClass.php +++ b/src/Symfony/Component/Debug/Tests/Fixtures/DeprecatedClass.php @@ -4,7 +4,7 @@ namespace Symfony\Component\Debug\Tests\Fixtures; /** * @deprecated but this is a test - * deprecation notice. + * deprecation notice * @foobar */ class DeprecatedClass diff --git a/src/Symfony/Component/Debug/Tests/Fixtures/DeprecatedInterface.php b/src/Symfony/Component/Debug/Tests/Fixtures/DeprecatedInterface.php index 505eccae75..6bab62f956 100644 --- a/src/Symfony/Component/Debug/Tests/Fixtures/DeprecatedInterface.php +++ b/src/Symfony/Component/Debug/Tests/Fixtures/DeprecatedInterface.php @@ -4,7 +4,7 @@ namespace Symfony\Component\Debug\Tests\Fixtures; /** * @deprecated but this is a test - * deprecation notice. + * deprecation notice * @foobar */ interface DeprecatedInterface diff --git a/src/Symfony/Component/DependencyInjection/Compiler/CheckCircularReferencesPass.php b/src/Symfony/Component/DependencyInjection/Compiler/CheckCircularReferencesPass.php index f39a89af2b..0b9c573acf 100644 --- a/src/Symfony/Component/DependencyInjection/Compiler/CheckCircularReferencesPass.php +++ b/src/Symfony/Component/DependencyInjection/Compiler/CheckCircularReferencesPass.php @@ -51,7 +51,7 @@ class CheckCircularReferencesPass implements CompilerPassInterface * * @param ServiceReferenceGraphEdge[] $edges An array of Edges * - * @throws ServiceCircularReferenceException When a circular reference is found. + * @throws ServiceCircularReferenceException when a circular reference is found */ private function checkOutEdges(array $edges) { diff --git a/src/Symfony/Component/DependencyInjection/Compiler/CheckReferenceValidityPass.php b/src/Symfony/Component/DependencyInjection/Compiler/CheckReferenceValidityPass.php index 82202a9fb6..f8c09d42f0 100644 --- a/src/Symfony/Component/DependencyInjection/Compiler/CheckReferenceValidityPass.php +++ b/src/Symfony/Component/DependencyInjection/Compiler/CheckReferenceValidityPass.php @@ -85,7 +85,7 @@ class CheckReferenceValidityPass implements CompilerPassInterface * * @param array $arguments An array of Reference objects * - * @throws RuntimeException when there is a reference to an abstract definition. + * @throws RuntimeException when there is a reference to an abstract definition */ private function validateReferences(array $arguments) { diff --git a/src/Symfony/Component/DependencyInjection/Definition.php b/src/Symfony/Component/DependencyInjection/Definition.php index cad6398f7f..780ad187cd 100644 --- a/src/Symfony/Component/DependencyInjection/Definition.php +++ b/src/Symfony/Component/DependencyInjection/Definition.php @@ -140,7 +140,7 @@ class Definition * * @return $this * - * @throws InvalidArgumentException In case the decorated service id and the new decorated service id are equals. + * @throws InvalidArgumentException in case the decorated service id and the new decorated service id are equals */ public function setDecoratedService($id, $renamedId = null) { diff --git a/src/Symfony/Component/DependencyInjection/ParameterBag/ParameterBag.php b/src/Symfony/Component/DependencyInjection/ParameterBag/ParameterBag.php index 0611b1f69e..dbfa5b6ae5 100644 --- a/src/Symfony/Component/DependencyInjection/ParameterBag/ParameterBag.php +++ b/src/Symfony/Component/DependencyInjection/ParameterBag/ParameterBag.php @@ -151,7 +151,7 @@ class ParameterBag implements ParameterBagInterface * * @throws ParameterNotFoundException if a placeholder references a parameter that does not exist * @throws ParameterCircularReferenceException if a circular reference if detected - * @throws RuntimeException when a given parameter has a type problem. + * @throws RuntimeException when a given parameter has a type problem */ public function resolveValue($value, array $resolving = array()) { @@ -181,7 +181,7 @@ class ParameterBag implements ParameterBagInterface * * @throws ParameterNotFoundException if a placeholder references a parameter that does not exist * @throws ParameterCircularReferenceException if a circular reference if detected - * @throws RuntimeException when a given parameter has a type problem. + * @throws RuntimeException when a given parameter has a type problem */ public function resolveString($value, array $resolving = array()) { diff --git a/src/Symfony/Component/DomCrawler/Crawler.php b/src/Symfony/Component/DomCrawler/Crawler.php index ed9b0b0239..f711c02bff 100644 --- a/src/Symfony/Component/DomCrawler/Crawler.php +++ b/src/Symfony/Component/DomCrawler/Crawler.php @@ -71,7 +71,7 @@ class Crawler extends \SplObjectStorage * * @param \DOMNodeList|\DOMNode|array|string|null $node A node * - * @throws \InvalidArgumentException When node is not the expected type. + * @throws \InvalidArgumentException when node is not the expected type */ public function add($node) { diff --git a/src/Symfony/Component/EventDispatcher/EventDispatcherInterface.php b/src/Symfony/Component/EventDispatcher/EventDispatcherInterface.php index abe8d2895e..b1f976cdf2 100644 --- a/src/Symfony/Component/EventDispatcher/EventDispatcherInterface.php +++ b/src/Symfony/Component/EventDispatcher/EventDispatcherInterface.php @@ -26,8 +26,8 @@ interface EventDispatcherInterface * @param string $eventName The name of the event to dispatch. The name of * the event is the name of the method that is * invoked on listeners. - * @param Event $event The event to pass to the event handlers/listeners - * If not supplied, an empty Event instance is created. + * @param Event $event the event to pass to the event handlers/listeners + * If not supplied, an empty Event instance is created * * @return Event */ diff --git a/src/Symfony/Component/EventDispatcher/GenericEvent.php b/src/Symfony/Component/EventDispatcher/GenericEvent.php index e8e4cc0502..a7520a0f34 100644 --- a/src/Symfony/Component/EventDispatcher/GenericEvent.php +++ b/src/Symfony/Component/EventDispatcher/GenericEvent.php @@ -63,7 +63,7 @@ class GenericEvent extends Event implements \ArrayAccess, \IteratorAggregate * * @return mixed Contents of array key * - * @throws \InvalidArgumentException If key is not found. + * @throws \InvalidArgumentException if key is not found */ public function getArgument($key) { @@ -132,7 +132,7 @@ class GenericEvent extends Event implements \ArrayAccess, \IteratorAggregate * * @return mixed * - * @throws \InvalidArgumentException If key does not exist in $this->args. + * @throws \InvalidArgumentException if key does not exist in $this->args */ public function offsetGet($key) { diff --git a/src/Symfony/Component/Filesystem/Filesystem.php b/src/Symfony/Component/Filesystem/Filesystem.php index bc2e3dcc2d..3a83165731 100644 --- a/src/Symfony/Component/Filesystem/Filesystem.php +++ b/src/Symfony/Component/Filesystem/Filesystem.php @@ -525,7 +525,7 @@ class Filesystem * @param null|int $mode The file mode (octal). If null, file permissions are not modified * Deprecated since version 2.3.12, to be removed in 3.0. * - * @throws IOException If the file cannot be written to. + * @throws IOException if the file cannot be written to */ public function dumpFile($filename, $content, $mode = 0666) { diff --git a/src/Symfony/Component/Finder/Finder.php b/src/Symfony/Component/Finder/Finder.php index edbdcd6402..d8408d1f3c 100644 --- a/src/Symfony/Component/Finder/Finder.php +++ b/src/Symfony/Component/Finder/Finder.php @@ -681,7 +681,7 @@ class Finder implements \IteratorAggregate, \Countable * * @return $this * - * @throws \InvalidArgumentException When the given argument is not iterable. + * @throws \InvalidArgumentException when the given argument is not iterable */ public function append($iterator) { diff --git a/src/Symfony/Component/Form/AbstractRendererEngine.php b/src/Symfony/Component/Form/AbstractRendererEngine.php index ae9938a0f0..7519011225 100644 --- a/src/Symfony/Component/Form/AbstractRendererEngine.php +++ b/src/Symfony/Component/Form/AbstractRendererEngine.php @@ -139,14 +139,14 @@ abstract class AbstractRendererEngine implements FormRendererEngineInterface * * @see getResourceForBlockHierarchy() * - * @param string $cacheKey The cache key used for storing the - * resource. - * @param FormView $view The form view for finding the applying - * themes. - * @param array $blockNameHierarchy The block hierarchy, with the most - * specific block name at the end. - * @param int $hierarchyLevel The level in the block hierarchy that - * should be loaded. + * @param string $cacheKey the cache key used for storing the + * resource + * @param FormView $view the form view for finding the applying + * themes + * @param array $blockNameHierarchy the block hierarchy, with the most + * specific block name at the end + * @param int $hierarchyLevel the level in the block hierarchy that + * should be loaded * * @return bool True if the resource could be loaded, false otherwise */ diff --git a/src/Symfony/Component/Form/Button.php b/src/Symfony/Component/Form/Button.php index efc14c0639..9a5f8a60bd 100644 --- a/src/Symfony/Component/Form/Button.php +++ b/src/Symfony/Component/Form/Button.php @@ -371,7 +371,7 @@ class Button implements \IteratorAggregate, FormInterface * * @return $this * - * @throws Exception\AlreadySubmittedException If the button has already been submitted. + * @throws Exception\AlreadySubmittedException if the button has already been submitted */ public function submit($submittedData, $clearMissing = true) { diff --git a/src/Symfony/Component/Form/ButtonBuilder.php b/src/Symfony/Component/Form/ButtonBuilder.php index eaecb382fd..ad311db290 100644 --- a/src/Symfony/Component/Form/ButtonBuilder.php +++ b/src/Symfony/Component/Form/ButtonBuilder.php @@ -58,7 +58,7 @@ class ButtonBuilder implements \IteratorAggregate, FormBuilderInterface * @param string $name The name of the button * @param array $options The button's options * - * @throws InvalidArgumentException If the name is empty. + * @throws InvalidArgumentException if the name is empty */ public function __construct($name, array $options = array()) { diff --git a/src/Symfony/Component/Form/ChoiceList/ArrayChoiceList.php b/src/Symfony/Component/Form/ChoiceList/ArrayChoiceList.php index 4a2588ef1d..676987e641 100644 --- a/src/Symfony/Component/Form/ChoiceList/ArrayChoiceList.php +++ b/src/Symfony/Component/Form/ChoiceList/ArrayChoiceList.php @@ -222,8 +222,8 @@ class ArrayChoiceList implements ChoiceListInterface * @param array $choices The choices * @param array|null $cache The cache for previously checked entries. Internal * - * @return bool Returns true if the choices can be cast to strings and - * false otherwise. + * @return bool returns true if the choices can be cast to strings and + * false otherwise */ private function castableToString(array $choices, array &$cache = array()) { diff --git a/src/Symfony/Component/Form/ChoiceList/Factory/CachingFactoryDecorator.php b/src/Symfony/Component/Form/ChoiceList/Factory/CachingFactoryDecorator.php index ae7f2375bb..5ce851096c 100644 --- a/src/Symfony/Component/Form/ChoiceList/Factory/CachingFactoryDecorator.php +++ b/src/Symfony/Component/Form/ChoiceList/Factory/CachingFactoryDecorator.php @@ -48,7 +48,7 @@ class CachingFactoryDecorator implements ChoiceListFactoryInterface * * @return string The SHA-256 hash * - * @internal Should not be used by user-land code. + * @internal should not be used by user-land code */ public static function generateHash($value, $namespace = '') { diff --git a/src/Symfony/Component/Form/ChoiceList/View/ChoiceGroupView.php b/src/Symfony/Component/Form/ChoiceList/View/ChoiceGroupView.php index 9e648cc360..455fa68ac4 100644 --- a/src/Symfony/Component/Form/ChoiceList/View/ChoiceGroupView.php +++ b/src/Symfony/Component/Form/ChoiceList/View/ChoiceGroupView.php @@ -36,8 +36,8 @@ class ChoiceGroupView implements \IteratorAggregate * Creates a new choice group view. * * @param string $label The label of the group - * @param ChoiceGroupView[]|ChoiceView[] $choices The choice views in the - * group. + * @param ChoiceGroupView[]|ChoiceView[] $choices the choice views in the + * group */ public function __construct($label, array $choices = array()) { diff --git a/src/Symfony/Component/Form/ChoiceList/View/ChoiceListView.php b/src/Symfony/Component/Form/ChoiceList/View/ChoiceListView.php index cea30dd655..05c40a4883 100644 --- a/src/Symfony/Component/Form/ChoiceList/View/ChoiceListView.php +++ b/src/Symfony/Component/Form/ChoiceList/View/ChoiceListView.php @@ -40,8 +40,8 @@ class ChoiceListView * Creates a new choice list view. * * @param ChoiceGroupView[]|ChoiceView[] $choices The choice views - * @param ChoiceGroupView[]|ChoiceView[] $preferredChoices The preferred - * choice views. + * @param ChoiceGroupView[]|ChoiceView[] $preferredChoices the preferred + * choice views */ public function __construct(array $choices = array(), array $preferredChoices = array()) { diff --git a/src/Symfony/Component/Form/DataMapperInterface.php b/src/Symfony/Component/Form/DataMapperInterface.php index f1867a9f90..bb262e7b8e 100644 --- a/src/Symfony/Component/Form/DataMapperInterface.php +++ b/src/Symfony/Component/Form/DataMapperInterface.php @@ -22,7 +22,7 @@ interface DataMapperInterface * @param mixed $data Structured data * @param FormInterface[]|\Traversable $forms A list of {@link FormInterface} instances * - * @throws Exception\UnexpectedTypeException if the type of the data parameter is not supported. + * @throws Exception\UnexpectedTypeException if the type of the data parameter is not supported */ public function mapDataToForms($data, $forms); @@ -32,7 +32,7 @@ interface DataMapperInterface * @param FormInterface[]|\Traversable $forms A list of {@link FormInterface} instances * @param mixed $data Structured data * - * @throws Exception\UnexpectedTypeException if the type of the data parameter is not supported. + * @throws Exception\UnexpectedTypeException if the type of the data parameter is not supported */ public function mapFormsToData($forms, &$data); } diff --git a/src/Symfony/Component/Form/DataTransformerInterface.php b/src/Symfony/Component/Form/DataTransformerInterface.php index ee0afda8a9..deb073c812 100644 --- a/src/Symfony/Component/Form/DataTransformerInterface.php +++ b/src/Symfony/Component/Form/DataTransformerInterface.php @@ -45,7 +45,7 @@ interface DataTransformerInterface * * @return mixed The value in the transformed representation * - * @throws TransformationFailedException When the transformation fails. + * @throws TransformationFailedException when the transformation fails */ public function transform($value); @@ -71,7 +71,7 @@ interface DataTransformerInterface * * @return mixed The value in the original representation * - * @throws TransformationFailedException When the transformation fails. + * @throws TransformationFailedException when the transformation fails */ public function reverseTransform($value); } diff --git a/src/Symfony/Component/Form/Extension/Core/ChoiceList/ChoiceList.php b/src/Symfony/Component/Form/Extension/Core/ChoiceList/ChoiceList.php index 90e5d774e7..6e0cea5539 100644 --- a/src/Symfony/Component/Form/Extension/Core/ChoiceList/ChoiceList.php +++ b/src/Symfony/Component/Form/Extension/Core/ChoiceList/ChoiceList.php @@ -82,10 +82,10 @@ class ChoiceList implements ChoiceListInterface * level of the hierarchy may also be a \Traversable. * @param array $labels The array of labels. The structure of this array * should match the structure of $choices. - * @param array $preferredChoices A flat array of choices that should be - * presented to the user with priority. + * @param array $preferredChoices a flat array of choices that should be + * presented to the user with priority * - * @throws UnexpectedTypeException If the choices are not an array or \Traversable. + * @throws UnexpectedTypeException if the choices are not an array or \Traversable */ public function __construct($choices, array $labels, array $preferredChoices = array()) { @@ -260,16 +260,16 @@ class ChoiceList implements ChoiceListInterface /** * Recursively adds the given choices to the list. * - * @param array $bucketForPreferred The bucket where to store the preferred - * view objects. - * @param array $bucketForRemaining The bucket where to store the - * non-preferred view objects. + * @param array $bucketForPreferred the bucket where to store the preferred + * view objects + * @param array $bucketForRemaining the bucket where to store the + * non-preferred view objects * @param array|\Traversable $choices The list of choices * @param array $labels The labels corresponding to the choices * @param array $preferredChoices The preferred choices * - * @throws InvalidArgumentException If the structures of the choices and labels array do not match. - * @throws InvalidConfigurationException If no valid value or index could be created for a choice. + * @throws InvalidArgumentException if the structures of the choices and labels array do not match + * @throws InvalidConfigurationException if no valid value or index could be created for a choice */ protected function addChoices(array &$bucketForPreferred, array &$bucketForRemaining, $choices, array $labels, array $preferredChoices) { @@ -307,15 +307,15 @@ class ChoiceList implements ChoiceListInterface * Recursively adds a choice group. * * @param string $group The name of the group - * @param array $bucketForPreferred The bucket where to store the preferred - * view objects. - * @param array $bucketForRemaining The bucket where to store the - * non-preferred view objects. + * @param array $bucketForPreferred the bucket where to store the preferred + * view objects + * @param array $bucketForRemaining the bucket where to store the + * non-preferred view objects * @param array $choices The list of choices in the group * @param array $labels The labels corresponding to the choices in the group * @param array $preferredChoices The preferred choices * - * @throws InvalidConfigurationException If no valid value or index could be created for a choice. + * @throws InvalidConfigurationException if no valid value or index could be created for a choice */ protected function addChoiceGroup($group, array &$bucketForPreferred, array &$bucketForRemaining, array $choices, array $labels, array $preferredChoices) { @@ -344,15 +344,15 @@ class ChoiceList implements ChoiceListInterface /** * Adds a new choice. * - * @param array $bucketForPreferred The bucket where to store the preferred - * view objects. - * @param array $bucketForRemaining The bucket where to store the - * non-preferred view objects. + * @param array $bucketForPreferred the bucket where to store the preferred + * view objects + * @param array $bucketForRemaining the bucket where to store the + * non-preferred view objects * @param mixed $choice The choice to add * @param string $label The label for the choice * @param array $preferredChoices The preferred choices * - * @throws InvalidConfigurationException If no valid value or index could be created. + * @throws InvalidConfigurationException if no valid value or index could be created */ protected function addChoice(array &$bucketForPreferred, array &$bucketForRemaining, $choice, $label, array $preferredChoices) { @@ -404,8 +404,8 @@ class ChoiceList implements ChoiceListInterface * * @param mixed $choice The choice to create an index for * - * @return int|string A unique index containing only ASCII letters, - * digits and underscores. + * @return int|string a unique index containing only ASCII letters, + * digits and underscores */ protected function createIndex($choice) { diff --git a/src/Symfony/Component/Form/Extension/Core/ChoiceList/ObjectChoiceList.php b/src/Symfony/Component/Form/Extension/Core/ChoiceList/ObjectChoiceList.php index 6460ba81ef..5e2b9a75a2 100644 --- a/src/Symfony/Component/Form/Extension/Core/ChoiceList/ObjectChoiceList.php +++ b/src/Symfony/Component/Form/Extension/Core/ChoiceList/ObjectChoiceList.php @@ -80,8 +80,8 @@ class ObjectChoiceList extends ChoiceList * by calling the getter on the object. If the * path is NULL, the object's __toString() method * is used instead. - * @param array $preferredChoices A flat array of choices that should be - * presented to the user with priority. + * @param array $preferredChoices a flat array of choices that should be + * presented to the user with priority * @param string $groupPath A property path pointing to the property used * to group the choices. Only allowed if * the choices are given as flat array. @@ -109,8 +109,8 @@ class ObjectChoiceList extends ChoiceList * @param array $labels Ignored * @param array $preferredChoices The choices to display with priority * - * @throws InvalidArgumentException When passing a hierarchy of choices and using - * the "groupPath" option at the same time. + * @throws InvalidArgumentException when passing a hierarchy of choices and using + * the "groupPath" option at the same time */ protected function initialize($choices, array $labels, array $preferredChoices) { diff --git a/src/Symfony/Component/Form/Extension/Core/ChoiceList/SimpleChoiceList.php b/src/Symfony/Component/Form/Extension/Core/ChoiceList/SimpleChoiceList.php index 537e318f80..e5fd865d0d 100644 --- a/src/Symfony/Component/Form/Extension/Core/ChoiceList/SimpleChoiceList.php +++ b/src/Symfony/Component/Form/Extension/Core/ChoiceList/SimpleChoiceList.php @@ -44,8 +44,8 @@ class SimpleChoiceList extends ChoiceList * as hierarchy of unlimited depth by creating nested * arrays. The title of the sub-hierarchy is stored * in the array key pointing to the nested array. - * @param array $preferredChoices A flat array of choices that should be - * presented to the user with priority. + * @param array $preferredChoices a flat array of choices that should be + * presented to the user with priority */ public function __construct(array $choices, array $preferredChoices = array()) { @@ -83,10 +83,10 @@ class SimpleChoiceList extends ChoiceList * Takes care of splitting the single $choices array passed in the * constructor into choices and labels. * - * @param array $bucketForPreferred The bucket where to store the preferred - * view objects. - * @param array $bucketForRemaining The bucket where to store the - * non-preferred view objects. + * @param array $bucketForPreferred the bucket where to store the preferred + * view objects + * @param array $bucketForRemaining the bucket where to store the + * non-preferred view objects * @param array|\Traversable $choices The list of choices * @param array $labels Ignored * @param array $preferredChoices The preferred choices diff --git a/src/Symfony/Component/Form/Extension/Core/DataTransformer/BooleanToStringTransformer.php b/src/Symfony/Component/Form/Extension/Core/DataTransformer/BooleanToStringTransformer.php index 5d3e5eaf05..f98b787cac 100644 --- a/src/Symfony/Component/Form/Extension/Core/DataTransformer/BooleanToStringTransformer.php +++ b/src/Symfony/Component/Form/Extension/Core/DataTransformer/BooleanToStringTransformer.php @@ -46,7 +46,7 @@ class BooleanToStringTransformer implements DataTransformerInterface * * @return string String value * - * @throws TransformationFailedException If the given value is not a Boolean. + * @throws TransformationFailedException if the given value is not a Boolean */ public function transform($value) { @@ -68,7 +68,7 @@ class BooleanToStringTransformer implements DataTransformerInterface * * @return bool Boolean value * - * @throws TransformationFailedException If the given value is not a string. + * @throws TransformationFailedException if the given value is not a string */ public function reverseTransform($value) { diff --git a/src/Symfony/Component/Form/Extension/Core/DataTransformer/ChoiceToBooleanArrayTransformer.php b/src/Symfony/Component/Form/Extension/Core/DataTransformer/ChoiceToBooleanArrayTransformer.php index 50ee4b693e..89f13b6cb2 100644 --- a/src/Symfony/Component/Form/Extension/Core/DataTransformer/ChoiceToBooleanArrayTransformer.php +++ b/src/Symfony/Component/Form/Extension/Core/DataTransformer/ChoiceToBooleanArrayTransformer.php @@ -49,13 +49,13 @@ class ChoiceToBooleanArrayTransformer implements DataTransformerInterface * depending on whether a given option is selected. If this field is rendered * as select tag, the value is not modified. * - * @param mixed $choice An array if "multiple" is set to true, a scalar - * value otherwise. + * @param mixed $choice an array if "multiple" is set to true, a scalar + * value otherwise * * @return mixed An array * - * @throws TransformationFailedException If the given value is not scalar or - * if the choices can not be retrieved. + * @throws TransformationFailedException if the given value is not scalar or + * if the choices can not be retrieved */ public function transform($choice) { @@ -89,10 +89,10 @@ class ChoiceToBooleanArrayTransformer implements DataTransformerInterface * * @return mixed A scalar value * - * @throws TransformationFailedException If the given value is not an array, + * @throws TransformationFailedException if the given value is not an array, * if the recuperation of the choices * fails or if some choice can't be - * found. + * found */ public function reverseTransform($values) { diff --git a/src/Symfony/Component/Form/Extension/Core/DataTransformer/ChoicesToBooleanArrayTransformer.php b/src/Symfony/Component/Form/Extension/Core/DataTransformer/ChoicesToBooleanArrayTransformer.php index 26c6781403..6cbc5dd464 100644 --- a/src/Symfony/Component/Form/Extension/Core/DataTransformer/ChoicesToBooleanArrayTransformer.php +++ b/src/Symfony/Component/Form/Extension/Core/DataTransformer/ChoicesToBooleanArrayTransformer.php @@ -44,8 +44,8 @@ class ChoicesToBooleanArrayTransformer implements DataTransformerInterface * * @return mixed An array * - * @throws TransformationFailedException If the given value is not an array - * or if the choices can not be retrieved. + * @throws TransformationFailedException if the given value is not an array + * or if the choices can not be retrieved */ public function transform($array) { @@ -83,10 +83,10 @@ class ChoicesToBooleanArrayTransformer implements DataTransformerInterface * * @return mixed An array * - * @throws TransformationFailedException If the given value is not an array, + * @throws TransformationFailedException if the given value is not an array, * if the recuperation of the choices * fails or if some choice can't be - * found. + * found */ public function reverseTransform($values) { diff --git a/src/Symfony/Component/Form/Extension/Core/DataTransformer/ChoicesToValuesTransformer.php b/src/Symfony/Component/Form/Extension/Core/DataTransformer/ChoicesToValuesTransformer.php index 0a1f2f0288..65bcf6d4ae 100644 --- a/src/Symfony/Component/Form/Extension/Core/DataTransformer/ChoicesToValuesTransformer.php +++ b/src/Symfony/Component/Form/Extension/Core/DataTransformer/ChoicesToValuesTransformer.php @@ -37,7 +37,7 @@ class ChoicesToValuesTransformer implements DataTransformerInterface * * @return array * - * @throws TransformationFailedException If the given value is not an array. + * @throws TransformationFailedException if the given value is not an array */ public function transform($array) { @@ -57,9 +57,9 @@ class ChoicesToValuesTransformer implements DataTransformerInterface * * @return array * - * @throws TransformationFailedException If the given value is not an array + * @throws TransformationFailedException if the given value is not an array * or if no matching choice could be - * found for some given value. + * found for some given value */ public function reverseTransform($array) { diff --git a/src/Symfony/Component/Form/Extension/Core/DataTransformer/DateTimeToLocalizedStringTransformer.php b/src/Symfony/Component/Form/Extension/Core/DataTransformer/DateTimeToLocalizedStringTransformer.php index e1db36bda6..bc8f64dffa 100644 --- a/src/Symfony/Component/Form/Extension/Core/DataTransformer/DateTimeToLocalizedStringTransformer.php +++ b/src/Symfony/Component/Form/Extension/Core/DataTransformer/DateTimeToLocalizedStringTransformer.php @@ -74,9 +74,9 @@ class DateTimeToLocalizedStringTransformer extends BaseDateTimeTransformer * * @return string|array Localized date string/array * - * @throws TransformationFailedException If the given value is not an instance + * @throws TransformationFailedException if the given value is not an instance * of \DateTime or \DateTimeInterface or - * if the date could not be transformed. + * if the date could not be transformed */ public function transform($dateTime) { @@ -152,11 +152,11 @@ class DateTimeToLocalizedStringTransformer extends BaseDateTimeTransformer /** * Returns a preconfigured IntlDateFormatter instance. * - * @param bool $ignoreTimezone Use UTC regardless of the configured timezone. + * @param bool $ignoreTimezone use UTC regardless of the configured timezone * * @return \IntlDateFormatter * - * @throws TransformationFailedException in case the date formatter can not be constructed. + * @throws TransformationFailedException in case the date formatter can not be constructed */ protected function getIntlDateFormatter($ignoreTimezone = false) { diff --git a/src/Symfony/Component/Form/Extension/Core/DataTransformer/MoneyToLocalizedStringTransformer.php b/src/Symfony/Component/Form/Extension/Core/DataTransformer/MoneyToLocalizedStringTransformer.php index 6eeee1280b..5993c01cb0 100644 --- a/src/Symfony/Component/Form/Extension/Core/DataTransformer/MoneyToLocalizedStringTransformer.php +++ b/src/Symfony/Component/Form/Extension/Core/DataTransformer/MoneyToLocalizedStringTransformer.php @@ -49,8 +49,8 @@ class MoneyToLocalizedStringTransformer extends NumberToLocalizedStringTransform * * @return string Localized money string * - * @throws TransformationFailedException If the given value is not numeric or - * if the value can not be transformed. + * @throws TransformationFailedException if the given value is not numeric or + * if the value can not be transformed */ public function transform($value) { @@ -72,8 +72,8 @@ class MoneyToLocalizedStringTransformer extends NumberToLocalizedStringTransform * * @return int|float Normalized number * - * @throws TransformationFailedException If the given value is not a string - * or if the value can not be transformed. + * @throws TransformationFailedException if the given value is not a string + * or if the value can not be transformed */ public function reverseTransform($value) { diff --git a/src/Symfony/Component/Form/Extension/Core/DataTransformer/NumberToLocalizedStringTransformer.php b/src/Symfony/Component/Form/Extension/Core/DataTransformer/NumberToLocalizedStringTransformer.php index 1e86ffb92e..a719847142 100644 --- a/src/Symfony/Component/Form/Extension/Core/DataTransformer/NumberToLocalizedStringTransformer.php +++ b/src/Symfony/Component/Form/Extension/Core/DataTransformer/NumberToLocalizedStringTransformer.php @@ -124,8 +124,8 @@ class NumberToLocalizedStringTransformer implements DataTransformerInterface * * @return string Localized value * - * @throws TransformationFailedException If the given value is not numeric - * or if the value can not be transformed. + * @throws TransformationFailedException if the given value is not numeric + * or if the value can not be transformed */ public function transform($value) { @@ -157,8 +157,8 @@ class NumberToLocalizedStringTransformer implements DataTransformerInterface * * @return int|float The numeric value * - * @throws TransformationFailedException If the given value is not a string - * or if the value can not be transformed. + * @throws TransformationFailedException if the given value is not a string + * or if the value can not be transformed */ public function reverseTransform($value) { diff --git a/src/Symfony/Component/Form/Extension/Core/DataTransformer/PercentToLocalizedStringTransformer.php b/src/Symfony/Component/Form/Extension/Core/DataTransformer/PercentToLocalizedStringTransformer.php index 7fc191a054..0eb3e2be26 100644 --- a/src/Symfony/Component/Form/Extension/Core/DataTransformer/PercentToLocalizedStringTransformer.php +++ b/src/Symfony/Component/Form/Extension/Core/DataTransformer/PercentToLocalizedStringTransformer.php @@ -70,8 +70,8 @@ class PercentToLocalizedStringTransformer implements DataTransformerInterface * * @return string Percentage value * - * @throws TransformationFailedException If the given value is not numeric or - * if the value could not be transformed. + * @throws TransformationFailedException if the given value is not numeric or + * if the value could not be transformed */ public function transform($value) { @@ -105,8 +105,8 @@ class PercentToLocalizedStringTransformer implements DataTransformerInterface * * @return int|float Normalized value * - * @throws TransformationFailedException If the given value is not a string or - * if the value could not be transformed. + * @throws TransformationFailedException if the given value is not a string or + * if the value could not be transformed */ public function reverseTransform($value) { diff --git a/src/Symfony/Component/Form/Extension/Core/DataTransformer/ValueToDuplicatesTransformer.php b/src/Symfony/Component/Form/Extension/Core/DataTransformer/ValueToDuplicatesTransformer.php index ffc9915fa4..2c1d6d0f62 100644 --- a/src/Symfony/Component/Form/Extension/Core/DataTransformer/ValueToDuplicatesTransformer.php +++ b/src/Symfony/Component/Form/Extension/Core/DataTransformer/ValueToDuplicatesTransformer.php @@ -51,8 +51,8 @@ class ValueToDuplicatesTransformer implements DataTransformerInterface * * @return mixed The value * - * @throws TransformationFailedException If the given value is not an array or - * if the given array can not be transformed. + * @throws TransformationFailedException if the given value is not an array or + * if the given array can not be transformed */ public function reverseTransform($array) { diff --git a/src/Symfony/Component/Form/Extension/Core/EventListener/MergeCollectionListener.php b/src/Symfony/Component/Form/Extension/Core/EventListener/MergeCollectionListener.php index a65116fd5c..6cd5e69d0e 100644 --- a/src/Symfony/Component/Form/Extension/Core/EventListener/MergeCollectionListener.php +++ b/src/Symfony/Component/Form/Extension/Core/EventListener/MergeCollectionListener.php @@ -38,10 +38,10 @@ class MergeCollectionListener implements EventSubscriberInterface /** * Creates a new listener. * - * @param bool $allowAdd Whether values might be added to the - * collection. - * @param bool $allowDelete Whether values might be removed from the - * collection. + * @param bool $allowAdd whether values might be added to the + * collection + * @param bool $allowDelete whether values might be removed from the + * collection */ public function __construct($allowAdd = false, $allowDelete = false) { diff --git a/src/Symfony/Component/Form/Extension/Validator/ValidatorTypeGuesser.php b/src/Symfony/Component/Form/Extension/Validator/ValidatorTypeGuesser.php index 880e71d39a..b04a9447fc 100644 --- a/src/Symfony/Component/Form/Extension/Validator/ValidatorTypeGuesser.php +++ b/src/Symfony/Component/Form/Extension/Validator/ValidatorTypeGuesser.php @@ -258,8 +258,8 @@ class ValidatorTypeGuesser implements FormTypeGuesserInterface * @param string $property The property for which to find constraints * @param \Closure $closure The closure that returns a guess * for a given constraint - * @param mixed $defaultValue The default value assumed if no other value - * can be guessed. + * @param mixed $defaultValue the default value assumed if no other value + * can be guessed * * @return Guess|null The guessed value with the highest confidence */ diff --git a/src/Symfony/Component/Form/Extension/Validator/ViolationMapper/ViolationMapperInterface.php b/src/Symfony/Component/Form/Extension/Validator/ViolationMapper/ViolationMapperInterface.php index bb7c6b7670..7f3a4297c3 100644 --- a/src/Symfony/Component/Form/Extension/Validator/ViolationMapper/ViolationMapperInterface.php +++ b/src/Symfony/Component/Form/Extension/Validator/ViolationMapper/ViolationMapperInterface.php @@ -24,10 +24,10 @@ interface ViolationMapperInterface * the given form. * * @param ConstraintViolation $violation The violation to map - * @param FormInterface $form The root form of the tree - * to map it to. - * @param bool $allowNonSynchronized Whether to allow - * mapping to non-synchronized forms. + * @param FormInterface $form the root form of the tree + * to map it to + * @param bool $allowNonSynchronized whether to allow + * mapping to non-synchronized forms */ public function mapViolation(ConstraintViolation $violation, FormInterface $form, $allowNonSynchronized = false); } diff --git a/src/Symfony/Component/Form/Extension/Validator/ViolationMapper/ViolationPath.php b/src/Symfony/Component/Form/Extension/Validator/ViolationMapper/ViolationPath.php index 1e984e2f4d..fcc2b7c103 100644 --- a/src/Symfony/Component/Form/Extension/Validator/ViolationMapper/ViolationPath.php +++ b/src/Symfony/Component/Form/Extension/Validator/ViolationMapper/ViolationPath.php @@ -48,8 +48,8 @@ class ViolationPath implements \IteratorAggregate, PropertyPathInterface /** * Creates a new violation path from a string. * - * @param string $violationPath The property path of a {@link \Symfony\Component\Validator\ConstraintViolation} - * object. + * @param string $violationPath the property path of a {@link \Symfony\Component\Validator\ConstraintViolation} + * object */ public function __construct($violationPath) { @@ -210,7 +210,7 @@ class ViolationPath implements \IteratorAggregate, PropertyPathInterface * * @return bool Whether the element maps to a form * - * @throws OutOfBoundsException If the offset is invalid. + * @throws OutOfBoundsException if the offset is invalid */ public function mapsForm($index) { diff --git a/src/Symfony/Component/Form/Form.php b/src/Symfony/Component/Form/Form.php index 87cd15bf47..7e662f8f1e 100644 --- a/src/Symfony/Component/Form/Form.php +++ b/src/Symfony/Component/Form/Form.php @@ -996,7 +996,7 @@ class Form implements \IteratorAggregate, FormInterface * * @return FormInterface The child form * - * @throws \OutOfBoundsException If the named child does not exist. + * @throws \OutOfBoundsException if the named child does not exist */ public function offsetGet($name) { @@ -1009,8 +1009,8 @@ class Form implements \IteratorAggregate, FormInterface * @param string $name Ignored. The name of the child is used * @param FormInterface $child The child to be added * - * @throws AlreadySubmittedException If the form has already been submitted. - * @throws LogicException When trying to add a child to a non-compound form. + * @throws AlreadySubmittedException if the form has already been submitted + * @throws LogicException when trying to add a child to a non-compound form * * @see self::add() */ @@ -1024,7 +1024,7 @@ class Form implements \IteratorAggregate, FormInterface * * @param string $name The name of the child to remove * - * @throws AlreadySubmittedException If the form has already been submitted. + * @throws AlreadySubmittedException if the form has already been submitted */ public function offsetUnset($name) { diff --git a/src/Symfony/Component/Form/FormConfigBuilder.php b/src/Symfony/Component/Form/FormConfigBuilder.php index 61c0da55c0..f51881a092 100644 --- a/src/Symfony/Component/Form/FormConfigBuilder.php +++ b/src/Symfony/Component/Form/FormConfigBuilder.php @@ -185,8 +185,8 @@ class FormConfigBuilder implements FormConfigBuilderInterface * @param EventDispatcherInterface $dispatcher The event dispatcher * @param array $options The form options * - * @throws InvalidArgumentException If the data class is not a valid class or if - * the name contains invalid characters. + * @throws InvalidArgumentException if the data class is not a valid class or if + * the name contains invalid characters */ public function __construct($name, $dataClass, EventDispatcherInterface $dispatcher, array $options = array()) { @@ -882,8 +882,8 @@ class FormConfigBuilder implements FormConfigBuilderInterface * * @param string|int $name The tested form name * - * @throws UnexpectedTypeException If the name is not a string or an integer. - * @throws InvalidArgumentException If the name contains invalid characters. + * @throws UnexpectedTypeException if the name is not a string or an integer + * @throws InvalidArgumentException if the name contains invalid characters */ public static function validateName($name) { diff --git a/src/Symfony/Component/Form/FormConfigBuilderInterface.php b/src/Symfony/Component/Form/FormConfigBuilderInterface.php index 13ac4682b6..3cb4e38482 100644 --- a/src/Symfony/Component/Form/FormConfigBuilderInterface.php +++ b/src/Symfony/Component/Form/FormConfigBuilderInterface.php @@ -152,9 +152,8 @@ interface FormConfigBuilderInterface extends FormConfigInterface /** * Sets the property path that the form should be mapped to. * - * @param null|string|PropertyPathInterface $propertyPath - * The property path or null if the path should be set - * automatically based on the form's name. + * @param null|string|PropertyPathInterface $propertyPath the property path or null if the path should be set + * automatically based on the form's name * * @return $this The configuration object */ @@ -173,8 +172,8 @@ interface FormConfigBuilderInterface extends FormConfigInterface /** * Sets whether the form's data should be modified by reference. * - * @param bool $byReference Whether the data should be - * modified by reference. + * @param bool $byReference whether the data should be + * modified by reference * * @return $this The configuration object */ diff --git a/src/Symfony/Component/Form/FormConfigInterface.php b/src/Symfony/Component/Form/FormConfigInterface.php index c2f97901d2..47a2ac35a8 100644 --- a/src/Symfony/Component/Form/FormConfigInterface.php +++ b/src/Symfony/Component/Form/FormConfigInterface.php @@ -213,8 +213,8 @@ interface FormConfigInterface /** * Returns whether the form should be initialized upon creation. * - * @return bool Returns true if the form should be initialized - * when created, false otherwise. + * @return bool returns true if the form should be initialized + * when created, false otherwise */ public function getAutoInitialize(); diff --git a/src/Symfony/Component/Form/FormErrorIterator.php b/src/Symfony/Component/Form/FormErrorIterator.php index 41a1297d30..f3958e77ae 100644 --- a/src/Symfony/Component/Form/FormErrorIterator.php +++ b/src/Symfony/Component/Form/FormErrorIterator.php @@ -107,8 +107,8 @@ class FormErrorIterator implements \RecursiveIterator, \SeekableIterator, \Array /** * Returns the current element of the iterator. * - * @return FormError|FormErrorIterator An error or an iterator containing - * nested errors. + * @return FormError|FormErrorIterator an error or an iterator containing + * nested errors */ public function current() { diff --git a/src/Symfony/Component/Form/FormInterface.php b/src/Symfony/Component/Form/FormInterface.php index a61f7f99d0..780c00f40a 100644 --- a/src/Symfony/Component/Form/FormInterface.php +++ b/src/Symfony/Component/Form/FormInterface.php @@ -27,9 +27,9 @@ interface FormInterface extends \ArrayAccess, \Traversable, \Countable * * @return self * - * @throws Exception\AlreadySubmittedException If the form has already been submitted. - * @throws Exception\LogicException When trying to set a parent for a form with - * an empty name. + * @throws Exception\AlreadySubmittedException if the form has already been submitted + * @throws Exception\LogicException when trying to set a parent for a form with + * an empty name */ public function setParent(FormInterface $parent = null); @@ -49,9 +49,9 @@ interface FormInterface extends \ArrayAccess, \Traversable, \Countable * * @return self * - * @throws Exception\AlreadySubmittedException If the form has already been submitted. - * @throws Exception\LogicException When trying to add a child to a non-compound form. - * @throws Exception\UnexpectedTypeException If $child or $type has an unexpected type. + * @throws Exception\AlreadySubmittedException if the form has already been submitted + * @throws Exception\LogicException when trying to add a child to a non-compound form + * @throws Exception\UnexpectedTypeException if $child or $type has an unexpected type */ public function add($child, $type = null, array $options = array()); @@ -62,7 +62,7 @@ interface FormInterface extends \ArrayAccess, \Traversable, \Countable * * @return self * - * @throws \OutOfBoundsException If the named child does not exist. + * @throws \OutOfBoundsException if the named child does not exist */ public function get($name); @@ -82,7 +82,7 @@ interface FormInterface extends \ArrayAccess, \Traversable, \Countable * * @return $this * - * @throws Exception\AlreadySubmittedException If the form has already been submitted. + * @throws Exception\AlreadySubmittedException if the form has already been submitted */ public function remove($name); @@ -112,7 +112,7 @@ interface FormInterface extends \ArrayAccess, \Traversable, \Countable * * @return $this * - * @throws Exception\AlreadySubmittedException If the form has already been submitted. + * @throws Exception\AlreadySubmittedException if the form has already been submitted * @throws Exception\LogicException If listeners try to call setData in a cycle. Or if * the view data does not match the expected type * according to {@link FormConfigInterface::getDataClass}. @@ -129,7 +129,7 @@ interface FormInterface extends \ArrayAccess, \Traversable, \Countable /** * Returns the normalized data of the field. * - * @return mixed When the field is not submitted, the default data is returned + * @return mixed When the field is not submitted, the default data is returned. * When the field is submitted, the normalized submitted data is * returned if the field is valid, null otherwise. */ @@ -270,13 +270,13 @@ interface FormInterface extends \ArrayAccess, \Traversable, \Countable * Submits data to the form, transforms and validates it. * * @param null|string|array $submittedData The submitted data - * @param bool $clearMissing Whether to set fields to NULL + * @param bool $clearMissing whether to set fields to NULL * when they are missing in the - * submitted data. + * submitted data * * @return $this * - * @throws Exception\AlreadySubmittedException If the form has already been submitted. + * @throws Exception\AlreadySubmittedException if the form has already been submitted */ public function submit($submittedData, $clearMissing = true); diff --git a/src/Symfony/Component/Form/FormRendererEngineInterface.php b/src/Symfony/Component/Form/FormRendererEngineInterface.php index c3667b1dbb..9d116b8608 100644 --- a/src/Symfony/Component/Form/FormRendererEngineInterface.php +++ b/src/Symfony/Component/Form/FormRendererEngineInterface.php @@ -36,13 +36,13 @@ interface FormRendererEngineInterface * The type of the resource is decided by the implementation. The resource * is later passed to {@link renderBlock()} by the rendering algorithm. * - * @param FormView $view The view for determining the used themes + * @param FormView $view The view for determining the used themes. * First the themes attached directly to the * view with {@link setTheme()} are considered, * then the ones of its parent etc. - * @param string $blockName The name of the block to render + * @param string $blockName the name of the block to render * - * @return mixed The renderer resource or false, if none was found + * @return mixed the renderer resource or false, if none was found */ public function getResourceForBlockName(FormView $view, $blockName); @@ -70,12 +70,12 @@ interface FormRendererEngineInterface * The type of the resource is decided by the implementation. The resource * is later passed to {@link renderBlock()} by the rendering algorithm. * - * @param FormView $view The view for determining the used themes + * @param FormView $view The view for determining the used themes. * First the themes attached directly to * the view with {@link setTheme()} are * considered, then the ones of its parent etc. - * @param array $blockNameHierarchy The block name hierarchy, with the root block - * at the beginning. + * @param array $blockNameHierarchy the block name hierarchy, with the root block + * at the beginning * @param int $hierarchyLevel The level in the hierarchy at which to start * looking. Level 0 indicates the root block, i.e. * the first element of $blockNameHierarchy. @@ -110,12 +110,12 @@ interface FormRendererEngineInterface * The type of the resource is decided by the implementation. The resource * is later passed to {@link renderBlock()} by the rendering algorithm. * - * @param FormView $view The view for determining the used themes + * @param FormView $view The view for determining the used themes. * First the themes attached directly to * the view with {@link setTheme()} are * considered, then the ones of its parent etc. - * @param array $blockNameHierarchy The block name hierarchy, with the root block - * at the beginning. + * @param array $blockNameHierarchy the block name hierarchy, with the root block + * at the beginning * @param int $hierarchyLevel The level in the hierarchy at which to start * looking. Level 0 indicates the root block, i.e. * the first element of $blockNameHierarchy. diff --git a/src/Symfony/Component/Form/SubmitButton.php b/src/Symfony/Component/Form/SubmitButton.php index 4bfc1b6465..ae69e0426d 100644 --- a/src/Symfony/Component/Form/SubmitButton.php +++ b/src/Symfony/Component/Form/SubmitButton.php @@ -39,7 +39,7 @@ class SubmitButton extends Button implements ClickableInterface * * @return $this * - * @throws Exception\AlreadySubmittedException If the form has already been submitted. + * @throws Exception\AlreadySubmittedException if the form has already been submitted */ public function submit($submittedData, $clearMissing = true) { diff --git a/src/Symfony/Component/Form/Util/OrderedHashMapIterator.php b/src/Symfony/Component/Form/Util/OrderedHashMapIterator.php index 534d74ea6f..7305f51640 100644 --- a/src/Symfony/Component/Form/Util/OrderedHashMapIterator.php +++ b/src/Symfony/Component/Form/Util/OrderedHashMapIterator.php @@ -58,10 +58,10 @@ class OrderedHashMapIterator implements \Iterator /** * Creates a new iterator. * - * @param array $elements The elements of the map, indexed by their - * keys. - * @param array $orderedKeys The keys of the map in the order in which - * they should be iterated. + * @param array $elements the elements of the map, indexed by their + * keys + * @param array $orderedKeys the keys of the map in the order in which + * they should be iterated * @param array $managedCursors An array from which to reference the * iterator's cursor as long as it is alive. * This array is managed by the corresponding diff --git a/src/Symfony/Component/HttpFoundation/Response.php b/src/Symfony/Component/HttpFoundation/Response.php index f9512d6706..074c896ff7 100644 --- a/src/Symfony/Component/HttpFoundation/Response.php +++ b/src/Symfony/Component/HttpFoundation/Response.php @@ -441,12 +441,12 @@ class Response /** * Sets the response status code. * - * @param int $code HTTP status code - * @param mixed $text HTTP status text - * * If the status text is null it will be automatically populated for the known * status codes and left empty otherwise. * + * @param int $code HTTP status code + * @param mixed $text HTTP status text + * * @return $this * * @throws \InvalidArgumentException When the HTTP status code is not valid diff --git a/src/Symfony/Component/HttpFoundation/Session/SessionInterface.php b/src/Symfony/Component/HttpFoundation/Session/SessionInterface.php index d3fcd2eec4..172c9b457f 100644 --- a/src/Symfony/Component/HttpFoundation/Session/SessionInterface.php +++ b/src/Symfony/Component/HttpFoundation/Session/SessionInterface.php @@ -25,7 +25,7 @@ interface SessionInterface * * @return bool True if session started * - * @throws \RuntimeException If session fails to start. + * @throws \RuntimeException if session fails to start */ public function start(); diff --git a/src/Symfony/Component/HttpFoundation/Session/Storage/SessionStorageInterface.php b/src/Symfony/Component/HttpFoundation/Session/Storage/SessionStorageInterface.php index 34f6c4633f..097583d5a5 100644 --- a/src/Symfony/Component/HttpFoundation/Session/Storage/SessionStorageInterface.php +++ b/src/Symfony/Component/HttpFoundation/Session/Storage/SessionStorageInterface.php @@ -26,7 +26,7 @@ interface SessionStorageInterface * * @return bool True if started * - * @throws \RuntimeException If something goes wrong starting the session. + * @throws \RuntimeException if something goes wrong starting the session */ public function start(); @@ -104,8 +104,8 @@ interface SessionStorageInterface * a real PHP session would interfere with testing, in which case * it should actually persist the session data if required. * - * @throws \RuntimeException If the session is saved without being started, or if the session - * is already closed. + * @throws \RuntimeException if the session is saved without being started, or if the session + * is already closed */ public function save(); diff --git a/src/Symfony/Component/HttpKernel/EventListener/FragmentListener.php b/src/Symfony/Component/HttpKernel/EventListener/FragmentListener.php index ad6349286d..a00ea18304 100644 --- a/src/Symfony/Component/HttpKernel/EventListener/FragmentListener.php +++ b/src/Symfony/Component/HttpKernel/EventListener/FragmentListener.php @@ -51,7 +51,7 @@ class FragmentListener implements EventSubscriberInterface * * @param GetResponseEvent $event A GetResponseEvent instance * - * @throws AccessDeniedHttpException if the request does not come from a trusted IP. + * @throws AccessDeniedHttpException if the request does not come from a trusted IP */ public function onKernelRequest(GetResponseEvent $event) { diff --git a/src/Symfony/Component/Intl/Data/Bundle/Compiler/GenrbCompiler.php b/src/Symfony/Component/Intl/Data/Bundle/Compiler/GenrbCompiler.php index 9a91888cf5..8db6890c7c 100644 --- a/src/Symfony/Component/Intl/Data/Bundle/Compiler/GenrbCompiler.php +++ b/src/Symfony/Component/Intl/Data/Bundle/Compiler/GenrbCompiler.php @@ -34,7 +34,7 @@ class GenrbCompiler implements BundleCompilerInterface * @param string $envVars Optional. Environment variables to be loaded when * running "genrb". * - * @throws RuntimeException If the "genrb" cannot be found. + * @throws RuntimeException if the "genrb" cannot be found */ public function __construct($genrb = 'genrb', $envVars = '') { diff --git a/src/Symfony/Component/Intl/Data/Bundle/Reader/BufferedBundleReader.php b/src/Symfony/Component/Intl/Data/Bundle/Reader/BufferedBundleReader.php index ff04294683..1826fcd0fa 100644 --- a/src/Symfony/Component/Intl/Data/Bundle/Reader/BufferedBundleReader.php +++ b/src/Symfony/Component/Intl/Data/Bundle/Reader/BufferedBundleReader.php @@ -31,8 +31,8 @@ class BufferedBundleReader implements BundleReaderInterface * Buffers a given reader. * * @param BundleReaderInterface $reader The reader to buffer - * @param int $bufferSize The number of entries to store - * in the buffer. + * @param int $bufferSize the number of entries to store + * in the buffer */ public function __construct(BundleReaderInterface $reader, $bufferSize) { diff --git a/src/Symfony/Component/Intl/Data/Bundle/Reader/BundleEntryReaderInterface.php b/src/Symfony/Component/Intl/Data/Bundle/Reader/BundleEntryReaderInterface.php index e999440190..13cf85bb48 100644 --- a/src/Symfony/Component/Intl/Data/Bundle/Reader/BundleEntryReaderInterface.php +++ b/src/Symfony/Component/Intl/Data/Bundle/Reader/BundleEntryReaderInterface.php @@ -46,8 +46,8 @@ interface BundleEntryReaderInterface extends BundleReaderInterface * (i.e. array or \ArrayAccess) or cannot be found * in the requested locale. * - * @return mixed Returns an array or {@link \ArrayAccess} instance for - * complex data and a scalar value for simple data. + * @return mixed returns an array or {@link \ArrayAccess} instance for + * complex data and a scalar value for simple data * * @throws MissingResourceException If the indices cannot be accessed */ diff --git a/src/Symfony/Component/Intl/Data/Bundle/Reader/BundleReaderInterface.php b/src/Symfony/Component/Intl/Data/Bundle/Reader/BundleReaderInterface.php index 8d3da825f7..04d5900e34 100644 --- a/src/Symfony/Component/Intl/Data/Bundle/Reader/BundleReaderInterface.php +++ b/src/Symfony/Component/Intl/Data/Bundle/Reader/BundleReaderInterface.php @@ -26,8 +26,8 @@ interface BundleReaderInterface * @param string $path The path to the resource bundle * @param string $locale The locale to read * - * @return mixed Returns an array or {@link \ArrayAccess} instance for - * complex data, a scalar value otherwise. + * @return mixed returns an array or {@link \ArrayAccess} instance for + * complex data, a scalar value otherwise */ public function read($path, $locale); } diff --git a/src/Symfony/Component/Intl/Data/Bundle/Writer/TextBundleWriter.php b/src/Symfony/Component/Intl/Data/Bundle/Writer/TextBundleWriter.php index 3b7d94f10a..a0fb4334f9 100644 --- a/src/Symfony/Component/Intl/Data/Bundle/Writer/TextBundleWriter.php +++ b/src/Symfony/Component/Intl/Data/Bundle/Writer/TextBundleWriter.php @@ -46,8 +46,8 @@ class TextBundleWriter implements BundleWriterInterface * @param resource $file The file handle to write to * @param string $bundleName The name of the bundle * @param mixed $value The value of the node - * @param bool $fallback Whether the resource bundle should be merged - * with the fallback locale. + * @param bool $fallback whether the resource bundle should be merged + * with the fallback locale * * @see http://source.icu-project.org/repos/icu/icuhtml/trunk/design/bnf_rb.txt */ @@ -66,8 +66,8 @@ class TextBundleWriter implements BundleWriterInterface * @param resource $file The file handle to write to * @param mixed $value The value of the node * @param int $indentation The number of levels to indent - * @param bool $requireBraces Whether to require braces to be printed - * around the value. + * @param bool $requireBraces whether to require braces to be printed + * around the value * * @see http://source.icu-project.org/repos/icu/icuhtml/trunk/design/bnf_rb.txt */ @@ -153,8 +153,8 @@ class TextBundleWriter implements BundleWriterInterface * * @param resource $file The file handle to write to * @param string $value The value of the node - * @param bool $requireBraces Whether to require braces to be printed - * around the value. + * @param bool $requireBraces whether to require braces to be printed + * around the value * * @see http://source.icu-project.org/repos/icu/icuhtml/trunk/design/bnf_rb.txt */ @@ -199,11 +199,11 @@ class TextBundleWriter implements BundleWriterInterface * @param resource $file The file handle to write to * @param array|\Traversable $value The value of the node * @param int $indentation The number of levels to indent - * @param bool $fallback Whether the table should be merged - * with the fallback locale. + * @param bool $fallback whether the table should be merged + * with the fallback locale * - * @throws UnexpectedTypeException When $value is not an array and not a - * \Traversable instance. + * @throws UnexpectedTypeException when $value is not an array and not a + * \Traversable instance */ private function writeTable($file, $value, $indentation, $fallback = true) { diff --git a/src/Symfony/Component/Intl/DateFormatter/IntlDateFormatter.php b/src/Symfony/Component/Intl/DateFormatter/IntlDateFormatter.php index 438b4d73e9..e3279d0b35 100644 --- a/src/Symfony/Component/Intl/DateFormatter/IntlDateFormatter.php +++ b/src/Symfony/Component/Intl/DateFormatter/IntlDateFormatter.php @@ -167,8 +167,8 @@ class IntlDateFormatter * @param int $datetype Type of date formatting, one of the format type constants * @param int $timetype Type of time formatting, one of the format type constants * @param string $timezone Timezone identifier - * @param int $calendar Calendar to use for formatting or parsing; default is Gregorian - * One of the calendar constants. + * @param int $calendar calendar to use for formatting or parsing; default is Gregorian + * One of the calendar constants * @param string $pattern Optional pattern to use when formatting * * @return self @@ -524,7 +524,7 @@ class IntlDateFormatter /** * Set the formatter's timezone identifier. * - * @param string $timeZoneId The time zone ID string of the time zone to use + * @param string $timeZoneId The time zone ID string of the time zone to use. * If NULL or the empty string, the default time zone for the * runtime is used. * diff --git a/src/Symfony/Component/Intl/NumberFormatter/NumberFormatter.php b/src/Symfony/Component/Intl/NumberFormatter/NumberFormatter.php index ce03e9f5d6..b5aa050a4e 100644 --- a/src/Symfony/Component/Intl/NumberFormatter/NumberFormatter.php +++ b/src/Symfony/Component/Intl/NumberFormatter/NumberFormatter.php @@ -258,7 +258,7 @@ class NumberFormatter * Constructor. * * @param string $locale The locale code. The only currently supported locale is "en" (or null using the default locale, i.e. "en") - * @param int $style Style of the formatting, one of the format style constants + * @param int $style Style of the formatting, one of the format style constants. * The only supported styles are NumberFormatter::DECIMAL * and NumberFormatter::CURRENCY. * @param string $pattern Not supported. A pattern string in case $style is NumberFormat::PATTERN_DECIMAL or @@ -295,7 +295,7 @@ class NumberFormatter * Static constructor. * * @param string $locale The locale code. The only supported locale is "en" (or null using the default locale, i.e. "en") - * @param int $style Style of the formatting, one of the format style constants + * @param int $style Style of the formatting, one of the format style constants. * The only currently supported styles are NumberFormatter::DECIMAL * and NumberFormatter::CURRENCY. * @param string $pattern Not supported. A pattern string in case $style is NumberFormat::PATTERN_DECIMAL or @@ -355,8 +355,8 @@ class NumberFormatter /** * Format a number. * - * @param int|float $value The value to format - * @param int $type Type of the formatting, one of the format type constants + * @param int|float $value the value to format + * @param int $type Type of the formatting, one of the format type constants. * Only type NumberFormatter::TYPE_DEFAULT is currently supported. * * @return bool|string The formatted value or false on error @@ -516,9 +516,9 @@ class NumberFormatter /** * Parse a number. * - * @param string $value The value to parse - * @param int $type Type of the formatting, one of the format type constants. NumberFormatter::TYPE_DOUBLE by default - * @param int $position Offset to begin the parsing on return this value will hold the offset at which the parsing ended + * @param string $value the value to parse + * @param int $type Type of the formatting, one of the format type constants. NumberFormatter::TYPE_DOUBLE by default. + * @param int $position offset to begin the parsing on return this value will hold the offset at which the parsing ended * * @return int|float|false The parsed value of false on error * @@ -566,10 +566,10 @@ class NumberFormatter /** * Set an attribute. * - * @param int $attr An attribute specifier, one of the numeric attribute constants + * @param int $attr An attribute specifier, one of the numeric attribute constants. * The only currently supported attributes are NumberFormatter::FRACTION_DIGITS, * NumberFormatter::GROUPING_USED and NumberFormatter::ROUNDING_MODE. - * @param int $value The attribute value + * @param int $value the attribute value * * @return bool true on success or false on failure * diff --git a/src/Symfony/Component/Intl/Resources/stubs/functions.php b/src/Symfony/Component/Intl/Resources/stubs/functions.php index 64e111e8ab..c7250d1fd1 100644 --- a/src/Symfony/Component/Intl/Resources/stubs/functions.php +++ b/src/Symfony/Component/Intl/Resources/stubs/functions.php @@ -35,8 +35,8 @@ if (!function_exists('intl_is_failure')) { * * @author Bernhard Schussek * - * @return bool The error code of the last intl function call or - * IntlGlobals::U_ZERO_ERROR if no error occurred. + * @return bool the error code of the last intl function call or + * IntlGlobals::U_ZERO_ERROR if no error occurred * * @see IntlGlobals::getErrorCode() */ @@ -51,8 +51,8 @@ if (!function_exists('intl_is_failure')) { * * @author Bernhard Schussek * - * @return bool The error message of the last intl function call or - * "U_ZERO_ERROR" if no error occurred. + * @return bool the error message of the last intl function call or + * "U_ZERO_ERROR" if no error occurred * * @see IntlGlobals::getErrorMessage() */ diff --git a/src/Symfony/Component/Intl/Util/IcuVersion.php b/src/Symfony/Component/Intl/Util/IcuVersion.php index e7324e7fd3..1f141224a5 100644 --- a/src/Symfony/Component/Intl/Util/IcuVersion.php +++ b/src/Symfony/Component/Intl/Util/IcuVersion.php @@ -84,8 +84,8 @@ class IcuVersion * @param int|null $precision The number of components to include. Pass * NULL to return the version unchanged. * - * @return string|null The normalized ICU version or NULL if it couldn't be - * normalized. + * @return string|null the normalized ICU version or NULL if it couldn't be + * normalized */ public static function normalize($version, $precision) { diff --git a/src/Symfony/Component/Intl/Util/SvnCommit.php b/src/Symfony/Component/Intl/Util/SvnCommit.php index c5ae1f1d79..ef90b6f884 100644 --- a/src/Symfony/Component/Intl/Util/SvnCommit.php +++ b/src/Symfony/Component/Intl/Util/SvnCommit.php @@ -26,8 +26,8 @@ class SvnCommit /** * Creates a commit from the given "svn info" data. * - * @param \SimpleXMLElement $svnInfo The XML result from the "svn info" - * command. + * @param \SimpleXMLElement $svnInfo the XML result from the "svn info" + * command */ public function __construct(\SimpleXMLElement $svnInfo) { diff --git a/src/Symfony/Component/Intl/Util/SvnRepository.php b/src/Symfony/Component/Intl/Util/SvnRepository.php index 8b5e8f31f8..3732cbb392 100644 --- a/src/Symfony/Component/Intl/Util/SvnRepository.php +++ b/src/Symfony/Component/Intl/Util/SvnRepository.php @@ -44,7 +44,7 @@ class SvnRepository * * @return static * - * @throws RuntimeException If an error occurs during the download. + * @throws RuntimeException if an error occurs during the download */ public static function download($url, $targetDir) { @@ -119,7 +119,7 @@ class SvnRepository * * @return \SimpleXMLElement The XML result from the "svn info" command * - * @throws RuntimeException If the "svn info" command failed. + * @throws RuntimeException if the "svn info" command failed */ private function getSvnInfo() { diff --git a/src/Symfony/Component/Intl/Util/Version.php b/src/Symfony/Component/Intl/Util/Version.php index 11e97fe8bd..d24c3bae1b 100644 --- a/src/Symfony/Component/Intl/Util/Version.php +++ b/src/Symfony/Component/Intl/Util/Version.php @@ -67,8 +67,8 @@ class Version * @param int|null $precision The number of components to include. Pass * NULL to return the version unchanged. * - * @return string|null The normalized version or NULL if it couldn't be - * normalized. + * @return string|null the normalized version or NULL if it couldn't be + * normalized */ public static function normalize($version, $precision) { diff --git a/src/Symfony/Component/OptionsResolver/OptionsResolverInterface.php b/src/Symfony/Component/OptionsResolver/OptionsResolverInterface.php index f8b6885742..58e499e0ac 100644 --- a/src/Symfony/Component/OptionsResolver/OptionsResolverInterface.php +++ b/src/Symfony/Component/OptionsResolver/OptionsResolverInterface.php @@ -40,8 +40,8 @@ interface OptionsResolverInterface * * The closures should return the lazily created option value. * - * @param array $defaultValues A list of option names as keys and default - * values or closures as values. + * @param array $defaultValues a list of option names as keys and default + * values or closures as values * * @return $this */ @@ -55,8 +55,8 @@ interface OptionsResolverInterface * performance if the previous default value is calculated by an expensive * closure. * - * @param array $defaultValues A list of option names as keys and default - * values or closures as values. + * @param array $defaultValues a list of option names as keys and default + * values or closures as values * * @return $this */ @@ -92,15 +92,15 @@ interface OptionsResolverInterface /** * Sets allowed values for a list of options. * - * @param array $allowedValues A list of option names as keys and arrays + * @param array $allowedValues a list of option names as keys and arrays * with values acceptable for that option as - * values. + * values * * @return $this * - * @throws InvalidOptionsException If an option has not been defined + * @throws InvalidOptionsException if an option has not been defined * (see {@link isKnown()}) for which - * an allowed value is set. + * an allowed value is set */ public function setAllowedValues($allowedValues); @@ -109,28 +109,28 @@ interface OptionsResolverInterface * * The values are merged with the allowed values defined previously. * - * @param array $allowedValues A list of option names as keys and arrays + * @param array $allowedValues a list of option names as keys and arrays * with values acceptable for that option as - * values. + * values * * @return $this * - * @throws InvalidOptionsException If an option has not been defined + * @throws InvalidOptionsException if an option has not been defined * (see {@link isKnown()}) for which - * an allowed value is set. + * an allowed value is set */ public function addAllowedValues($allowedValues); /** * Sets allowed types for a list of options. * - * @param array $allowedTypes A list of option names as keys and type - * names passed as string or array as values. + * @param array $allowedTypes a list of option names as keys and type + * names passed as string or array as values * * @return $this * - * @throws InvalidOptionsException If an option has not been defined for - * which an allowed type is set. + * @throws InvalidOptionsException if an option has not been defined for + * which an allowed type is set */ public function setAllowedTypes($allowedTypes); @@ -139,13 +139,13 @@ interface OptionsResolverInterface * * The types are merged with the allowed types defined previously. * - * @param array $allowedTypes A list of option names as keys and type - * names passed as string or array as values. + * @param array $allowedTypes a list of option names as keys and type + * names passed as string or array as values * * @return $this * - * @throws InvalidOptionsException If an option has not been defined for - * which an allowed type is set. + * @throws InvalidOptionsException if an option has not been defined for + * which an allowed type is set */ public function addAllowedTypes($allowedTypes); @@ -201,12 +201,12 @@ interface OptionsResolverInterface * * @return array A list of options and their values * - * @throws InvalidOptionsException If any of the passed options has not + * @throws InvalidOptionsException if any of the passed options has not * been defined or does not contain an - * allowed value. - * @throws MissingOptionsException If a required option is missing. - * @throws OptionDefinitionException If a cyclic dependency is detected - * between two lazy options. + * allowed value + * @throws MissingOptionsException if a required option is missing + * @throws OptionDefinitionException if a cyclic dependency is detected + * between two lazy options */ public function resolve(array $options = array()); } diff --git a/src/Symfony/Component/Process/Process.php b/src/Symfony/Component/Process/Process.php index 96a93343f1..b31230d293 100644 --- a/src/Symfony/Component/Process/Process.php +++ b/src/Symfony/Component/Process/Process.php @@ -1487,7 +1487,7 @@ class Process * * @param string $functionName The function name that was called * - * @throws LogicException If the process has not run. + * @throws LogicException if the process has not run */ private function requireProcessIsStarted($functionName) { @@ -1501,7 +1501,7 @@ class Process * * @param string $functionName The function name that was called * - * @throws LogicException If the process is not yet terminated. + * @throws LogicException if the process is not yet terminated */ private function requireProcessIsTerminated($functionName) { diff --git a/src/Symfony/Component/PropertyAccess/PropertyAccessor.php b/src/Symfony/Component/PropertyAccess/PropertyAccessor.php index a6615f11e7..03dc617782 100644 --- a/src/Symfony/Component/PropertyAccess/PropertyAccessor.php +++ b/src/Symfony/Component/PropertyAccess/PropertyAccessor.php @@ -330,7 +330,7 @@ class PropertyAccessor implements PropertyAccessorInterface * * @return array The values read in the path * - * @throws UnexpectedTypeException If a value within the path is neither object nor array. + * @throws UnexpectedTypeException if a value within the path is neither object nor array * @throws NoSuchIndexException If a non-existing index is accessed */ private function readPropertiesUntil($zval, PropertyPathInterface $propertyPath, $lastIndex, $ignoreInvalidIndices = true) @@ -448,7 +448,7 @@ class PropertyAccessor implements PropertyAccessorInterface * * @return array The array containing the value of the property * - * @throws NoSuchPropertyException If the property does not exist or is not public. + * @throws NoSuchPropertyException if the property does not exist or is not public */ private function readProperty($zval, $property) { @@ -590,7 +590,7 @@ class PropertyAccessor implements PropertyAccessorInterface * @param string $property The property to write * @param mixed $value The value to write * - * @throws NoSuchPropertyException If the property does not exist or is not public. + * @throws NoSuchPropertyException if the property does not exist or is not public */ private function writeProperty($zval, $property, $value) { diff --git a/src/Symfony/Component/PropertyAccess/PropertyPathBuilder.php b/src/Symfony/Component/PropertyAccess/PropertyPathBuilder.php index 57751bf13e..9d1e087071 100644 --- a/src/Symfony/Component/PropertyAccess/PropertyPathBuilder.php +++ b/src/Symfony/Component/PropertyAccess/PropertyPathBuilder.php @@ -45,10 +45,10 @@ class PropertyPathBuilder * Appends a (sub-) path to the current path. * * @param PropertyPathInterface|string $path The path to append - * @param int $offset The offset where the appended - * piece starts in $path. - * @param int $length The length of the appended piece - * If 0, the full path is appended. + * @param int $offset the offset where the appended + * piece starts in $path + * @param int $length the length of the appended piece + * If 0, the full path is appended */ public function append($path, $offset = 0, $length = 0) { @@ -113,10 +113,10 @@ class PropertyPathBuilder * @param int $offset The offset at which to replace * @param int $length The length of the piece to replace * @param PropertyPathInterface|string $path The path to insert - * @param int $pathOffset The offset where the inserted piece - * starts in $path. - * @param int $pathLength The length of the inserted piece - * If 0, the full path is inserted. + * @param int $pathOffset the offset where the inserted piece + * starts in $path + * @param int $pathLength the length of the inserted piece + * If 0, the full path is inserted * * @throws OutOfBoundsException If the offset is invalid */ diff --git a/src/Symfony/Component/Routing/Loader/XmlFileLoader.php b/src/Symfony/Component/Routing/Loader/XmlFileLoader.php index cdf1973df4..e8713ccab8 100644 --- a/src/Symfony/Component/Routing/Loader/XmlFileLoader.php +++ b/src/Symfony/Component/Routing/Loader/XmlFileLoader.php @@ -36,8 +36,8 @@ class XmlFileLoader extends FileLoader * * @return RouteCollection A RouteCollection instance * - * @throws \InvalidArgumentException When the file cannot be loaded or when the XML cannot be - * parsed because it does not validate against the scheme. + * @throws \InvalidArgumentException when the file cannot be loaded or when the XML cannot be + * parsed because it does not validate against the scheme */ public function load($file, $type = null) { diff --git a/src/Symfony/Component/Routing/RouteCompiler.php b/src/Symfony/Component/Routing/RouteCompiler.php index ba608e7dd2..ecbc964229 100644 --- a/src/Symfony/Component/Routing/RouteCompiler.php +++ b/src/Symfony/Component/Routing/RouteCompiler.php @@ -40,8 +40,8 @@ class RouteCompiler implements RouteCompilerInterface * {@inheritdoc} * * @throws \LogicException If a variable is referenced more than once - * @throws \DomainException If a variable name starts with a digit or if it is too long to be successfully used as - * a PCRE subpattern. + * @throws \DomainException if a variable name starts with a digit or if it is too long to be successfully used as + * a PCRE subpattern */ public static function compile(Route $route) { diff --git a/src/Symfony/Component/Security/Core/Authorization/AuthorizationChecker.php b/src/Symfony/Component/Security/Core/Authorization/AuthorizationChecker.php index 23c190cb56..483ee6e5ac 100644 --- a/src/Symfony/Component/Security/Core/Authorization/AuthorizationChecker.php +++ b/src/Symfony/Component/Security/Core/Authorization/AuthorizationChecker.php @@ -49,7 +49,7 @@ class AuthorizationChecker implements AuthorizationCheckerInterface /** * {@inheritdoc} * - * @throws AuthenticationCredentialsNotFoundException when the token storage has no authentication token. + * @throws AuthenticationCredentialsNotFoundException when the token storage has no authentication token */ final public function isGranted($attributes, $object = null) { diff --git a/src/Symfony/Component/Security/Core/User/InMemoryUserProvider.php b/src/Symfony/Component/Security/Core/User/InMemoryUserProvider.php index e09d72e564..cde4454e9b 100644 --- a/src/Symfony/Component/Security/Core/User/InMemoryUserProvider.php +++ b/src/Symfony/Component/Security/Core/User/InMemoryUserProvider.php @@ -101,7 +101,7 @@ class InMemoryUserProvider implements UserProviderInterface * * @return User * - * @throws UsernameNotFoundException If user whose given username does not exist. + * @throws UsernameNotFoundException if user whose given username does not exist */ private function getUser($username) { diff --git a/src/Symfony/Component/Security/Http/Logout/LogoutUrlGenerator.php b/src/Symfony/Component/Security/Http/Logout/LogoutUrlGenerator.php index 1472a99b24..1499d7e5ea 100644 --- a/src/Symfony/Component/Security/Http/Logout/LogoutUrlGenerator.php +++ b/src/Symfony/Component/Security/Http/Logout/LogoutUrlGenerator.php @@ -90,7 +90,7 @@ class LogoutUrlGenerator * * @return string The logout URL * - * @throws \InvalidArgumentException if no LogoutListener is registered for the key or the key could not be found automatically. + * @throws \InvalidArgumentException if no LogoutListener is registered for the key or the key could not be found automatically */ private function generateLogoutUrl($key, $referenceType) { diff --git a/src/Symfony/Component/Serializer/Encoder/ChainDecoder.php b/src/Symfony/Component/Serializer/Encoder/ChainDecoder.php index 352ba584a7..f8f17b4f72 100644 --- a/src/Symfony/Component/Serializer/Encoder/ChainDecoder.php +++ b/src/Symfony/Component/Serializer/Encoder/ChainDecoder.php @@ -59,7 +59,7 @@ class ChainDecoder implements DecoderInterface * * @return DecoderInterface * - * @throws RuntimeException If no decoder is found. + * @throws RuntimeException if no decoder is found */ private function getDecoder($format) { diff --git a/src/Symfony/Component/Serializer/Normalizer/NormalizableInterface.php b/src/Symfony/Component/Serializer/Normalizer/NormalizableInterface.php index e19fe5ce58..48fb8b482e 100644 --- a/src/Symfony/Component/Serializer/Normalizer/NormalizableInterface.php +++ b/src/Symfony/Component/Serializer/Normalizer/NormalizableInterface.php @@ -27,11 +27,11 @@ interface NormalizableInterface * It is important to understand that the normalize() call should normalize * recursively all child objects of the implementor. * - * @param NormalizerInterface $normalizer The normalizer is given so that you - * can use it to normalize objects contained within this object. - * @param string|null $format The format is optionally given to be able to normalize differently - * based on different output formats. - * @param array $context Options for normalizing this object + * @param NormalizerInterface $normalizer the normalizer is given so that you + * can use it to normalize objects contained within this object + * @param string|null $format the format is optionally given to be able to normalize differently + * based on different output formats + * @param array $context options for normalizing this object * * @return array|scalar */ diff --git a/src/Symfony/Component/Translation/Loader/MoFileLoader.php b/src/Symfony/Component/Translation/Loader/MoFileLoader.php index ed8c9f1dc9..3a0c80f1c9 100644 --- a/src/Symfony/Component/Translation/Loader/MoFileLoader.php +++ b/src/Symfony/Component/Translation/Loader/MoFileLoader.php @@ -82,7 +82,7 @@ class MoFileLoader extends ArrayLoader * * @return array * - * @throws InvalidResourceException If stream content has an invalid format. + * @throws InvalidResourceException if stream content has an invalid format */ private function parse($resource) { diff --git a/src/Symfony/Component/Validator/Constraint.php b/src/Symfony/Component/Validator/Constraint.php index 08041d4c7e..fc9d8ae563 100644 --- a/src/Symfony/Component/Validator/Constraint.php +++ b/src/Symfony/Component/Validator/Constraint.php @@ -209,7 +209,7 @@ abstract class Constraint * * @throws InvalidOptionsException If an invalid option name is given * - * @internal This method should not be used or overwritten in userland code. + * @internal this method should not be used or overwritten in userland code */ public function __get($option) { diff --git a/src/Symfony/Component/Validator/ConstraintViolationInterface.php b/src/Symfony/Component/Validator/ConstraintViolationInterface.php index 363ef27ef0..de8ed69729 100644 --- a/src/Symfony/Component/Validator/ConstraintViolationInterface.php +++ b/src/Symfony/Component/Validator/ConstraintViolationInterface.php @@ -56,8 +56,8 @@ interface ConstraintViolationInterface /** * Returns the parameters to be inserted into the raw violation message. * - * @return array A possibly empty list of parameters indexed by the names - * that appear in the message template. + * @return array a possibly empty list of parameters indexed by the names + * that appear in the message template * * @see getMessageTemplate() * @deprecated since version 2.7, to be replaced by getParameters() in 3.0. @@ -111,8 +111,8 @@ interface ConstraintViolationInterface /** * Returns the value that caused the violation. * - * @return mixed The invalid value that caused the validated constraint to - * fail. + * @return mixed the invalid value that caused the validated constraint to + * fail */ public function getInvalidValue(); diff --git a/src/Symfony/Component/Validator/ConstraintViolationListInterface.php b/src/Symfony/Component/Validator/ConstraintViolationListInterface.php index d96755c9a2..bc7dc9ee46 100644 --- a/src/Symfony/Component/Validator/ConstraintViolationListInterface.php +++ b/src/Symfony/Component/Validator/ConstraintViolationListInterface.php @@ -39,7 +39,7 @@ interface ConstraintViolationListInterface extends \Traversable, \Countable, \Ar * * @return ConstraintViolationInterface The violation * - * @throws \OutOfBoundsException If the offset does not exist. + * @throws \OutOfBoundsException if the offset does not exist */ public function get($offset); diff --git a/src/Symfony/Component/Validator/DefaultTranslator.php b/src/Symfony/Component/Validator/DefaultTranslator.php index 85853d8d85..15712d0d68 100644 --- a/src/Symfony/Component/Validator/DefaultTranslator.php +++ b/src/Symfony/Component/Validator/DefaultTranslator.php @@ -129,8 +129,8 @@ class DefaultTranslator implements TranslatorInterface * * @return string The translated string * - * @throws InvalidArgumentException If the message id does not have the format - * "singular|plural". + * @throws InvalidArgumentException if the message id does not have the format + * "singular|plural" */ public function transChoice($id, $number, array $parameters = array(), $domain = null, $locale = null) { diff --git a/src/Symfony/Component/Validator/ExecutionContextInterface.php b/src/Symfony/Component/Validator/ExecutionContextInterface.php index 075fecb0c5..d887124e33 100644 --- a/src/Symfony/Component/Validator/ExecutionContextInterface.php +++ b/src/Symfony/Component/Validator/ExecutionContextInterface.php @@ -150,10 +150,10 @@ interface ExecutionContextInterface * @param null|string|string[] $groups The groups to validate in. If you don't pass any * groups here, the current group of the context * will be used. - * @param bool $traverse Whether to traverse the value if it is an array - * or an instance of \Traversable. - * @param bool $deep Whether to traverse the value recursively if - * it is a collection of collections. + * @param bool $traverse whether to traverse the value if it is an array + * or an instance of \Traversable + * @param bool $deep whether to traverse the value recursively if + * it is a collection of collections * * @deprecated since version 2.5, to be removed in 3.0. * Use {@link Context\ExecutionContextInterface::getValidator()} @@ -237,8 +237,8 @@ interface ExecutionContextInterface * has been called with a plain value and constraint, this method returns * null. * - * @return MetadataInterface|null The metadata of the currently validated - * value. + * @return MetadataInterface|null the metadata of the currently validated + * value */ public function getMetadata(); diff --git a/src/Symfony/Component/Validator/Validation.php b/src/Symfony/Component/Validator/Validation.php index 94ed62c525..a469b47e25 100644 --- a/src/Symfony/Component/Validator/Validation.php +++ b/src/Symfony/Component/Validator/Validation.php @@ -21,7 +21,7 @@ final class Validation /** * The Validator API provided by Symfony 2.4 and older. * - * @deprecated use API_VERSION_2_5_BC instead. + * @deprecated use API_VERSION_2_5_BC instead */ const API_VERSION_2_4 = 1; diff --git a/src/Symfony/Component/Validator/ValidationVisitorInterface.php b/src/Symfony/Component/Validator/ValidationVisitorInterface.php index b6c6e9f1cb..28d492132b 100644 --- a/src/Symfony/Component/Validator/ValidationVisitorInterface.php +++ b/src/Symfony/Component/Validator/ValidationVisitorInterface.php @@ -62,8 +62,8 @@ interface ValidationVisitorInterface * @param bool $traverse Whether to traverse the value if it is traversable * @param bool $deep Whether to traverse nested traversable values recursively * - * @throws Exception\NoSuchMetadataException If no metadata can be found for - * the given value. + * @throws Exception\NoSuchMetadataException if no metadata can be found for + * the given value */ public function validate($value, $group, $propertyPath, $traverse = false, $deep = false); diff --git a/src/Symfony/Component/Validator/Validator.php b/src/Symfony/Component/Validator/Validator.php index feaec0d400..c69c7a86b7 100644 --- a/src/Symfony/Component/Validator/Validator.php +++ b/src/Symfony/Component/Validator/Validator.php @@ -108,7 +108,7 @@ class Validator implements ValidatorInterface, Mapping\Factory\MetadataFactoryIn /** * {@inheritdoc} * - * @throws ValidatorException If the metadata for the value does not support properties. + * @throws ValidatorException if the metadata for the value does not support properties */ public function validateProperty($containingValue, $property, $groups = null) { @@ -139,7 +139,7 @@ class Validator implements ValidatorInterface, Mapping\Factory\MetadataFactoryIn /** * {@inheritdoc} * - * @throws ValidatorException If the metadata for the value does not support properties. + * @throws ValidatorException if the metadata for the value does not support properties */ public function validatePropertyValue($containingValue, $property, $value, $groups = null) { diff --git a/src/Symfony/Component/Validator/ValidatorInterface.php b/src/Symfony/Component/Validator/ValidatorInterface.php index 58b8cd6e4c..fd7785b6ea 100644 --- a/src/Symfony/Component/Validator/ValidatorInterface.php +++ b/src/Symfony/Component/Validator/ValidatorInterface.php @@ -64,8 +64,8 @@ interface ValidatorInterface * * @param mixed $containingValue The value containing the property * @param string $property The name of the property to validate - * @param string $value The value to validate against the - * constraints of the property. + * @param string $value the value to validate against the + * constraints of the property * @param array|null $groups The validation groups to validate * * @return ConstraintViolationListInterface A list of constraint violations. If the