diff --git a/src/Symfony/Bundle/FrameworkBundle/Command/CacheClearCommand.php b/src/Symfony/Bundle/FrameworkBundle/Command/CacheClearCommand.php index efe27319bb..1ff6fa308c 100644 --- a/src/Symfony/Bundle/FrameworkBundle/Command/CacheClearCommand.php +++ b/src/Symfony/Bundle/FrameworkBundle/Command/CacheClearCommand.php @@ -110,7 +110,7 @@ EOF /** * @param string $warmupDir * @param string $realCacheDir - * @param Boolean $enableOptionalWarmers + * @param bool $enableOptionalWarmers */ protected function warmup($warmupDir, $realCacheDir, $enableOptionalWarmers = true) { diff --git a/src/Symfony/Bundle/TwigBundle/Extension/AssetsExtension.php b/src/Symfony/Bundle/TwigBundle/Extension/AssetsExtension.php index 0bcfd11994..05f8b0665e 100644 --- a/src/Symfony/Bundle/TwigBundle/Extension/AssetsExtension.php +++ b/src/Symfony/Bundle/TwigBundle/Extension/AssetsExtension.php @@ -50,8 +50,8 @@ class AssetsExtension extends \Twig_Extension * * @param string $path A public path * @param string $packageName The name of the asset package to use - * @param Boolean $absolute Whether to return an absolute URL or a relative one - * @param string|Boolean|null $version A specific version + * @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 */ diff --git a/src/Symfony/Component/ClassLoader/Psr4ClassLoader.php b/src/Symfony/Component/ClassLoader/Psr4ClassLoader.php index a705a7f7bf..60aa80279b 100644 --- a/src/Symfony/Component/ClassLoader/Psr4ClassLoader.php +++ b/src/Symfony/Component/ClassLoader/Psr4ClassLoader.php @@ -77,7 +77,7 @@ class Psr4ClassLoader /** * Registers this instance as an autoloader. * - * @param Boolean $prepend + * @param bool $prepend */ public function register($prepend = false) { diff --git a/src/Symfony/Component/Console/Helper/ProgressBar.php b/src/Symfony/Component/Console/Helper/ProgressBar.php index 25b9c2052b..4790270bd4 100644 --- a/src/Symfony/Component/Console/Helper/ProgressBar.php +++ b/src/Symfony/Component/Console/Helper/ProgressBar.php @@ -51,7 +51,7 @@ class ProgressBar * Constructor. * * @param OutputInterface $output An OutputInterface instance - * @param integer $max Maximum steps (0 if unknown) + * @param int $max Maximum steps (0 if unknown) */ public function __construct(OutputInterface $output, $max = 0) { @@ -200,7 +200,7 @@ class ProgressBar /** * Sets the progress bar width. * - * @param integer $size The progress bar size + * @param int $size The progress bar size */ public function setBarWidth($size) { @@ -299,7 +299,7 @@ class ProgressBar /** * Sets the redraw frequency. * - * @param integer $freq The frequency in steps + * @param int $freq The frequency in steps */ public function setRedrawFrequency($freq) { @@ -328,7 +328,7 @@ class ProgressBar /** * Advances the progress output X steps. * - * @param integer $step Number of steps to advance + * @param int $step Number of steps to advance * * @throws \LogicException */ @@ -340,7 +340,7 @@ class ProgressBar /** * Sets the current progress. * - * @param integer $step The current progress + * @param int $step The current progress * * @throws \LogicException */ diff --git a/src/Symfony/Component/Console/Helper/Table.php b/src/Symfony/Component/Console/Helper/Table.php index 2548d8e57a..f3cd7ce8e0 100644 --- a/src/Symfony/Component/Console/Helper/Table.php +++ b/src/Symfony/Component/Console/Helper/Table.php @@ -295,7 +295,7 @@ class Table * Renders table cell with padding. * * @param array $row - * @param integer $column + * @param int $column * @param string $cellFormat */ private function renderCell(array $row, $column, $cellFormat) @@ -337,7 +337,7 @@ class Table /** * Gets column width. * - * @param integer $column + * @param int $column * * @return integer */ @@ -363,7 +363,7 @@ class Table * Gets cell width. * * @param array $row - * @param integer $column + * @param int $column * * @return integer */ diff --git a/src/Symfony/Component/Console/Helper/TableStyle.php b/src/Symfony/Component/Console/Helper/TableStyle.php index 179749a4cd..2379d9b1af 100644 --- a/src/Symfony/Component/Console/Helper/TableStyle.php +++ b/src/Symfony/Component/Console/Helper/TableStyle.php @@ -228,7 +228,7 @@ class TableStyle /** * Sets cell padding type. * - * @param integer $padType STR_PAD_* + * @param int $padType STR_PAD_* * * @return TableStyle */ @@ -242,7 +242,7 @@ class TableStyle /** * Gets cell padding type. * - * @param integer + * @param int */ public function getPadType() { diff --git a/src/Symfony/Component/Console/Question/ChoiceQuestion.php b/src/Symfony/Component/Console/Question/ChoiceQuestion.php index 57275d5728..59808e1256 100644 --- a/src/Symfony/Component/Console/Question/ChoiceQuestion.php +++ b/src/Symfony/Component/Console/Question/ChoiceQuestion.php @@ -47,7 +47,7 @@ class ChoiceQuestion extends Question * * When multiselect is set to true, multiple choices can be answered. * - * @param Boolean $multiselect + * @param bool $multiselect * * @return ChoiceQuestion The current instance */ diff --git a/src/Symfony/Component/Console/Question/ConfirmationQuestion.php b/src/Symfony/Component/Console/Question/ConfirmationQuestion.php index d14f878521..0438640fa4 100644 --- a/src/Symfony/Component/Console/Question/ConfirmationQuestion.php +++ b/src/Symfony/Component/Console/Question/ConfirmationQuestion.php @@ -20,7 +20,7 @@ class ConfirmationQuestion extends Question { public function __construct($question, $default = true) { - parent::__construct($question, (Boolean) $default); + parent::__construct($question, (bool) $default); $this->setNormalizer($this->getDefaultNormalizer()); } diff --git a/src/Symfony/Component/Console/Question/Question.php b/src/Symfony/Component/Console/Question/Question.php index 763a1c02ce..2fd8283f3a 100644 --- a/src/Symfony/Component/Console/Question/Question.php +++ b/src/Symfony/Component/Console/Question/Question.php @@ -73,7 +73,7 @@ class Question /** * Sets whether the user response must be hidden or not. * - * @param Boolean $hidden + * @param bool $hidden * * @return Question The current instance * @@ -85,7 +85,7 @@ class Question throw new \LogicException('A hidden question cannot use the autocompleter.'); } - $this->hidden = (Boolean) $hidden; + $this->hidden = (bool) $hidden; return $this; } @@ -103,13 +103,13 @@ class Question /** * Sets whether to fallback on non-hidden question if the response can not be hidden. * - * @param Boolean $fallback + * @param bool $fallback * * @return Question The current instance */ public function setHiddenFallback($fallback) { - $this->hiddenFallback = (Boolean) $fallback; + $this->hiddenFallback = (bool) $fallback; return $this; } @@ -180,7 +180,7 @@ class Question * * Null means an unlimited number of attempts. * - * @param null|integer $attempts + * @param null|int $attempts * * @return Question The current instance * diff --git a/src/Symfony/Component/DependencyInjection/Loader/XmlFileLoader.php b/src/Symfony/Component/DependencyInjection/Loader/XmlFileLoader.php index 14378e50bf..bdcc6e5919 100644 --- a/src/Symfony/Component/DependencyInjection/Loader/XmlFileLoader.php +++ b/src/Symfony/Component/DependencyInjection/Loader/XmlFileLoader.php @@ -299,7 +299,7 @@ class XmlFileLoader extends FileLoader * * @param \DOMElement $node * @param string $name - * @param Boolean $lowercase + * @param bool $lowercase * * @return mixed */ diff --git a/src/Symfony/Component/Form/Form.php b/src/Symfony/Component/Form/Form.php index ec0ad9a20d..4fb1b1ee65 100644 --- a/src/Symfony/Component/Form/Form.php +++ b/src/Symfony/Component/Form/Form.php @@ -1131,7 +1131,7 @@ class Form implements \IteratorAggregate, FormInterface * Utility function for indenting multi-line strings. * * @param string $string The string - * @param integer $level The number of spaces to use for indentation + * @param int $level The number of spaces to use for indentation * * @return string The indented string */ diff --git a/src/Symfony/Component/Form/FormErrorIterator.php b/src/Symfony/Component/Form/FormErrorIterator.php index bc2bdb1e50..83d7aefc36 100644 --- a/src/Symfony/Component/Form/FormErrorIterator.php +++ b/src/Symfony/Component/Form/FormErrorIterator.php @@ -159,7 +159,7 @@ class FormErrorIterator implements \RecursiveIterator, \SeekableIterator, \Array /** * Returns whether a position exists in the iterator. * - * @param integer $position The position + * @param int $position The position * * @return Boolean Whether that position exists */ @@ -171,7 +171,7 @@ class FormErrorIterator implements \RecursiveIterator, \SeekableIterator, \Array /** * Returns the element at a position in the iterator. * - * @param integer $position The position + * @param int $position The position * * @return FormError|FormErrorIterator The element at the given position * @@ -250,7 +250,7 @@ class FormErrorIterator implements \RecursiveIterator, \SeekableIterator, \Array /** * Sets the position of the iterator. * - * @param integer $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 391c9b1e1e..d4709eaea5 100644 --- a/src/Symfony/Component/Form/FormInterface.php +++ b/src/Symfony/Component/Form/FormInterface.php @@ -94,8 +94,8 @@ interface FormInterface extends \ArrayAccess, \Traversable, \Countable /** * Returns the errors of this form. * - * @param Boolean $deep Whether to include errors of child forms as well - * @param Boolean $flatten Whether to flatten the list of errors in case + * @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} diff --git a/src/Symfony/Component/HttpFoundation/JsonResponse.php b/src/Symfony/Component/HttpFoundation/JsonResponse.php index cef1c629d2..b30afeef88 100644 --- a/src/Symfony/Component/HttpFoundation/JsonResponse.php +++ b/src/Symfony/Component/HttpFoundation/JsonResponse.php @@ -117,13 +117,13 @@ class JsonResponse extends Response /** * Sets options used while encoding data to JSON. * - * @param integer $encodingOptions + * @param int $encodingOptions * * @return JsonResponse */ public function setEncodingOptions($encodingOptions) { - $this->encodingOptions = (integer) $encodingOptions; + $this->encodingOptions = (int) $encodingOptions; return $this->setData(json_decode($this->data)); } diff --git a/src/Symfony/Component/HttpKernel/DataCollector/Util/ValueExporter.php b/src/Symfony/Component/HttpKernel/DataCollector/Util/ValueExporter.php index ce6fbf0663..31b60e6e40 100644 --- a/src/Symfony/Component/HttpKernel/DataCollector/Util/ValueExporter.php +++ b/src/Symfony/Component/HttpKernel/DataCollector/Util/ValueExporter.php @@ -20,8 +20,8 @@ class ValueExporter * Converts a PHP value to a string. * * @param mixed $value The PHP value - * @param integer $depth only for internal usage - * @param Boolean $deep only for internal usage + * @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/Exception/UnprocessableEntityHttpException.php b/src/Symfony/Component/HttpKernel/Exception/UnprocessableEntityHttpException.php index 9516650b4c..c51da532ed 100644 --- a/src/Symfony/Component/HttpKernel/Exception/UnprocessableEntityHttpException.php +++ b/src/Symfony/Component/HttpKernel/Exception/UnprocessableEntityHttpException.php @@ -23,7 +23,7 @@ class UnprocessableEntityHttpException extends HttpException * * @param string $message The internal exception message * @param \Exception $previous The previous exception - * @param integer $code The internal exception code + * @param int $code The internal exception code */ public function __construct($message = null, \Exception $previous = null, $code = 0) { diff --git a/src/Symfony/Component/Process/Process.php b/src/Symfony/Component/Process/Process.php index 19bf961a4e..cdf80228d8 100644 --- a/src/Symfony/Component/Process/Process.php +++ b/src/Symfony/Component/Process/Process.php @@ -940,13 +940,13 @@ class Process /** * Sets PTY mode. * - * @param Boolean $bool + * @param bool $bool * * @return self */ public function setPty($bool) { - $this->pty = (Boolean) $bool; + $this->pty = (bool) $bool; return $this; } diff --git a/src/Symfony/Component/Process/ProcessPipes.php b/src/Symfony/Component/Process/ProcessPipes.php index 9ef6137720..d02b767e0a 100644 --- a/src/Symfony/Component/Process/ProcessPipes.php +++ b/src/Symfony/Component/Process/ProcessPipes.php @@ -107,7 +107,7 @@ class ProcessPipes /** * Returns an array of descriptors for the use of proc_open. * - * @param Boolean $disableOutput Whether to redirect STDOUT and STDERR to /dev/null or not. + * @param bool $disableOutput Whether to redirect STDOUT and STDERR to /dev/null or not. * * @return array */ diff --git a/src/Symfony/Component/Templating/Asset/Package.php b/src/Symfony/Component/Templating/Asset/Package.php index bb7bef23f0..72260ff64d 100644 --- a/src/Symfony/Component/Templating/Asset/Package.php +++ b/src/Symfony/Component/Templating/Asset/Package.php @@ -57,7 +57,7 @@ class Package implements PackageInterface * Applies version to the supplied path. * * @param string $path A path - * @param string|Boolean|null $version A specific version + * @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 fb4ed5dca0..c7ac88a813 100644 --- a/src/Symfony/Component/Templating/Helper/CoreAssetsHelper.php +++ b/src/Symfony/Component/Templating/Helper/CoreAssetsHelper.php @@ -107,7 +107,7 @@ class CoreAssetsHelper extends Helper implements PackageInterface * * @param string $path A public path * @param string $packageName The name of the asset package to use - * @param string|Boolean|null $version A specific version + * @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/Validator/Constraints/GroupSequence.php b/src/Symfony/Component/Validator/Constraints/GroupSequence.php index 805aa1b16b..b4110d7017 100644 --- a/src/Symfony/Component/Validator/Constraints/GroupSequence.php +++ b/src/Symfony/Component/Validator/Constraints/GroupSequence.php @@ -109,7 +109,7 @@ class GroupSequence implements \ArrayAccess, \IteratorAggregate, \Countable /** * Returns whether the given offset exists in the sequence. * - * @param integer $offset The offset + * @param int $offset The offset * * @return Boolean Whether the offset exists * @@ -124,7 +124,7 @@ class GroupSequence implements \ArrayAccess, \IteratorAggregate, \Countable /** * Returns the group at the given offset. * - * @param integer $offset The offset + * @param int $offset The offset * * @return string The group a the given offset * @@ -148,7 +148,7 @@ class GroupSequence implements \ArrayAccess, \IteratorAggregate, \Countable /** * Sets the group at the given offset. * - * @param integer $offset The offset + * @param int $offset The offset * @param string $value The group name * * @deprecated Implemented for backwards compatibility with Symfony < 2.5. @@ -168,7 +168,7 @@ class GroupSequence implements \ArrayAccess, \IteratorAggregate, \Countable /** * Removes the group at the given offset. * - * @param integer $offset The offset + * @param int $offset The offset * * @deprecated Implemented for backwards compatibility with Symfony < 2.5. * To be removed in Symfony 3.0. diff --git a/src/Symfony/Component/Validator/Mapping/MemberMetadata.php b/src/Symfony/Component/Validator/Mapping/MemberMetadata.php index 629b0e3f51..e00b731eeb 100644 --- a/src/Symfony/Component/Validator/Mapping/MemberMetadata.php +++ b/src/Symfony/Component/Validator/Mapping/MemberMetadata.php @@ -190,7 +190,7 @@ abstract class MemberMetadata extends ElementMetadata implements PropertyMetadat */ public function isCascaded() { - return (boolean) ($this->cascadingStrategy & CascadingStrategy::CASCADE); + return (bool) ($this->cascadingStrategy & CascadingStrategy::CASCADE); } /** @@ -204,7 +204,7 @@ abstract class MemberMetadata extends ElementMetadata implements PropertyMetadat */ public function isCollectionCascaded() { - return (boolean) ($this->traversalStrategy & (TraversalStrategy::IMPLICIT | TraversalStrategy::TRAVERSE)); + return (bool) ($this->traversalStrategy & (TraversalStrategy::IMPLICIT | TraversalStrategy::TRAVERSE)); } /** diff --git a/src/Symfony/Component/Validator/Validator/RecursiveContextualValidator.php b/src/Symfony/Component/Validator/Validator/RecursiveContextualValidator.php index 0da7c7cf51..d6c1b2500a 100644 --- a/src/Symfony/Component/Validator/Validator/RecursiveContextualValidator.php +++ b/src/Symfony/Component/Validator/Validator/RecursiveContextualValidator.php @@ -264,7 +264,7 @@ class RecursiveContextualValidator implements ContextualValidatorInterface * @param object $object The object to cascade * @param string $propertyPath The current property path * @param string[] $groups The validated groups - * @param integer $traversalStrategy The strategy for traversing the + * @param int $traversalStrategy The strategy for traversing the * cascaded object * @param ExecutionContextInterface $context The current execution context * @@ -332,7 +332,7 @@ class RecursiveContextualValidator implements ContextualValidatorInterface * @param array|\Traversable $collection The collection * @param string $propertyPath The current property path * @param string[] $groups The validated groups - * @param Boolean $stopRecursion Whether to disable + * @param bool $stopRecursion Whether to disable * recursive iteration. For * backwards compatibility * with Symfony < 2.5. @@ -416,7 +416,7 @@ class RecursiveContextualValidator implements ContextualValidatorInterface * @param string[]|null $cascadedGroups The groups in which * cascaded objects should * be validated - * @param integer $traversalStrategy The strategy used for + * @param int $traversalStrategy The strategy used for * traversing the object * @param ExecutionContextInterface $context The current execution context * @@ -608,7 +608,7 @@ class RecursiveContextualValidator implements ContextualValidatorInterface * @param string[]|null $cascadedGroups The groups in which * cascaded objects should * be validated - * @param integer $traversalStrategy The strategy used for + * @param int $traversalStrategy The strategy used for * traversing the value * @param ExecutionContextInterface $context The current execution context * @@ -720,7 +720,7 @@ class RecursiveContextualValidator implements ContextualValidatorInterface * value * @param string $propertyPath The property path leading * to the value - * @param integer $traversalStrategy The strategy used for + * @param int $traversalStrategy The strategy used for * traversing the value * @param GroupSequence $groupSequence The group sequence * @param string[]|null $cascadedGroup The group that should diff --git a/src/Symfony/Component/Validator/ValidatorBuilderInterface.php b/src/Symfony/Component/Validator/ValidatorBuilderInterface.php index 38cf9772d0..c5420c8c9f 100644 --- a/src/Symfony/Component/Validator/ValidatorBuilderInterface.php +++ b/src/Symfony/Component/Validator/ValidatorBuilderInterface.php @@ -174,7 +174,7 @@ interface ValidatorBuilderInterface /** * Sets the API version that the returned validator should support. * - * @param integer $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 c522860aa7..84cd4d3254 100644 --- a/src/Symfony/Component/Validator/Violation/ConstraintViolationBuilderInterface.php +++ b/src/Symfony/Component/Validator/Violation/ConstraintViolationBuilderInterface.php @@ -82,7 +82,7 @@ interface ConstraintViolationBuilderInterface * Sets the number which determines how the plural form of the violation * message is chosen when it is translated. * - * @param integer $number The number for determining the plural form + * @param int $number The number for determining the plural form * * @return ConstraintViolationBuilderInterface This builder *