From 0ecdda17705a7e38be79f78f62c4cf453fd24f40 Mon Sep 17 00:00:00 2001 From: Fabien Potencier Date: Wed, 16 Apr 2014 12:34:42 +0200 Subject: [PATCH] fixed types in phpdocs --- src/Symfony/Bridge/Monolog/Handler/ConsoleHandler.php | 2 +- src/Symfony/Bridge/Propel1/Logger/PropelLogger.php | 2 +- .../Tests/LazyProxy/Fixtures/php/lazy_service.php | 2 +- src/Symfony/Component/Console/Tester/ApplicationTester.php | 2 +- src/Symfony/Component/Console/Tester/CommandTester.php | 2 +- src/Symfony/Component/Debug/DebugClassLoader.php | 2 +- .../FatalErrorHandler/ClassNotFoundFatalErrorHandler.php | 2 +- src/Symfony/Component/DomCrawler/Field/ChoiceFormField.php | 2 +- src/Symfony/Component/ExpressionLanguage/Token.php | 2 +- .../DataTransformer/NumberToLocalizedStringTransformer.php | 2 +- .../HttpFoundation/Session/Attribute/AttributeBag.php | 2 +- .../Component/HttpFoundation/Session/Storage/MetadataBag.php | 2 +- src/Symfony/Component/HttpKernel/Event/KernelEvent.php | 2 +- src/Symfony/Component/PropertyAccess/PropertyAccessor.php | 4 ++-- .../Component/PropertyAccess/PropertyAccessorBuilder.php | 4 ++-- .../Component/Security/Csrf/CsrfTokenManagerInterface.php | 2 +- .../Security/Csrf/TokenGenerator/UriSafeTokenGenerator.php | 2 +- .../Security/Csrf/TokenStorage/NativeSessionTokenStorage.php | 2 +- .../Security/Csrf/TokenStorage/TokenStorageInterface.php | 2 +- 19 files changed, 21 insertions(+), 21 deletions(-) diff --git a/src/Symfony/Bridge/Monolog/Handler/ConsoleHandler.php b/src/Symfony/Bridge/Monolog/Handler/ConsoleHandler.php index 91371f1e90..58c249c97c 100644 --- a/src/Symfony/Bridge/Monolog/Handler/ConsoleHandler.php +++ b/src/Symfony/Bridge/Monolog/Handler/ConsoleHandler.php @@ -167,7 +167,7 @@ class ConsoleHandler extends AbstractProcessingHandler implements EventSubscribe /** * Updates the logging level based on the verbosity setting of the console output. * - * @return Boolean 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/Bridge/Propel1/Logger/PropelLogger.php b/src/Symfony/Bridge/Propel1/Logger/PropelLogger.php index a0b001cde7..2fd16a008b 100644 --- a/src/Symfony/Bridge/Propel1/Logger/PropelLogger.php +++ b/src/Symfony/Bridge/Propel1/Logger/PropelLogger.php @@ -38,7 +38,7 @@ class PropelLogger implements \BasicLogger protected $stopwatch; /** - * @var Boolean + * @var bool */ private $isPrepared = false; diff --git a/src/Symfony/Bridge/ProxyManager/Tests/LazyProxy/Fixtures/php/lazy_service.php b/src/Symfony/Bridge/ProxyManager/Tests/LazyProxy/Fixtures/php/lazy_service.php index 0748640fd9..411063109b 100644 --- a/src/Symfony/Bridge/ProxyManager/Tests/LazyProxy/Fixtures/php/lazy_service.php +++ b/src/Symfony/Bridge/ProxyManager/Tests/LazyProxy/Fixtures/php/lazy_service.php @@ -110,7 +110,7 @@ class stdClass_c1d194250ee2e2b7d2eab8b8212368a8 extends \stdClass implements \Pr /** * @param string $name * - * @return Boolean + * @return bool */ public function __isset($name) { diff --git a/src/Symfony/Component/Console/Tester/ApplicationTester.php b/src/Symfony/Component/Console/Tester/ApplicationTester.php index f0b29c2eba..1630a97406 100644 --- a/src/Symfony/Component/Console/Tester/ApplicationTester.php +++ b/src/Symfony/Component/Console/Tester/ApplicationTester.php @@ -119,7 +119,7 @@ class ApplicationTester /** * Gets the status code returned by the last execution of the application. * - * @return integer 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 9e2f060820..fe94d1ebb9 100644 --- a/src/Symfony/Component/Console/Tester/CommandTester.php +++ b/src/Symfony/Component/Console/Tester/CommandTester.php @@ -123,7 +123,7 @@ class CommandTester /** * Gets the status code returned by the last execution of the application. * - * @return integer 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 a0c6c5a4f9..67db200288 100644 --- a/src/Symfony/Component/Debug/DebugClassLoader.php +++ b/src/Symfony/Component/Debug/DebugClassLoader.php @@ -110,7 +110,7 @@ class DebugClassLoader * * @param string $class The name of the class * - * @return Boolean|null True, if loaded + * @return bool|null True, if loaded * * @throws \RuntimeException */ diff --git a/src/Symfony/Component/Debug/FatalErrorHandler/ClassNotFoundFatalErrorHandler.php b/src/Symfony/Component/Debug/FatalErrorHandler/ClassNotFoundFatalErrorHandler.php index 929ad903eb..1554a810a2 100644 --- a/src/Symfony/Component/Debug/FatalErrorHandler/ClassNotFoundFatalErrorHandler.php +++ b/src/Symfony/Component/Debug/FatalErrorHandler/ClassNotFoundFatalErrorHandler.php @@ -172,7 +172,7 @@ class ClassNotFoundFatalErrorHandler implements FatalErrorHandlerInterface /** * @param string $class * - * @return Boolean + * @return bool */ private function classExists($class) { diff --git a/src/Symfony/Component/DomCrawler/Field/ChoiceFormField.php b/src/Symfony/Component/DomCrawler/Field/ChoiceFormField.php index c51587bd85..b0f6b2ad1c 100644 --- a/src/Symfony/Component/DomCrawler/Field/ChoiceFormField.php +++ b/src/Symfony/Component/DomCrawler/Field/ChoiceFormField.php @@ -35,7 +35,7 @@ class ChoiceFormField extends FormField */ private $options; /** - * @var boolean + * @var bool */ private $validationDisabled = false; diff --git a/src/Symfony/Component/ExpressionLanguage/Token.php b/src/Symfony/Component/ExpressionLanguage/Token.php index 4835d060ca..67b1ae2235 100644 --- a/src/Symfony/Component/ExpressionLanguage/Token.php +++ b/src/Symfony/Component/ExpressionLanguage/Token.php @@ -59,7 +59,7 @@ class Token * @param array|int $type The type to test * @param string|null $value The token value * - * @return Boolean + * @return bool */ public function test($type, $value = null) { diff --git a/src/Symfony/Component/Form/Extension/Core/DataTransformer/NumberToLocalizedStringTransformer.php b/src/Symfony/Component/Form/Extension/Core/DataTransformer/NumberToLocalizedStringTransformer.php index 32ba6da89b..e0430bd07c 100644 --- a/src/Symfony/Component/Form/Extension/Core/DataTransformer/NumberToLocalizedStringTransformer.php +++ b/src/Symfony/Component/Form/Extension/Core/DataTransformer/NumberToLocalizedStringTransformer.php @@ -250,7 +250,7 @@ class NumberToLocalizedStringTransformer implements DataTransformerInterface * * @param int|float $number A number. * - * @return integer|float The rounded number. + * @return int|float The rounded number. */ private function round($number) { diff --git a/src/Symfony/Component/HttpFoundation/Session/Attribute/AttributeBag.php b/src/Symfony/Component/HttpFoundation/Session/Attribute/AttributeBag.php index af416d6d3a..ffe1770da3 100644 --- a/src/Symfony/Component/HttpFoundation/Session/Attribute/AttributeBag.php +++ b/src/Symfony/Component/HttpFoundation/Session/Attribute/AttributeBag.php @@ -148,7 +148,7 @@ class AttributeBag implements AttributeBagInterface, \IteratorAggregate, \Counta /** * Returns the number of attributes. * - * @return integer 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 30176702f4..f996900d44 100644 --- a/src/Symfony/Component/HttpFoundation/Session/Storage/MetadataBag.php +++ b/src/Symfony/Component/HttpFoundation/Session/Storage/MetadataBag.php @@ -49,7 +49,7 @@ class MetadataBag implements SessionBagInterface private $lastUsed; /** - * @var integer + * @var int */ private $updateThreshold; diff --git a/src/Symfony/Component/HttpKernel/Event/KernelEvent.php b/src/Symfony/Component/HttpKernel/Event/KernelEvent.php index b3294c001b..93e0237c83 100644 --- a/src/Symfony/Component/HttpKernel/Event/KernelEvent.php +++ b/src/Symfony/Component/HttpKernel/Event/KernelEvent.php @@ -90,7 +90,7 @@ class KernelEvent extends Event /** * Checks if this is a master request. * - * @return Boolean 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/PropertyAccess/PropertyAccessor.php b/src/Symfony/Component/PropertyAccess/PropertyAccessor.php index a38faab0ad..97b1004e03 100644 --- a/src/Symfony/Component/PropertyAccess/PropertyAccessor.php +++ b/src/Symfony/Component/PropertyAccess/PropertyAccessor.php @@ -26,12 +26,12 @@ class PropertyAccessor implements PropertyAccessorInterface const IS_REF = 1; /** - * @var Boolean + * @var bool */ private $magicCall; /** - * @var Boolean + * @var bool */ private $throwExceptionOnInvalidIndex; diff --git a/src/Symfony/Component/PropertyAccess/PropertyAccessorBuilder.php b/src/Symfony/Component/PropertyAccess/PropertyAccessorBuilder.php index 03ff58ecc7..253c064dc0 100644 --- a/src/Symfony/Component/PropertyAccess/PropertyAccessorBuilder.php +++ b/src/Symfony/Component/PropertyAccess/PropertyAccessorBuilder.php @@ -24,7 +24,7 @@ class PropertyAccessorBuilder private $magicCall = false; /** - * @var Boolean + * @var bool */ private $throwExceptionOnInvalidIndex = false; @@ -85,7 +85,7 @@ class PropertyAccessorBuilder } /** - * @return Boolean 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/Security/Csrf/CsrfTokenManagerInterface.php b/src/Symfony/Component/Security/Csrf/CsrfTokenManagerInterface.php index 2b9254b829..050b6c1ef1 100644 --- a/src/Symfony/Component/Security/Csrf/CsrfTokenManagerInterface.php +++ b/src/Symfony/Component/Security/Csrf/CsrfTokenManagerInterface.php @@ -62,7 +62,7 @@ interface CsrfTokenManagerInterface * * @param CsrfToken $token A CSRF token * - * @return Boolean 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/TokenGenerator/UriSafeTokenGenerator.php b/src/Symfony/Component/Security/Csrf/TokenGenerator/UriSafeTokenGenerator.php index 1bf72e5ee0..122bc02bfb 100644 --- a/src/Symfony/Component/Security/Csrf/TokenGenerator/UriSafeTokenGenerator.php +++ b/src/Symfony/Component/Security/Csrf/TokenGenerator/UriSafeTokenGenerator.php @@ -32,7 +32,7 @@ class UriSafeTokenGenerator implements TokenGeneratorInterface /** * The amount of entropy collected for each token (in bits). * - * @var integer + * @var int */ private $entropy; diff --git a/src/Symfony/Component/Security/Csrf/TokenStorage/NativeSessionTokenStorage.php b/src/Symfony/Component/Security/Csrf/TokenStorage/NativeSessionTokenStorage.php index 8e9b280008..af5931b40b 100644 --- a/src/Symfony/Component/Security/Csrf/TokenStorage/NativeSessionTokenStorage.php +++ b/src/Symfony/Component/Security/Csrf/TokenStorage/NativeSessionTokenStorage.php @@ -28,7 +28,7 @@ class NativeSessionTokenStorage implements TokenStorageInterface const SESSION_NAMESPACE = '_csrf'; /** - * @var Boolean + * @var bool */ private $sessionStarted = false; diff --git a/src/Symfony/Component/Security/Csrf/TokenStorage/TokenStorageInterface.php b/src/Symfony/Component/Security/Csrf/TokenStorage/TokenStorageInterface.php index 3fb3191249..ea3a6a8f55 100644 --- a/src/Symfony/Component/Security/Csrf/TokenStorage/TokenStorageInterface.php +++ b/src/Symfony/Component/Security/Csrf/TokenStorage/TokenStorageInterface.php @@ -53,7 +53,7 @@ interface TokenStorageInterface * * @param string $tokenId The token ID * - * @return Boolean Whether a token exists with the given ID + * @return bool Whether a token exists with the given ID */ public function hasToken($tokenId); }