diff --git a/src/Symfony/Bridge/Doctrine/DependencyInjection/AbstractDoctrineExtension.php b/src/Symfony/Bridge/Doctrine/DependencyInjection/AbstractDoctrineExtension.php index 5918c8006c00..35fadc2cad07 100644 --- a/src/Symfony/Bridge/Doctrine/DependencyInjection/AbstractDoctrineExtension.php +++ b/src/Symfony/Bridge/Doctrine/DependencyInjection/AbstractDoctrineExtension.php @@ -310,10 +310,10 @@ protected function loadObjectManagerCacheDriver(array $objectManager, ContainerB /** * Loads a cache driver. * - * @param string $cacheDriverServiceId The cache driver name. - * @param string $objectManagerName The object manager name. - * @param array $cacheDriver The cache driver mapping. - * @param \Symfony\Component\DependencyInjection\ContainerBuilder $container The ContainerBuilder instance. + * @param string $cacheDriverServiceId The cache driver name. + * @param string $objectManagerName The object manager name. + * @param array $cacheDriver The cache driver mapping. + * @param \Symfony\Component\DependencyInjection\ContainerBuilder $container The ContainerBuilder instance. * * @return string * diff --git a/src/Symfony/Bridge/Monolog/Handler/ConsoleHandler.php b/src/Symfony/Bridge/Monolog/Handler/ConsoleHandler.php index 32d5fd29ddd3..a4c19cdb6af1 100644 --- a/src/Symfony/Bridge/Monolog/Handler/ConsoleHandler.php +++ b/src/Symfony/Bridge/Monolog/Handler/ConsoleHandler.php @@ -167,7 +167,7 @@ protected function getDefaultFormatter() /** * Updates the logging level based on the verbosity setting of the console output. * - * @return bool Whether the handler is enabled and verbosity is not set to quiet. + * @return bool Whether the handler is enabled and verbosity is not set to quiet. */ private function updateLevel() { diff --git a/src/Symfony/Bundle/FrameworkBundle/Command/CacheClearCommand.php b/src/Symfony/Bundle/FrameworkBundle/Command/CacheClearCommand.php index 7843e7ddd3ce..6d4f04bce0bd 100644 --- a/src/Symfony/Bundle/FrameworkBundle/Command/CacheClearCommand.php +++ b/src/Symfony/Bundle/FrameworkBundle/Command/CacheClearCommand.php @@ -108,9 +108,9 @@ protected function execute(InputInterface $input, OutputInterface $output) } /** - * @param string $warmupDir - * @param string $realCacheDir - * @param bool $enableOptionalWarmers + * @param string $warmupDir + * @param string $realCacheDir + * @param bool $enableOptionalWarmers */ protected function warmup($warmupDir, $realCacheDir, $enableOptionalWarmers = true) { diff --git a/src/Symfony/Bundle/FrameworkBundle/Console/Descriptor/Descriptor.php b/src/Symfony/Bundle/FrameworkBundle/Console/Descriptor/Descriptor.php index 1b33d832c0d1..7aaea0b9c3df 100644 --- a/src/Symfony/Bundle/FrameworkBundle/Console/Descriptor/Descriptor.php +++ b/src/Symfony/Bundle/FrameworkBundle/Console/Descriptor/Descriptor.php @@ -74,8 +74,8 @@ public function describe(OutputInterface $output, $object, array $options = arra /** * Writes content to output. * - * @param string $content - * @param bool $decorated + * @param string $content + * @param bool $decorated */ protected function write($content, $decorated = false) { diff --git a/src/Symfony/Bundle/TwigBundle/Extension/AssetsExtension.php b/src/Symfony/Bundle/TwigBundle/Extension/AssetsExtension.php index 073fb4b681a0..d12124a345cf 100644 --- a/src/Symfony/Bundle/TwigBundle/Extension/AssetsExtension.php +++ b/src/Symfony/Bundle/TwigBundle/Extension/AssetsExtension.php @@ -48,10 +48,10 @@ public function getFunctions() * * Absolute paths (i.e. http://...) are returned unmodified. * - * @param string $path A public path - * @param string $packageName The name of the asset package to use - * @param bool $absolute Whether to return an absolute URL or a relative one - * @param string|bool|null $version A specific version + * @param string $path A public path + * @param string $packageName The name of the asset package to use + * @param bool $absolute Whether to return an absolute URL or a relative one + * @param string|bool|null $version A specific version * * @return string A public path which takes into account the base path and URL path */ @@ -93,8 +93,9 @@ public function getName() * * @param string $url The URL that has to be absolute * - * @return string The absolute URL * @throws \RuntimeException + * + * @return string The absolute URL */ private function ensureUrlIsAbsolute($url) { diff --git a/src/Symfony/Component/ClassLoader/Psr4ClassLoader.php b/src/Symfony/Component/ClassLoader/Psr4ClassLoader.php index 1c0c37e09887..a00cf7b83c62 100644 --- a/src/Symfony/Component/ClassLoader/Psr4ClassLoader.php +++ b/src/Symfony/Component/ClassLoader/Psr4ClassLoader.php @@ -77,7 +77,7 @@ public function loadClass($class) /** * Registers this instance as an autoloader. * - * @param bool $prepend + * @param bool $prepend */ public function register($prepend = false) { diff --git a/src/Symfony/Component/Console/Application.php b/src/Symfony/Component/Console/Application.php index e7eac45a63a4..7de619130857 100644 --- a/src/Symfony/Component/Console/Application.php +++ b/src/Symfony/Component/Console/Application.php @@ -815,8 +815,8 @@ public function getTerminalDimensions() * * Can be useful to force terminal dimensions for functional tests. * - * @param int $width The width - * @param int $height The height + * @param int $width The width + * @param int $height The height * * @return Application The current application */ @@ -1050,8 +1050,8 @@ public function extractNamespace($name, $limit = null) * Finds alternative of $name among $collection, * if nothing is found in $collection, try in $abbrevs * - * @param string $name The string - * @param array|\Traversable $collection The collection + * @param string $name The string + * @param array|\Traversable $collection The collection * * @return array A sorted array of similar string */ diff --git a/src/Symfony/Component/Console/Descriptor/Descriptor.php b/src/Symfony/Component/Console/Descriptor/Descriptor.php index ab7acc63d787..952341579a84 100644 --- a/src/Symfony/Component/Console/Descriptor/Descriptor.php +++ b/src/Symfony/Component/Console/Descriptor/Descriptor.php @@ -59,8 +59,8 @@ public function describe(OutputInterface $output, $object, array $options = arra /** * Writes content to output. * - * @param string $content - * @param bool $decorated + * @param string $content + * @param bool $decorated */ protected function write($content, $decorated = false) { diff --git a/src/Symfony/Component/Console/Helper/ProgressBar.php b/src/Symfony/Component/Console/Helper/ProgressBar.php index fe33f7fc1c31..fc42e9c0630d 100644 --- a/src/Symfony/Component/Console/Helper/ProgressBar.php +++ b/src/Symfony/Component/Console/Helper/ProgressBar.php @@ -150,7 +150,7 @@ public function getMessage($name = 'message') /** * Gets the progress bar start time. * - * @return int The progress bar start time + * @return int The progress bar start time */ public function getStartTime() { @@ -160,7 +160,7 @@ public function getStartTime() /** * Gets the progress bar maximal steps. * - * @return int The progress bar max steps + * @return int The progress bar max steps */ public function getMaxSteps() { @@ -170,7 +170,7 @@ public function getMaxSteps() /** * Gets the progress bar step. * - * @return int The progress bar step + * @return int The progress bar step */ public function getStep() { @@ -180,7 +180,7 @@ public function getStep() /** * Gets the progress bar step width. * - * @return int The progress bar step width + * @return int The progress bar step width */ public function getStepWidth() { @@ -190,7 +190,7 @@ public function getStepWidth() /** * Gets the current progress bar percent. * - * @return int The current progress bar percent + * @return int The current progress bar percent */ public function getProgressPercent() { @@ -200,7 +200,7 @@ public function getProgressPercent() /** * Sets the progress bar width. * - * @param int $size The progress bar size + * @param int $size The progress bar size */ public function setBarWidth($size) { @@ -210,7 +210,7 @@ public function setBarWidth($size) /** * Gets the progress bar width. * - * @return int The progress bar size + * @return int The progress bar size */ public function getBarWidth() { @@ -299,7 +299,7 @@ public function setFormat($format) /** * Sets the redraw frequency. * - * @param int $freq The frequency in steps + * @param int $freq The frequency in steps */ public function setRedrawFrequency($freq) { @@ -328,7 +328,7 @@ public function start() /** * Advances the progress output X steps. * - * @param int $step Number of steps to advance + * @param int $step Number of steps to advance * * @throws \LogicException */ @@ -340,7 +340,7 @@ public function advance($step = 1) /** * Sets the current progress. * - * @param int $step The current progress + * @param int $step The current progress * * @throws \LogicException */ diff --git a/src/Symfony/Component/Console/Helper/QuestionHelper.php b/src/Symfony/Component/Console/Helper/QuestionHelper.php index c5e7aad444ba..d465a4943a3c 100644 --- a/src/Symfony/Component/Console/Helper/QuestionHelper.php +++ b/src/Symfony/Component/Console/Helper/QuestionHelper.php @@ -164,7 +164,7 @@ public function doAsk(OutputInterface $output, Question $question) * Autocompletes a question. * * @param OutputInterface $output - * @param Question $question + * @param Question $question * * @return string */ @@ -281,9 +281,9 @@ private function autocomplete(OutputInterface $output, Question $question, $inpu /** * Gets a hidden response from user. * - * @param OutputInterface $output An Output instance + * @param OutputInterface $output An Output instance * - * @return string The answer + * @return string The answer * * @throws \RuntimeException In case the fallback is deactivated and the response cannot be hidden */ @@ -341,11 +341,11 @@ private function getHiddenResponse(OutputInterface $output, $inputStream) /** * Validates an attempt. * - * @param callable $interviewer A callable that will ask for a question and return the result - * @param OutputInterface $output An Output instance - * @param Question $question A Question instance + * @param callable $interviewer A callable that will ask for a question and return the result + * @param OutputInterface $output An Output instance + * @param Question $question A Question instance * - * @return string The validated response + * @return string The validated response * * @throws \Exception In case the max number of attempts has been reached and no valid response has been given */ @@ -370,7 +370,7 @@ private function validateAttempts($interviewer, OutputInterface $output, Questio /** * Returns a valid unix shell. * - * @return string|bool The valid shell name, false in case no valid shell is found + * @return string|bool The valid shell name, false in case no valid shell is found */ private function getShell() { diff --git a/src/Symfony/Component/Console/Helper/Table.php b/src/Symfony/Component/Console/Helper/Table.php index 5a3dbc168c0d..3f20b3716290 100644 --- a/src/Symfony/Component/Console/Helper/Table.php +++ b/src/Symfony/Component/Console/Helper/Table.php @@ -296,9 +296,9 @@ private function renderRow(array $row, $cellFormat) /** * Renders table cell with padding. * - * @param array $row - * @param int $column - * @param string $cellFormat + * @param array $row + * @param int $column + * @param string $cellFormat */ private function renderCell(array $row, $column, $cellFormat) { @@ -339,7 +339,7 @@ private function getNumberOfColumns() /** * Gets column width. * - * @param int $column + * @param int $column * * @return int */ @@ -364,8 +364,8 @@ private function getColumnWidth($column) /** * Gets cell width. * - * @param array $row - * @param int $column + * @param array $row + * @param int $column * * @return int */ diff --git a/src/Symfony/Component/Console/Helper/TableStyle.php b/src/Symfony/Component/Console/Helper/TableStyle.php index 338f1a060af6..580f9abc819d 100644 --- a/src/Symfony/Component/Console/Helper/TableStyle.php +++ b/src/Symfony/Component/Console/Helper/TableStyle.php @@ -228,7 +228,7 @@ public function getBorderFormat() /** * Sets cell padding type. * - * @param int $padType STR_PAD_* + * @param int $padType STR_PAD_* * * @return TableStyle */ diff --git a/src/Symfony/Component/Console/Logger/ConsoleLogger.php b/src/Symfony/Component/Console/Logger/ConsoleLogger.php index 1f2dc2c53c58..cf5d49c4c624 100644 --- a/src/Symfony/Component/Console/Logger/ConsoleLogger.php +++ b/src/Symfony/Component/Console/Logger/ConsoleLogger.php @@ -96,8 +96,10 @@ public function log($level, $message, array $context = array()) * Interpolates context values into the message placeholders * * @author PHP Framework Interoperability Group - * @param string $message - * @param array $context + * + * @param string $message + * @param array $context + * * @return string */ private function interpolate($message, array $context) diff --git a/src/Symfony/Component/Console/Question/ChoiceQuestion.php b/src/Symfony/Component/Console/Question/ChoiceQuestion.php index 59808e125643..d6de09798c4c 100644 --- a/src/Symfony/Component/Console/Question/ChoiceQuestion.php +++ b/src/Symfony/Component/Console/Question/ChoiceQuestion.php @@ -47,7 +47,7 @@ public function getChoices() * * When multiselect is set to true, multiple choices can be answered. * - * @param bool $multiselect + * @param bool $multiselect * * @return ChoiceQuestion The current instance */ diff --git a/src/Symfony/Component/Console/Question/Question.php b/src/Symfony/Component/Console/Question/Question.php index 3003f19c551d..6a7b07f9a10b 100644 --- a/src/Symfony/Component/Console/Question/Question.php +++ b/src/Symfony/Component/Console/Question/Question.php @@ -72,7 +72,7 @@ public function isHidden() /** * Sets whether the user response must be hidden or not. * - * @param bool $hidden + * @param bool $hidden * * @return Question The current instance * @@ -102,7 +102,7 @@ public function isHiddenFallback() /** * Sets whether to fallback on non-hidden question if the response can not be hidden. * - * @param bool $fallback + * @param bool $fallback * * @return Question The current instance */ @@ -179,7 +179,7 @@ public function getValidator() * * Null means an unlimited number of attempts. * - * @param null|int $attempts + * @param null|int $attempts * * @return Question The current instance * diff --git a/src/Symfony/Component/Console/Tester/ApplicationTester.php b/src/Symfony/Component/Console/Tester/ApplicationTester.php index b8f9faa98d83..da8a19ce5088 100644 --- a/src/Symfony/Component/Console/Tester/ApplicationTester.php +++ b/src/Symfony/Component/Console/Tester/ApplicationTester.php @@ -119,7 +119,7 @@ public function getOutput() /** * Gets the status code returned by the last execution of the application. * - * @return int The status code + * @return int The status code */ public function getStatusCode() { diff --git a/src/Symfony/Component/Console/Tester/CommandTester.php b/src/Symfony/Component/Console/Tester/CommandTester.php index 7ebc8631efb3..f6079c63b5e3 100644 --- a/src/Symfony/Component/Console/Tester/CommandTester.php +++ b/src/Symfony/Component/Console/Tester/CommandTester.php @@ -123,7 +123,7 @@ public function getOutput() /** * Gets the status code returned by the last execution of the application. * - * @return int The status code + * @return int The status code */ public function getStatusCode() { diff --git a/src/Symfony/Component/Debug/DebugClassLoader.php b/src/Symfony/Component/Debug/DebugClassLoader.php index 4a02e616cce8..293292bdebf8 100644 --- a/src/Symfony/Component/Debug/DebugClassLoader.php +++ b/src/Symfony/Component/Debug/DebugClassLoader.php @@ -140,7 +140,7 @@ public function findFile($class) * * @param string $class The name of the class * - * @return bool|null True, if loaded + * @return bool|null True, if loaded * * @throws \RuntimeException */ @@ -213,7 +213,7 @@ public function loadClass($class) chdir($cwd); } - if ( 0 === substr_compare($real, $tail, -strlen($tail), strlen($tail), true) + if (0 === substr_compare($real, $tail, -strlen($tail), strlen($tail), true) && 0 !== substr_compare($real, $tail, -strlen($tail), strlen($tail), false) ) { throw new \RuntimeException(sprintf('Case mismatch between class and source file names: %s vs %s', $class, $real)); diff --git a/src/Symfony/Component/Debug/ErrorHandler.php b/src/Symfony/Component/Debug/ErrorHandler.php index 95538b28f28b..e5da51555891 100644 --- a/src/Symfony/Component/Debug/ErrorHandler.php +++ b/src/Symfony/Component/Debug/ErrorHandler.php @@ -88,7 +88,7 @@ public static function register($level = null, $displayErrors = true) /** * Sets the level at which the conversion to Exception is done. * - * @param int|null $level The level (null to use the error_reporting() value and 0 to disable) + * @param int|null $level The level (null to use the error_reporting() value and 0 to disable) */ public function setLevel($level) { @@ -98,7 +98,7 @@ public function setLevel($level) /** * Sets the display_errors flag value. * - * @param int $displayErrors The display_errors flag value + * @param int $displayErrors The display_errors flag value */ public function setDisplayErrors($displayErrors) { diff --git a/src/Symfony/Component/DependencyInjection/Compiler/DecoratorServicePass.php b/src/Symfony/Component/DependencyInjection/Compiler/DecoratorServicePass.php index dea9f030ef51..ef0a19c6a725 100644 --- a/src/Symfony/Component/DependencyInjection/Compiler/DecoratorServicePass.php +++ b/src/Symfony/Component/DependencyInjection/Compiler/DecoratorServicePass.php @@ -30,7 +30,7 @@ public function process(ContainerBuilder $container) } $definition->setDecoratedService(null); - list ($inner, $renamedId) = $decorated; + list($inner, $renamedId) = $decorated; if (!$renamedId) { $renamedId = $id.'.inner'; } diff --git a/src/Symfony/Component/DependencyInjection/Dumper/XmlDumper.php b/src/Symfony/Component/DependencyInjection/Dumper/XmlDumper.php index e3a533eed278..04d97e81e1bb 100644 --- a/src/Symfony/Component/DependencyInjection/Dumper/XmlDumper.php +++ b/src/Symfony/Component/DependencyInjection/Dumper/XmlDumper.php @@ -142,7 +142,7 @@ private function addService($definition, $id, \DOMElement $parent) $service->setAttribute('lazy', 'true'); } if (null !== $decorated = $definition->getDecoratedService()) { - list ($decorated, $renamedId) = $decorated; + list($decorated, $renamedId) = $decorated; $service->setAttribute('decorates', $decorated); if (null !== $renamedId) { $service->setAttribute('decoration-inner-name', $renamedId); diff --git a/src/Symfony/Component/DependencyInjection/Dumper/YamlDumper.php b/src/Symfony/Component/DependencyInjection/Dumper/YamlDumper.php index fb0708cada11..07f583e9675b 100644 --- a/src/Symfony/Component/DependencyInjection/Dumper/YamlDumper.php +++ b/src/Symfony/Component/DependencyInjection/Dumper/YamlDumper.php @@ -140,7 +140,7 @@ private function addService($id, $definition) } if (null !== $decorated = $definition->getDecoratedService()) { - list ($decorated, $renamedId) = $decorated; + list($decorated, $renamedId) = $decorated; $code .= sprintf(" decorates: %s\n", $decorated); if (null !== $renamedId) { $code .= sprintf(" decoration_inner_name: %s\n", $renamedId); diff --git a/src/Symfony/Component/ExpressionLanguage/Token.php b/src/Symfony/Component/ExpressionLanguage/Token.php index 6b2bc6e49ff7..bb83d50a4d0d 100644 --- a/src/Symfony/Component/ExpressionLanguage/Token.php +++ b/src/Symfony/Component/ExpressionLanguage/Token.php @@ -32,9 +32,9 @@ class Token /** * Constructor. * - * @param int $type The type of the token - * @param string $value The token value - * @param int $cursor The cursor position in the source + * @param int $type The type of the token + * @param string $value The token value + * @param int $cursor The cursor position in the source */ public function __construct($type, $value, $cursor) { @@ -56,8 +56,8 @@ public function __toString() /** * Tests the current token for a type and/or a value. * - * @param array|int $type The type to test - * @param string|null $value The token value + * @param array|int $type The type to test + * @param string|null $value The token value * * @return bool */ diff --git a/src/Symfony/Component/Filesystem/Filesystem.php b/src/Symfony/Component/Filesystem/Filesystem.php index 3ebcc74b71d8..397aede3ff21 100644 --- a/src/Symfony/Component/Filesystem/Filesystem.php +++ b/src/Symfony/Component/Filesystem/Filesystem.php @@ -32,8 +32,8 @@ class Filesystem * @param string $targetFile The target filename * @param bool $override Whether to override an existing file or not * - * @throws FileNotFoundException When originFile doesn't exist - * @throws IOException When copy fails + * @throws FileNotFoundException When originFile doesn't exist + * @throws IOException When copy fails */ public function copy($originFile, $targetFile, $override = false) { diff --git a/src/Symfony/Component/Filesystem/Tests/FilesystemTestCase.php b/src/Symfony/Component/Filesystem/Tests/FilesystemTestCase.php index 106c13fb5056..d1ae1287f8d2 100644 --- a/src/Symfony/Component/Filesystem/Tests/FilesystemTestCase.php +++ b/src/Symfony/Component/Filesystem/Tests/FilesystemTestCase.php @@ -65,7 +65,7 @@ protected function clean($file) } /** - * @param int $expectedFilePerms expected file permissions as three digits (i.e. 755) + * @param int $expectedFilePerms expected file permissions as three digits (i.e. 755) * @param string $filePath */ protected function assertFilePermissions($expectedFilePerms, $filePath) diff --git a/src/Symfony/Component/Form/Extension/Core/DataTransformer/NumberToLocalizedStringTransformer.php b/src/Symfony/Component/Form/Extension/Core/DataTransformer/NumberToLocalizedStringTransformer.php index b7f735949292..92f9e63bb971 100644 --- a/src/Symfony/Component/Form/Extension/Core/DataTransformer/NumberToLocalizedStringTransformer.php +++ b/src/Symfony/Component/Form/Extension/Core/DataTransformer/NumberToLocalizedStringTransformer.php @@ -242,9 +242,9 @@ protected function getNumberFormatter() /** * Rounds a number according to the configured precision and rounding mode. * - * @param int|float $number A number. + * @param int|float $number A number. * - * @return int|float The rounded number. + * @return int|float The rounded number. */ private function round($number) { diff --git a/src/Symfony/Component/Form/Form.php b/src/Symfony/Component/Form/Form.php index 132f5838cb43..70560e801fc9 100644 --- a/src/Symfony/Component/Form/Form.php +++ b/src/Symfony/Component/Form/Form.php @@ -1128,8 +1128,8 @@ private function viewToNorm($value) /** * Utility function for indenting multi-line strings. * - * @param string $string The string - * @param int $level The number of spaces to use for indentation + * @param string $string The string + * @param int $level The number of spaces to use for indentation * * @return string The indented string */ diff --git a/src/Symfony/Component/Form/FormError.php b/src/Symfony/Component/Form/FormError.php index 3379faa2cab2..6ec0eadf75f5 100644 --- a/src/Symfony/Component/Form/FormError.php +++ b/src/Symfony/Component/Form/FormError.php @@ -61,12 +61,12 @@ class FormError implements \Serializable * Any array key in $messageParameters will be used as a placeholder in * $messageTemplate. * - * @param string $message The translated error message - * @param string|null $messageTemplate The template for the error message - * @param array $messageParameters The parameters that should be - * substituted in the message template - * @param int|null $messagePluralization The value for error message pluralization - * @param mixed $cause The cause of the error + * @param string $message The translated error message + * @param string|null $messageTemplate The template for the error message + * @param array $messageParameters The parameters that should be + * substituted in the message template + * @param int|null $messagePluralization The value for error message pluralization + * @param mixed $cause The cause of the error * * @see \Symfony\Component\Translation\Translator */ diff --git a/src/Symfony/Component/Form/FormErrorIterator.php b/src/Symfony/Component/Form/FormErrorIterator.php index 58a94f815aab..76e2938904df 100644 --- a/src/Symfony/Component/Form/FormErrorIterator.php +++ b/src/Symfony/Component/Form/FormErrorIterator.php @@ -128,7 +128,7 @@ public function next() /** * Returns the current position of the iterator. * - * @return int The 0-indexed position. + * @return int The 0-indexed position. */ public function key() { @@ -138,7 +138,7 @@ public function key() /** * Returns whether the iterator's position is valid. * - * @return bool Whether the iterator is valid. + * @return bool Whether the iterator is valid. */ public function valid() { @@ -159,9 +159,9 @@ public function rewind() /** * Returns whether a position exists in the iterator. * - * @param int $position The position + * @param int $position The position * - * @return bool Whether that position exists + * @return bool Whether that position exists */ public function offsetExists($position) { @@ -171,7 +171,7 @@ public function offsetExists($position) /** * Returns the element at a position in the iterator. * - * @param int $position The position + * @param int $position The position * * @return FormError|FormErrorIterator The element at the given position * @@ -210,7 +210,7 @@ public function offsetUnset($position) * Returns whether the current element of the iterator can be recursed * into. * - * @return bool Whether the current element is an instance of this class + * @return bool Whether the current element is an instance of this class */ public function hasChildren() { @@ -240,7 +240,7 @@ public function getChildren() * * $count = count($form->getErrors(true, true)); * - * @return int The number of iterated elements + * @return int The number of iterated elements */ public function count() { @@ -250,7 +250,7 @@ public function count() /** * Sets the position of the iterator. * - * @param int $position The new position + * @param int $position The new position * * @throws OutOfBoundsException If the position is invalid */ diff --git a/src/Symfony/Component/Form/FormInterface.php b/src/Symfony/Component/Form/FormInterface.php index a11b0c3720a3..fe946739737c 100644 --- a/src/Symfony/Component/Form/FormInterface.php +++ b/src/Symfony/Component/Form/FormInterface.php @@ -94,9 +94,9 @@ public function all(); /** * Returns the errors of this form. * - * @param bool $deep Whether to include errors of child forms as well - * @param bool $flatten Whether to flatten the list of errors in case - * $deep is set to true + * @param bool $deep Whether to include errors of child forms as well + * @param bool $flatten Whether to flatten the list of errors in case + * $deep is set to true * * @return FormErrorIterator An iterator over the {@link FormError} * instances that where added to this form diff --git a/src/Symfony/Component/Form/Tests/Extension/Validator/ViolationMapper/ViolationMapperTest.php b/src/Symfony/Component/Form/Tests/Extension/Validator/ViolationMapper/ViolationMapperTest.php index 490dcc27aab1..dc25e747f932 100644 --- a/src/Symfony/Component/Form/Tests/Extension/Validator/ViolationMapper/ViolationMapperTest.php +++ b/src/Symfony/Component/Form/Tests/Extension/Validator/ViolationMapper/ViolationMapperTest.php @@ -213,7 +213,7 @@ public function testAbortMappingIfNotSubmitted() $violation = $this->getConstraintViolation('children[address].data.street'); $parent = $this->getForm('parent'); $child = $this->getForm('address', 'address'); - $grandChild = $this->getForm('street' , 'street'); + $grandChild = $this->getForm('street', 'street'); $parent->add($child); $child->add($grandChild); diff --git a/src/Symfony/Component/Form/Util/ServerParams.php b/src/Symfony/Component/Form/Util/ServerParams.php index 82f352895b3b..eda8f7e2ed9f 100644 --- a/src/Symfony/Component/Form/Util/ServerParams.php +++ b/src/Symfony/Component/Form/Util/ServerParams.php @@ -28,7 +28,7 @@ public function __construct(RequestStack $requestStack = null) /** * Returns maximum post size in bytes. * - * @return null|int The maximum post size in bytes + * @return null|int The maximum post size in bytes */ public function getPostMaxSize() { diff --git a/src/Symfony/Component/HttpFoundation/JsonResponse.php b/src/Symfony/Component/HttpFoundation/JsonResponse.php index 05137dd00824..fa80c6885826 100644 --- a/src/Symfony/Component/HttpFoundation/JsonResponse.php +++ b/src/Symfony/Component/HttpFoundation/JsonResponse.php @@ -139,7 +139,7 @@ public function getEncodingOptions() /** * Sets options used while encoding data to JSON. * - * @param int $encodingOptions + * @param int $encodingOptions * * @return JsonResponse */ diff --git a/src/Symfony/Component/HttpFoundation/Session/Attribute/AttributeBag.php b/src/Symfony/Component/HttpFoundation/Session/Attribute/AttributeBag.php index ffe1770da355..403a3a08acc1 100644 --- a/src/Symfony/Component/HttpFoundation/Session/Attribute/AttributeBag.php +++ b/src/Symfony/Component/HttpFoundation/Session/Attribute/AttributeBag.php @@ -148,7 +148,7 @@ public function getIterator() /** * Returns the number of attributes. * - * @return int The number of attributes + * @return int The number of attributes */ public function count() { diff --git a/src/Symfony/Component/HttpFoundation/Session/Storage/MetadataBag.php b/src/Symfony/Component/HttpFoundation/Session/Storage/MetadataBag.php index d37344233d33..ec7b26799a5f 100644 --- a/src/Symfony/Component/HttpFoundation/Session/Storage/MetadataBag.php +++ b/src/Symfony/Component/HttpFoundation/Session/Storage/MetadataBag.php @@ -56,8 +56,8 @@ class MetadataBag implements SessionBagInterface /** * Constructor. * - * @param string $storageKey The key used to store bag in the session. - * @param int $updateThreshold The time to wait between two UPDATED updates + * @param string $storageKey The key used to store bag in the session. + * @param int $updateThreshold The time to wait between two UPDATED updates */ public function __construct($storageKey = '_sf2_meta', $updateThreshold = 0) { diff --git a/src/Symfony/Component/HttpKernel/DataCollector/Util/ValueExporter.php b/src/Symfony/Component/HttpKernel/DataCollector/Util/ValueExporter.php index 31b60e6e40c9..283af1e91734 100644 --- a/src/Symfony/Component/HttpKernel/DataCollector/Util/ValueExporter.php +++ b/src/Symfony/Component/HttpKernel/DataCollector/Util/ValueExporter.php @@ -19,9 +19,9 @@ class ValueExporter /** * Converts a PHP value to a string. * - * @param mixed $value The PHP value - * @param int $depth only for internal usage - * @param bool $deep only for internal usage + * @param mixed $value The PHP value + * @param int $depth only for internal usage + * @param bool $deep only for internal usage * * @return string The string representation of the given value */ diff --git a/src/Symfony/Component/HttpKernel/Event/KernelEvent.php b/src/Symfony/Component/HttpKernel/Event/KernelEvent.php index 3efc04129045..c1f0a9a8ec6f 100644 --- a/src/Symfony/Component/HttpKernel/Event/KernelEvent.php +++ b/src/Symfony/Component/HttpKernel/Event/KernelEvent.php @@ -90,7 +90,7 @@ public function getRequestType() /** * Checks if this is a master request. * - * @return bool True if the request is a master request + * @return bool True if the request is a master request * * @api */ diff --git a/src/Symfony/Component/HttpKernel/EventListener/ExceptionListener.php b/src/Symfony/Component/HttpKernel/EventListener/ExceptionListener.php index 3450b6210ce0..7f06bb288cec 100644 --- a/src/Symfony/Component/HttpKernel/EventListener/ExceptionListener.php +++ b/src/Symfony/Component/HttpKernel/EventListener/ExceptionListener.php @@ -104,7 +104,7 @@ protected function logException(\Exception $exception, $message, $original = tru * Clones the request for the exception. * * @param \Exception $exception The thrown exception. - * @param Request $request The original request. + * @param Request $request The original request. * * @return Request $request The cloned request. */ diff --git a/src/Symfony/Component/HttpKernel/EventListener/SaveSessionListener.php b/src/Symfony/Component/HttpKernel/EventListener/SaveSessionListener.php index d11615c56c7b..36809b59af91 100644 --- a/src/Symfony/Component/HttpKernel/EventListener/SaveSessionListener.php +++ b/src/Symfony/Component/HttpKernel/EventListener/SaveSessionListener.php @@ -13,7 +13,6 @@ use Symfony\Component\EventDispatcher\EventSubscriberInterface; use Symfony\Component\HttpKernel\Event\FilterResponseEvent; -use Symfony\Component\HttpKernel\HttpKernelInterface; use Symfony\Component\HttpKernel\KernelEvents; /** diff --git a/src/Symfony/Component/HttpKernel/Exception/UnprocessableEntityHttpException.php b/src/Symfony/Component/HttpKernel/Exception/UnprocessableEntityHttpException.php index c51da532ed78..eb13f563f6cb 100644 --- a/src/Symfony/Component/HttpKernel/Exception/UnprocessableEntityHttpException.php +++ b/src/Symfony/Component/HttpKernel/Exception/UnprocessableEntityHttpException.php @@ -21,9 +21,9 @@ class UnprocessableEntityHttpException extends HttpException /** * Constructor. * - * @param string $message The internal exception message - * @param \Exception $previous The previous exception - * @param int $code The internal exception code + * @param string $message The internal exception message + * @param \Exception $previous The previous exception + * @param int $code The internal exception code */ public function __construct($message = null, \Exception $previous = null, $code = 0) { diff --git a/src/Symfony/Component/HttpKernel/Tests/Bundle/BundleTest.php b/src/Symfony/Component/HttpKernel/Tests/Bundle/BundleTest.php index c26a4f03c592..efa3335760b8 100644 --- a/src/Symfony/Component/HttpKernel/Tests/Bundle/BundleTest.php +++ b/src/Symfony/Component/HttpKernel/Tests/Bundle/BundleTest.php @@ -11,8 +11,6 @@ namespace Symfony\Component\HttpKernel\Tests\Bundle; -use Symfony\Component\DependencyInjection\ContainerBuilder; -use Symfony\Component\DependencyInjection\Definition; use Symfony\Component\HttpKernel\Tests\Fixtures\ExtensionAbsentBundle\ExtensionAbsentBundle; use Symfony\Component\HttpKernel\Tests\Fixtures\ExtensionPresentBundle\Command\FooCommand; use Symfony\Component\HttpKernel\Tests\Fixtures\ExtensionPresentBundle\ExtensionPresentBundle; diff --git a/src/Symfony/Component/Process/Process.php b/src/Symfony/Component/Process/Process.php index 770ab7337239..c2f8641c56f6 100644 --- a/src/Symfony/Component/Process/Process.php +++ b/src/Symfony/Component/Process/Process.php @@ -906,7 +906,7 @@ public function setTimeout($timeout) * * To disable the timeout, set this value to null. * - * @param int|float|null $timeout The timeout in seconds + * @param int|float|null $timeout The timeout in seconds * * @return self The current Process instance. * @@ -957,7 +957,7 @@ public function isTty() /** * Sets PTY mode. * - * @param bool $bool + * @param bool $bool * * @return self */ @@ -1338,7 +1338,7 @@ protected function isSigchildEnabled() /** * Validates and returns the filtered timeout. * - * @param int|float|null $timeout + * @param int|float|null $timeout * * @return float|null * diff --git a/src/Symfony/Component/PropertyAccess/PropertyAccessor.php b/src/Symfony/Component/PropertyAccess/PropertyAccessor.php index 6be05eff0acb..6173784370a3 100644 --- a/src/Symfony/Component/PropertyAccess/PropertyAccessor.php +++ b/src/Symfony/Component/PropertyAccess/PropertyAccessor.php @@ -213,7 +213,7 @@ public function isWritable($objectOrArray, $propertyPath) * @return array The values read in the path. * * @throws UnexpectedTypeException If a value within the path is neither object nor array. - * @throws NoSuchIndexException If a non-existing index is accessed + * @throws NoSuchIndexException If a non-existing index is accessed */ private function &readPropertiesUntil(&$objectOrArray, PropertyPathInterface $propertyPath, $lastIndex, $ignoreInvalidIndices = true) { @@ -519,7 +519,7 @@ private function writeCollection($object, $property, $collection, $addMethod, $r * @param object $object The object to write to * @param string $property The property to write * - * @return bool Whether the property is writable + * @return bool Whether the property is writable */ private function isPropertyWritable($object, $property) { diff --git a/src/Symfony/Component/PropertyAccess/PropertyAccessorBuilder.php b/src/Symfony/Component/PropertyAccess/PropertyAccessorBuilder.php index 253c064dc0d6..738e5062fda0 100644 --- a/src/Symfony/Component/PropertyAccess/PropertyAccessorBuilder.php +++ b/src/Symfony/Component/PropertyAccess/PropertyAccessorBuilder.php @@ -85,7 +85,7 @@ public function disableExceptionOnInvalidIndex() } /** - * @return bool true is exceptions in read context for array is enabled + * @return bool true is exceptions in read context for array is enabled */ public function isExceptionOnInvalidIndexEnabled() { diff --git a/src/Symfony/Component/PropertyAccess/PropertyAccessorInterface.php b/src/Symfony/Component/PropertyAccess/PropertyAccessorInterface.php index da78dc692861..dbd3053b0fea 100644 --- a/src/Symfony/Component/PropertyAccess/PropertyAccessorInterface.php +++ b/src/Symfony/Component/PropertyAccess/PropertyAccessorInterface.php @@ -92,7 +92,7 @@ public function getValue($objectOrArray, $propertyPath); * @param object|array $objectOrArray The object or array to check * @param string|PropertyPathInterface $propertyPath The property path to check * - * @return bool Whether the value can be set + * @return bool Whether the value can be set * * @throws Exception\InvalidArgumentException If the property path is invalid */ @@ -107,7 +107,7 @@ public function isWritable($objectOrArray, $propertyPath); * @param object|array $objectOrArray The object or array to check * @param string|PropertyPathInterface $propertyPath The property path to check * - * @return bool Whether the property path can be read + * @return bool Whether the property path can be read * * @throws Exception\InvalidArgumentException If the property path is invalid */ diff --git a/src/Symfony/Component/Routing/Route.php b/src/Symfony/Component/Routing/Route.php index 23890d995c39..a37ad4b97888 100644 --- a/src/Symfony/Component/Routing/Route.php +++ b/src/Symfony/Component/Routing/Route.php @@ -268,7 +268,7 @@ public function setSchemes($schemes) * * @param string $scheme * - * @return bool true if the scheme requirement exists, otherwise false + * @return bool true if the scheme requirement exists, otherwise false */ public function hasScheme($scheme) { diff --git a/src/Symfony/Component/Security/Acl/Dbal/MutableAclProvider.php b/src/Symfony/Component/Security/Acl/Dbal/MutableAclProvider.php index b1c28c6cbbe3..1bf105fbdaf2 100644 --- a/src/Symfony/Component/Security/Acl/Dbal/MutableAclProvider.php +++ b/src/Symfony/Component/Security/Acl/Dbal/MutableAclProvider.php @@ -114,6 +114,7 @@ public function deleteAcl(ObjectIdentityInterface $oid) * ACL entries have the CASCADE option on their foreign key so they will also get deleted * * @param SecurityIdentityInterface $sid + * * @throws \InvalidArgumentException */ public function deleteSecurityIdentity(SecurityIdentityInterface $sid) @@ -368,7 +369,7 @@ public function updateAcl(MutableAclInterface $acl) * Updates a user security identity when the user's username changes * * @param UserSecurityIdentity $usid - * @param string $oldUsername + * @param string $oldUsername */ public function updateUserSecurityIdentity(UserSecurityIdentity $usid, $oldUsername) { @@ -653,7 +654,9 @@ protected function getSelectSecurityIdentityIdSql(SecurityIdentityInterface $sid * Constructs the SQL to delete a security identity. * * @param SecurityIdentityInterface $sid + * * @throws \InvalidArgumentException + * * @return string */ protected function getDeleteSecurityIdentityIdSql(SecurityIdentityInterface $sid) @@ -692,7 +695,8 @@ protected function getUpdateObjectIdentitySql($pk, array $changes) * Constructs the SQL for updating a user security identity. * * @param UserSecurityIdentity $usid - * @param string $oldUsername + * @param string $oldUsername + * * @return string */ protected function getUpdateUserSecurityIdentitySql(UserSecurityIdentity $usid, $oldUsername) diff --git a/src/Symfony/Component/Security/Csrf/CsrfTokenManagerInterface.php b/src/Symfony/Component/Security/Csrf/CsrfTokenManagerInterface.php index 050b6c1ef186..5abe47cfc9c9 100644 --- a/src/Symfony/Component/Security/Csrf/CsrfTokenManagerInterface.php +++ b/src/Symfony/Component/Security/Csrf/CsrfTokenManagerInterface.php @@ -62,7 +62,7 @@ public function removeToken($tokenId); * * @param CsrfToken $token A CSRF token * - * @return bool Returns true if the token is valid, false otherwise + * @return bool Returns true if the token is valid, false otherwise */ public function isTokenValid(CsrfToken $token); } diff --git a/src/Symfony/Component/Security/Csrf/TokenStorage/NativeSessionTokenStorage.php b/src/Symfony/Component/Security/Csrf/TokenStorage/NativeSessionTokenStorage.php index bb1a417ad572..60145c65a05f 100644 --- a/src/Symfony/Component/Security/Csrf/TokenStorage/NativeSessionTokenStorage.php +++ b/src/Symfony/Component/Security/Csrf/TokenStorage/NativeSessionTokenStorage.php @@ -40,8 +40,8 @@ class NativeSessionTokenStorage implements TokenStorageInterface /** * Initializes the storage with a session namespace. * - * @param string $namespace The namespace under which the token is stored - * in the session + * @param string $namespace The namespace under which the token is stored + * in the session */ public function __construct($namespace = self::SESSION_NAMESPACE) { diff --git a/src/Symfony/Component/Security/Csrf/TokenStorage/TokenStorageInterface.php b/src/Symfony/Component/Security/Csrf/TokenStorage/TokenStorageInterface.php index ea3a6a8f5531..0fadfa360622 100644 --- a/src/Symfony/Component/Security/Csrf/TokenStorage/TokenStorageInterface.php +++ b/src/Symfony/Component/Security/Csrf/TokenStorage/TokenStorageInterface.php @@ -53,7 +53,7 @@ public function removeToken($tokenId); * * @param string $tokenId The token ID * - * @return bool Whether a token exists with the given ID + * @return bool Whether a token exists with the given ID */ public function hasToken($tokenId); } diff --git a/src/Symfony/Component/Security/Http/Firewall/SimplePreAuthenticationListener.php b/src/Symfony/Component/Security/Http/Firewall/SimplePreAuthenticationListener.php index a6f4f77109e7..e80cc98048eb 100644 --- a/src/Symfony/Component/Security/Http/Firewall/SimplePreAuthenticationListener.php +++ b/src/Symfony/Component/Security/Http/Firewall/SimplePreAuthenticationListener.php @@ -38,11 +38,11 @@ class SimplePreAuthenticationListener implements ListenerInterface /** * Constructor. * - * @param SecurityContextInterface $securityContext A SecurityContext instance - * @param AuthenticationManagerInterface $authenticationManager An AuthenticationManagerInterface instance - * @param string $providerKey - * @param SimplePreAuthenticatorInterface $simpleAuthenticator A SimplePreAuthenticatorInterface instance - * @param LoggerInterface $logger A LoggerInterface instance + * @param SecurityContextInterface $securityContext A SecurityContext instance + * @param AuthenticationManagerInterface $authenticationManager An AuthenticationManagerInterface instance + * @param string $providerKey + * @param SimplePreAuthenticatorInterface $simpleAuthenticator A SimplePreAuthenticatorInterface instance + * @param LoggerInterface $logger A LoggerInterface instance */ public function __construct(SecurityContextInterface $securityContext, AuthenticationManagerInterface $authenticationManager, $providerKey, SimplePreAuthenticatorInterface $simpleAuthenticator, LoggerInterface $logger = null) { diff --git a/src/Symfony/Component/Security/Http/Tests/Firewall/SwitchUserListenerTest.php b/src/Symfony/Component/Security/Http/Tests/Firewall/SwitchUserListenerTest.php index 9e149a22aeba..9fb4e50e7339 100644 --- a/src/Symfony/Component/Security/Http/Tests/Firewall/SwitchUserListenerTest.php +++ b/src/Symfony/Component/Security/Http/Tests/Firewall/SwitchUserListenerTest.php @@ -157,7 +157,7 @@ public function testSwitchUserKeepsOtherQueryStringParameters() $this->securityContext->expects($this->any())->method('getToken')->will($this->returnValue($token)); $this->request->expects($this->any())->method('get')->with('_switch_user')->will($this->returnValue('kuba')); $this->request->query->expects($this->once())->method('remove', '_switch_user'); - $this->request->query->expects($this->any())->method('all')->will($this->returnValue(array('page' => 3,'section' => 2))); + $this->request->query->expects($this->any())->method('all')->will($this->returnValue(array('page' => 3, 'section' => 2))); $this->request->expects($this->any())->method('getUri')->will($this->returnValue('/')); $this->request->server->expects($this->once())->method('set')->with('QUERY_STRING', 'page=3§ion=2'); diff --git a/src/Symfony/Component/Serializer/Serializer.php b/src/Symfony/Component/Serializer/Serializer.php index 95daa85dce43..da4e4e9b5b7e 100644 --- a/src/Symfony/Component/Serializer/Serializer.php +++ b/src/Symfony/Component/Serializer/Serializer.php @@ -157,7 +157,7 @@ public function supportsDenormalization($data, $type, $format = null) /** * Returns a matching normalizer. * - * @param object $data The object to get the serializer for + * @param object $data The object to get the serializer for * @param string $format format name, present to give the option to normalizers to act differently based on formats * * @return NormalizerInterface|null diff --git a/src/Symfony/Component/Templating/Asset/Package.php b/src/Symfony/Component/Templating/Asset/Package.php index 72260ff64dbf..02a1269bd95a 100644 --- a/src/Symfony/Component/Templating/Asset/Package.php +++ b/src/Symfony/Component/Templating/Asset/Package.php @@ -56,8 +56,8 @@ public function getUrl($path, $version = null) /** * Applies version to the supplied path. * - * @param string $path A path - * @param string|bool|null $version A specific version + * @param string $path A path + * @param string|bool|null $version A specific version * * @return string The versionized path */ diff --git a/src/Symfony/Component/Templating/Helper/CoreAssetsHelper.php b/src/Symfony/Component/Templating/Helper/CoreAssetsHelper.php index c7ac88a813dc..b2d06a336268 100644 --- a/src/Symfony/Component/Templating/Helper/CoreAssetsHelper.php +++ b/src/Symfony/Component/Templating/Helper/CoreAssetsHelper.php @@ -105,9 +105,9 @@ public function getVersion($packageName = null) * * Absolute paths (i.e. http://...) are returned unmodified. * - * @param string $path A public path - * @param string $packageName The name of the asset package to use - * @param string|bool|null $version A specific version + * @param string $path A public path + * @param string $packageName The name of the asset package to use + * @param string|bool|null $version A specific version * * @return string A public path which takes into account the base path and URL path */ diff --git a/src/Symfony/Component/Translation/Loader/JsonFileLoader.php b/src/Symfony/Component/Translation/Loader/JsonFileLoader.php index 515111e0e253..8327c63b57f1 100644 --- a/src/Symfony/Component/Translation/Loader/JsonFileLoader.php +++ b/src/Symfony/Component/Translation/Loader/JsonFileLoader.php @@ -54,9 +54,9 @@ public function load($resource, $locale, $domain = 'messages') /** * Translates JSON_ERROR_* constant into meaningful message. * - * @param int $errorCode Error code returned by json_last_error() call + * @param int $errorCode Error code returned by json_last_error() call * - * @return string Message string + * @return string Message string */ private function getJSONErrorMessage($errorCode) { diff --git a/src/Symfony/Component/Validator/ConstraintValidator.php b/src/Symfony/Component/Validator/ConstraintValidator.php index 111c2b4bacec..451570054b6d 100644 --- a/src/Symfony/Component/Validator/ConstraintValidator.php +++ b/src/Symfony/Component/Validator/ConstraintValidator.php @@ -77,8 +77,8 @@ protected function buildViolation($message, array $parameters = array()) * supports the 2.4 context API. * * @param ExecutionContextInterface $context The context to use - * @param string $message The violation message - * @param array $parameters The message parameters + * @param string $message The violation message + * @param array $parameters The message parameters * * @return ConstraintViolationBuilderInterface The violation builder * @@ -126,9 +126,9 @@ protected function formatTypeOf($value) * won't know what an "object", "array" or "resource" is and will be * confused by the violation message. * - * @param mixed $value The value to format as string - * @param int $format A bitwise combination of the format - * constants in this class + * @param mixed $value The value to format as string + * @param int $format A bitwise combination of the format + * constants in this class * * @return string The string representation of the passed value */ @@ -186,9 +186,9 @@ protected function formatValue($value, $format = 0) * Each of the values is converted to a string using * {@link formatValue()}. The values are then concatenated with commas. * - * @param array $values A list of values - * @param int $format A bitwise combination of the format - * constants in this class + * @param array $values A list of values + * @param int $format A bitwise combination of the format + * constants in this class * * @return string The string representation of the value list * diff --git a/src/Symfony/Component/Validator/Constraints/GroupSequence.php b/src/Symfony/Component/Validator/Constraints/GroupSequence.php index 9d50d486dc2c..64b54ee1c739 100644 --- a/src/Symfony/Component/Validator/Constraints/GroupSequence.php +++ b/src/Symfony/Component/Validator/Constraints/GroupSequence.php @@ -110,9 +110,9 @@ public function getIterator() /** * Returns whether the given offset exists in the sequence. * - * @param int $offset The offset + * @param int $offset The offset * - * @return bool Whether the offset exists + * @return bool Whether the offset exists * * @deprecated Implemented for backwards compatibility with Symfony < 2.5. * To be removed in Symfony 3.0. @@ -125,7 +125,7 @@ public function offsetExists($offset) /** * Returns the group at the given offset. * - * @param int $offset The offset + * @param int $offset The offset * * @return string The group a the given offset * @@ -149,8 +149,8 @@ public function offsetGet($offset) /** * Sets the group at the given offset. * - * @param int $offset The offset - * @param string $value The group name + * @param int $offset The offset + * @param string $value The group name * * @deprecated Implemented for backwards compatibility with Symfony < 2.5. * To be removed in Symfony 3.0. @@ -169,7 +169,7 @@ public function offsetSet($offset, $value) /** * Removes the group at the given offset. * - * @param int $offset The offset + * @param int $offset The offset * * @deprecated Implemented for backwards compatibility with Symfony < 2.5. * To be removed in Symfony 3.0. @@ -182,7 +182,7 @@ public function offsetUnset($offset) /** * Returns the number of groups in the sequence. * - * @return int The number of groups + * @return int The number of groups * * @deprecated Implemented for backwards compatibility with Symfony < 2.5. * To be removed in Symfony 3.0. diff --git a/src/Symfony/Component/Validator/Context/ExecutionContext.php b/src/Symfony/Component/Validator/Context/ExecutionContext.php index a30382d3b7c2..614149441a83 100644 --- a/src/Symfony/Component/Validator/Context/ExecutionContext.php +++ b/src/Symfony/Component/Validator/Context/ExecutionContext.php @@ -123,13 +123,13 @@ class ExecutionContext implements ExecutionContextInterface /** * Creates a new execution context. * - * @param ValidatorInterface $validator The validator - * @param mixed $root The root value of the - * validated object graph - * @param TranslatorInterface $translator The translator - * @param string|null $translationDomain The translation domain to - * use for translating - * violation messages + * @param ValidatorInterface $validator The validator + * @param mixed $root The root value of the + * validated object graph + * @param TranslatorInterface $translator The translator + * @param string|null $translationDomain The translation domain to + * use for translating + * violation messages * * @internal Called by {@link ExecutionContextFactory}. Should not be used * in user code. diff --git a/src/Symfony/Component/Validator/Context/ExecutionContextFactory.php b/src/Symfony/Component/Validator/Context/ExecutionContextFactory.php index 52bd1e6907ce..d94a806201ce 100644 --- a/src/Symfony/Component/Validator/Context/ExecutionContextFactory.php +++ b/src/Symfony/Component/Validator/Context/ExecutionContextFactory.php @@ -38,10 +38,10 @@ class ExecutionContextFactory implements ExecutionContextFactoryInterface /** * Creates a new context factory. * - * @param TranslatorInterface $translator The translator - * @param string|null $translationDomain The translation domain to - * use for translating - * violation messages + * @param TranslatorInterface $translator The translator + * @param string|null $translationDomain The translation domain to + * use for translating + * violation messages */ public function __construct(TranslatorInterface $translator, $translationDomain = null) { diff --git a/src/Symfony/Component/Validator/Context/ExecutionContextInterface.php b/src/Symfony/Component/Validator/Context/ExecutionContextInterface.php index f63ce1526129..e602802d714d 100644 --- a/src/Symfony/Component/Validator/Context/ExecutionContextInterface.php +++ b/src/Symfony/Component/Validator/Context/ExecutionContextInterface.php @@ -139,9 +139,9 @@ public function setGroup($group); /** * Marks an object as validated in a specific validation group. * - * @param string $cacheKey The hash of the object - * @param string $groupHash The group's name or hash, if it is group - * sequence + * @param string $cacheKey The hash of the object + * @param string $groupHash The group's name or hash, if it is group + * sequence * * @internal Used by the validator engine. Should not be called by user * code. @@ -151,12 +151,12 @@ public function markGroupAsValidated($cacheKey, $groupHash); /** * Returns whether an object was validated in a specific validation group. * - * @param string $cacheKey The hash of the object - * @param string $groupHash The group's name or hash, if it is group - * sequence + * @param string $cacheKey The hash of the object + * @param string $groupHash The group's name or hash, if it is group + * sequence * - * @return bool Whether the object was already validated for that - * group + * @return bool Whether the object was already validated for that + * group * * @internal Used by the validator engine. Should not be called by user * code. @@ -166,7 +166,7 @@ public function isGroupValidated($cacheKey, $groupHash); /** * Marks a constraint as validated for an object. * - * @param string $cacheKey The hash of the object + * @param string $cacheKey The hash of the object * @param string $constraintHash The hash of the constraint * * @internal Used by the validator engine. Should not be called by user @@ -177,10 +177,10 @@ public function markConstraintAsValidated($cacheKey, $constraintHash); /** * Returns whether a constraint was validated for an object. * - * @param string $cacheKey The hash of the object + * @param string $cacheKey The hash of the object * @param string $constraintHash The hash of the constraint * - * @return bool Whether the constraint was already validated + * @return bool Whether the constraint was already validated * * @internal Used by the validator engine. Should not be called by user * code. diff --git a/src/Symfony/Component/Validator/Mapping/ClassMetadataInterface.php b/src/Symfony/Component/Validator/Mapping/ClassMetadataInterface.php index bf1e36f666e9..bb76c2c01b4c 100644 --- a/src/Symfony/Component/Validator/Mapping/ClassMetadataInterface.php +++ b/src/Symfony/Component/Validator/Mapping/ClassMetadataInterface.php @@ -46,7 +46,7 @@ public function getConstrainedProperties(); * * If it is, you can access the group sequence with {@link getGroupSequence()}. * - * @return bool Returns true if the "Default" group is overridden + * @return bool Returns true if the "Default" group is overridden * * @see \Symfony\Component\Validator\Constraints\GroupSequence */ @@ -71,8 +71,8 @@ public function getGroupSequence(); * This interface will be used to obtain the group sequence when an object * of this class is validated. * - * @return bool Returns true if the "Default" group is overridden by - * a dynamic group sequence + * @return bool Returns true if the "Default" group is overridden by + * a dynamic group sequence * * @see \Symfony\Component\Validator\GroupSequenceProviderInterface */ diff --git a/src/Symfony/Component/Validator/Mapping/Factory/LazyLoadingMetadataFactory.php b/src/Symfony/Component/Validator/Mapping/Factory/LazyLoadingMetadataFactory.php index eb0f3c460e09..1741433ae8fe 100644 --- a/src/Symfony/Component/Validator/Mapping/Factory/LazyLoadingMetadataFactory.php +++ b/src/Symfony/Component/Validator/Mapping/Factory/LazyLoadingMetadataFactory.php @@ -146,7 +146,7 @@ public function getMetadataFor($value) * * @param string|object $value A class name or an object * - * @return bool Whether metadata can be returned for that class + * @return bool Whether metadata can be returned for that class */ public function hasMetadataFor($value) { diff --git a/src/Symfony/Component/Validator/Mapping/MetadataInterface.php b/src/Symfony/Component/Validator/Mapping/MetadataInterface.php index a72d4a5801c9..9929263aa526 100644 --- a/src/Symfony/Component/Validator/Mapping/MetadataInterface.php +++ b/src/Symfony/Component/Validator/Mapping/MetadataInterface.php @@ -34,7 +34,7 @@ interface MetadataInterface extends LegacyMetadataInterface /** * Returns the strategy for cascading objects. * - * @return int The cascading strategy + * @return int The cascading strategy * * @see CascadingStrategy */ @@ -43,7 +43,7 @@ public function getCascadingStrategy(); /** * Returns the strategy for traversing traversable objects. * - * @return int The traversal strategy + * @return int The traversal strategy * * @see TraversalStrategy */ diff --git a/src/Symfony/Component/Validator/Validator/RecursiveContextualValidator.php b/src/Symfony/Component/Validator/Validator/RecursiveContextualValidator.php index 29d0c6c00c71..9b177b14063c 100644 --- a/src/Symfony/Component/Validator/Validator/RecursiveContextualValidator.php +++ b/src/Symfony/Component/Validator/Validator/RecursiveContextualValidator.php @@ -313,17 +313,17 @@ protected function normalizeGroups($groups) * traversal, the object will be iterated and each nested object will be * validated instead. * - * @param object $object The object to cascade - * @param string $propertyPath The current property path - * @param string[] $groups The validated groups - * @param int $traversalStrategy The strategy for traversing the - * cascaded object - * @param ExecutionContextInterface $context The current execution context + * @param object $object The object to cascade + * @param string $propertyPath The current property path + * @param string[] $groups The validated groups + * @param int $traversalStrategy The strategy for traversing the + * cascaded object + * @param ExecutionContextInterface $context The current execution context * - * @throws NoSuchMetadataException If the object has no associated metadata - * and does not implement {@link \Traversable} - * or if traversal is disabled via the - * $traversalStrategy argument + * @throws NoSuchMetadataException If the object has no associated metadata + * and does not implement {@link \Traversable} + * or if traversal is disabled via the + * $traversalStrategy argument * @throws UnsupportedMetadataException If the metadata returned by the * metadata factory does not implement * {@link ClassMetadataInterface} @@ -384,11 +384,11 @@ private function validateObject($object, $propertyPath, array $groups, $traversa * @param array|\Traversable $collection The collection * @param string $propertyPath The current property path * @param string[] $groups The validated groups - * @param bool $stopRecursion Whether to disable + * @param bool $stopRecursion Whether to disable * recursive iteration. For * backwards compatibility * with Symfony < 2.5. - * @param ExecutionContextInterface $context The current execution context + * @param ExecutionContextInterface $context The current execution context * * @see ClassNode * @see CollectionNode @@ -832,12 +832,12 @@ private function stepThroughGroupSequence($value, $object, $cacheKey, MetadataIn /** * Validates a node's value against all constraints in the given group. * - * @param mixed $value The validated value - * @param string $cacheKey The key for caching the - * validated value - * @param MetadataInterface $metadata The metadata of the value - * @param string $group The group to validate - * @param ExecutionContextInterface $context The execution context + * @param mixed $value The validated value + * @param string $cacheKey The key for caching the + * validated value + * @param MetadataInterface $metadata The metadata of the value + * @param string $group The group to validate + * @param ExecutionContextInterface $context The execution context */ private function validateInGroup($value, $cacheKey, MetadataInterface $metadata, $group, ExecutionContextInterface $context) { diff --git a/src/Symfony/Component/Validator/ValidatorBuilderInterface.php b/src/Symfony/Component/Validator/ValidatorBuilderInterface.php index c5420c8c9fc0..2fd0f9c58bf9 100644 --- a/src/Symfony/Component/Validator/ValidatorBuilderInterface.php +++ b/src/Symfony/Component/Validator/ValidatorBuilderInterface.php @@ -174,7 +174,7 @@ public function setPropertyAccessor(PropertyAccessorInterface $propertyAccessor) /** * Sets the API version that the returned validator should support. * - * @param int $apiVersion The required API version + * @param int $apiVersion The required API version * * @return ValidatorBuilderInterface The builder object * diff --git a/src/Symfony/Component/Validator/Violation/ConstraintViolationBuilderInterface.php b/src/Symfony/Component/Validator/Violation/ConstraintViolationBuilderInterface.php index 84cd4d32548d..345d3c77d62b 100644 --- a/src/Symfony/Component/Validator/Violation/ConstraintViolationBuilderInterface.php +++ b/src/Symfony/Component/Validator/Violation/ConstraintViolationBuilderInterface.php @@ -82,7 +82,7 @@ public function setInvalidValue($invalidValue); * Sets the number which determines how the plural form of the violation * message is chosen when it is translated. * - * @param int $number The number for determining the plural form + * @param int $number The number for determining the plural form * * @return ConstraintViolationBuilderInterface This builder * diff --git a/src/Symfony/Component/Validator/Violation/LegacyConstraintViolationBuilder.php b/src/Symfony/Component/Validator/Violation/LegacyConstraintViolationBuilder.php index 06cfdb60fbd5..bdecb9e4ad43 100644 --- a/src/Symfony/Component/Validator/Violation/LegacyConstraintViolationBuilder.php +++ b/src/Symfony/Component/Validator/Violation/LegacyConstraintViolationBuilder.php @@ -11,10 +11,6 @@ namespace Symfony\Component\Validator\Violation; -use Symfony\Component\Translation\TranslatorInterface; -use Symfony\Component\Validator\Constraint; -use Symfony\Component\Validator\ConstraintViolation; -use Symfony\Component\Validator\ConstraintViolationList; use Symfony\Component\Validator\ExecutionContextInterface; use Symfony\Component\Validator\Util\PropertyPath;