From e96b018805e6c37c88e1d248194f4811e29e58c5 Mon Sep 17 00:00:00 2001 From: Fabien Potencier Date: Wed, 16 Apr 2014 12:30:19 +0200 Subject: [PATCH] fixed types in phpdocs --- .../Doctrine/ContainerAwareEventManager.php | 4 +- .../CompilerPass/RegisterMappingsPass.php | 2 +- .../Form/ChoiceList/EntityChoiceList.php | 10 ++--- .../HttpFoundation/DbalSessionHandler.php | 2 +- .../Form/ChoiceList/ModelChoiceList.php | 12 ++--- .../Bridge/Twig/Extension/FormExtension.php | 2 +- .../Bridge/Twig/Form/TwigRendererEngine.php | 2 +- src/Symfony/Bridge/Twig/NodeVisitor/Scope.php | 4 +- src/Symfony/Bridge/Twig/TwigEngine.php | 4 +- .../CacheWarmer/RouterCacheWarmer.php | 2 +- .../CacheWarmer/TemplatePathsCacheWarmer.php | 2 +- .../FrameworkBundle/Console/Application.php | 2 +- .../FrameworkBundle/Controller/Controller.php | 2 +- .../Templating/GlobalVariables.php | 2 +- .../Templating/Loader/FilesystemLoader.php | 4 +- .../DataCollector/SecurityDataCollector.php | 4 +- .../Security/Factory/AbstractFactory.php | 2 +- .../CacheWarmer/TemplateCacheCacheWarmer.php | 2 +- src/Symfony/Component/BrowserKit/Cookie.php | 6 +-- src/Symfony/Component/BrowserKit/History.php | 2 +- src/Symfony/Component/BrowserKit/Response.php | 2 +- .../Component/ClassLoader/ApcClassLoader.php | 2 +- .../Component/ClassLoader/ClassLoader.php | 4 +- .../ClassLoader/DebugClassLoader.php | 2 +- .../ClassLoader/UniversalClassLoader.php | 4 +- .../ClassLoader/WinCacheClassLoader.php | 2 +- .../ClassLoader/XcacheClassLoader.php | 2 +- src/Symfony/Component/Config/ConfigCache.php | 2 +- .../Component/Config/Definition/ArrayNode.php | 2 +- .../Component/Config/Definition/BaseNode.php | 2 +- .../Builder/BooleanNodeDefinition.php | 2 +- .../Builder/IntegerNodeDefinition.php | 2 +- .../Config/Definition/Builder/NodeBuilder.php | 4 +- .../Config/Definition/NodeInterface.php | 4 +- .../Config/Definition/PrototypedArrayNode.php | 2 +- src/Symfony/Component/Config/FileLocator.php | 2 +- .../Config/Loader/LoaderInterface.php | 2 +- .../Config/Resource/DirectoryResource.php | 2 +- .../Config/Resource/FileResource.php | 2 +- .../Config/Resource/ResourceInterface.php | 2 +- src/Symfony/Component/Console/Application.php | 8 ++-- .../Component/Console/Command/Command.php | 6 +-- .../Console/Event/ConsoleExceptionEvent.php | 2 +- .../Console/Event/ConsoleTerminateEvent.php | 4 +- .../Console/Formatter/OutputFormatter.php | 6 +-- .../Formatter/OutputFormatterInterface.php | 4 +- .../Component/Console/Helper/DialogHelper.php | 6 +-- .../Component/Console/Helper/Helper.php | 2 +- .../Component/Console/Helper/HelperSet.php | 2 +- .../Console/Helper/ProgressHelper.php | 6 +-- .../Component/Console/Input/ArgvInput.php | 2 +- .../Component/Console/Input/ArrayInput.php | 2 +- src/Symfony/Component/Console/Input/Input.php | 6 +-- .../Component/Console/Input/InputArgument.php | 4 +- .../Console/Input/InputDefinition.php | 10 ++--- .../Console/Input/InputInterface.php | 8 ++-- .../Component/Console/Input/InputOption.php | 10 ++--- .../Console/Output/ConsoleOutput.php | 2 +- .../Console/Output/OutputInterface.php | 4 +- .../Component/Console/Output/StreamOutput.php | 2 +- src/Symfony/Component/Console/Shell.php | 2 +- .../Console/Tester/ApplicationTester.php | 2 +- .../Console/Tester/CommandTester.php | 2 +- .../Parser/Handler/HandlerInterface.php | 2 +- .../Component/CssSelector/Parser/Token.php | 14 +++--- .../CssSelector/Parser/TokenStream.php | 4 +- .../XPath/Extension/NodeExtension.php | 4 +- .../Component/DependencyInjection/Alias.php | 2 +- .../Compiler/InlineServiceDefinitionsPass.php | 2 +- .../Compiler/RepeatedPass.php | 2 +- .../Compiler/ServiceReferenceGraph.php | 2 +- .../Compiler/ServiceReferenceGraphNode.php | 4 +- .../DependencyInjection/Container.php | 12 ++--- .../DependencyInjection/ContainerBuilder.php | 10 ++--- .../ContainerInterface.php | 8 ++-- .../DependencyInjection/Definition.php | 14 +++--- .../DependencyInjection/Dumper/PhpDumper.php | 4 +- .../Extension/Extension.php | 2 +- .../IntrospectableContainerInterface.php | 2 +- .../Loader/ClosureLoader.php | 2 +- .../Loader/IniFileLoader.php | 2 +- .../Loader/PhpFileLoader.php | 2 +- .../Loader/XmlFileLoader.php | 4 +- .../Loader/YamlFileLoader.php | 2 +- .../ParameterBag/ParameterBag.php | 2 +- .../ParameterBag/ParameterBagInterface.php | 2 +- .../DependencyInjection/Reference.php | 2 +- .../DomCrawler/Field/ChoiceFormField.php | 8 ++-- .../Component/DomCrawler/Field/FormField.php | 6 +-- src/Symfony/Component/DomCrawler/Form.php | 4 +- .../DomCrawler/FormFieldRegistry.php | 2 +- .../Component/EventDispatcher/Event.php | 4 +- .../EventDispatcherInterface.php | 2 +- .../EventDispatcher/GenericEvent.php | 4 +- .../Component/Filesystem/Filesystem.php | 4 +- .../Filesystem/Tests/FilesystemTest.php | 2 +- .../Finder/Adapter/AbstractAdapter.php | 2 +- .../Finder/Adapter/AdapterInterface.php | 2 +- .../Finder/Comparator/Comparator.php | 2 +- .../Finder/Iterator/CustomFilterIterator.php | 2 +- .../Iterator/DateRangeFilterIterator.php | 2 +- .../Iterator/DepthRangeFilterIterator.php | 2 +- .../ExcludeDirectoryFilterIterator.php | 2 +- .../Iterator/FileTypeFilterIterator.php | 2 +- .../Iterator/FilecontentFilterIterator.php | 2 +- .../Iterator/FilenameFilterIterator.php | 2 +- .../Iterator/MultiplePcreFilterIterator.php | 2 +- .../Finder/Iterator/PathFilterIterator.php | 2 +- .../Iterator/RecursiveDirectoryIterator.php | 6 +-- .../Iterator/SizeRangeFilterIterator.php | 2 +- .../Component/Form/AbstractExtension.php | 2 +- .../Component/Form/AbstractRendererEngine.php | 4 +- src/Symfony/Component/Form/Button.php | 18 ++++---- src/Symfony/Component/Form/ButtonBuilder.php | 32 +++++++------- .../Component/Form/ClickableInterface.php | 2 +- .../Extension/Core/ChoiceList/ChoiceList.php | 6 +-- .../Core/ChoiceList/ObjectChoiceList.php | 2 +- .../Core/ChoiceList/SimpleChoiceList.php | 4 +- .../BooleanToStringTransformer.php | 2 +- .../DateTimeToStringTransformer.php | 2 +- .../DateTimeToTimestampTransformer.php | 2 +- .../NumberToLocalizedStringTransformer.php | 2 +- .../EventListener/MergeCollectionListener.php | 4 +- .../Core/EventListener/ResizeFormListener.php | 4 +- .../CsrfProvider/CsrfProviderInterface.php | 2 +- .../Csrf/Type/FormTypeCsrfExtension.php | 2 +- .../Templating/TemplatingRendererEngine.php | 4 +- .../Validator/Constraints/FormValidator.php | 2 +- .../Extension/Validator/Util/ServerParams.php | 2 +- .../Validator/ViolationMapper/MappingRule.php | 2 +- .../ViolationMapper/ViolationMapper.php | 4 +- .../ViolationMapper/ViolationPath.php | 4 +- src/Symfony/Component/Form/Form.php | 12 ++--- .../Component/Form/FormBuilderInterface.php | 2 +- .../Component/Form/FormConfigBuilder.php | 22 +++++----- .../Component/Form/FormConfigInterface.php | 22 +++++----- src/Symfony/Component/Form/FormError.php | 4 +- .../Component/Form/FormExtensionInterface.php | 4 +- src/Symfony/Component/Form/FormInterface.php | 16 +++---- .../Component/Form/FormRegistryInterface.php | 2 +- .../Form/FormRendererEngineInterface.php | 2 +- src/Symfony/Component/Form/FormView.php | 8 ++-- src/Symfony/Component/Form/Guess/Guess.php | 12 ++--- src/Symfony/Component/Form/SubmitButton.php | 2 +- .../Form/Test/FormPerformanceTestCase.php | 4 +- .../BooleanToStringTransformerTest.php | 2 +- src/Symfony/Component/Form/Util/FormUtil.php | 2 +- .../Form/Util/OrderedHashMapIterator.php | 6 +-- .../Component/HttpFoundation/AcceptHeader.php | 2 +- .../HttpFoundation/AcceptHeaderItem.php | 2 +- .../Component/HttpFoundation/Cookie.php | 8 ++-- .../MimeType/FileBinaryMimeTypeGuesser.php | 2 +- .../File/MimeType/FileinfoMimeTypeGuesser.php | 2 +- .../HttpFoundation/File/UploadedFile.php | 10 ++--- .../Component/HttpFoundation/HeaderBag.php | 4 +- .../Component/HttpFoundation/IpUtils.php | 6 +-- .../Component/HttpFoundation/ParameterBag.php | 4 +- .../Component/HttpFoundation/Request.php | 16 +++---- .../RequestMatcherInterface.php | 2 +- .../stubs/SessionHandlerInterface.php | 10 ++--- .../Component/HttpFoundation/Response.php | 44 +++++++++---------- .../Attribute/AttributeBagInterface.php | 2 +- .../Session/Flash/FlashBagInterface.php | 2 +- .../Session/SessionInterface.php | 10 ++--- .../Handler/MemcacheSessionHandler.php | 2 +- .../Handler/MemcachedSessionHandler.php | 2 +- .../Session/Storage/MetadataBag.php | 8 ++-- .../Storage/MockArraySessionStorage.php | 4 +- .../Session/Storage/NativeSessionStorage.php | 4 +- .../Session/Storage/Proxy/AbstractProxy.php | 10 ++--- .../Session/Storage/Proxy/NativeProxy.php | 2 +- .../Storage/SessionStorageInterface.php | 6 +-- .../CacheWarmer/CacheWarmerAggregate.php | 2 +- .../CacheWarmer/CacheWarmerInterface.php | 2 +- .../Controller/ControllerResolver.php | 2 +- .../ControllerResolverInterface.php | 2 +- .../DataCollector/ConfigDataCollector.php | 16 +++---- .../DataCollector/ExceptionDataCollector.php | 6 +-- .../DataCollector/MemoryDataCollector.php | 4 +- .../DataCollector/RouterDataCollector.php | 2 +- .../DataCollector/TimeDataCollector.php | 2 +- .../HttpKernel/Event/GetResponseEvent.php | 2 +- .../HttpKernel/Event/KernelEvent.php | 4 +- .../Exception/HttpExceptionInterface.php | 2 +- .../Fragment/HIncludeFragmentRenderer.php | 4 +- .../Component/HttpKernel/HttpCache/Esi.php | 4 +- .../HttpKernel/HttpCache/HttpCache.php | 6 +-- .../Component/HttpKernel/HttpCache/Store.php | 10 ++--- .../HttpKernel/HttpCache/StoreInterface.php | 8 ++-- .../Component/HttpKernel/KernelInterface.php | 6 +-- .../HttpKernel/Log/DebugLoggerInterface.php | 2 +- .../Profiler/BaseMemcacheProfilerStorage.php | 6 +-- .../Component/HttpKernel/Profiler/Profile.php | 2 +- .../HttpKernel/Profiler/Profiler.php | 6 +-- .../Profiler/ProfilerStorageInterface.php | 2 +- .../Profiler/RedisProfilerStorage.php | 6 +-- .../Tests/Profiler/Mock/MemcacheMock.php | 18 ++++---- .../Tests/Profiler/Mock/MemcachedMock.php | 18 ++++---- .../Tests/Profiler/Mock/RedisMock.php | 20 ++++----- .../Component/HttpKernel/UriSigner.php | 2 +- .../Component/Intl/Collator/Collator.php | 16 +++---- .../DateFormat/FullTransformer.php | 4 +- .../Intl/DateFormatter/IntlDateFormatter.php | 18 ++++---- .../Component/Intl/Globals/IntlGlobals.php | 14 +++--- src/Symfony/Component/Intl/Intl.php | 4 +- src/Symfony/Component/Intl/Locale/Locale.php | 2 +- .../Intl/NumberFormatter/NumberFormatter.php | 32 +++++++------- .../CurrencyBundleInterface.php | 4 +- .../Intl/Resources/stubs/functions.php | 6 +-- .../AbstractIntlDateFormatterTest.php | 4 +- .../AbstractNumberFormatterTest.php | 4 +- .../Component/Intl/Util/IcuVersion.php | 2 +- src/Symfony/Component/Intl/Util/Version.php | 2 +- .../Component/OptionsResolver/Options.php | 6 +-- .../OptionsResolverInterface.php | 4 +- src/Symfony/Component/Process/Process.php | 38 ++++++++-------- .../Component/Process/ProcessPipes.php | 8 ++-- .../PropertyAccess/PropertyAccessor.php | 2 +- .../PropertyAccessorBuilder.php | 4 +- .../Component/PropertyAccess/PropertyPath.php | 2 +- .../PropertyAccess/PropertyPathBuilder.php | 2 +- .../PropertyAccess/PropertyPathInterface.php | 6 +-- .../PropertyPathIteratorInterface.php | 4 +- .../ConfigurableRequirementsInterface.php | 2 +- .../Routing/Generator/UrlGenerator.php | 2 +- .../Routing/Loader/AnnotationClassLoader.php | 2 +- .../Matcher/Dumper/DumperCollection.php | 2 +- .../Component/Routing/RequestContext.php | 2 +- src/Symfony/Component/Routing/Route.php | 6 +-- .../Security/Acl/Dbal/AclProvider.php | 2 +- .../Security/Acl/Dbal/MutableAclProvider.php | 4 +- .../Acl/Domain/PermissionGrantingStrategy.php | 4 +- .../Security/Acl/Model/AclInterface.php | 8 ++-- .../Acl/Model/AuditableEntryInterface.php | 4 +- .../Security/Acl/Model/EntryInterface.php | 6 +-- .../Acl/Model/MutableAclInterface.php | 2 +- .../Acl/Model/ObjectIdentityInterface.php | 2 +- .../PermissionGrantingStrategyInterface.php | 4 +- .../Security/Acl/Permission/MaskBuilder.php | 2 +- .../Acl/Permission/PermissionMapInterface.php | 2 +- .../Component/Security/Acl/Voter/AclVoter.php | 2 +- .../AuthenticationTrustResolverInterface.php | 6 +-- .../AuthenticationProviderInterface.php | 2 +- .../Authentication/Token/AbstractToken.php | 2 +- .../Authentication/Token/TokenInterface.php | 4 +- .../AccessDecisionManagerInterface.php | 4 +- .../Authorization/Voter/VoterInterface.php | 6 +-- .../Core/Encoder/BasePasswordEncoder.php | 4 +- .../Core/Encoder/PasswordEncoderInterface.php | 2 +- .../Core/SecurityContextInterface.php | 2 +- .../Core/User/AdvancedUserInterface.php | 8 ++-- .../Security/Core/User/EquatableInterface.php | 2 +- .../Core/User/UserProviderInterface.php | 2 +- .../Security/Core/Util/StringUtils.php | 2 +- .../AbstractAuthenticationListener.php | 2 +- .../Security/Http/Firewall/LogoutListener.php | 2 +- .../Component/Security/Http/HttpUtils.php | 2 +- .../RememberMe/AbstractRememberMeServices.php | 2 +- .../TokenBasedRememberMeServices.php | 2 +- .../Serializer/Encoder/ChainEncoder.php | 2 +- .../Serializer/Encoder/DecoderInterface.php | 2 +- .../Serializer/Encoder/EncoderInterface.php | 2 +- .../Serializer/Encoder/JsonDecode.php | 6 +-- .../Serializer/Encoder/JsonEncode.php | 2 +- .../Serializer/Encoder/JsonEncoder.php | 4 +- .../Serializer/Encoder/XmlEncoder.php | 22 +++++----- .../Normalizer/CustomNormalizer.php | 4 +- .../Normalizer/DenormalizerInterface.php | 2 +- .../Normalizer/GetSetMethodNormalizer.php | 4 +- .../Normalizer/NormalizerInterface.php | 2 +- .../Component/Stopwatch/StopwatchEvent.php | 10 ++--- .../Component/Stopwatch/StopwatchPeriod.php | 8 ++-- .../Component/Templating/EngineInterface.php | 4 +- .../Templating/Helper/SlotsHelper.php | 4 +- .../Templating/Loader/CacheLoader.php | 4 +- .../Templating/Loader/ChainLoader.php | 4 +- .../Templating/Loader/FilesystemLoader.php | 6 +-- .../Templating/Loader/LoaderInterface.php | 4 +- .../Component/Templating/PhpEngine.php | 8 ++-- .../Component/Translation/Interval.php | 2 +- .../Translation/Loader/MoFileLoader.php | 4 +- .../Translation/MessageCatalogueInterface.php | 4 +- .../Translation/PluralizationRules.php | 2 +- .../Validator/ConstraintViolation.php | 2 +- .../ConstraintViolationInterface.php | 2 +- .../ConstraintViolationListInterface.php | 2 +- .../AbstractComparisonValidator.php | 2 +- .../Validator/Constraints/EmailValidator.php | 4 +- .../Validator/Mapping/ClassMetadata.php | 8 ++-- .../Validator/Mapping/ElementMetadata.php | 2 +- .../Mapping/Loader/LoaderInterface.php | 2 +- .../Validator/Mapping/MemberMetadata.php | 12 ++--- .../Validator/MetadataFactoryInterface.php | 2 +- .../PropertyMetadataContainerInterface.php | 2 +- src/Symfony/Component/Yaml/Dumper.php | 2 +- src/Symfony/Component/Yaml/Escaper.php | 4 +- .../Yaml/Exception/ParseException.php | 2 +- src/Symfony/Component/Yaml/Parser.php | 18 ++++---- 298 files changed, 720 insertions(+), 720 deletions(-) diff --git a/src/Symfony/Bridge/Doctrine/ContainerAwareEventManager.php b/src/Symfony/Bridge/Doctrine/ContainerAwareEventManager.php index 3b07bf49da..ac21ece6e0 100644 --- a/src/Symfony/Bridge/Doctrine/ContainerAwareEventManager.php +++ b/src/Symfony/Bridge/Doctrine/ContainerAwareEventManager.php @@ -44,7 +44,7 @@ class ContainerAwareEventManager extends EventManager * the name of the method that is invoked on listeners. * @param EventArgs $eventArgs The event arguments to pass to the event handlers/listeners. * If not supplied, the single empty EventArgs instance is used. - * @return boolean + * @return bool */ public function dispatchEvent($eventName, EventArgs $eventArgs = null) { @@ -81,7 +81,7 @@ class ContainerAwareEventManager extends EventManager * * @param string $event * - * @return boolean TRUE if the specified event has any listeners, FALSE otherwise. + * @return bool TRUE if the specified event has any listeners, FALSE otherwise. */ public function hasListeners($event) { diff --git a/src/Symfony/Bridge/Doctrine/DependencyInjection/CompilerPass/RegisterMappingsPass.php b/src/Symfony/Bridge/Doctrine/DependencyInjection/CompilerPass/RegisterMappingsPass.php index 64c187469e..ac3ce490aa 100644 --- a/src/Symfony/Bridge/Doctrine/DependencyInjection/CompilerPass/RegisterMappingsPass.php +++ b/src/Symfony/Bridge/Doctrine/DependencyInjection/CompilerPass/RegisterMappingsPass.php @@ -156,7 +156,7 @@ abstract class RegisterMappingsPass implements CompilerPassInterface * * @param ContainerBuilder $container * - * @return boolean whether this compiler pass really should register the mappings + * @return bool whether this compiler pass really should register the mappings */ protected function enabled(ContainerBuilder $container) { diff --git a/src/Symfony/Bridge/Doctrine/Form/ChoiceList/EntityChoiceList.php b/src/Symfony/Bridge/Doctrine/Form/ChoiceList/EntityChoiceList.php index 61f1a4c1a2..c59da0e732 100644 --- a/src/Symfony/Bridge/Doctrine/Form/ChoiceList/EntityChoiceList.php +++ b/src/Symfony/Bridge/Doctrine/Form/ChoiceList/EntityChoiceList.php @@ -59,21 +59,21 @@ class EntityChoiceList extends ObjectChoiceList /** * Whether to use the identifier for index generation * - * @var Boolean + * @var bool */ private $idAsIndex = false; /** * Whether to use the identifier for value generation * - * @var Boolean + * @var bool */ private $idAsValue = false; /** * Whether the entities have already been loaded. * - * @var Boolean + * @var bool */ private $loaded = false; @@ -365,7 +365,7 @@ class EntityChoiceList extends ObjectChoiceList * * @param mixed $entity The choice to create an index for * - * @return integer|string A unique index containing only ASCII letters, + * @return int|string A unique index containing only ASCII letters, * digits and underscores. */ protected function createIndex($entity) @@ -386,7 +386,7 @@ class EntityChoiceList extends ObjectChoiceList * * @param mixed $entity The choice to create a value for * - * @return integer|string A unique value without character limitations. + * @return int|string A unique value without character limitations. */ protected function createValue($entity) { diff --git a/src/Symfony/Bridge/Doctrine/HttpFoundation/DbalSessionHandler.php b/src/Symfony/Bridge/Doctrine/HttpFoundation/DbalSessionHandler.php index 9d822e531a..f2ad6fcfeb 100644 --- a/src/Symfony/Bridge/Doctrine/HttpFoundation/DbalSessionHandler.php +++ b/src/Symfony/Bridge/Doctrine/HttpFoundation/DbalSessionHandler.php @@ -158,7 +158,7 @@ class DbalSessionHandler implements \SessionHandlerInterface * @param string $id * @param string $data * - * @return Boolean + * @return bool */ private function createNewSession($id, $data = '') { diff --git a/src/Symfony/Bridge/Propel1/Form/ChoiceList/ModelChoiceList.php b/src/Symfony/Bridge/Propel1/Form/ChoiceList/ModelChoiceList.php index c3e6c5f6b1..2b04a69623 100644 --- a/src/Symfony/Bridge/Propel1/Form/ChoiceList/ModelChoiceList.php +++ b/src/Symfony/Bridge/Propel1/Form/ChoiceList/ModelChoiceList.php @@ -55,14 +55,14 @@ class ModelChoiceList extends ObjectChoiceList /** * Whether the model objects have already been loaded. * - * @var Boolean + * @var bool */ protected $loaded = false; /** * Whether to use the identifier for index generation. * - * @var Boolean + * @var bool */ private $identifierAsIndex = false; @@ -356,7 +356,7 @@ class ModelChoiceList extends ObjectChoiceList * * @param mixed $model The choice to create an index for * - * @return integer|string A unique index containing only ASCII letters, + * @return int|string A unique index containing only ASCII letters, * digits and underscores. */ protected function createIndex($model) @@ -377,7 +377,7 @@ class ModelChoiceList extends ObjectChoiceList * * @param mixed $model The choice to create a value for * - * @return integer|string A unique value without character limitations. + * @return int|string A unique value without character limitations. */ protected function createValue($model) { @@ -454,7 +454,7 @@ class ModelChoiceList extends ObjectChoiceList * * @param \ColumnMap $column * - * @return Boolean + * @return bool */ private function isScalar(\ColumnMap $column) { @@ -471,7 +471,7 @@ class ModelChoiceList extends ObjectChoiceList * @param mixed $choice * @param mixed $givenChoice * - * @return Boolean + * @return bool */ private function isEqual($choice, $givenChoice) { diff --git a/src/Symfony/Bridge/Twig/Extension/FormExtension.php b/src/Symfony/Bridge/Twig/Extension/FormExtension.php index 429e65c519..74b2618af6 100644 --- a/src/Symfony/Bridge/Twig/Extension/FormExtension.php +++ b/src/Symfony/Bridge/Twig/Extension/FormExtension.php @@ -113,7 +113,7 @@ class FormExtension extends \Twig_Extension * @param ChoiceView $choice The choice to check. * @param string|array $selectedValue The selected value to compare. * - * @return Boolean Whether the choice is selected. + * @return bool Whether the choice is selected. * * @see ChoiceView::isSelected() */ diff --git a/src/Symfony/Bridge/Twig/Form/TwigRendererEngine.php b/src/Symfony/Bridge/Twig/Form/TwigRendererEngine.php index 768a0816fd..cef761d025 100644 --- a/src/Symfony/Bridge/Twig/Form/TwigRendererEngine.php +++ b/src/Symfony/Bridge/Twig/Form/TwigRendererEngine.php @@ -74,7 +74,7 @@ class TwigRendererEngine extends AbstractRendererEngine implements TwigRendererE * @param FormView $view The form view for finding the applying themes. * @param string $blockName The name of the block to load. * - * @return Boolean True if the resource could be loaded, false otherwise. + * @return bool True if the resource could be loaded, false otherwise. */ protected function loadResourceForBlockName($cacheKey, FormView $view, $blockName) { diff --git a/src/Symfony/Bridge/Twig/NodeVisitor/Scope.php b/src/Symfony/Bridge/Twig/NodeVisitor/Scope.php index ce27b6a6b2..de4dc5ee96 100644 --- a/src/Symfony/Bridge/Twig/NodeVisitor/Scope.php +++ b/src/Symfony/Bridge/Twig/NodeVisitor/Scope.php @@ -32,7 +32,7 @@ class Scope private $data; /** - * @var boolean + * @var bool */ private $left; @@ -97,7 +97,7 @@ class Scope * * @param string $key * - * @return boolean + * @return bool */ public function has($key) { diff --git a/src/Symfony/Bridge/Twig/TwigEngine.php b/src/Symfony/Bridge/Twig/TwigEngine.php index 41e15bacaa..936b7d2843 100644 --- a/src/Symfony/Bridge/Twig/TwigEngine.php +++ b/src/Symfony/Bridge/Twig/TwigEngine.php @@ -71,7 +71,7 @@ class TwigEngine implements EngineInterface, StreamingEngineInterface * * @param mixed $name A template name * - * @return Boolean true if the template exists, false otherwise + * @return bool true if the template exists, false otherwise */ public function exists($name) { @@ -99,7 +99,7 @@ class TwigEngine implements EngineInterface, StreamingEngineInterface * * @param string $name A template name * - * @return Boolean True if this class supports the given resource, false otherwise + * @return bool True if this class supports the given resource, false otherwise */ public function supports($name) { diff --git a/src/Symfony/Bundle/FrameworkBundle/CacheWarmer/RouterCacheWarmer.php b/src/Symfony/Bundle/FrameworkBundle/CacheWarmer/RouterCacheWarmer.php index 9fa48da42c..c3826aa822 100644 --- a/src/Symfony/Bundle/FrameworkBundle/CacheWarmer/RouterCacheWarmer.php +++ b/src/Symfony/Bundle/FrameworkBundle/CacheWarmer/RouterCacheWarmer.php @@ -49,7 +49,7 @@ class RouterCacheWarmer implements CacheWarmerInterface /** * Checks whether this warmer is optional or not. * - * @return Boolean always true + * @return bool always true */ public function isOptional() { diff --git a/src/Symfony/Bundle/FrameworkBundle/CacheWarmer/TemplatePathsCacheWarmer.php b/src/Symfony/Bundle/FrameworkBundle/CacheWarmer/TemplatePathsCacheWarmer.php index 0936290107..a23d1bb508 100644 --- a/src/Symfony/Bundle/FrameworkBundle/CacheWarmer/TemplatePathsCacheWarmer.php +++ b/src/Symfony/Bundle/FrameworkBundle/CacheWarmer/TemplatePathsCacheWarmer.php @@ -55,7 +55,7 @@ class TemplatePathsCacheWarmer extends CacheWarmer /** * Checks whether this warmer is optional or not. * - * @return Boolean always true + * @return bool always true */ public function isOptional() { diff --git a/src/Symfony/Bundle/FrameworkBundle/Console/Application.php b/src/Symfony/Bundle/FrameworkBundle/Console/Application.php index 9d7e4ff1a9..e9c1b0a625 100644 --- a/src/Symfony/Bundle/FrameworkBundle/Console/Application.php +++ b/src/Symfony/Bundle/FrameworkBundle/Console/Application.php @@ -63,7 +63,7 @@ class Application extends BaseApplication * @param InputInterface $input An Input instance * @param OutputInterface $output An Output instance * - * @return integer 0 if everything went fine, or an error code + * @return int 0 if everything went fine, or an error code */ public function doRun(InputInterface $input, OutputInterface $output) { diff --git a/src/Symfony/Bundle/FrameworkBundle/Controller/Controller.php b/src/Symfony/Bundle/FrameworkBundle/Controller/Controller.php index adc2533dcb..718ff6c946 100644 --- a/src/Symfony/Bundle/FrameworkBundle/Controller/Controller.php +++ b/src/Symfony/Bundle/FrameworkBundle/Controller/Controller.php @@ -233,7 +233,7 @@ class Controller extends ContainerAware * * @param string $id The service id * - * @return Boolean true if the service id is defined, false otherwise + * @return bool true if the service id is defined, false otherwise */ public function has($id) { diff --git a/src/Symfony/Bundle/FrameworkBundle/Templating/GlobalVariables.php b/src/Symfony/Bundle/FrameworkBundle/Templating/GlobalVariables.php index 80ae03fd0c..e49f279cba 100644 --- a/src/Symfony/Bundle/FrameworkBundle/Templating/GlobalVariables.php +++ b/src/Symfony/Bundle/FrameworkBundle/Templating/GlobalVariables.php @@ -108,7 +108,7 @@ class GlobalVariables /** * Returns the current app debug mode. * - * @return Boolean The current debug mode + * @return bool The current debug mode */ public function getDebug() { diff --git a/src/Symfony/Bundle/FrameworkBundle/Templating/Loader/FilesystemLoader.php b/src/Symfony/Bundle/FrameworkBundle/Templating/Loader/FilesystemLoader.php index 14560e3d77..527152aa68 100644 --- a/src/Symfony/Bundle/FrameworkBundle/Templating/Loader/FilesystemLoader.php +++ b/src/Symfony/Bundle/FrameworkBundle/Templating/Loader/FilesystemLoader.php @@ -40,7 +40,7 @@ class FilesystemLoader implements LoaderInterface * * @param TemplateReferenceInterface $template A template * - * @return FileStorage|Boolean false if the template cannot be loaded, a Storage instance otherwise + * @return FileStorage|bool false if the template cannot be loaded, a Storage instance otherwise */ public function load(TemplateReferenceInterface $template) { @@ -59,7 +59,7 @@ class FilesystemLoader implements LoaderInterface * @param TemplateReferenceInterface $template The template name as an array * @param int $time The last modification time of the cached template (timestamp) * - * @return Boolean + * @return bool */ public function isFresh(TemplateReferenceInterface $template, $time) { diff --git a/src/Symfony/Bundle/SecurityBundle/DataCollector/SecurityDataCollector.php b/src/Symfony/Bundle/SecurityBundle/DataCollector/SecurityDataCollector.php index 997d0153d1..35621d9c27 100644 --- a/src/Symfony/Bundle/SecurityBundle/DataCollector/SecurityDataCollector.php +++ b/src/Symfony/Bundle/SecurityBundle/DataCollector/SecurityDataCollector.php @@ -65,7 +65,7 @@ class SecurityDataCollector extends DataCollector /** * Checks if security is enabled. * - * @return Boolean true if security is enabled, false otherwise + * @return bool true if security is enabled, false otherwise */ public function isEnabled() { @@ -95,7 +95,7 @@ class SecurityDataCollector extends DataCollector /** * Checks if the user is authenticated or not. * - * @return Boolean true if the user is authenticated, false otherwise + * @return bool true if the user is authenticated, false otherwise */ public function isAuthenticated() { diff --git a/src/Symfony/Bundle/SecurityBundle/DependencyInjection/Security/Factory/AbstractFactory.php b/src/Symfony/Bundle/SecurityBundle/DependencyInjection/Security/Factory/AbstractFactory.php index 27f08b0a1f..0caf1a9207 100644 --- a/src/Symfony/Bundle/SecurityBundle/DependencyInjection/Security/Factory/AbstractFactory.php +++ b/src/Symfony/Bundle/SecurityBundle/DependencyInjection/Security/Factory/AbstractFactory.php @@ -146,7 +146,7 @@ abstract class AbstractFactory implements SecurityFactoryInterface * * @param array $config * - * @return Boolean Whether a possibly configured RememberMeServices should be set for this listener + * @return bool Whether a possibly configured RememberMeServices should be set for this listener */ protected function isRememberMeAware($config) { diff --git a/src/Symfony/Bundle/TwigBundle/CacheWarmer/TemplateCacheCacheWarmer.php b/src/Symfony/Bundle/TwigBundle/CacheWarmer/TemplateCacheCacheWarmer.php index dfd9143bc8..0f8a6ba7d6 100644 --- a/src/Symfony/Bundle/TwigBundle/CacheWarmer/TemplateCacheCacheWarmer.php +++ b/src/Symfony/Bundle/TwigBundle/CacheWarmer/TemplateCacheCacheWarmer.php @@ -69,7 +69,7 @@ class TemplateCacheCacheWarmer implements CacheWarmerInterface /** * Checks whether this warmer is optional or not. * - * @return Boolean always true + * @return bool always true */ public function isOptional() { diff --git a/src/Symfony/Component/BrowserKit/Cookie.php b/src/Symfony/Component/BrowserKit/Cookie.php index 7b9c3ed20d..8b1f18ae3e 100644 --- a/src/Symfony/Component/BrowserKit/Cookie.php +++ b/src/Symfony/Component/BrowserKit/Cookie.php @@ -297,7 +297,7 @@ class Cookie /** * Returns the secure flag of the cookie. * - * @return Boolean The cookie secure flag + * @return bool The cookie secure flag * * @api */ @@ -309,7 +309,7 @@ class Cookie /** * Returns the httponly flag of the cookie. * - * @return Boolean The cookie httponly flag + * @return bool The cookie httponly flag * * @api */ @@ -321,7 +321,7 @@ class Cookie /** * Returns true if the cookie has expired. * - * @return Boolean true if the cookie has expired, false otherwise + * @return bool true if the cookie has expired, false otherwise * * @api */ diff --git a/src/Symfony/Component/BrowserKit/History.php b/src/Symfony/Component/BrowserKit/History.php index a22847ef13..961b02e185 100644 --- a/src/Symfony/Component/BrowserKit/History.php +++ b/src/Symfony/Component/BrowserKit/History.php @@ -53,7 +53,7 @@ class History /** * Returns true if the history is empty. * - * @return Boolean true if the history is empty, false otherwise + * @return bool true if the history is empty, false otherwise */ public function isEmpty() { diff --git a/src/Symfony/Component/BrowserKit/Response.php b/src/Symfony/Component/BrowserKit/Response.php index 1babab274e..77aad8376c 100644 --- a/src/Symfony/Component/BrowserKit/Response.php +++ b/src/Symfony/Component/BrowserKit/Response.php @@ -92,7 +92,7 @@ class Response /** * Gets the response status code. * - * @return integer The response status code + * @return int The response status code * * @api */ diff --git a/src/Symfony/Component/ClassLoader/ApcClassLoader.php b/src/Symfony/Component/ClassLoader/ApcClassLoader.php index da049523b8..8ee49fb45d 100644 --- a/src/Symfony/Component/ClassLoader/ApcClassLoader.php +++ b/src/Symfony/Component/ClassLoader/ApcClassLoader.php @@ -99,7 +99,7 @@ class ApcClassLoader * * @param string $class The name of the class * - * @return Boolean|null True, if loaded + * @return bool|null True, if loaded */ public function loadClass($class) { diff --git a/src/Symfony/Component/ClassLoader/ClassLoader.php b/src/Symfony/Component/ClassLoader/ClassLoader.php index 76994d0dfc..1a5e355435 100644 --- a/src/Symfony/Component/ClassLoader/ClassLoader.php +++ b/src/Symfony/Component/ClassLoader/ClassLoader.php @@ -114,7 +114,7 @@ class ClassLoader * Can be used to check if the autoloader uses the include path to check * for classes. * - * @return Boolean + * @return bool */ public function getUseIncludePath() { @@ -144,7 +144,7 @@ class ClassLoader * * @param string $class The name of the class * - * @return Boolean|null True, if loaded + * @return bool|null True, if loaded */ public function loadClass($class) { diff --git a/src/Symfony/Component/ClassLoader/DebugClassLoader.php b/src/Symfony/Component/ClassLoader/DebugClassLoader.php index 842f4744c0..368886478c 100644 --- a/src/Symfony/Component/ClassLoader/DebugClassLoader.php +++ b/src/Symfony/Component/ClassLoader/DebugClassLoader.php @@ -86,7 +86,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/ClassLoader/UniversalClassLoader.php b/src/Symfony/Component/ClassLoader/UniversalClassLoader.php index d2ff02d540..43f9a7d02c 100644 --- a/src/Symfony/Component/ClassLoader/UniversalClassLoader.php +++ b/src/Symfony/Component/ClassLoader/UniversalClassLoader.php @@ -81,7 +81,7 @@ class UniversalClassLoader * Can be used to check if the autoloader uses the include path to check * for classes. * - * @return Boolean + * @return bool */ public function getUseIncludePath() { @@ -243,7 +243,7 @@ class UniversalClassLoader * * @param string $class The name of the class * - * @return Boolean|null True, if loaded + * @return bool|null True, if loaded */ public function loadClass($class) { diff --git a/src/Symfony/Component/ClassLoader/WinCacheClassLoader.php b/src/Symfony/Component/ClassLoader/WinCacheClassLoader.php index 510ef9d982..c88e74bc95 100644 --- a/src/Symfony/Component/ClassLoader/WinCacheClassLoader.php +++ b/src/Symfony/Component/ClassLoader/WinCacheClassLoader.php @@ -96,7 +96,7 @@ class WinCacheClassLoader * * @param string $class The name of the class * - * @return Boolean|null True, if loaded + * @return bool|null True, if loaded */ public function loadClass($class) { diff --git a/src/Symfony/Component/ClassLoader/XcacheClassLoader.php b/src/Symfony/Component/ClassLoader/XcacheClassLoader.php index 095fe89054..299a79af93 100644 --- a/src/Symfony/Component/ClassLoader/XcacheClassLoader.php +++ b/src/Symfony/Component/ClassLoader/XcacheClassLoader.php @@ -93,7 +93,7 @@ class XcacheClassLoader * * @param string $class The name of the class * - * @return Boolean|null True, if loaded + * @return bool|null True, if loaded */ public function loadClass($class) { diff --git a/src/Symfony/Component/Config/ConfigCache.php b/src/Symfony/Component/Config/ConfigCache.php index 22afd31359..e5dae8f324 100644 --- a/src/Symfony/Component/Config/ConfigCache.php +++ b/src/Symfony/Component/Config/ConfigCache.php @@ -56,7 +56,7 @@ class ConfigCache * This method always returns true when debug is off and the * cache file exists. * - * @return Boolean true if the cache is fresh, false otherwise + * @return bool true if the cache is fresh, false otherwise */ public function isFresh() { diff --git a/src/Symfony/Component/Config/Definition/ArrayNode.php b/src/Symfony/Component/Config/Definition/ArrayNode.php index 0f293a340b..2736187bfe 100644 --- a/src/Symfony/Component/Config/Definition/ArrayNode.php +++ b/src/Symfony/Component/Config/Definition/ArrayNode.php @@ -169,7 +169,7 @@ class ArrayNode extends BaseNode implements PrototypeNodeInterface /** * Checks if the node has a default value. * - * @return Boolean + * @return bool */ public function hasDefaultValue() { diff --git a/src/Symfony/Component/Config/Definition/BaseNode.php b/src/Symfony/Component/Config/Definition/BaseNode.php index 9318676df9..39e6d16aff 100644 --- a/src/Symfony/Component/Config/Definition/BaseNode.php +++ b/src/Symfony/Component/Config/Definition/BaseNode.php @@ -178,7 +178,7 @@ abstract class BaseNode implements NodeInterface /** * Checks if this node is required. * - * @return Boolean + * @return bool */ public function isRequired() { diff --git a/src/Symfony/Component/Config/Definition/Builder/BooleanNodeDefinition.php b/src/Symfony/Component/Config/Definition/Builder/BooleanNodeDefinition.php index 3f8713bedb..70b0da7031 100644 --- a/src/Symfony/Component/Config/Definition/Builder/BooleanNodeDefinition.php +++ b/src/Symfony/Component/Config/Definition/Builder/BooleanNodeDefinition.php @@ -33,7 +33,7 @@ class BooleanNodeDefinition extends ScalarNodeDefinition /** * Instantiate a Node * - * @return BooleanNode The node + * @return boolNode The node */ protected function instantiateNode() { diff --git a/src/Symfony/Component/Config/Definition/Builder/IntegerNodeDefinition.php b/src/Symfony/Component/Config/Definition/Builder/IntegerNodeDefinition.php index f6c3c147f3..af6f8875b6 100644 --- a/src/Symfony/Component/Config/Definition/Builder/IntegerNodeDefinition.php +++ b/src/Symfony/Component/Config/Definition/Builder/IntegerNodeDefinition.php @@ -23,7 +23,7 @@ class IntegerNodeDefinition extends NumericNodeDefinition /** * Instantiates a Node. * - * @return IntegerNode The node + * @return intNode The node */ protected function instantiateNode() { diff --git a/src/Symfony/Component/Config/Definition/Builder/NodeBuilder.php b/src/Symfony/Component/Config/Definition/Builder/NodeBuilder.php index 5ea1c0e86e..bf4d09706b 100644 --- a/src/Symfony/Component/Config/Definition/Builder/NodeBuilder.php +++ b/src/Symfony/Component/Config/Definition/Builder/NodeBuilder.php @@ -81,7 +81,7 @@ class NodeBuilder implements NodeParentInterface * * @param string $name The name of the node * - * @return BooleanNodeDefinition The child node + * @return boolNodeDefinition The child node */ public function booleanNode($name) { @@ -93,7 +93,7 @@ class NodeBuilder implements NodeParentInterface * * @param string $name the name of the node * - * @return IntegerNodeDefinition The child node + * @return intNodeDefinition The child node */ public function integerNode($name) { diff --git a/src/Symfony/Component/Config/Definition/NodeInterface.php b/src/Symfony/Component/Config/Definition/NodeInterface.php index cdbc0ef096..67353e8d57 100644 --- a/src/Symfony/Component/Config/Definition/NodeInterface.php +++ b/src/Symfony/Component/Config/Definition/NodeInterface.php @@ -38,14 +38,14 @@ interface NodeInterface /** * Returns true when the node is required. * - * @return Boolean If the node is required + * @return bool If the node is required */ public function isRequired(); /** * Returns true when the node has a default value. * - * @return Boolean If the node has a default value + * @return bool If the node has a default value */ public function hasDefaultValue(); diff --git a/src/Symfony/Component/Config/Definition/PrototypedArrayNode.php b/src/Symfony/Component/Config/Definition/PrototypedArrayNode.php index 6de5036475..80ad452696 100644 --- a/src/Symfony/Component/Config/Definition/PrototypedArrayNode.php +++ b/src/Symfony/Component/Config/Definition/PrototypedArrayNode.php @@ -114,7 +114,7 @@ class PrototypedArrayNode extends ArrayNode /** * Checks if the node has a default value. * - * @return Boolean + * @return bool */ public function hasDefaultValue() { diff --git a/src/Symfony/Component/Config/FileLocator.php b/src/Symfony/Component/Config/FileLocator.php index 000dda1fb5..0da2ad6366 100644 --- a/src/Symfony/Component/Config/FileLocator.php +++ b/src/Symfony/Component/Config/FileLocator.php @@ -80,7 +80,7 @@ class FileLocator implements FileLocatorInterface * * @param string $file A file path * - * @return Boolean + * @return bool */ private function isAbsolutePath($file) { diff --git a/src/Symfony/Component/Config/Loader/LoaderInterface.php b/src/Symfony/Component/Config/Loader/LoaderInterface.php index d0ac5b8bef..f01f7709d2 100644 --- a/src/Symfony/Component/Config/Loader/LoaderInterface.php +++ b/src/Symfony/Component/Config/Loader/LoaderInterface.php @@ -32,7 +32,7 @@ interface LoaderInterface * @param mixed $resource A resource * @param string $type The resource type * - * @return Boolean true if this class supports the given resource, false otherwise + * @return bool true if this class supports the given resource, false otherwise */ public function supports($resource, $type = null); diff --git a/src/Symfony/Component/Config/Resource/DirectoryResource.php b/src/Symfony/Component/Config/Resource/DirectoryResource.php index 710e3065e4..a9e4d76143 100644 --- a/src/Symfony/Component/Config/Resource/DirectoryResource.php +++ b/src/Symfony/Component/Config/Resource/DirectoryResource.php @@ -63,7 +63,7 @@ class DirectoryResource implements ResourceInterface, \Serializable * * @param int $timestamp The last time the resource was loaded * - * @return Boolean true if the resource has not been updated, false otherwise + * @return bool true if the resource has not been updated, false otherwise */ public function isFresh($timestamp) { diff --git a/src/Symfony/Component/Config/Resource/FileResource.php b/src/Symfony/Component/Config/Resource/FileResource.php index 16373f1d5f..5cb4bc7078 100644 --- a/src/Symfony/Component/Config/Resource/FileResource.php +++ b/src/Symfony/Component/Config/Resource/FileResource.php @@ -57,7 +57,7 @@ class FileResource implements ResourceInterface, \Serializable * * @param int $timestamp The last time the resource was loaded * - * @return Boolean true if the resource has not been updated, false otherwise + * @return bool true if the resource has not been updated, false otherwise */ public function isFresh($timestamp) { diff --git a/src/Symfony/Component/Config/Resource/ResourceInterface.php b/src/Symfony/Component/Config/Resource/ResourceInterface.php index 66e03a037b..c0ea9ed7b4 100644 --- a/src/Symfony/Component/Config/Resource/ResourceInterface.php +++ b/src/Symfony/Component/Config/Resource/ResourceInterface.php @@ -30,7 +30,7 @@ interface ResourceInterface * * @param int $timestamp The last time the resource was loaded * - * @return Boolean true if the resource has not been updated, false otherwise + * @return bool true if the resource has not been updated, false otherwise */ public function isFresh($timestamp); diff --git a/src/Symfony/Component/Console/Application.php b/src/Symfony/Component/Console/Application.php index 0753e19ed9..4e394f284b 100644 --- a/src/Symfony/Component/Console/Application.php +++ b/src/Symfony/Component/Console/Application.php @@ -99,7 +99,7 @@ class Application * @param InputInterface $input An Input instance * @param OutputInterface $output An Output instance * - * @return integer 0 if everything went fine, or an error code + * @return int 0 if everything went fine, or an error code * * @throws \Exception When doRun returns Exception * @@ -159,7 +159,7 @@ class Application * @param InputInterface $input An Input instance * @param OutputInterface $output An Output instance * - * @return integer 0 if everything went fine, or an error code + * @return int 0 if everything went fine, or an error code */ public function doRun(InputInterface $input, OutputInterface $output) { @@ -449,7 +449,7 @@ class Application * * @param string $name The command name or alias * - * @return Boolean true if the command exists, false otherwise + * @return bool true if the command exists, false otherwise * * @api */ @@ -890,7 +890,7 @@ class Application * @param InputInterface $input An Input instance * @param OutputInterface $output An Output instance * - * @return integer 0 if everything went fine, or an error code + * @return int 0 if everything went fine, or an error code */ protected function doRunCommand(Command $command, InputInterface $input, OutputInterface $output) { diff --git a/src/Symfony/Component/Console/Command/Command.php b/src/Symfony/Component/Console/Command/Command.php index 7b9e969f2d..ab0785ebe5 100644 --- a/src/Symfony/Component/Console/Command/Command.php +++ b/src/Symfony/Component/Console/Command/Command.php @@ -136,7 +136,7 @@ class Command * Override this to check for x or y and return false if the command can not * run properly under the current conditions. * - * @return Boolean + * @return bool */ public function isEnabled() { @@ -161,7 +161,7 @@ class Command * @param InputInterface $input An InputInterface instance * @param OutputInterface $output An OutputInterface instance * - * @return null|integer null or 0 if everything went fine, or an error code + * @return null|int null or 0 if everything went fine, or an error code * * @throws \LogicException When this abstract method is not implemented * @see setCode() @@ -204,7 +204,7 @@ class Command * @param InputInterface $input An InputInterface instance * @param OutputInterface $output An OutputInterface instance * - * @return integer The command exit code + * @return int The command exit code * * @throws \Exception * diff --git a/src/Symfony/Component/Console/Event/ConsoleExceptionEvent.php b/src/Symfony/Component/Console/Event/ConsoleExceptionEvent.php index fa054ec223..a2c6b74bfe 100644 --- a/src/Symfony/Component/Console/Event/ConsoleExceptionEvent.php +++ b/src/Symfony/Component/Console/Event/ConsoleExceptionEvent.php @@ -58,7 +58,7 @@ class ConsoleExceptionEvent extends ConsoleEvent /** * Gets the exit code. * - * @return integer The command exit code + * @return int The command exit code */ public function getExitCode() { diff --git a/src/Symfony/Component/Console/Event/ConsoleTerminateEvent.php b/src/Symfony/Component/Console/Event/ConsoleTerminateEvent.php index 689bb2a824..476cbacbb6 100644 --- a/src/Symfony/Component/Console/Event/ConsoleTerminateEvent.php +++ b/src/Symfony/Component/Console/Event/ConsoleTerminateEvent.php @@ -25,7 +25,7 @@ class ConsoleTerminateEvent extends ConsoleEvent /** * The exit code of the command. * - * @var integer + * @var int */ private $exitCode; @@ -49,7 +49,7 @@ class ConsoleTerminateEvent extends ConsoleEvent /** * Gets the exit code. * - * @return integer The command exit code + * @return int The command exit code */ public function getExitCode() { diff --git a/src/Symfony/Component/Console/Formatter/OutputFormatter.php b/src/Symfony/Component/Console/Formatter/OutputFormatter.php index 1cf79a4ea8..ca5f28731e 100644 --- a/src/Symfony/Component/Console/Formatter/OutputFormatter.php +++ b/src/Symfony/Component/Console/Formatter/OutputFormatter.php @@ -75,7 +75,7 @@ class OutputFormatter implements OutputFormatterInterface /** * Gets the decorated flag. * - * @return Boolean true if the output will decorate messages, false otherwise + * @return bool true if the output will decorate messages, false otherwise * * @api */ @@ -102,7 +102,7 @@ class OutputFormatter implements OutputFormatterInterface * * @param string $name * - * @return Boolean + * @return bool * * @api */ @@ -194,7 +194,7 @@ class OutputFormatter implements OutputFormatterInterface * * @param string $string * - * @return OutputFormatterStyle|Boolean false if string is not format string + * @return OutputFormatterStyle|bool false if string is not format string */ private function createStyleFromString($string) { diff --git a/src/Symfony/Component/Console/Formatter/OutputFormatterInterface.php b/src/Symfony/Component/Console/Formatter/OutputFormatterInterface.php index 4fe54a580e..151adcd574 100644 --- a/src/Symfony/Component/Console/Formatter/OutputFormatterInterface.php +++ b/src/Symfony/Component/Console/Formatter/OutputFormatterInterface.php @@ -32,7 +32,7 @@ interface OutputFormatterInterface /** * Gets the decorated flag. * - * @return Boolean true if the output will decorate messages, false otherwise + * @return bool true if the output will decorate messages, false otherwise * * @api */ @@ -53,7 +53,7 @@ interface OutputFormatterInterface * * @param string $name * - * @return Boolean + * @return bool * * @api */ diff --git a/src/Symfony/Component/Console/Helper/DialogHelper.php b/src/Symfony/Component/Console/Helper/DialogHelper.php index e552371b6d..6a442ea376 100644 --- a/src/Symfony/Component/Console/Helper/DialogHelper.php +++ b/src/Symfony/Component/Console/Helper/DialogHelper.php @@ -36,7 +36,7 @@ class DialogHelper extends Helper * @param string $errorMessage Message which will be shown if invalid value from choice list would be picked * @param bool $multiselect Select more than one value separated by comma * - * @return integer|string|array The selected value or values (the key of the choices array) + * @return int|string|array The selected value or values (the key of the choices array) * * @throws \InvalidArgumentException */ @@ -225,7 +225,7 @@ class DialogHelper extends Helper * @param string|array $question The question to ask * @param bool $default The default answer if the user enters nothing * - * @return Boolean true if the user has confirmed, false otherwise + * @return bool true if the user has confirmed, false otherwise */ public function askConfirmation(OutputInterface $output, $question, $default = true) { @@ -403,7 +403,7 @@ class DialogHelper extends Helper /** * Return a valid Unix shell * - * @return string|Boolean 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/Helper.php b/src/Symfony/Component/Console/Helper/Helper.php index 534b9f4319..0d3ff3af0a 100644 --- a/src/Symfony/Component/Console/Helper/Helper.php +++ b/src/Symfony/Component/Console/Helper/Helper.php @@ -45,7 +45,7 @@ abstract class Helper implements HelperInterface * * @param string $string The string to check its length * - * @return integer The length of the string + * @return int The length of the string */ protected function strlen($string) { diff --git a/src/Symfony/Component/Console/Helper/HelperSet.php b/src/Symfony/Component/Console/Helper/HelperSet.php index d95c9a3036..498a1a4c0e 100644 --- a/src/Symfony/Component/Console/Helper/HelperSet.php +++ b/src/Symfony/Component/Console/Helper/HelperSet.php @@ -57,7 +57,7 @@ class HelperSet * * @param string $name The helper name * - * @return Boolean true if the helper is defined, false otherwise + * @return bool true if the helper is defined, false otherwise */ public function has($name) { diff --git a/src/Symfony/Component/Console/Helper/ProgressHelper.php b/src/Symfony/Component/Console/Helper/ProgressHelper.php index ee99d69aad..96f10f6b79 100644 --- a/src/Symfony/Component/Console/Helper/ProgressHelper.php +++ b/src/Symfony/Component/Console/Helper/ProgressHelper.php @@ -47,21 +47,21 @@ class ProgressHelper extends Helper /** * Current step * - * @var integer + * @var int */ private $current; /** * Maximum number of steps * - * @var integer + * @var int */ private $max; /** * Start time of the progress bar * - * @var integer + * @var int */ private $startTime; diff --git a/src/Symfony/Component/Console/Input/ArgvInput.php b/src/Symfony/Component/Console/Input/ArgvInput.php index 0d6b327629..3a0f0a7193 100644 --- a/src/Symfony/Component/Console/Input/ArgvInput.php +++ b/src/Symfony/Component/Console/Input/ArgvInput.php @@ -278,7 +278,7 @@ class ArgvInput extends Input * * @param string|array $values The value(s) to look for in the raw parameters (can be an array) * - * @return Boolean true if the value is contained in the raw parameters + * @return bool true if the value is contained in the raw parameters */ public function hasParameterOption($values) { diff --git a/src/Symfony/Component/Console/Input/ArrayInput.php b/src/Symfony/Component/Console/Input/ArrayInput.php index ad9f2caa70..27d91323f3 100644 --- a/src/Symfony/Component/Console/Input/ArrayInput.php +++ b/src/Symfony/Component/Console/Input/ArrayInput.php @@ -65,7 +65,7 @@ class ArrayInput extends Input * * @param string|array $values The values to look for in the raw parameters (can be an array) * - * @return Boolean true if the value is contained in the raw parameters + * @return bool true if the value is contained in the raw parameters */ public function hasParameterOption($values) { diff --git a/src/Symfony/Component/Console/Input/Input.php b/src/Symfony/Component/Console/Input/Input.php index c74ed494ed..7d078c344d 100644 --- a/src/Symfony/Component/Console/Input/Input.php +++ b/src/Symfony/Component/Console/Input/Input.php @@ -80,7 +80,7 @@ abstract class Input implements InputInterface /** * Checks if the input is interactive. * - * @return Boolean Returns true if the input is interactive + * @return bool Returns true if the input is interactive */ public function isInteractive() { @@ -147,7 +147,7 @@ abstract class Input implements InputInterface * * @param string|int $name The InputArgument name or position * - * @return Boolean true if the InputArgument object exists, false otherwise + * @return bool true if the InputArgument object exists, false otherwise */ public function hasArgument($name) { @@ -204,7 +204,7 @@ abstract class Input implements InputInterface * * @param string $name The InputOption name * - * @return Boolean true if the InputOption object exists, false otherwise + * @return bool true if the InputOption object exists, false otherwise */ public function hasOption($name) { diff --git a/src/Symfony/Component/Console/Input/InputArgument.php b/src/Symfony/Component/Console/Input/InputArgument.php index 8ffd2f563d..bf9c99e142 100644 --- a/src/Symfony/Component/Console/Input/InputArgument.php +++ b/src/Symfony/Component/Console/Input/InputArgument.php @@ -69,7 +69,7 @@ class InputArgument /** * Returns true if the argument is required. * - * @return Boolean true if parameter mode is self::REQUIRED, false otherwise + * @return bool true if parameter mode is self::REQUIRED, false otherwise */ public function isRequired() { @@ -79,7 +79,7 @@ class InputArgument /** * Returns true if the argument can take multiple values. * - * @return Boolean true if mode is self::IS_ARRAY, false otherwise + * @return bool true if mode is self::IS_ARRAY, false otherwise */ public function isArray() { diff --git a/src/Symfony/Component/Console/Input/InputDefinition.php b/src/Symfony/Component/Console/Input/InputDefinition.php index f880b5df1a..d45835cf75 100644 --- a/src/Symfony/Component/Console/Input/InputDefinition.php +++ b/src/Symfony/Component/Console/Input/InputDefinition.php @@ -172,7 +172,7 @@ class InputDefinition * * @param string|int $name The InputArgument name or position * - * @return Boolean true if the InputArgument object exists, false otherwise + * @return bool true if the InputArgument object exists, false otherwise * * @api */ @@ -198,7 +198,7 @@ class InputDefinition /** * Returns the number of InputArguments. * - * @return integer The number of InputArguments + * @return int The number of InputArguments */ public function getArgumentCount() { @@ -208,7 +208,7 @@ class InputDefinition /** * Returns the number of required InputArguments. * - * @return integer The number of required InputArguments + * @return int The number of required InputArguments */ public function getArgumentRequiredCount() { @@ -314,7 +314,7 @@ class InputDefinition * * @param string $name The InputOption name * - * @return Boolean true if the InputOption object exists, false otherwise + * @return bool true if the InputOption object exists, false otherwise * * @api */ @@ -340,7 +340,7 @@ class InputDefinition * * @param string $name The InputOption shortcut * - * @return Boolean true if the InputOption object exists, false otherwise + * @return bool true if the InputOption object exists, false otherwise */ public function hasShortcut($name) { diff --git a/src/Symfony/Component/Console/Input/InputInterface.php b/src/Symfony/Component/Console/Input/InputInterface.php index 5b067457ac..befa272c4b 100644 --- a/src/Symfony/Component/Console/Input/InputInterface.php +++ b/src/Symfony/Component/Console/Input/InputInterface.php @@ -33,7 +33,7 @@ interface InputInterface * * @param string|array $values The values to look for in the raw parameters (can be an array) * - * @return Boolean true if the value is contained in the raw parameters + * @return bool true if the value is contained in the raw parameters */ public function hasParameterOption($values); @@ -97,7 +97,7 @@ interface InputInterface * * @param string|int $name The InputArgument name or position * - * @return Boolean true if the InputArgument object exists, false otherwise + * @return bool true if the InputArgument object exists, false otherwise */ public function hasArgument($name); @@ -132,14 +132,14 @@ interface InputInterface * * @param string $name The InputOption name * - * @return Boolean true if the InputOption object exists, false otherwise + * @return bool true if the InputOption object exists, false otherwise */ public function hasOption($name); /** * Is this input means interactive? * - * @return Boolean + * @return bool */ public function isInteractive(); diff --git a/src/Symfony/Component/Console/Input/InputOption.php b/src/Symfony/Component/Console/Input/InputOption.php index 0548d00163..18d05e9064 100644 --- a/src/Symfony/Component/Console/Input/InputOption.php +++ b/src/Symfony/Component/Console/Input/InputOption.php @@ -112,7 +112,7 @@ class InputOption /** * Returns true if the option accepts a value. * - * @return Boolean true if value mode is not self::VALUE_NONE, false otherwise + * @return bool true if value mode is not self::VALUE_NONE, false otherwise */ public function acceptValue() { @@ -122,7 +122,7 @@ class InputOption /** * Returns true if the option requires a value. * - * @return Boolean true if value mode is self::VALUE_REQUIRED, false otherwise + * @return bool true if value mode is self::VALUE_REQUIRED, false otherwise */ public function isValueRequired() { @@ -132,7 +132,7 @@ class InputOption /** * Returns true if the option takes an optional value. * - * @return Boolean true if value mode is self::VALUE_OPTIONAL, false otherwise + * @return bool true if value mode is self::VALUE_OPTIONAL, false otherwise */ public function isValueOptional() { @@ -142,7 +142,7 @@ class InputOption /** * Returns true if the option can take multiple values. * - * @return Boolean true if mode is self::VALUE_IS_ARRAY, false otherwise + * @return bool true if mode is self::VALUE_IS_ARRAY, false otherwise */ public function isArray() { @@ -197,7 +197,7 @@ class InputOption * Checks whether the given option equals this one * * @param InputOption $option option to compare - * @return Boolean + * @return bool */ public function equals(InputOption $option) { diff --git a/src/Symfony/Component/Console/Output/ConsoleOutput.php b/src/Symfony/Component/Console/Output/ConsoleOutput.php index 491ccae416..b5eaf154fa 100644 --- a/src/Symfony/Component/Console/Output/ConsoleOutput.php +++ b/src/Symfony/Component/Console/Output/ConsoleOutput.php @@ -104,7 +104,7 @@ class ConsoleOutput extends StreamOutput implements ConsoleOutputInterface * STDOUT and doesn't properly convert ASCII to EBCDIC, resulting in garbage * output. * - * @return boolean + * @return bool */ protected function hasStdoutSupport() { diff --git a/src/Symfony/Component/Console/Output/OutputInterface.php b/src/Symfony/Component/Console/Output/OutputInterface.php index 27cb70321e..ad128c68c7 100644 --- a/src/Symfony/Component/Console/Output/OutputInterface.php +++ b/src/Symfony/Component/Console/Output/OutputInterface.php @@ -69,7 +69,7 @@ interface OutputInterface /** * Gets the current verbosity of the output. * - * @return integer The current level of verbosity (one of the VERBOSITY constants) + * @return int The current level of verbosity (one of the VERBOSITY constants) * * @api */ @@ -87,7 +87,7 @@ interface OutputInterface /** * Gets the decorated flag. * - * @return Boolean true if the output will decorate messages, false otherwise + * @return bool true if the output will decorate messages, false otherwise * * @api */ diff --git a/src/Symfony/Component/Console/Output/StreamOutput.php b/src/Symfony/Component/Console/Output/StreamOutput.php index f3c44587b6..6415fa2a94 100644 --- a/src/Symfony/Component/Console/Output/StreamOutput.php +++ b/src/Symfony/Component/Console/Output/StreamOutput.php @@ -92,7 +92,7 @@ class StreamOutput extends Output * - Windows without Ansicon and ConEmu * - non tty consoles * - * @return Boolean true if the stream supports colorization, false otherwise + * @return bool true if the stream supports colorization, false otherwise */ protected function hasColorSupport() { diff --git a/src/Symfony/Component/Console/Shell.php b/src/Symfony/Component/Console/Shell.php index 36dcbbcd8b..7f78e9553e 100644 --- a/src/Symfony/Component/Console/Shell.php +++ b/src/Symfony/Component/Console/Shell.php @@ -164,7 +164,7 @@ EOF; * * @param string $text The last segment of the entered text * - * @return Boolean|array A list of guessed strings or true + * @return bool|array A list of guessed strings or true */ private function autocompleter($text) { diff --git a/src/Symfony/Component/Console/Tester/ApplicationTester.php b/src/Symfony/Component/Console/Tester/ApplicationTester.php index 86152685a8..711e5f19e6 100644 --- a/src/Symfony/Component/Console/Tester/ApplicationTester.php +++ b/src/Symfony/Component/Console/Tester/ApplicationTester.php @@ -55,7 +55,7 @@ class ApplicationTester * @param array $input An array of arguments and options * @param array $options An array of options * - * @return integer The command exit code + * @return int The command exit code */ public function run(array $input, $options = array()) { diff --git a/src/Symfony/Component/Console/Tester/CommandTester.php b/src/Symfony/Component/Console/Tester/CommandTester.php index bcb2a31b32..abc1fd8156 100644 --- a/src/Symfony/Component/Console/Tester/CommandTester.php +++ b/src/Symfony/Component/Console/Tester/CommandTester.php @@ -50,7 +50,7 @@ class CommandTester * @param array $input An array of arguments and options * @param array $options An array of options * - * @return integer The command exit code + * @return int The command exit code */ public function execute(array $input, array $options = array()) { diff --git a/src/Symfony/Component/CssSelector/Parser/Handler/HandlerInterface.php b/src/Symfony/Component/CssSelector/Parser/Handler/HandlerInterface.php index 4ac11a17f8..c7a48c0d6e 100644 --- a/src/Symfony/Component/CssSelector/Parser/Handler/HandlerInterface.php +++ b/src/Symfony/Component/CssSelector/Parser/Handler/HandlerInterface.php @@ -28,7 +28,7 @@ interface HandlerInterface * @param Reader $reader * @param TokenStream $stream * - * @return boolean + * @return bool */ public function handle(Reader $reader, TokenStream $stream); } diff --git a/src/Symfony/Component/CssSelector/Parser/Token.php b/src/Symfony/Component/CssSelector/Parser/Token.php index 0abe190a4b..4adfca889d 100644 --- a/src/Symfony/Component/CssSelector/Parser/Token.php +++ b/src/Symfony/Component/CssSelector/Parser/Token.php @@ -81,7 +81,7 @@ class Token } /** - * @return boolean + * @return bool */ public function isFileEnd() { @@ -91,7 +91,7 @@ class Token /** * @param array $values * - * @return boolean + * @return bool */ public function isDelimiter(array $values = array()) { @@ -107,7 +107,7 @@ class Token } /** - * @return boolean + * @return bool */ public function isWhitespace() { @@ -115,7 +115,7 @@ class Token } /** - * @return boolean + * @return bool */ public function isIdentifier() { @@ -123,7 +123,7 @@ class Token } /** - * @return boolean + * @return bool */ public function isHash() { @@ -131,7 +131,7 @@ class Token } /** - * @return boolean + * @return bool */ public function isNumber() { @@ -139,7 +139,7 @@ class Token } /** - * @return boolean + * @return bool */ public function isString() { diff --git a/src/Symfony/Component/CssSelector/Parser/TokenStream.php b/src/Symfony/Component/CssSelector/Parser/TokenStream.php index 40f11525c4..aec4d0d46a 100644 --- a/src/Symfony/Component/CssSelector/Parser/TokenStream.php +++ b/src/Symfony/Component/CssSelector/Parser/TokenStream.php @@ -30,7 +30,7 @@ class TokenStream private $tokens = array(); /** - * @var boolean + * @var bool */ private $frozen = false; @@ -50,7 +50,7 @@ class TokenStream private $peeked = null; /** - * @var boolean + * @var bool */ private $peeking = false; diff --git a/src/Symfony/Component/CssSelector/XPath/Extension/NodeExtension.php b/src/Symfony/Component/CssSelector/XPath/Extension/NodeExtension.php index 3aecfc0166..f86f2b9672 100644 --- a/src/Symfony/Component/CssSelector/XPath/Extension/NodeExtension.php +++ b/src/Symfony/Component/CssSelector/XPath/Extension/NodeExtension.php @@ -73,7 +73,7 @@ class NodeExtension extends AbstractExtension /** * @param int $flag * - * @return boolean + * @return bool */ public function hasFlag($flag) { @@ -261,7 +261,7 @@ class NodeExtension extends AbstractExtension * * @param string $name * - * @return boolean + * @return bool */ private function isSafeName($name) { diff --git a/src/Symfony/Component/DependencyInjection/Alias.php b/src/Symfony/Component/DependencyInjection/Alias.php index 099953d4ee..021b0c650e 100644 --- a/src/Symfony/Component/DependencyInjection/Alias.php +++ b/src/Symfony/Component/DependencyInjection/Alias.php @@ -36,7 +36,7 @@ class Alias /** * Checks if this DI Alias should be public or not. * - * @return Boolean + * @return bool * * @api */ diff --git a/src/Symfony/Component/DependencyInjection/Compiler/InlineServiceDefinitionsPass.php b/src/Symfony/Component/DependencyInjection/Compiler/InlineServiceDefinitionsPass.php index 0ef9a619db..5d4f2bf58b 100644 --- a/src/Symfony/Component/DependencyInjection/Compiler/InlineServiceDefinitionsPass.php +++ b/src/Symfony/Component/DependencyInjection/Compiler/InlineServiceDefinitionsPass.php @@ -109,7 +109,7 @@ class InlineServiceDefinitionsPass implements RepeatablePassInterface * @param string $id * @param Definition $definition * - * @return Boolean If the definition is inlineable + * @return bool If the definition is inlineable */ private function isInlineableDefinition(ContainerBuilder $container, $id, Definition $definition) { diff --git a/src/Symfony/Component/DependencyInjection/Compiler/RepeatedPass.php b/src/Symfony/Component/DependencyInjection/Compiler/RepeatedPass.php index 6073abe69d..9b7db40324 100644 --- a/src/Symfony/Component/DependencyInjection/Compiler/RepeatedPass.php +++ b/src/Symfony/Component/DependencyInjection/Compiler/RepeatedPass.php @@ -22,7 +22,7 @@ use Symfony\Component\DependencyInjection\Exception\InvalidArgumentException; class RepeatedPass implements CompilerPassInterface { /** - * @var Boolean + * @var bool */ private $repeat = false; diff --git a/src/Symfony/Component/DependencyInjection/Compiler/ServiceReferenceGraph.php b/src/Symfony/Component/DependencyInjection/Compiler/ServiceReferenceGraph.php index fbd33eeee1..ffea22f3c2 100644 --- a/src/Symfony/Component/DependencyInjection/Compiler/ServiceReferenceGraph.php +++ b/src/Symfony/Component/DependencyInjection/Compiler/ServiceReferenceGraph.php @@ -41,7 +41,7 @@ class ServiceReferenceGraph * * @param string $id Id to check * - * @return Boolean + * @return bool */ public function hasNode($id) { diff --git a/src/Symfony/Component/DependencyInjection/Compiler/ServiceReferenceGraphNode.php b/src/Symfony/Component/DependencyInjection/Compiler/ServiceReferenceGraphNode.php index 3fd50771d5..8f15bd4dee 100644 --- a/src/Symfony/Component/DependencyInjection/Compiler/ServiceReferenceGraphNode.php +++ b/src/Symfony/Component/DependencyInjection/Compiler/ServiceReferenceGraphNode.php @@ -65,7 +65,7 @@ class ServiceReferenceGraphNode /** * Checks if the value of this node is an Alias. * - * @return Boolean True if the value is an Alias instance + * @return bool True if the value is an Alias instance */ public function isAlias() { @@ -75,7 +75,7 @@ class ServiceReferenceGraphNode /** * Checks if the value of this node is a Definition. * - * @return Boolean True if the value is a Definition instance + * @return bool True if the value is a Definition instance */ public function isDefinition() { diff --git a/src/Symfony/Component/DependencyInjection/Container.php b/src/Symfony/Component/DependencyInjection/Container.php index 701a3b4b65..6c6ca7144a 100644 --- a/src/Symfony/Component/DependencyInjection/Container.php +++ b/src/Symfony/Component/DependencyInjection/Container.php @@ -117,7 +117,7 @@ class Container implements IntrospectableContainerInterface /** * Returns true if the container parameter bag are frozen. * - * @return Boolean true if the container parameter bag are frozen, false otherwise + * @return bool true if the container parameter bag are frozen, false otherwise * * @api */ @@ -159,7 +159,7 @@ class Container implements IntrospectableContainerInterface * * @param string $name The parameter name * - * @return Boolean The presence of parameter in container + * @return bool The presence of parameter in container * * @api */ @@ -232,7 +232,7 @@ class Container implements IntrospectableContainerInterface * * @param string $id The service identifier * - * @return Boolean true if the service is defined, false otherwise + * @return bool true if the service is defined, false otherwise * * @api */ @@ -341,7 +341,7 @@ class Container implements IntrospectableContainerInterface * * @param string $id The service identifier * - * @return Boolean true if service has already been initialized, false otherwise + * @return bool true if service has already been initialized, false otherwise */ public function initialized($id) { @@ -498,7 +498,7 @@ class Container implements IntrospectableContainerInterface * * @param string $name The name of the scope * - * @return Boolean + * @return bool * * @api */ @@ -514,7 +514,7 @@ class Container implements IntrospectableContainerInterface * * @param string $name * - * @return Boolean + * @return bool * * @api */ diff --git a/src/Symfony/Component/DependencyInjection/ContainerBuilder.php b/src/Symfony/Component/DependencyInjection/ContainerBuilder.php index 0d00068e26..4f5b6aab78 100644 --- a/src/Symfony/Component/DependencyInjection/ContainerBuilder.php +++ b/src/Symfony/Component/DependencyInjection/ContainerBuilder.php @@ -94,7 +94,7 @@ class ContainerBuilder extends Container implements TaggedContainerInterface /** * Checks if resources are tracked. * - * @return Boolean true if resources are tracked, false otherwise + * @return bool true if resources are tracked, false otherwise */ public function isTrackingResources() { @@ -168,7 +168,7 @@ class ContainerBuilder extends Container implements TaggedContainerInterface * * @param string $name The name of the extension * - * @return Boolean If the extension exists + * @return bool If the extension exists * * @api */ @@ -430,7 +430,7 @@ class ContainerBuilder extends Container implements TaggedContainerInterface * * @param string $id The service identifier * - * @return Boolean true if the service is defined, false otherwise + * @return bool true if the service is defined, false otherwise * * @api */ @@ -713,7 +713,7 @@ class ContainerBuilder extends Container implements TaggedContainerInterface * * @param string $id The service identifier * - * @return Boolean true if the alias exists, false otherwise + * @return bool true if the alias exists, false otherwise * * @api */ @@ -843,7 +843,7 @@ class ContainerBuilder extends Container implements TaggedContainerInterface * * @param string $id The service identifier * - * @return Boolean true if the service definition exists, false otherwise + * @return bool true if the service definition exists, false otherwise * * @api */ diff --git a/src/Symfony/Component/DependencyInjection/ContainerInterface.php b/src/Symfony/Component/DependencyInjection/ContainerInterface.php index 1951ae7b93..77ee42b57c 100644 --- a/src/Symfony/Component/DependencyInjection/ContainerInterface.php +++ b/src/Symfony/Component/DependencyInjection/ContainerInterface.php @@ -65,7 +65,7 @@ interface ContainerInterface * * @param string $id The service identifier * - * @return Boolean true if the service is defined, false otherwise + * @return bool true if the service is defined, false otherwise * * @api */ @@ -89,7 +89,7 @@ interface ContainerInterface * * @param string $name The parameter name * - * @return Boolean The presence of parameter in container + * @return bool The presence of parameter in container * * @api */ @@ -137,7 +137,7 @@ interface ContainerInterface * * @param string $name * - * @return Boolean + * @return bool * * @api */ @@ -150,7 +150,7 @@ interface ContainerInterface * * @param string $name * - * @return Boolean + * @return bool * * @api */ diff --git a/src/Symfony/Component/DependencyInjection/Definition.php b/src/Symfony/Component/DependencyInjection/Definition.php index b39c80eb57..8ac74ad212 100644 --- a/src/Symfony/Component/DependencyInjection/Definition.php +++ b/src/Symfony/Component/DependencyInjection/Definition.php @@ -359,7 +359,7 @@ class Definition * * @param string $method The method name to search for * - * @return Boolean + * @return bool * * @api */ @@ -450,7 +450,7 @@ class Definition * * @param string $name * - * @return Boolean + * @return bool * * @api */ @@ -564,7 +564,7 @@ class Definition /** * Whether this service is public facing * - * @return Boolean + * @return bool * * @api */ @@ -592,7 +592,7 @@ class Definition /** * Whether this service is synchronized. * - * @return Boolean + * @return bool * * @api */ @@ -618,7 +618,7 @@ class Definition /** * Whether this service is lazy. * - * @return Boolean + * @return bool */ public function isLazy() { @@ -646,7 +646,7 @@ class Definition * Whether this definition is synthetic, that is not constructed by the * container, but dynamically injected. * - * @return Boolean + * @return bool * * @api */ @@ -676,7 +676,7 @@ class Definition * Whether this definition is abstract, that means it merely serves as a * template for other definitions. * - * @return Boolean + * @return bool * * @api */ diff --git a/src/Symfony/Component/DependencyInjection/Dumper/PhpDumper.php b/src/Symfony/Component/DependencyInjection/Dumper/PhpDumper.php index 1e161a0d96..03f5f79cc1 100644 --- a/src/Symfony/Component/DependencyInjection/Dumper/PhpDumper.php +++ b/src/Symfony/Component/DependencyInjection/Dumper/PhpDumper.php @@ -367,7 +367,7 @@ class PhpDumper extends Dumper * @param string $id * @param Definition $definition * - * @return Boolean + * @return bool */ private function isSimpleInstance($id, $definition) { @@ -1107,7 +1107,7 @@ EOF; * @param bool $deep * @param array $visited * - * @return Boolean + * @return bool */ private function hasReference($id, array $arguments, $deep = false, $visited = array()) { diff --git a/src/Symfony/Component/DependencyInjection/Extension/Extension.php b/src/Symfony/Component/DependencyInjection/Extension/Extension.php index c2ce6c639d..0c75040d63 100644 --- a/src/Symfony/Component/DependencyInjection/Extension/Extension.php +++ b/src/Symfony/Component/DependencyInjection/Extension/Extension.php @@ -111,7 +111,7 @@ abstract class Extension implements ExtensionInterface, ConfigurationExtensionIn * @param ContainerBuilder $container * @param array $config * - * @return Boolean Whether the configuration is enabled + * @return bool Whether the configuration is enabled * * @throws InvalidArgumentException When the config is not enableable */ diff --git a/src/Symfony/Component/DependencyInjection/IntrospectableContainerInterface.php b/src/Symfony/Component/DependencyInjection/IntrospectableContainerInterface.php index 34d6cada9a..c2fe7745d2 100644 --- a/src/Symfony/Component/DependencyInjection/IntrospectableContainerInterface.php +++ b/src/Symfony/Component/DependencyInjection/IntrospectableContainerInterface.php @@ -25,7 +25,7 @@ interface IntrospectableContainerInterface extends ContainerInterface * * @param string $id * - * @return Boolean true if the service has been initialized, false otherwise + * @return bool true if the service has been initialized, false otherwise * */ public function initialized($id); diff --git a/src/Symfony/Component/DependencyInjection/Loader/ClosureLoader.php b/src/Symfony/Component/DependencyInjection/Loader/ClosureLoader.php index 775a3525d8..30cbe0ebaf 100644 --- a/src/Symfony/Component/DependencyInjection/Loader/ClosureLoader.php +++ b/src/Symfony/Component/DependencyInjection/Loader/ClosureLoader.php @@ -52,7 +52,7 @@ class ClosureLoader extends Loader * @param mixed $resource A resource * @param string $type The resource type * - * @return Boolean true if this class supports the given resource, false otherwise + * @return bool true if this class supports the given resource, false otherwise */ public function supports($resource, $type = null) { diff --git a/src/Symfony/Component/DependencyInjection/Loader/IniFileLoader.php b/src/Symfony/Component/DependencyInjection/Loader/IniFileLoader.php index e4b99f60d9..189eaa5fde 100644 --- a/src/Symfony/Component/DependencyInjection/Loader/IniFileLoader.php +++ b/src/Symfony/Component/DependencyInjection/Loader/IniFileLoader.php @@ -53,7 +53,7 @@ class IniFileLoader extends FileLoader * @param mixed $resource A resource * @param string $type The resource type * - * @return Boolean true if this class supports the given resource, false otherwise + * @return bool true if this class supports the given resource, false otherwise */ public function supports($resource, $type = null) { diff --git a/src/Symfony/Component/DependencyInjection/Loader/PhpFileLoader.php b/src/Symfony/Component/DependencyInjection/Loader/PhpFileLoader.php index e866a29f70..f3139ad70a 100644 --- a/src/Symfony/Component/DependencyInjection/Loader/PhpFileLoader.php +++ b/src/Symfony/Component/DependencyInjection/Loader/PhpFileLoader.php @@ -48,7 +48,7 @@ class PhpFileLoader extends FileLoader * @param mixed $resource A resource * @param string $type The resource type * - * @return Boolean true if this class supports the given resource, false otherwise + * @return bool true if this class supports the given resource, false otherwise */ public function supports($resource, $type = null) { diff --git a/src/Symfony/Component/DependencyInjection/Loader/XmlFileLoader.php b/src/Symfony/Component/DependencyInjection/Loader/XmlFileLoader.php index e2097b0e6d..4147a403cd 100644 --- a/src/Symfony/Component/DependencyInjection/Loader/XmlFileLoader.php +++ b/src/Symfony/Component/DependencyInjection/Loader/XmlFileLoader.php @@ -66,7 +66,7 @@ class XmlFileLoader extends FileLoader * @param mixed $resource A resource * @param string $type The resource type * - * @return Boolean true if this class supports the given resource, false otherwise + * @return bool true if this class supports the given resource, false otherwise */ public function supports($resource, $type = null) { @@ -279,7 +279,7 @@ class XmlFileLoader extends FileLoader * * @param \DOMDocument $dom * - * @return Boolean + * @return bool * * @throws RuntimeException When extension references a non-existent XSD file */ diff --git a/src/Symfony/Component/DependencyInjection/Loader/YamlFileLoader.php b/src/Symfony/Component/DependencyInjection/Loader/YamlFileLoader.php index fe5f00c418..6f2d4c19a1 100644 --- a/src/Symfony/Component/DependencyInjection/Loader/YamlFileLoader.php +++ b/src/Symfony/Component/DependencyInjection/Loader/YamlFileLoader.php @@ -73,7 +73,7 @@ class YamlFileLoader extends FileLoader * @param mixed $resource A resource * @param string $type The resource type * - * @return Boolean true if this class supports the given resource, false otherwise + * @return bool true if this class supports the given resource, false otherwise */ public function supports($resource, $type = null) { diff --git a/src/Symfony/Component/DependencyInjection/ParameterBag/ParameterBag.php b/src/Symfony/Component/DependencyInjection/ParameterBag/ParameterBag.php index af7ccbd392..b6dd058341 100644 --- a/src/Symfony/Component/DependencyInjection/ParameterBag/ParameterBag.php +++ b/src/Symfony/Component/DependencyInjection/ParameterBag/ParameterBag.php @@ -129,7 +129,7 @@ class ParameterBag implements ParameterBagInterface * * @param string $name The parameter name * - * @return Boolean true if the parameter name is defined, false otherwise + * @return bool true if the parameter name is defined, false otherwise * * @api */ diff --git a/src/Symfony/Component/DependencyInjection/ParameterBag/ParameterBagInterface.php b/src/Symfony/Component/DependencyInjection/ParameterBag/ParameterBagInterface.php index a26d6aee17..990f33a18f 100644 --- a/src/Symfony/Component/DependencyInjection/ParameterBag/ParameterBagInterface.php +++ b/src/Symfony/Component/DependencyInjection/ParameterBag/ParameterBagInterface.php @@ -75,7 +75,7 @@ interface ParameterBagInterface * * @param string $name The parameter name * - * @return Boolean true if the parameter name is defined, false otherwise + * @return bool true if the parameter name is defined, false otherwise * * @api */ diff --git a/src/Symfony/Component/DependencyInjection/Reference.php b/src/Symfony/Component/DependencyInjection/Reference.php index 94cd5b1124..1fb7b13167 100644 --- a/src/Symfony/Component/DependencyInjection/Reference.php +++ b/src/Symfony/Component/DependencyInjection/Reference.php @@ -63,7 +63,7 @@ class Reference /** * Returns true when this Reference is strict * - * @return Boolean + * @return bool */ public function isStrict() { diff --git a/src/Symfony/Component/DomCrawler/Field/ChoiceFormField.php b/src/Symfony/Component/DomCrawler/Field/ChoiceFormField.php index 2e192cb190..58a6bf0bed 100644 --- a/src/Symfony/Component/DomCrawler/Field/ChoiceFormField.php +++ b/src/Symfony/Component/DomCrawler/Field/ChoiceFormField.php @@ -27,7 +27,7 @@ class ChoiceFormField extends FormField */ private $type; /** - * @var Boolean + * @var bool */ private $multiple; /** @@ -38,7 +38,7 @@ class ChoiceFormField extends FormField /** * Returns true if the field should be included in the submitted values. * - * @return Boolean true if the field should be included in the submitted values, false otherwise + * @return bool true if the field should be included in the submitted values, false otherwise */ public function hasValue() { @@ -53,7 +53,7 @@ class ChoiceFormField extends FormField /** * Check if the current selected option is disabled * - * @return Boolean + * @return bool */ public function isDisabled() { @@ -188,7 +188,7 @@ class ChoiceFormField extends FormField /** * Returns true if the field accepts multiple values. * - * @return Boolean true if the field accepts multiple values, false otherwise + * @return bool true if the field accepts multiple values, false otherwise */ public function isMultiple() { diff --git a/src/Symfony/Component/DomCrawler/Field/FormField.php b/src/Symfony/Component/DomCrawler/Field/FormField.php index 6412272c2e..2114b4ed5d 100644 --- a/src/Symfony/Component/DomCrawler/Field/FormField.php +++ b/src/Symfony/Component/DomCrawler/Field/FormField.php @@ -39,7 +39,7 @@ abstract class FormField */ protected $xpath; /** - * @var Boolean + * @var bool */ protected $disabled; @@ -98,7 +98,7 @@ abstract class FormField /** * Returns true if the field should be included in the submitted values. * - * @return Boolean true if the field should be included in the submitted values, false otherwise + * @return bool true if the field should be included in the submitted values, false otherwise */ public function hasValue() { @@ -108,7 +108,7 @@ abstract class FormField /** * Check if the current field is disabled * - * @return Boolean + * @return bool */ public function isDisabled() { diff --git a/src/Symfony/Component/DomCrawler/Form.php b/src/Symfony/Component/DomCrawler/Form.php index 8a974337e3..2b9e43c701 100644 --- a/src/Symfony/Component/DomCrawler/Form.php +++ b/src/Symfony/Component/DomCrawler/Form.php @@ -228,7 +228,7 @@ class Form extends Link implements \ArrayAccess * * @param string $name The field name * - * @return Boolean true if the field exists, false otherwise + * @return bool true if the field exists, false otherwise * * @api */ @@ -296,7 +296,7 @@ class Form extends Link implements \ArrayAccess * * @param string $name The field name * - * @return Boolean true if the field exists, false otherwise + * @return bool true if the field exists, false otherwise */ public function offsetExists($name) { diff --git a/src/Symfony/Component/DomCrawler/FormFieldRegistry.php b/src/Symfony/Component/DomCrawler/FormFieldRegistry.php index 677a9aad31..f37e05025c 100644 --- a/src/Symfony/Component/DomCrawler/FormFieldRegistry.php +++ b/src/Symfony/Component/DomCrawler/FormFieldRegistry.php @@ -99,7 +99,7 @@ class FormFieldRegistry * * @param string $name The fully qualified name of the field * - * @return Boolean Whether the form has the given field + * @return bool Whether the form has the given field */ public function has($name) { diff --git a/src/Symfony/Component/EventDispatcher/Event.php b/src/Symfony/Component/EventDispatcher/Event.php index 42f09eaa51..26ac1b6259 100644 --- a/src/Symfony/Component/EventDispatcher/Event.php +++ b/src/Symfony/Component/EventDispatcher/Event.php @@ -30,7 +30,7 @@ namespace Symfony\Component\EventDispatcher; class Event { /** - * @var Boolean Whether no further event listeners should be triggered + * @var bool Whether no further event listeners should be triggered */ private $propagationStopped = false; @@ -48,7 +48,7 @@ class Event * Returns whether further event listeners should be triggered. * * @see Event::stopPropagation - * @return Boolean Whether propagation was already stopped for this event. + * @return bool Whether propagation was already stopped for this event. * * @api */ diff --git a/src/Symfony/Component/EventDispatcher/EventDispatcherInterface.php b/src/Symfony/Component/EventDispatcher/EventDispatcherInterface.php index c2469aafb7..3fdbfd8822 100644 --- a/src/Symfony/Component/EventDispatcher/EventDispatcherInterface.php +++ b/src/Symfony/Component/EventDispatcher/EventDispatcherInterface.php @@ -90,7 +90,7 @@ interface EventDispatcherInterface * * @param string $eventName The name of the event * - * @return Boolean true if the specified event has any listeners, false otherwise + * @return bool true if the specified event has any listeners, false otherwise */ public function hasListeners($eventName = null); } diff --git a/src/Symfony/Component/EventDispatcher/GenericEvent.php b/src/Symfony/Component/EventDispatcher/GenericEvent.php index c226fdf2e5..1e8c44a678 100644 --- a/src/Symfony/Component/EventDispatcher/GenericEvent.php +++ b/src/Symfony/Component/EventDispatcher/GenericEvent.php @@ -118,7 +118,7 @@ class GenericEvent extends Event implements \ArrayAccess, \IteratorAggregate * * @param string $key Key of arguments array. * - * @return boolean + * @return bool */ public function hasArgument($key) { @@ -167,7 +167,7 @@ class GenericEvent extends Event implements \ArrayAccess, \IteratorAggregate * * @param string $key Array key. * - * @return boolean + * @return bool */ public function offsetExists($key) { diff --git a/src/Symfony/Component/Filesystem/Filesystem.php b/src/Symfony/Component/Filesystem/Filesystem.php index 3097ba7d74..b9dc231f6a 100644 --- a/src/Symfony/Component/Filesystem/Filesystem.php +++ b/src/Symfony/Component/Filesystem/Filesystem.php @@ -88,7 +88,7 @@ class Filesystem * * @param string|array|\Traversable $files A filename, an array of files, or a \Traversable instance to check * - * @return Boolean true if the file exists, false otherwise + * @return bool true if the file exists, false otherwise */ public function exists($files) { @@ -410,7 +410,7 @@ class Filesystem * * @param string $file A file path * - * @return Boolean + * @return bool */ public function isAbsolutePath($file) { diff --git a/src/Symfony/Component/Filesystem/Tests/FilesystemTest.php b/src/Symfony/Component/Filesystem/Tests/FilesystemTest.php index 510db4556c..3484db9981 100644 --- a/src/Symfony/Component/Filesystem/Tests/FilesystemTest.php +++ b/src/Symfony/Component/Filesystem/Tests/FilesystemTest.php @@ -956,7 +956,7 @@ class FilesystemTest extends \PHPUnit_Framework_TestCase * * @param string $filePath * - * @return integer + * @return int */ private function getFilePermissions($filePath) { diff --git a/src/Symfony/Component/Finder/Adapter/AbstractAdapter.php b/src/Symfony/Component/Finder/Adapter/AbstractAdapter.php index 939d2b3348..bdb04f5352 100644 --- a/src/Symfony/Component/Finder/Adapter/AbstractAdapter.php +++ b/src/Symfony/Component/Finder/Adapter/AbstractAdapter.php @@ -230,7 +230,7 @@ abstract class AbstractAdapter implements AdapterInterface * * @see isSupported * - * @return Boolean Whether the adapter is supported + * @return bool Whether the adapter is supported */ abstract protected function canBeUsed(); } diff --git a/src/Symfony/Component/Finder/Adapter/AdapterInterface.php b/src/Symfony/Component/Finder/Adapter/AdapterInterface.php index 4bebe8a2a6..e25fc3e1fd 100644 --- a/src/Symfony/Component/Finder/Adapter/AdapterInterface.php +++ b/src/Symfony/Component/Finder/Adapter/AdapterInterface.php @@ -131,7 +131,7 @@ interface AdapterInterface /** * Tests adapter support for current platform. * - * @return Boolean + * @return bool */ public function isSupported(); diff --git a/src/Symfony/Component/Finder/Comparator/Comparator.php b/src/Symfony/Component/Finder/Comparator/Comparator.php index 83c511a73b..4f5e1ffe12 100644 --- a/src/Symfony/Component/Finder/Comparator/Comparator.php +++ b/src/Symfony/Component/Finder/Comparator/Comparator.php @@ -76,7 +76,7 @@ class Comparator * * @param mixed $test A test value * - * @return Boolean + * @return bool */ public function test($test) { diff --git a/src/Symfony/Component/Finder/Iterator/CustomFilterIterator.php b/src/Symfony/Component/Finder/Iterator/CustomFilterIterator.php index 58976c07c7..36d79dbc97 100644 --- a/src/Symfony/Component/Finder/Iterator/CustomFilterIterator.php +++ b/src/Symfony/Component/Finder/Iterator/CustomFilterIterator.php @@ -46,7 +46,7 @@ class CustomFilterIterator extends FilterIterator /** * Filters the iterator values. * - * @return Boolean true if the value should be kept, false otherwise + * @return bool true if the value should be kept, false otherwise */ public function accept() { diff --git a/src/Symfony/Component/Finder/Iterator/DateRangeFilterIterator.php b/src/Symfony/Component/Finder/Iterator/DateRangeFilterIterator.php index 3e5713b8e6..bad682ee54 100644 --- a/src/Symfony/Component/Finder/Iterator/DateRangeFilterIterator.php +++ b/src/Symfony/Component/Finder/Iterator/DateRangeFilterIterator.php @@ -38,7 +38,7 @@ class DateRangeFilterIterator extends FilterIterator /** * Filters the iterator values. * - * @return Boolean true if the value should be kept, false otherwise + * @return bool true if the value should be kept, false otherwise */ public function accept() { diff --git a/src/Symfony/Component/Finder/Iterator/DepthRangeFilterIterator.php b/src/Symfony/Component/Finder/Iterator/DepthRangeFilterIterator.php index 67cf5ded0e..c1c5ce899a 100644 --- a/src/Symfony/Component/Finder/Iterator/DepthRangeFilterIterator.php +++ b/src/Symfony/Component/Finder/Iterator/DepthRangeFilterIterator.php @@ -38,7 +38,7 @@ class DepthRangeFilterIterator extends FilterIterator /** * Filters the iterator values. * - * @return Boolean true if the value should be kept, false otherwise + * @return bool true if the value should be kept, false otherwise */ public function accept() { diff --git a/src/Symfony/Component/Finder/Iterator/ExcludeDirectoryFilterIterator.php b/src/Symfony/Component/Finder/Iterator/ExcludeDirectoryFilterIterator.php index 42c8ce760d..6adaa131ca 100644 --- a/src/Symfony/Component/Finder/Iterator/ExcludeDirectoryFilterIterator.php +++ b/src/Symfony/Component/Finder/Iterator/ExcludeDirectoryFilterIterator.php @@ -39,7 +39,7 @@ class ExcludeDirectoryFilterIterator extends FilterIterator /** * Filters the iterator values. * - * @return Boolean true if the value should be kept, false otherwise + * @return bool true if the value should be kept, false otherwise */ public function accept() { diff --git a/src/Symfony/Component/Finder/Iterator/FileTypeFilterIterator.php b/src/Symfony/Component/Finder/Iterator/FileTypeFilterIterator.php index b716948baf..985475e59d 100644 --- a/src/Symfony/Component/Finder/Iterator/FileTypeFilterIterator.php +++ b/src/Symfony/Component/Finder/Iterator/FileTypeFilterIterator.php @@ -39,7 +39,7 @@ class FileTypeFilterIterator extends FilterIterator /** * Filters the iterator values. * - * @return Boolean true if the value should be kept, false otherwise + * @return bool true if the value should be kept, false otherwise */ public function accept() { diff --git a/src/Symfony/Component/Finder/Iterator/FilecontentFilterIterator.php b/src/Symfony/Component/Finder/Iterator/FilecontentFilterIterator.php index 953f9c3733..9ea3330134 100644 --- a/src/Symfony/Component/Finder/Iterator/FilecontentFilterIterator.php +++ b/src/Symfony/Component/Finder/Iterator/FilecontentFilterIterator.php @@ -22,7 +22,7 @@ class FilecontentFilterIterator extends MultiplePcreFilterIterator /** * Filters the iterator values. * - * @return Boolean true if the value should be kept, false otherwise + * @return bool true if the value should be kept, false otherwise */ public function accept() { diff --git a/src/Symfony/Component/Finder/Iterator/FilenameFilterIterator.php b/src/Symfony/Component/Finder/Iterator/FilenameFilterIterator.php index 3c0f3aa70e..c4e0ccd8e4 100644 --- a/src/Symfony/Component/Finder/Iterator/FilenameFilterIterator.php +++ b/src/Symfony/Component/Finder/Iterator/FilenameFilterIterator.php @@ -24,7 +24,7 @@ class FilenameFilterIterator extends MultiplePcreFilterIterator /** * Filters the iterator values. * - * @return Boolean true if the value should be kept, false otherwise + * @return bool true if the value should be kept, false otherwise */ public function accept() { diff --git a/src/Symfony/Component/Finder/Iterator/MultiplePcreFilterIterator.php b/src/Symfony/Component/Finder/Iterator/MultiplePcreFilterIterator.php index 3a9dd55582..185ed2f046 100644 --- a/src/Symfony/Component/Finder/Iterator/MultiplePcreFilterIterator.php +++ b/src/Symfony/Component/Finder/Iterator/MultiplePcreFilterIterator.php @@ -50,7 +50,7 @@ abstract class MultiplePcreFilterIterator extends FilterIterator * * @param string $str * - * @return Boolean Whether the given string is a regex + * @return bool Whether the given string is a regex */ protected function isRegex($str) { diff --git a/src/Symfony/Component/Finder/Iterator/PathFilterIterator.php b/src/Symfony/Component/Finder/Iterator/PathFilterIterator.php index c736f0b310..828fa41876 100644 --- a/src/Symfony/Component/Finder/Iterator/PathFilterIterator.php +++ b/src/Symfony/Component/Finder/Iterator/PathFilterIterator.php @@ -23,7 +23,7 @@ class PathFilterIterator extends MultiplePcreFilterIterator /** * Filters the iterator values. * - * @return Boolean true if the value should be kept, false otherwise + * @return bool true if the value should be kept, false otherwise */ public function accept() { diff --git a/src/Symfony/Component/Finder/Iterator/RecursiveDirectoryIterator.php b/src/Symfony/Component/Finder/Iterator/RecursiveDirectoryIterator.php index 56303d57a2..de9450dc13 100644 --- a/src/Symfony/Component/Finder/Iterator/RecursiveDirectoryIterator.php +++ b/src/Symfony/Component/Finder/Iterator/RecursiveDirectoryIterator.php @@ -22,12 +22,12 @@ use Symfony\Component\Finder\SplFileInfo; class RecursiveDirectoryIterator extends \RecursiveDirectoryIterator { /** - * @var boolean + * @var bool */ private $ignoreUnreadableDirs; /** - * @var Boolean + * @var bool */ private $rewindable; @@ -97,7 +97,7 @@ class RecursiveDirectoryIterator extends \RecursiveDirectoryIterator /** * Checks if the stream is rewindable. * - * @return Boolean true when the stream is rewindable, false otherwise + * @return bool true when the stream is rewindable, false otherwise */ public function isRewindable() { diff --git a/src/Symfony/Component/Finder/Iterator/SizeRangeFilterIterator.php b/src/Symfony/Component/Finder/Iterator/SizeRangeFilterIterator.php index 77f9cc4434..b345a1692c 100644 --- a/src/Symfony/Component/Finder/Iterator/SizeRangeFilterIterator.php +++ b/src/Symfony/Component/Finder/Iterator/SizeRangeFilterIterator.php @@ -38,7 +38,7 @@ class SizeRangeFilterIterator extends FilterIterator /** * Filters the iterator values. * - * @return Boolean true if the value should be kept, false otherwise + * @return bool true if the value should be kept, false otherwise */ public function accept() { diff --git a/src/Symfony/Component/Form/AbstractExtension.php b/src/Symfony/Component/Form/AbstractExtension.php index 4db77b9bb5..f55fbf940c 100644 --- a/src/Symfony/Component/Form/AbstractExtension.php +++ b/src/Symfony/Component/Form/AbstractExtension.php @@ -39,7 +39,7 @@ abstract class AbstractExtension implements FormExtensionInterface /** * Whether the type guesser has been loaded - * @var Boolean + * @var bool */ private $typeGuesserLoaded = false; diff --git a/src/Symfony/Component/Form/AbstractRendererEngine.php b/src/Symfony/Component/Form/AbstractRendererEngine.php index 76506b73a0..764fe1de70 100644 --- a/src/Symfony/Component/Form/AbstractRendererEngine.php +++ b/src/Symfony/Component/Form/AbstractRendererEngine.php @@ -131,7 +131,7 @@ abstract class AbstractRendererEngine implements FormRendererEngineInterface * @param FormView $view The form view for finding the applying themes. * @param string $blockName The name of the block to load. * - * @return Boolean True if the resource could be loaded, false otherwise. + * @return bool True if the resource could be loaded, false otherwise. */ abstract protected function loadResourceForBlockName($cacheKey, FormView $view, $blockName); @@ -149,7 +149,7 @@ abstract class AbstractRendererEngine implements FormRendererEngineInterface * @param int $hierarchyLevel The level in the block hierarchy that * should be loaded. * - * @return Boolean True if the resource could be loaded, false otherwise. + * @return bool True if the resource could be loaded, false otherwise. */ private function loadResourceForBlockNameHierarchy($cacheKey, FormView $view, array $blockNameHierarchy, $hierarchyLevel) { diff --git a/src/Symfony/Component/Form/Button.php b/src/Symfony/Component/Form/Button.php index fe0ab1ad65..27277755a6 100644 --- a/src/Symfony/Component/Form/Button.php +++ b/src/Symfony/Component/Form/Button.php @@ -32,7 +32,7 @@ class Button implements \IteratorAggregate, FormInterface private $config; /** - * @var Boolean + * @var bool */ private $submitted = false; @@ -51,7 +51,7 @@ class Button implements \IteratorAggregate, FormInterface * * @param mixed $offset * - * @return Boolean Always returns false. + * @return bool Always returns false. */ public function offsetExists($offset) { @@ -152,7 +152,7 @@ class Button implements \IteratorAggregate, FormInterface * * @param string $name * - * @return Boolean Always returns false. + * @return bool Always returns false. */ public function has($name) { @@ -257,7 +257,7 @@ class Button implements \IteratorAggregate, FormInterface /** * Returns whether the button is submitted. * - * @return Boolean true if the button was submitted. + * @return bool true if the button was submitted. */ public function isSubmitted() { @@ -299,7 +299,7 @@ class Button implements \IteratorAggregate, FormInterface /** * Unsupported method. * - * @return Boolean Always returns true. + * @return bool Always returns true. */ public function isValid() { @@ -309,7 +309,7 @@ class Button implements \IteratorAggregate, FormInterface /** * Unsupported method. * - * @return Boolean Always returns false. + * @return bool Always returns false. */ public function isRequired() { @@ -331,7 +331,7 @@ class Button implements \IteratorAggregate, FormInterface /** * Unsupported method. * - * @return Boolean Always returns true. + * @return bool Always returns true. */ public function isEmpty() { @@ -341,7 +341,7 @@ class Button implements \IteratorAggregate, FormInterface /** * Unsupported method. * - * @return Boolean Always returns true. + * @return bool Always returns true. */ public function isSynchronized() { @@ -422,7 +422,7 @@ class Button implements \IteratorAggregate, FormInterface /** * Unsupported method. * - * @return integer Always returns 0. + * @return int Always returns 0. */ public function count() { diff --git a/src/Symfony/Component/Form/ButtonBuilder.php b/src/Symfony/Component/Form/ButtonBuilder.php index b89e01b02f..b6cf6e7125 100644 --- a/src/Symfony/Component/Form/ButtonBuilder.php +++ b/src/Symfony/Component/Form/ButtonBuilder.php @@ -23,12 +23,12 @@ use Symfony\Component\Form\Exception\BadMethodCallException; class ButtonBuilder implements \IteratorAggregate, FormBuilderInterface { /** - * @var Boolean + * @var bool */ protected $locked = false; /** - * @var Boolean + * @var bool */ private $disabled; @@ -135,7 +135,7 @@ class ButtonBuilder implements \IteratorAggregate, FormBuilderInterface * * @param string $name * - * @return Boolean Always returns false. + * @return bool Always returns false. */ public function has($name) { @@ -573,7 +573,7 @@ class ButtonBuilder implements \IteratorAggregate, FormBuilderInterface /** * Unsupported method. * - * @return Boolean Always returns false. + * @return bool Always returns false. */ public function getMapped() { @@ -583,7 +583,7 @@ class ButtonBuilder implements \IteratorAggregate, FormBuilderInterface /** * Unsupported method. * - * @return Boolean Always returns false. + * @return bool Always returns false. */ public function getByReference() { @@ -593,7 +593,7 @@ class ButtonBuilder implements \IteratorAggregate, FormBuilderInterface /** * Unsupported method. * - * @return Boolean Always returns false. + * @return bool Always returns false. */ public function getVirtual() { @@ -603,7 +603,7 @@ class ButtonBuilder implements \IteratorAggregate, FormBuilderInterface /** * Unsupported method. * - * @return Boolean Always returns false. + * @return bool Always returns false. */ public function getCompound() { @@ -653,7 +653,7 @@ class ButtonBuilder implements \IteratorAggregate, FormBuilderInterface /** * Unsupported method. * - * @return Boolean Always returns false. + * @return bool Always returns false. */ public function getRequired() { @@ -663,7 +663,7 @@ class ButtonBuilder implements \IteratorAggregate, FormBuilderInterface /** * Returns whether the button is disabled. * - * @return Boolean Whether the button is disabled. + * @return bool Whether the button is disabled. */ public function getDisabled() { @@ -673,7 +673,7 @@ class ButtonBuilder implements \IteratorAggregate, FormBuilderInterface /** * Unsupported method. * - * @return Boolean Always returns false. + * @return bool Always returns false. */ public function getErrorBubbling() { @@ -705,7 +705,7 @@ class ButtonBuilder implements \IteratorAggregate, FormBuilderInterface * * @param string $name The attribute name. * - * @return Boolean Whether the attribute exists. + * @return bool Whether the attribute exists. */ public function hasAttribute($name) { @@ -748,7 +748,7 @@ class ButtonBuilder implements \IteratorAggregate, FormBuilderInterface /** * Unsupported method. * - * @return Boolean Always returns false. + * @return bool Always returns false. */ public function getDataLocked() { @@ -798,7 +798,7 @@ class ButtonBuilder implements \IteratorAggregate, FormBuilderInterface /** * Unsupported method. * - * @return Boolean Always returns false. + * @return bool Always returns false. */ public function getAutoInitialize() { @@ -808,7 +808,7 @@ class ButtonBuilder implements \IteratorAggregate, FormBuilderInterface /** * Unsupported method. * - * @return Boolean Always returns false. + * @return bool Always returns false. */ public function getInheritData() { @@ -830,7 +830,7 @@ class ButtonBuilder implements \IteratorAggregate, FormBuilderInterface * * @param string $name The option name, * - * @return Boolean Whether the option exists. + * @return bool Whether the option exists. */ public function hasOption($name) { @@ -853,7 +853,7 @@ class ButtonBuilder implements \IteratorAggregate, FormBuilderInterface /** * Unsupported method. * - * @return integer Always returns 0. + * @return int Always returns 0. */ public function count() { diff --git a/src/Symfony/Component/Form/ClickableInterface.php b/src/Symfony/Component/Form/ClickableInterface.php index 893f02df0a..9df55449fb 100644 --- a/src/Symfony/Component/Form/ClickableInterface.php +++ b/src/Symfony/Component/Form/ClickableInterface.php @@ -21,7 +21,7 @@ interface ClickableInterface /** * Returns whether this element was clicked. * - * @return Boolean Whether this element was clicked. + * @return bool Whether this element was clicked. */ public function isClicked(); } diff --git a/src/Symfony/Component/Form/Extension/Core/ChoiceList/ChoiceList.php b/src/Symfony/Component/Form/Extension/Core/ChoiceList/ChoiceList.php index 17ae0a3d9e..d3d8e7dd09 100644 --- a/src/Symfony/Component/Form/Extension/Core/ChoiceList/ChoiceList.php +++ b/src/Symfony/Component/Form/Extension/Core/ChoiceList/ChoiceList.php @@ -377,7 +377,7 @@ class ChoiceList implements ChoiceListInterface * @param mixed $choice The choice to test. * @param array $preferredChoices An array of preferred choices. * - * @return Boolean Whether the choice is preferred. + * @return bool Whether the choice is preferred. */ protected function isPreferred($choice, array $preferredChoices) { @@ -391,7 +391,7 @@ class ChoiceList implements ChoiceListInterface * * @param mixed $choice The choice to create an index for * - * @return integer|string A unique index containing only ASCII letters, + * @return int|string A unique index containing only ASCII letters, * digits and underscores. */ protected function createIndex($choice) @@ -451,7 +451,7 @@ class ChoiceList implements ChoiceListInterface * * @param mixed $index The choice index. * - * @return integer|string The index as PHP array key. + * @return int|string The index as PHP array key. */ protected function fixIndex($index) { diff --git a/src/Symfony/Component/Form/Extension/Core/ChoiceList/ObjectChoiceList.php b/src/Symfony/Component/Form/Extension/Core/ChoiceList/ObjectChoiceList.php index 0f1437db21..22035b8f75 100644 --- a/src/Symfony/Component/Form/Extension/Core/ChoiceList/ObjectChoiceList.php +++ b/src/Symfony/Component/Form/Extension/Core/ChoiceList/ObjectChoiceList.php @@ -157,7 +157,7 @@ class ObjectChoiceList extends ChoiceList * * @param mixed $choice The choice to create a value for * - * @return integer|string A unique value without character limitations. + * @return int|string A unique value without character limitations. */ protected function createValue($choice) { diff --git a/src/Symfony/Component/Form/Extension/Core/ChoiceList/SimpleChoiceList.php b/src/Symfony/Component/Form/Extension/Core/ChoiceList/SimpleChoiceList.php index 914dbe5fdb..dbe54265b1 100644 --- a/src/Symfony/Component/Form/Extension/Core/ChoiceList/SimpleChoiceList.php +++ b/src/Symfony/Component/Form/Extension/Core/ChoiceList/SimpleChoiceList.php @@ -124,7 +124,7 @@ class SimpleChoiceList extends ChoiceList * @param mixed $choice The choice to test. * @param array $preferredChoices An array of preferred choices. * - * @return Boolean Whether the choice is preferred. + * @return bool Whether the choice is preferred. */ protected function isPreferred($choice, array $preferredChoices) { @@ -137,7 +137,7 @@ class SimpleChoiceList extends ChoiceList * * @param mixed $choice The choice. * - * @return string|integer A valid PHP array key. + * @return string|int A valid PHP array key. */ protected function fixChoice($choice) { diff --git a/src/Symfony/Component/Form/Extension/Core/DataTransformer/BooleanToStringTransformer.php b/src/Symfony/Component/Form/Extension/Core/DataTransformer/BooleanToStringTransformer.php index cf0e9c1102..aef299b3af 100644 --- a/src/Symfony/Component/Form/Extension/Core/DataTransformer/BooleanToStringTransformer.php +++ b/src/Symfony/Component/Form/Extension/Core/DataTransformer/BooleanToStringTransformer.php @@ -65,7 +65,7 @@ class BooleanToStringTransformer implements DataTransformerInterface * * @param string $value String value. * - * @return Boolean Boolean value. + * @return bool Boolean value. * * @throws TransformationFailedException If the given value is not a string. */ diff --git a/src/Symfony/Component/Form/Extension/Core/DataTransformer/DateTimeToStringTransformer.php b/src/Symfony/Component/Form/Extension/Core/DataTransformer/DateTimeToStringTransformer.php index 32068b06c5..6719a72df3 100644 --- a/src/Symfony/Component/Form/Extension/Core/DataTransformer/DateTimeToStringTransformer.php +++ b/src/Symfony/Component/Form/Extension/Core/DataTransformer/DateTimeToStringTransformer.php @@ -44,7 +44,7 @@ class DateTimeToStringTransformer extends BaseDateTimeTransformer * * This only works as of PHP 5.3.7. * - * @var Boolean + * @var bool */ private $parseUsingPipe; diff --git a/src/Symfony/Component/Form/Extension/Core/DataTransformer/DateTimeToTimestampTransformer.php b/src/Symfony/Component/Form/Extension/Core/DataTransformer/DateTimeToTimestampTransformer.php index d2ca6604db..707ebfc61f 100644 --- a/src/Symfony/Component/Form/Extension/Core/DataTransformer/DateTimeToTimestampTransformer.php +++ b/src/Symfony/Component/Form/Extension/Core/DataTransformer/DateTimeToTimestampTransformer.php @@ -26,7 +26,7 @@ class DateTimeToTimestampTransformer extends BaseDateTimeTransformer * * @param \DateTime $value A \DateTime object * - * @return integer A timestamp + * @return int A timestamp * * @throws TransformationFailedException If the given value is not an instance * of \DateTime or if the output diff --git a/src/Symfony/Component/Form/Extension/Core/DataTransformer/NumberToLocalizedStringTransformer.php b/src/Symfony/Component/Form/Extension/Core/DataTransformer/NumberToLocalizedStringTransformer.php index 2270240d20..78594bf79e 100644 --- a/src/Symfony/Component/Form/Extension/Core/DataTransformer/NumberToLocalizedStringTransformer.php +++ b/src/Symfony/Component/Form/Extension/Core/DataTransformer/NumberToLocalizedStringTransformer.php @@ -90,7 +90,7 @@ class NumberToLocalizedStringTransformer implements DataTransformerInterface * * @param string $value The localized value * - * @return integer|float The numeric value + * @return int|float The numeric value * * @throws TransformationFailedException If the given value is not a string * or if the value can not be transformed. diff --git a/src/Symfony/Component/Form/Extension/Core/EventListener/MergeCollectionListener.php b/src/Symfony/Component/Form/Extension/Core/EventListener/MergeCollectionListener.php index 51ca781a36..b0fbdb54c3 100644 --- a/src/Symfony/Component/Form/Extension/Core/EventListener/MergeCollectionListener.php +++ b/src/Symfony/Component/Form/Extension/Core/EventListener/MergeCollectionListener.php @@ -23,13 +23,13 @@ class MergeCollectionListener implements EventSubscriberInterface { /** * Whether elements may be added to the collection - * @var Boolean + * @var bool */ private $allowAdd; /** * Whether elements may be removed from the collection - * @var Boolean + * @var bool */ private $allowDelete; diff --git a/src/Symfony/Component/Form/Extension/Core/EventListener/ResizeFormListener.php b/src/Symfony/Component/Form/Extension/Core/EventListener/ResizeFormListener.php index 207cbd3d38..022ddc5df3 100644 --- a/src/Symfony/Component/Form/Extension/Core/EventListener/ResizeFormListener.php +++ b/src/Symfony/Component/Form/Extension/Core/EventListener/ResizeFormListener.php @@ -35,13 +35,13 @@ class ResizeFormListener implements EventSubscriberInterface /** * Whether children could be added to the group - * @var Boolean + * @var bool */ protected $allowAdd; /** * Whether children could be removed from the group - * @var Boolean + * @var bool */ protected $allowDelete; diff --git a/src/Symfony/Component/Form/Extension/Csrf/CsrfProvider/CsrfProviderInterface.php b/src/Symfony/Component/Form/Extension/Csrf/CsrfProvider/CsrfProviderInterface.php index 7143b130c8..b1f255e35e 100644 --- a/src/Symfony/Component/Form/Extension/Csrf/CsrfProvider/CsrfProviderInterface.php +++ b/src/Symfony/Component/Form/Extension/Csrf/CsrfProvider/CsrfProviderInterface.php @@ -43,7 +43,7 @@ interface CsrfProviderInterface * @param string $intention The intention used when generating the CSRF token * @param string $token The token supplied by the browser * - * @return Boolean Whether the token supplied by the browser is correct + * @return bool Whether the token supplied by the browser is correct */ public function isCsrfTokenValid($intention, $token); } diff --git a/src/Symfony/Component/Form/Extension/Csrf/Type/FormTypeCsrfExtension.php b/src/Symfony/Component/Form/Extension/Csrf/Type/FormTypeCsrfExtension.php index 28c752a115..845e18b2a2 100644 --- a/src/Symfony/Component/Form/Extension/Csrf/Type/FormTypeCsrfExtension.php +++ b/src/Symfony/Component/Form/Extension/Csrf/Type/FormTypeCsrfExtension.php @@ -31,7 +31,7 @@ class FormTypeCsrfExtension extends AbstractTypeExtension private $defaultCsrfProvider; /** - * @var Boolean + * @var bool */ private $defaultEnabled; diff --git a/src/Symfony/Component/Form/Extension/Templating/TemplatingRendererEngine.php b/src/Symfony/Component/Form/Extension/Templating/TemplatingRendererEngine.php index c1dda60b7a..74790ba330 100644 --- a/src/Symfony/Component/Form/Extension/Templating/TemplatingRendererEngine.php +++ b/src/Symfony/Component/Form/Extension/Templating/TemplatingRendererEngine.php @@ -52,7 +52,7 @@ class TemplatingRendererEngine extends AbstractRendererEngine * @param FormView $view The form view for finding the applying themes. * @param string $blockName The name of the block to load. * - * @return Boolean True if the resource could be loaded, false otherwise. + * @return bool True if the resource could be loaded, false otherwise. */ protected function loadResourceForBlockName($cacheKey, FormView $view, $blockName) { @@ -110,7 +110,7 @@ class TemplatingRendererEngine extends AbstractRendererEngine * @param string $blockName The name of the block to load a resource for. * @param mixed $theme The theme to load the block from. * - * @return Boolean True if the resource could be loaded, false otherwise. + * @return bool True if the resource could be loaded, false otherwise. */ protected function loadResourceFromTheme($cacheKey, $blockName, $theme) { diff --git a/src/Symfony/Component/Form/Extension/Validator/Constraints/FormValidator.php b/src/Symfony/Component/Form/Extension/Validator/Constraints/FormValidator.php index 0df176f7d7..154e865923 100644 --- a/src/Symfony/Component/Form/Extension/Validator/Constraints/FormValidator.php +++ b/src/Symfony/Component/Form/Extension/Validator/Constraints/FormValidator.php @@ -135,7 +135,7 @@ class FormValidator extends ConstraintValidator * * @param FormInterface $form The form to test. * - * @return Boolean Whether the graph walker may walk the data. + * @return bool Whether the graph walker may walk the data. */ private static function allowDataWalking(FormInterface $form) { diff --git a/src/Symfony/Component/Form/Extension/Validator/Util/ServerParams.php b/src/Symfony/Component/Form/Extension/Validator/Util/ServerParams.php index a20bf5ad64..070170980d 100644 --- a/src/Symfony/Component/Form/Extension/Validator/Util/ServerParams.php +++ b/src/Symfony/Component/Form/Extension/Validator/Util/ServerParams.php @@ -19,7 +19,7 @@ class ServerParams /** * Returns maximum post size in bytes. * - * @return null|integer The maximum post size in bytes + * @return null|int The maximum post size in bytes */ public function getPostMaxSize() { diff --git a/src/Symfony/Component/Form/Extension/Validator/ViolationMapper/MappingRule.php b/src/Symfony/Component/Form/Extension/Validator/ViolationMapper/MappingRule.php index 7b96efb4d6..a4df0767b7 100644 --- a/src/Symfony/Component/Form/Extension/Validator/ViolationMapper/MappingRule.php +++ b/src/Symfony/Component/Form/Extension/Validator/ViolationMapper/MappingRule.php @@ -73,7 +73,7 @@ class MappingRule * * @param string $propertyPath The property path to match against the rule. * - * @return Boolean Whether the property path is a prefix of the rule or not. + * @return bool Whether the property path is a prefix of the rule or not. */ public function isPrefix($propertyPath) { diff --git a/src/Symfony/Component/Form/Extension/Validator/ViolationMapper/ViolationMapper.php b/src/Symfony/Component/Form/Extension/Validator/ViolationMapper/ViolationMapper.php index 6ea56eb03b..6e680a08fa 100644 --- a/src/Symfony/Component/Form/Extension/Validator/ViolationMapper/ViolationMapper.php +++ b/src/Symfony/Component/Form/Extension/Validator/ViolationMapper/ViolationMapper.php @@ -25,7 +25,7 @@ use Symfony\Component\Validator\ConstraintViolation; class ViolationMapper implements ViolationMapperInterface { /** - * @var Boolean + * @var bool */ private $allowNonSynchronized; @@ -289,7 +289,7 @@ class ViolationMapper implements ViolationMapperInterface /** * @param FormInterface $form * - * @return Boolean + * @return bool */ private function acceptsErrors(FormInterface $form) { diff --git a/src/Symfony/Component/Form/Extension/Validator/ViolationMapper/ViolationPath.php b/src/Symfony/Component/Form/Extension/Validator/ViolationMapper/ViolationPath.php index 12a4241077..83a7d60478 100644 --- a/src/Symfony/Component/Form/Extension/Validator/ViolationMapper/ViolationPath.php +++ b/src/Symfony/Component/Form/Extension/Validator/ViolationMapper/ViolationPath.php @@ -41,7 +41,7 @@ class ViolationPath implements \IteratorAggregate, PropertyPathInterface private $pathAsString = ''; /** - * @var integer + * @var int */ private $length = 0; @@ -200,7 +200,7 @@ class ViolationPath implements \IteratorAggregate, PropertyPathInterface * * @param int $index The element index. * - * @return Boolean Whether the element maps to a form. + * @return bool Whether the element maps to a form. * * @throws OutOfBoundsException If the offset is invalid. */ diff --git a/src/Symfony/Component/Form/Form.php b/src/Symfony/Component/Form/Form.php index 990d4cb125..dc3ac58d6f 100644 --- a/src/Symfony/Component/Form/Form.php +++ b/src/Symfony/Component/Form/Form.php @@ -86,7 +86,7 @@ class Form implements \IteratorAggregate, FormInterface /** * Whether this form was submitted - * @var Boolean + * @var bool */ private $submitted = false; @@ -124,7 +124,7 @@ class Form implements \IteratorAggregate, FormInterface * Whether the data in model, normalized and view format is * synchronized. Data may not be synchronized if transformation errors * occur. - * @var Boolean + * @var bool */ private $synchronized = true; @@ -138,13 +138,13 @@ class Form implements \IteratorAggregate, FormInterface * manually, making the initialization with the configured default value * superfluous. * - * @var Boolean + * @var bool */ private $defaultDataSet = false; /** * Whether setData() is currently being called. - * @var Boolean + * @var bool */ private $lockSetData = false; @@ -932,7 +932,7 @@ class Form implements \IteratorAggregate, FormInterface * * @param string $name The name of the child * - * @return Boolean + * @return bool */ public function offsetExists($name) { @@ -994,7 +994,7 @@ class Form implements \IteratorAggregate, FormInterface /** * Returns the number of form children (implements the \Countable interface). * - * @return integer The number of embedded form children + * @return int The number of embedded form children */ public function count() { diff --git a/src/Symfony/Component/Form/FormBuilderInterface.php b/src/Symfony/Component/Form/FormBuilderInterface.php index c0eb8c32c7..3294a3d3bd 100644 --- a/src/Symfony/Component/Form/FormBuilderInterface.php +++ b/src/Symfony/Component/Form/FormBuilderInterface.php @@ -67,7 +67,7 @@ interface FormBuilderInterface extends \Traversable, \Countable, FormConfigBuild * * @param string $name * - * @return Boolean + * @return bool */ public function has($name); diff --git a/src/Symfony/Component/Form/FormConfigBuilder.php b/src/Symfony/Component/Form/FormConfigBuilder.php index 99a9df2add..730c63527a 100644 --- a/src/Symfony/Component/Form/FormConfigBuilder.php +++ b/src/Symfony/Component/Form/FormConfigBuilder.php @@ -48,7 +48,7 @@ class FormConfigBuilder implements FormConfigBuilderInterface ); /** - * @var Boolean + * @var bool */ protected $locked = false; @@ -68,22 +68,22 @@ class FormConfigBuilder implements FormConfigBuilderInterface private $propertyPath; /** - * @var Boolean + * @var bool */ private $mapped = true; /** - * @var Boolean + * @var bool */ private $byReference = true; /** - * @var Boolean + * @var bool */ private $inheritData = false; /** - * @var Boolean + * @var bool */ private $compound = false; @@ -108,17 +108,17 @@ class FormConfigBuilder implements FormConfigBuilderInterface private $dataMapper; /** - * @var Boolean + * @var bool */ private $required = true; /** - * @var Boolean + * @var bool */ private $disabled = false; /** - * @var Boolean + * @var bool */ private $errorBubbling = false; @@ -143,7 +143,7 @@ class FormConfigBuilder implements FormConfigBuilderInterface private $dataClass; /** - * @var Boolean + * @var bool */ private $dataLocked; @@ -168,7 +168,7 @@ class FormConfigBuilder implements FormConfigBuilderInterface private $requestHandler; /** - * @var Boolean + * @var bool */ private $autoInitialize = false; @@ -910,7 +910,7 @@ class FormConfigBuilder implements FormConfigBuilderInterface * * @param string $name The tested form name. * - * @return Boolean Whether the name is valid. + * @return bool Whether the name is valid. */ public static function isValidName($name) { diff --git a/src/Symfony/Component/Form/FormConfigInterface.php b/src/Symfony/Component/Form/FormConfigInterface.php index 576fcd8142..ea19165407 100644 --- a/src/Symfony/Component/Form/FormConfigInterface.php +++ b/src/Symfony/Component/Form/FormConfigInterface.php @@ -43,21 +43,21 @@ interface FormConfigInterface * Returns whether the form should be mapped to an element of its * parent's data. * - * @return Boolean Whether the form is mapped. + * @return bool Whether the form is mapped. */ public function getMapped(); /** * Returns whether the form's data should be modified by reference. * - * @return Boolean Whether to modify the form's data by reference. + * @return bool Whether to modify the form's data by reference. */ public function getByReference(); /** * Returns whether the form should read and write the data of its parent. * - * @return Boolean Whether the form should inherit its parent's data. + * @return bool Whether the form should inherit its parent's data. */ public function getInheritData(); @@ -68,7 +68,7 @@ interface FormConfigInterface * children. A form can be compound and have no children at all, like * for example an empty collection form. * - * @return Boolean Whether the form is compound. + * @return bool Whether the form is compound. */ public function getCompound(); @@ -103,21 +103,21 @@ interface FormConfigInterface /** * Returns whether the form is required. * - * @return Boolean Whether the form is required. + * @return bool Whether the form is required. */ public function getRequired(); /** * Returns whether the form is disabled. * - * @return Boolean Whether the form is disabled. + * @return bool Whether the form is disabled. */ public function getDisabled(); /** * Returns whether errors attached to the form will bubble to its parent. * - * @return Boolean Whether errors will bubble up. + * @return bool Whether errors will bubble up. */ public function getErrorBubbling(); @@ -140,7 +140,7 @@ interface FormConfigInterface * * @param string $name The attribute name. * - * @return Boolean Whether the attribute exists. + * @return bool Whether the attribute exists. */ public function hasAttribute($name); @@ -175,7 +175,7 @@ interface FormConfigInterface * this configuration. The data can only be modified then by * submitting the form. * - * @return Boolean Whether the data is locked. + * @return bool Whether the data is locked. */ public function getDataLocked(); @@ -210,7 +210,7 @@ interface FormConfigInterface /** * Returns whether the form should be initialized upon creation. * - * @return Boolean Returns true if the form should be initialized + * @return bool Returns true if the form should be initialized * when created, false otherwise. */ public function getAutoInitialize(); @@ -227,7 +227,7 @@ interface FormConfigInterface * * @param string $name The option name, * - * @return Boolean Whether the option exists. + * @return bool Whether the option exists. */ public function hasOption($name); diff --git a/src/Symfony/Component/Form/FormError.php b/src/Symfony/Component/Form/FormError.php index 871db9c0dd..8927a76065 100644 --- a/src/Symfony/Component/Form/FormError.php +++ b/src/Symfony/Component/Form/FormError.php @@ -37,7 +37,7 @@ class FormError /** * The value for error message pluralization - * @var integer|null + * @var int|null */ protected $messagePluralization; @@ -96,7 +96,7 @@ class FormError /** * Returns the value for error message pluralization. * - * @return integer|null + * @return int|null */ public function getMessagePluralization() { diff --git a/src/Symfony/Component/Form/FormExtensionInterface.php b/src/Symfony/Component/Form/FormExtensionInterface.php index a67055b797..4fcf0b8f73 100644 --- a/src/Symfony/Component/Form/FormExtensionInterface.php +++ b/src/Symfony/Component/Form/FormExtensionInterface.php @@ -32,7 +32,7 @@ interface FormExtensionInterface * * @param string $name The name of the type * - * @return Boolean Whether the type is supported by this extension + * @return bool Whether the type is supported by this extension */ public function hasType($name); @@ -50,7 +50,7 @@ interface FormExtensionInterface * * @param string $name The name of the type * - * @return Boolean Whether the given type has extensions + * @return bool Whether the given type has extensions */ public function hasTypeExtensions($name); diff --git a/src/Symfony/Component/Form/FormInterface.php b/src/Symfony/Component/Form/FormInterface.php index f5a575e69f..67dbb2319b 100644 --- a/src/Symfony/Component/Form/FormInterface.php +++ b/src/Symfony/Component/Form/FormInterface.php @@ -69,7 +69,7 @@ interface FormInterface extends \ArrayAccess, \Traversable, \Countable * * @param string $name The name of the child * - * @return Boolean + * @return bool */ public function has($name); @@ -152,7 +152,7 @@ interface FormInterface extends \ArrayAccess, \Traversable, \Countable /** * Returns whether the form is submitted. * - * @return Boolean true if the form is submitted, false otherwise + * @return bool true if the form is submitted, false otherwise */ public function isSubmitted(); @@ -184,7 +184,7 @@ interface FormInterface extends \ArrayAccess, \Traversable, \Countable * * If the form is not submitted, this method always returns false. * - * @return Boolean + * @return bool */ public function isValid(); @@ -195,7 +195,7 @@ interface FormInterface extends \ArrayAccess, \Traversable, \Countable * will always return false. Otherwise the value set with setRequired() * is returned. * - * @return Boolean + * @return bool */ public function isRequired(); @@ -208,21 +208,21 @@ interface FormInterface extends \ArrayAccess, \Traversable, \Countable * Forms whose parents are disabled are considered disabled regardless of * their own state. * - * @return Boolean + * @return bool */ public function isDisabled(); /** * Returns whether the form is empty. * - * @return Boolean + * @return bool */ public function isEmpty(); /** * Returns whether the data in the different formats is synchronized. * - * @return Boolean + * @return bool */ public function isSynchronized(); @@ -273,7 +273,7 @@ interface FormInterface extends \ArrayAccess, \Traversable, \Countable /** * Returns whether the field is the root of the form tree. * - * @return Boolean + * @return bool */ public function isRoot(); diff --git a/src/Symfony/Component/Form/FormRegistryInterface.php b/src/Symfony/Component/Form/FormRegistryInterface.php index 141c4721c5..b15131c39b 100644 --- a/src/Symfony/Component/Form/FormRegistryInterface.php +++ b/src/Symfony/Component/Form/FormRegistryInterface.php @@ -37,7 +37,7 @@ interface FormRegistryInterface * * @param string $name The name of the type * - * @return Boolean Whether the type is supported + * @return bool Whether the type is supported */ public function hasType($name); diff --git a/src/Symfony/Component/Form/FormRendererEngineInterface.php b/src/Symfony/Component/Form/FormRendererEngineInterface.php index ba92e14e37..9f04e1999a 100644 --- a/src/Symfony/Component/Form/FormRendererEngineInterface.php +++ b/src/Symfony/Component/Form/FormRendererEngineInterface.php @@ -128,7 +128,7 @@ interface FormRendererEngineInterface * the first element of * $blockNameHierarchy. * - * @return integer|Boolean The hierarchy level or false, if no resource was found. + * @return int|bool The hierarchy level or false, if no resource was found. */ public function getResourceHierarchyLevel(FormView $view, array $blockNameHierarchy, $hierarchyLevel); diff --git a/src/Symfony/Component/Form/FormView.php b/src/Symfony/Component/Form/FormView.php index 1f53ec6a40..a807551854 100644 --- a/src/Symfony/Component/Form/FormView.php +++ b/src/Symfony/Component/Form/FormView.php @@ -46,7 +46,7 @@ class FormView implements \ArrayAccess, \IteratorAggregate, \Countable * Row implicitly includes widget, however certain rendering mechanisms * have to skip widget rendering when a row is rendered. * - * @var Boolean + * @var bool */ private $rendered = false; @@ -58,7 +58,7 @@ class FormView implements \ArrayAccess, \IteratorAggregate, \Countable /** * Returns whether the view was already rendered. * - * @return Boolean Whether this view's widget is rendered. + * @return bool Whether this view's widget is rendered. */ public function isRendered() { @@ -110,7 +110,7 @@ class FormView implements \ArrayAccess, \IteratorAggregate, \Countable * * @param string $name The child name * - * @return Boolean Whether the child view exists + * @return bool Whether the child view exists */ public function offsetExists($name) { @@ -150,7 +150,7 @@ class FormView implements \ArrayAccess, \IteratorAggregate, \Countable /** * Implements \Countable. * - * @return integer The number of children views + * @return int The number of children views */ public function count() { diff --git a/src/Symfony/Component/Form/Guess/Guess.php b/src/Symfony/Component/Form/Guess/Guess.php index 0deb838d80..93568c3c52 100644 --- a/src/Symfony/Component/Form/Guess/Guess.php +++ b/src/Symfony/Component/Form/Guess/Guess.php @@ -26,25 +26,25 @@ abstract class Guess { /** * Marks an instance with a value that is extremely likely to be correct - * @var integer + * @var int */ const VERY_HIGH_CONFIDENCE = 3; /** * Marks an instance with a value that is very likely to be correct - * @var integer + * @var int */ const HIGH_CONFIDENCE = 2; /** * Marks an instance with a value that is likely to be correct - * @var integer + * @var int */ const MEDIUM_CONFIDENCE = 1; /** * Marks an instance with a value that may be correct - * @var integer + * @var int */ const LOW_CONFIDENCE = 0; @@ -54,7 +54,7 @@ abstract class Guess * One of VERY_HIGH_CONFIDENCE, HIGH_CONFIDENCE, MEDIUM_CONFIDENCE * and LOW_CONFIDENCE. * - * @var integer + * @var int */ private $confidence; @@ -103,7 +103,7 @@ abstract class Guess /** * Returns the confidence that the guessed value is correct. * - * @return integer One of the constants VERY_HIGH_CONFIDENCE, + * @return int One of the constants VERY_HIGH_CONFIDENCE, * HIGH_CONFIDENCE, MEDIUM_CONFIDENCE and LOW_CONFIDENCE */ public function getConfidence() diff --git a/src/Symfony/Component/Form/SubmitButton.php b/src/Symfony/Component/Form/SubmitButton.php index 1ff65bcbe1..e95cdeeff7 100644 --- a/src/Symfony/Component/Form/SubmitButton.php +++ b/src/Symfony/Component/Form/SubmitButton.php @@ -19,7 +19,7 @@ namespace Symfony\Component\Form; class SubmitButton extends Button implements ClickableInterface { /** - * @var Boolean + * @var bool */ private $clicked = false; diff --git a/src/Symfony/Component/Form/Test/FormPerformanceTestCase.php b/src/Symfony/Component/Form/Test/FormPerformanceTestCase.php index 435bdf1b2d..b0d07555d9 100644 --- a/src/Symfony/Component/Form/Test/FormPerformanceTestCase.php +++ b/src/Symfony/Component/Form/Test/FormPerformanceTestCase.php @@ -22,7 +22,7 @@ namespace Symfony\Component\Form\Test; abstract class FormPerformanceTestCase extends FormIntegrationTestCase { /** - * @var integer + * @var int */ protected $maxRunningTime = 0; @@ -60,7 +60,7 @@ abstract class FormPerformanceTestCase extends FormIntegrationTestCase } /** - * @return integer + * @return int * @since Method available since Release 2.3.0 */ public function getMaxRunningTime() diff --git a/src/Symfony/Component/Form/Tests/Extension/Core/DataTransformer/BooleanToStringTransformerTest.php b/src/Symfony/Component/Form/Tests/Extension/Core/DataTransformer/BooleanToStringTransformerTest.php index a1217783d1..4149160c9c 100644 --- a/src/Symfony/Component/Form/Tests/Extension/Core/DataTransformer/BooleanToStringTransformerTest.php +++ b/src/Symfony/Component/Form/Tests/Extension/Core/DataTransformer/BooleanToStringTransformerTest.php @@ -18,7 +18,7 @@ class BooleanToStringTransformerTest extends \PHPUnit_Framework_TestCase const TRUE_VALUE = '1'; /** - * @var BooleanToStringTransformer + * @var boolToStringTransformer */ protected $transformer; diff --git a/src/Symfony/Component/Form/Util/FormUtil.php b/src/Symfony/Component/Form/Util/FormUtil.php index 7647691e0a..b3beb458be 100644 --- a/src/Symfony/Component/Form/Util/FormUtil.php +++ b/src/Symfony/Component/Form/Util/FormUtil.php @@ -30,7 +30,7 @@ class FormUtil * * @param mixed $data * - * @return Boolean + * @return bool */ public static function isEmpty($data) { diff --git a/src/Symfony/Component/Form/Util/OrderedHashMapIterator.php b/src/Symfony/Component/Form/Util/OrderedHashMapIterator.php index 87cf6a9d39..f606626814 100644 --- a/src/Symfony/Component/Form/Util/OrderedHashMapIterator.php +++ b/src/Symfony/Component/Form/Util/OrderedHashMapIterator.php @@ -33,12 +33,12 @@ class OrderedHashMapIterator implements \Iterator private $orderedKeys; /** - * @var integer + * @var int */ private $cursor; /** - * @var integer + * @var int */ private $cursorId; @@ -48,7 +48,7 @@ class OrderedHashMapIterator implements \Iterator private $managedCursors; /** - * @var string|integer|null + * @var string|int|null */ private $key; diff --git a/src/Symfony/Component/HttpFoundation/AcceptHeader.php b/src/Symfony/Component/HttpFoundation/AcceptHeader.php index 48c10c153f..2a89a86f24 100644 --- a/src/Symfony/Component/HttpFoundation/AcceptHeader.php +++ b/src/Symfony/Component/HttpFoundation/AcceptHeader.php @@ -77,7 +77,7 @@ class AcceptHeader * * @param string $value * - * @return Boolean + * @return bool */ public function has($value) { diff --git a/src/Symfony/Component/HttpFoundation/AcceptHeaderItem.php b/src/Symfony/Component/HttpFoundation/AcceptHeaderItem.php index 0cec4eda13..21a5d155f5 100644 --- a/src/Symfony/Component/HttpFoundation/AcceptHeaderItem.php +++ b/src/Symfony/Component/HttpFoundation/AcceptHeaderItem.php @@ -175,7 +175,7 @@ class AcceptHeaderItem * * @param string $name * - * @return Boolean + * @return bool */ public function hasAttribute($name) { diff --git a/src/Symfony/Component/HttpFoundation/Cookie.php b/src/Symfony/Component/HttpFoundation/Cookie.php index ab4e894c47..d112123bde 100644 --- a/src/Symfony/Component/HttpFoundation/Cookie.php +++ b/src/Symfony/Component/HttpFoundation/Cookie.php @@ -151,7 +151,7 @@ class Cookie /** * Gets the time the cookie expires. * - * @return integer + * @return int * * @api */ @@ -175,7 +175,7 @@ class Cookie /** * Checks whether the cookie should only be transmitted over a secure HTTPS connection from the client. * - * @return Boolean + * @return bool * * @api */ @@ -187,7 +187,7 @@ class Cookie /** * Checks whether the cookie will be made accessible only through the HTTP protocol. * - * @return Boolean + * @return bool * * @api */ @@ -199,7 +199,7 @@ class Cookie /** * Whether this cookie is about to be cleared * - * @return Boolean + * @return bool * * @api */ diff --git a/src/Symfony/Component/HttpFoundation/File/MimeType/FileBinaryMimeTypeGuesser.php b/src/Symfony/Component/HttpFoundation/File/MimeType/FileBinaryMimeTypeGuesser.php index f23ddd2f48..f99e05b509 100644 --- a/src/Symfony/Component/HttpFoundation/File/MimeType/FileBinaryMimeTypeGuesser.php +++ b/src/Symfony/Component/HttpFoundation/File/MimeType/FileBinaryMimeTypeGuesser.php @@ -41,7 +41,7 @@ class FileBinaryMimeTypeGuesser implements MimeTypeGuesserInterface /** * Returns whether this guesser is supported on the current OS * - * @return Boolean + * @return bool */ public static function isSupported() { diff --git a/src/Symfony/Component/HttpFoundation/File/MimeType/FileinfoMimeTypeGuesser.php b/src/Symfony/Component/HttpFoundation/File/MimeType/FileinfoMimeTypeGuesser.php index a6950df2cd..7d7a0b6ac6 100644 --- a/src/Symfony/Component/HttpFoundation/File/MimeType/FileinfoMimeTypeGuesser.php +++ b/src/Symfony/Component/HttpFoundation/File/MimeType/FileinfoMimeTypeGuesser.php @@ -38,7 +38,7 @@ class FileinfoMimeTypeGuesser implements MimeTypeGuesserInterface /** * Returns whether this guesser is supported on the current OS/PHP setup * - * @return Boolean + * @return bool */ public static function isSupported() { diff --git a/src/Symfony/Component/HttpFoundation/File/UploadedFile.php b/src/Symfony/Component/HttpFoundation/File/UploadedFile.php index d89e3f209a..e9f6395201 100644 --- a/src/Symfony/Component/HttpFoundation/File/UploadedFile.php +++ b/src/Symfony/Component/HttpFoundation/File/UploadedFile.php @@ -31,7 +31,7 @@ class UploadedFile extends File * * Local files are used in test mode hence the code should not enforce HTTP uploads. * - * @var Boolean + * @var bool */ private $test = false; @@ -59,7 +59,7 @@ class UploadedFile extends File /** * The UPLOAD_ERR_XXX constant provided by the uploader. * - * @var integer + * @var int */ private $error; @@ -179,7 +179,7 @@ class UploadedFile extends File * It is extracted from the request from which the file has been uploaded. * Then it should not be considered as a safe value. * - * @return integer|null The file size + * @return int|null The file size * * @api */ @@ -194,7 +194,7 @@ class UploadedFile extends File * If the upload was successful, the constant UPLOAD_ERR_OK is returned. * Otherwise one of the other UPLOAD_ERR_XXX constants is returned. * - * @return integer The upload error + * @return int The upload error * * @api */ @@ -206,7 +206,7 @@ class UploadedFile extends File /** * Returns whether the file was uploaded successfully. * - * @return Boolean True if the file has been uploaded with HTTP and no error occurred. + * @return bool True if the file has been uploaded with HTTP and no error occurred. * * @api */ diff --git a/src/Symfony/Component/HttpFoundation/HeaderBag.php b/src/Symfony/Component/HttpFoundation/HeaderBag.php index 693f79e4f9..756f1679b9 100644 --- a/src/Symfony/Component/HttpFoundation/HeaderBag.php +++ b/src/Symfony/Component/HttpFoundation/HeaderBag.php @@ -175,7 +175,7 @@ class HeaderBag implements \IteratorAggregate, \Countable * * @param string $key The HTTP header * - * @return Boolean true if the parameter exists, false otherwise + * @return bool true if the parameter exists, false otherwise * * @api */ @@ -190,7 +190,7 @@ class HeaderBag implements \IteratorAggregate, \Countable * @param string $key The HTTP header name * @param string $value The HTTP value * - * @return Boolean true if the value is contained in the header, false otherwise + * @return bool true if the value is contained in the header, false otherwise * * @api */ diff --git a/src/Symfony/Component/HttpFoundation/IpUtils.php b/src/Symfony/Component/HttpFoundation/IpUtils.php index 98b848108c..815c266400 100644 --- a/src/Symfony/Component/HttpFoundation/IpUtils.php +++ b/src/Symfony/Component/HttpFoundation/IpUtils.php @@ -29,7 +29,7 @@ class IpUtils * @param string $requestIp IP to check * @param string|array $ips List of IPs or subnets (can be a string if only a single one) * - * @return boolean Whether the IP is valid + * @return bool Whether the IP is valid */ public static function checkIp($requestIp, $ips) { @@ -55,7 +55,7 @@ class IpUtils * @param string $requestIp IPv4 address to check * @param string $ip IPv4 address or subnet in CIDR notation * - * @return boolean Whether the IP is valid + * @return bool Whether the IP is valid */ public static function checkIp4($requestIp, $ip) { @@ -83,7 +83,7 @@ class IpUtils * @param string $requestIp IPv6 address to check * @param string $ip IPv6 address or subnet in CIDR notation * - * @return boolean Whether the IP is valid + * @return bool Whether the IP is valid * * @throws \RuntimeException When IPV6 support is not enabled */ diff --git a/src/Symfony/Component/HttpFoundation/ParameterBag.php b/src/Symfony/Component/HttpFoundation/ParameterBag.php index 7067822ee4..ebb17bb66e 100644 --- a/src/Symfony/Component/HttpFoundation/ParameterBag.php +++ b/src/Symfony/Component/HttpFoundation/ParameterBag.php @@ -167,7 +167,7 @@ class ParameterBag implements \IteratorAggregate, \Countable * * @param string $key The key * - * @return Boolean true if the parameter exists, false otherwise + * @return bool true if the parameter exists, false otherwise * * @api */ @@ -244,7 +244,7 @@ class ParameterBag implements \IteratorAggregate, \Countable * @param mixed $default The default value if the parameter key does not exist * @param bool $deep If true, a path like foo[bar] will find deeper items * - * @return integer The filtered value + * @return int The filtered value * * @api */ diff --git a/src/Symfony/Component/HttpFoundation/Request.php b/src/Symfony/Component/HttpFoundation/Request.php index 0cbd2323e7..df616cb395 100644 --- a/src/Symfony/Component/HttpFoundation/Request.php +++ b/src/Symfony/Component/HttpFoundation/Request.php @@ -656,7 +656,7 @@ class Request /** * Checks whether support for the _method request parameter is enabled. * - * @return Boolean True when the _method request parameter is enabled, false otherwise + * @return bool True when the _method request parameter is enabled, false otherwise */ public static function getHttpMethodParameterOverride() { @@ -705,7 +705,7 @@ class Request * Whether the request contains a Session which was started in one of the * previous requests. * - * @return Boolean + * @return bool * * @api */ @@ -722,7 +722,7 @@ class Request * like whether the session is started or not. It is just a way to check if this Request * is associated with a Session instance. * - * @return Boolean true when the Request contains a Session object, false otherwise + * @return bool true when the Request contains a Session object, false otherwise * * @api */ @@ -1090,7 +1090,7 @@ class Request * ("SSL_HTTPS" for instance), configure it via "setTrustedHeaderName()" with * the "client-proto" key. * - * @return Boolean + * @return bool * * @api */ @@ -1376,7 +1376,7 @@ class Request * * @param string $method Uppercase request method (GET, POST etc). * - * @return Boolean + * @return bool */ public function isMethod($method) { @@ -1386,7 +1386,7 @@ class Request /** * Checks whether the method is safe or not. * - * @return Boolean + * @return bool * * @api */ @@ -1434,7 +1434,7 @@ class Request } /** - * @return Boolean + * @return bool */ public function isNoCache() { @@ -1559,7 +1559,7 @@ class Request * It is known to work with common JavaScript frameworks: * @link http://en.wikipedia.org/wiki/List_of_Ajax_frameworks#JavaScript * - * @return Boolean true if the request is an XMLHttpRequest, false otherwise + * @return bool true if the request is an XMLHttpRequest, false otherwise * * @api */ diff --git a/src/Symfony/Component/HttpFoundation/RequestMatcherInterface.php b/src/Symfony/Component/HttpFoundation/RequestMatcherInterface.php index 695fd21788..20e14e3ab2 100644 --- a/src/Symfony/Component/HttpFoundation/RequestMatcherInterface.php +++ b/src/Symfony/Component/HttpFoundation/RequestMatcherInterface.php @@ -25,7 +25,7 @@ interface RequestMatcherInterface * * @param Request $request The request to check for a match * - * @return Boolean true if the request matches, false otherwise + * @return bool true if the request matches, false otherwise * * @api */ diff --git a/src/Symfony/Component/HttpFoundation/Resources/stubs/SessionHandlerInterface.php b/src/Symfony/Component/HttpFoundation/Resources/stubs/SessionHandlerInterface.php index 4a684e1123..0e78a7cf11 100644 --- a/src/Symfony/Component/HttpFoundation/Resources/stubs/SessionHandlerInterface.php +++ b/src/Symfony/Component/HttpFoundation/Resources/stubs/SessionHandlerInterface.php @@ -34,7 +34,7 @@ interface SessionHandlerInterface * * @throws \RuntimeException If something goes wrong starting the session. * - * @return boolean + * @return bool */ public function open($savePath, $sessionName); @@ -43,7 +43,7 @@ interface SessionHandlerInterface * * @see http://php.net/sessionhandlerinterface.close * - * @return boolean + * @return bool */ public function close(); @@ -68,7 +68,7 @@ interface SessionHandlerInterface * @param string $sessionId Session ID. * @param string $data Session serialized data to save. * - * @return boolean + * @return bool */ public function write($sessionId, $data); @@ -81,7 +81,7 @@ interface SessionHandlerInterface * * @throws \RuntimeException On fatal error. * - * @return boolean + * @return bool */ public function destroy($sessionId); @@ -94,7 +94,7 @@ interface SessionHandlerInterface * * @throws \RuntimeException On fatal error. * - * @return boolean + * @return bool */ public function gc($lifetime); } diff --git a/src/Symfony/Component/HttpFoundation/Response.php b/src/Symfony/Component/HttpFoundation/Response.php index d8acef5609..2d23f51fc1 100644 --- a/src/Symfony/Component/HttpFoundation/Response.php +++ b/src/Symfony/Component/HttpFoundation/Response.php @@ -36,7 +36,7 @@ class Response protected $version; /** - * @var integer + * @var int */ protected $statusCode; @@ -445,7 +445,7 @@ class Response /** * Retrieves the status code for the current web response. * - * @return integer Status code + * @return int Status code * * @api */ @@ -491,7 +491,7 @@ class Response * Responses with neither a freshness lifetime (Expires, max-age) nor cache * validator (Last-Modified, ETag) are considered uncacheable. * - * @return Boolean true if the response is worth caching, false otherwise + * @return bool true if the response is worth caching, false otherwise * * @api */ @@ -515,7 +515,7 @@ class Response * origin. A response is considered fresh when it includes a Cache-Control/max-age * indicator or Expires header and the calculated age is less than the freshness lifetime. * - * @return Boolean true if the response is fresh, false otherwise + * @return bool true if the response is fresh, false otherwise * * @api */ @@ -528,7 +528,7 @@ class Response * Returns true if the response includes headers that can be used to validate * the response with the origin server using a conditional GET request. * - * @return Boolean true if the response is validateable, false otherwise + * @return bool true if the response is validateable, false otherwise * * @api */ @@ -579,7 +579,7 @@ class Response * When present, the TTL of the response should not be overridden to be * greater than the value provided by the origin. * - * @return Boolean true if the response must be revalidated by a cache, false otherwise + * @return bool true if the response must be revalidated by a cache, false otherwise * * @api */ @@ -622,7 +622,7 @@ class Response /** * Returns the age of the response. * - * @return integer The age of the response in seconds + * @return int The age of the response in seconds */ public function getAge() { @@ -697,7 +697,7 @@ class Response * First, it checks for a s-maxage directive, then a max-age directive, and then it falls * back on an expires header. It returns null when no maximum age can be established. * - * @return integer|null Number of seconds + * @return int|null Number of seconds * * @api */ @@ -763,7 +763,7 @@ class Response * When the responses TTL is <= 0, the response may not be served from cache without first * revalidating with the origin. * - * @return integer|null The TTL in seconds + * @return int|null The TTL in seconds * * @api */ @@ -969,7 +969,7 @@ class Response /** * Returns true if the response includes a Vary header. * - * @return Boolean true if the response includes a Vary header, false otherwise + * @return bool true if the response includes a Vary header, false otherwise * * @api */ @@ -1025,7 +1025,7 @@ class Response * * @param Request $request A Request instance * - * @return Boolean true if the Response validators match the Request, false otherwise + * @return bool true if the Response validators match the Request, false otherwise * * @api */ @@ -1054,7 +1054,7 @@ class Response /** * Is response invalid? * - * @return Boolean + * @return bool * * @api */ @@ -1066,7 +1066,7 @@ class Response /** * Is response informative? * - * @return Boolean + * @return bool * * @api */ @@ -1078,7 +1078,7 @@ class Response /** * Is response successful? * - * @return Boolean + * @return bool * * @api */ @@ -1090,7 +1090,7 @@ class Response /** * Is the response a redirect? * - * @return Boolean + * @return bool * * @api */ @@ -1102,7 +1102,7 @@ class Response /** * Is there a client error? * - * @return Boolean + * @return bool * * @api */ @@ -1114,7 +1114,7 @@ class Response /** * Was there a server side error? * - * @return Boolean + * @return bool * * @api */ @@ -1126,7 +1126,7 @@ class Response /** * Is the response OK? * - * @return Boolean + * @return bool * * @api */ @@ -1138,7 +1138,7 @@ class Response /** * Is the response forbidden? * - * @return Boolean + * @return bool * * @api */ @@ -1150,7 +1150,7 @@ class Response /** * Is the response a not found error? * - * @return Boolean + * @return bool * * @api */ @@ -1164,7 +1164,7 @@ class Response * * @param string $location * - * @return Boolean + * @return bool * * @api */ @@ -1176,7 +1176,7 @@ class Response /** * Is the response empty? * - * @return Boolean + * @return bool * * @api */ diff --git a/src/Symfony/Component/HttpFoundation/Session/Attribute/AttributeBagInterface.php b/src/Symfony/Component/HttpFoundation/Session/Attribute/AttributeBagInterface.php index 5f1f37be25..21f8532738 100644 --- a/src/Symfony/Component/HttpFoundation/Session/Attribute/AttributeBagInterface.php +++ b/src/Symfony/Component/HttpFoundation/Session/Attribute/AttributeBagInterface.php @@ -25,7 +25,7 @@ interface AttributeBagInterface extends SessionBagInterface * * @param string $name The attribute name * - * @return Boolean true if the attribute is defined, false otherwise + * @return bool true if the attribute is defined, false otherwise */ public function has($name); diff --git a/src/Symfony/Component/HttpFoundation/Session/Flash/FlashBagInterface.php b/src/Symfony/Component/HttpFoundation/Session/Flash/FlashBagInterface.php index a68dcfddda..be79d9d752 100644 --- a/src/Symfony/Component/HttpFoundation/Session/Flash/FlashBagInterface.php +++ b/src/Symfony/Component/HttpFoundation/Session/Flash/FlashBagInterface.php @@ -80,7 +80,7 @@ interface FlashBagInterface extends SessionBagInterface * * @param string $type * - * @return boolean + * @return bool */ public function has($type); diff --git a/src/Symfony/Component/HttpFoundation/Session/SessionInterface.php b/src/Symfony/Component/HttpFoundation/Session/SessionInterface.php index 81353cc799..c4d5877152 100644 --- a/src/Symfony/Component/HttpFoundation/Session/SessionInterface.php +++ b/src/Symfony/Component/HttpFoundation/Session/SessionInterface.php @@ -23,7 +23,7 @@ interface SessionInterface /** * Starts the session storage. * - * @return Boolean True if session started. + * @return bool True if session started. * * @throws \RuntimeException If session fails to start. * @@ -78,7 +78,7 @@ interface SessionInterface * to expire with browser session. Time is in seconds, and is * not a Unix timestamp. * - * @return Boolean True if session invalidated, false if error. + * @return bool True if session invalidated, false if error. * * @api */ @@ -94,7 +94,7 @@ interface SessionInterface * to expire with browser session. Time is in seconds, and is * not a Unix timestamp. * - * @return Boolean True if session migrated, false if error. + * @return bool True if session migrated, false if error. * * @api */ @@ -114,7 +114,7 @@ interface SessionInterface * * @param string $name The attribute name * - * @return Boolean true if the attribute is defined, false otherwise + * @return bool true if the attribute is defined, false otherwise * * @api */ @@ -179,7 +179,7 @@ interface SessionInterface /** * Checks if the session was started. * - * @return Boolean + * @return bool */ public function isStarted(); diff --git a/src/Symfony/Component/HttpFoundation/Session/Storage/Handler/MemcacheSessionHandler.php b/src/Symfony/Component/HttpFoundation/Session/Storage/Handler/MemcacheSessionHandler.php index d101f4f18d..bf707054c2 100644 --- a/src/Symfony/Component/HttpFoundation/Session/Storage/Handler/MemcacheSessionHandler.php +++ b/src/Symfony/Component/HttpFoundation/Session/Storage/Handler/MemcacheSessionHandler.php @@ -24,7 +24,7 @@ class MemcacheSessionHandler implements \SessionHandlerInterface private $memcache; /** - * @var integer Time to live in seconds + * @var int Time to live in seconds */ private $ttl; diff --git a/src/Symfony/Component/HttpFoundation/Session/Storage/Handler/MemcachedSessionHandler.php b/src/Symfony/Component/HttpFoundation/Session/Storage/Handler/MemcachedSessionHandler.php index f6a0b20c3c..ba183f22b1 100644 --- a/src/Symfony/Component/HttpFoundation/Session/Storage/Handler/MemcachedSessionHandler.php +++ b/src/Symfony/Component/HttpFoundation/Session/Storage/Handler/MemcachedSessionHandler.php @@ -29,7 +29,7 @@ class MemcachedSessionHandler implements \SessionHandlerInterface private $memcached; /** - * @var integer Time to live in seconds + * @var int Time to live in seconds */ private $ttl; diff --git a/src/Symfony/Component/HttpFoundation/Session/Storage/MetadataBag.php b/src/Symfony/Component/HttpFoundation/Session/Storage/MetadataBag.php index f521e025fb..1291ffd005 100644 --- a/src/Symfony/Component/HttpFoundation/Session/Storage/MetadataBag.php +++ b/src/Symfony/Component/HttpFoundation/Session/Storage/MetadataBag.php @@ -44,7 +44,7 @@ class MetadataBag implements SessionBagInterface /** * Unix timestamp. * - * @var integer + * @var int */ private $lastUsed; @@ -77,7 +77,7 @@ class MetadataBag implements SessionBagInterface /** * Gets the lifetime that the session cookie was set with. * - * @return integer + * @return int */ public function getLifetime() { @@ -108,7 +108,7 @@ class MetadataBag implements SessionBagInterface /** * Gets the created timestamp metadata. * - * @return integer Unix timestamp + * @return int Unix timestamp */ public function getCreated() { @@ -118,7 +118,7 @@ class MetadataBag implements SessionBagInterface /** * Gets the last used metadata. * - * @return integer Unix timestamp + * @return int Unix timestamp */ public function getLastUsed() { diff --git a/src/Symfony/Component/HttpFoundation/Session/Storage/MockArraySessionStorage.php b/src/Symfony/Component/HttpFoundation/Session/Storage/MockArraySessionStorage.php index 9d7fb7eaf6..918735601d 100644 --- a/src/Symfony/Component/HttpFoundation/Session/Storage/MockArraySessionStorage.php +++ b/src/Symfony/Component/HttpFoundation/Session/Storage/MockArraySessionStorage.php @@ -38,12 +38,12 @@ class MockArraySessionStorage implements SessionStorageInterface protected $name; /** - * @var boolean + * @var bool */ protected $started = false; /** - * @var boolean + * @var bool */ protected $closed = false; diff --git a/src/Symfony/Component/HttpFoundation/Session/Storage/NativeSessionStorage.php b/src/Symfony/Component/HttpFoundation/Session/Storage/NativeSessionStorage.php index 083df9de40..31bf55c72d 100644 --- a/src/Symfony/Component/HttpFoundation/Session/Storage/NativeSessionStorage.php +++ b/src/Symfony/Component/HttpFoundation/Session/Storage/NativeSessionStorage.php @@ -32,12 +32,12 @@ class NativeSessionStorage implements SessionStorageInterface protected $bags; /** - * @var Boolean + * @var bool */ protected $started = false; /** - * @var Boolean + * @var bool */ protected $closed = false; diff --git a/src/Symfony/Component/HttpFoundation/Session/Storage/Proxy/AbstractProxy.php b/src/Symfony/Component/HttpFoundation/Session/Storage/Proxy/AbstractProxy.php index 1792beefdc..0b7e5648c0 100644 --- a/src/Symfony/Component/HttpFoundation/Session/Storage/Proxy/AbstractProxy.php +++ b/src/Symfony/Component/HttpFoundation/Session/Storage/Proxy/AbstractProxy.php @@ -21,12 +21,12 @@ abstract class AbstractProxy /** * Flag if handler wraps an internal PHP session handler (using \SessionHandler). * - * @var boolean + * @var bool */ protected $wrapper = false; /** - * @var boolean + * @var bool */ protected $active = false; @@ -48,7 +48,7 @@ abstract class AbstractProxy /** * Is this proxy handler and instance of \SessionHandlerInterface. * - * @return boolean + * @return bool */ public function isSessionHandlerInterface() { @@ -58,7 +58,7 @@ abstract class AbstractProxy /** * Returns true if this handler wraps an internal PHP session save handler using \SessionHandler. * - * @return Boolean + * @return bool */ public function isWrapper() { @@ -68,7 +68,7 @@ abstract class AbstractProxy /** * Has a session started? * - * @return Boolean + * @return bool */ public function isActive() { diff --git a/src/Symfony/Component/HttpFoundation/Session/Storage/Proxy/NativeProxy.php b/src/Symfony/Component/HttpFoundation/Session/Storage/Proxy/NativeProxy.php index 23eebb3281..d2362b22a8 100644 --- a/src/Symfony/Component/HttpFoundation/Session/Storage/Proxy/NativeProxy.php +++ b/src/Symfony/Component/HttpFoundation/Session/Storage/Proxy/NativeProxy.php @@ -32,7 +32,7 @@ class NativeProxy extends AbstractProxy /** * Returns true if this handler wraps an internal PHP session save handler using \SessionHandler. * - * @return Boolean False. + * @return bool False. */ public function isWrapper() { diff --git a/src/Symfony/Component/HttpFoundation/Session/Storage/SessionStorageInterface.php b/src/Symfony/Component/HttpFoundation/Session/Storage/SessionStorageInterface.php index 135e91a58b..0fb2e2abc8 100644 --- a/src/Symfony/Component/HttpFoundation/Session/Storage/SessionStorageInterface.php +++ b/src/Symfony/Component/HttpFoundation/Session/Storage/SessionStorageInterface.php @@ -28,7 +28,7 @@ interface SessionStorageInterface * * @throws \RuntimeException If something goes wrong starting the session. * - * @return boolean True if started. + * @return bool True if started. * * @api */ @@ -37,7 +37,7 @@ interface SessionStorageInterface /** * Checks if the session is started. * - * @return boolean True if started, false otherwise. + * @return bool True if started, false otherwise. */ public function isStarted(); @@ -94,7 +94,7 @@ interface SessionStorageInterface * to expire with browser session. Time is in seconds, and is * not a Unix timestamp. * - * @return Boolean True if session regenerated, false if error + * @return bool True if session regenerated, false if error * * @throws \RuntimeException If an error occurs while regenerating this storage * diff --git a/src/Symfony/Component/HttpKernel/CacheWarmer/CacheWarmerAggregate.php b/src/Symfony/Component/HttpKernel/CacheWarmer/CacheWarmerAggregate.php index eb26ac59e6..e63c263052 100644 --- a/src/Symfony/Component/HttpKernel/CacheWarmer/CacheWarmerAggregate.php +++ b/src/Symfony/Component/HttpKernel/CacheWarmer/CacheWarmerAggregate.php @@ -51,7 +51,7 @@ class CacheWarmerAggregate implements CacheWarmerInterface /** * Checks whether this warmer is optional or not. * - * @return Boolean always true + * @return bool always true */ public function isOptional() { diff --git a/src/Symfony/Component/HttpKernel/CacheWarmer/CacheWarmerInterface.php b/src/Symfony/Component/HttpKernel/CacheWarmer/CacheWarmerInterface.php index ed76ce3586..902d8d651b 100644 --- a/src/Symfony/Component/HttpKernel/CacheWarmer/CacheWarmerInterface.php +++ b/src/Symfony/Component/HttpKernel/CacheWarmer/CacheWarmerInterface.php @@ -26,7 +26,7 @@ interface CacheWarmerInterface extends WarmableInterface * A warmer should return true if the cache can be * generated incrementally and on-demand. * - * @return Boolean true if the warmer is optional, false otherwise + * @return bool true if the warmer is optional, false otherwise */ public function isOptional(); } diff --git a/src/Symfony/Component/HttpKernel/Controller/ControllerResolver.php b/src/Symfony/Component/HttpKernel/Controller/ControllerResolver.php index 8605e5b9d0..e2e550e542 100644 --- a/src/Symfony/Component/HttpKernel/Controller/ControllerResolver.php +++ b/src/Symfony/Component/HttpKernel/Controller/ControllerResolver.php @@ -47,7 +47,7 @@ class ControllerResolver implements ControllerResolverInterface * * @param Request $request A Request instance * - * @return mixed|Boolean A PHP callable representing the Controller, + * @return mixed|bool A PHP callable representing the Controller, * or false if this resolver is not able to determine the controller * * @throws \InvalidArgumentException|\LogicException If the controller can't be found diff --git a/src/Symfony/Component/HttpKernel/Controller/ControllerResolverInterface.php b/src/Symfony/Component/HttpKernel/Controller/ControllerResolverInterface.php index f58f50db53..6ec079facd 100644 --- a/src/Symfony/Component/HttpKernel/Controller/ControllerResolverInterface.php +++ b/src/Symfony/Component/HttpKernel/Controller/ControllerResolverInterface.php @@ -38,7 +38,7 @@ interface ControllerResolverInterface * * @param Request $request A Request instance * - * @return mixed|Boolean A PHP callable representing the Controller, + * @return mixed|bool A PHP callable representing the Controller, * or false if this resolver is not able to determine the controller * * @throws \InvalidArgumentException|\LogicException If the controller can't be found diff --git a/src/Symfony/Component/HttpKernel/DataCollector/ConfigDataCollector.php b/src/Symfony/Component/HttpKernel/DataCollector/ConfigDataCollector.php index 51b6d7ae01..de9c6f0153 100644 --- a/src/Symfony/Component/HttpKernel/DataCollector/ConfigDataCollector.php +++ b/src/Symfony/Component/HttpKernel/DataCollector/ConfigDataCollector.php @@ -143,7 +143,7 @@ class ConfigDataCollector extends DataCollector /** * Returns true if the debug is enabled. * - * @return Boolean true if debug is enabled, false otherwise + * @return bool true if debug is enabled, false otherwise */ public function isDebug() { @@ -153,7 +153,7 @@ class ConfigDataCollector extends DataCollector /** * Returns true if the XDebug is enabled. * - * @return Boolean true if XDebug is enabled, false otherwise + * @return bool true if XDebug is enabled, false otherwise */ public function hasXDebug() { @@ -163,7 +163,7 @@ class ConfigDataCollector extends DataCollector /** * Returns true if EAccelerator is enabled. * - * @return Boolean true if EAccelerator is enabled, false otherwise + * @return bool true if EAccelerator is enabled, false otherwise */ public function hasEAccelerator() { @@ -173,7 +173,7 @@ class ConfigDataCollector extends DataCollector /** * Returns true if APC is enabled. * - * @return Boolean true if APC is enabled, false otherwise + * @return bool true if APC is enabled, false otherwise */ public function hasApc() { @@ -183,7 +183,7 @@ class ConfigDataCollector extends DataCollector /** * Returns true if Zend OPcache is enabled * - * @return Boolean true if Zend OPcache is enabled, false otherwise + * @return bool true if Zend OPcache is enabled, false otherwise */ public function hasZendOpcache() { @@ -193,7 +193,7 @@ class ConfigDataCollector extends DataCollector /** * Returns true if XCache is enabled. * - * @return Boolean true if XCache is enabled, false otherwise + * @return bool true if XCache is enabled, false otherwise */ public function hasXCache() { @@ -203,7 +203,7 @@ class ConfigDataCollector extends DataCollector /** * Returns true if WinCache is enabled. * - * @return Boolean true if WinCache is enabled, false otherwise + * @return bool true if WinCache is enabled, false otherwise */ public function hasWinCache() { @@ -213,7 +213,7 @@ class ConfigDataCollector extends DataCollector /** * Returns true if any accelerator is enabled. * - * @return Boolean true if any accelerator is enabled, false otherwise + * @return bool true if any accelerator is enabled, false otherwise */ public function hasAccelerator() { diff --git a/src/Symfony/Component/HttpKernel/DataCollector/ExceptionDataCollector.php b/src/Symfony/Component/HttpKernel/DataCollector/ExceptionDataCollector.php index 10a010bc62..476bfff6fb 100644 --- a/src/Symfony/Component/HttpKernel/DataCollector/ExceptionDataCollector.php +++ b/src/Symfony/Component/HttpKernel/DataCollector/ExceptionDataCollector.php @@ -37,7 +37,7 @@ class ExceptionDataCollector extends DataCollector /** * Checks if the exception is not null. * - * @return Boolean true if the exception is not null, false otherwise + * @return bool true if the exception is not null, false otherwise */ public function hasException() { @@ -67,7 +67,7 @@ class ExceptionDataCollector extends DataCollector /** * Gets the exception code. * - * @return integer The exception code + * @return int The exception code */ public function getCode() { @@ -77,7 +77,7 @@ class ExceptionDataCollector extends DataCollector /** * Gets the status code. * - * @return integer The status code + * @return int The status code */ public function getStatusCode() { diff --git a/src/Symfony/Component/HttpKernel/DataCollector/MemoryDataCollector.php b/src/Symfony/Component/HttpKernel/DataCollector/MemoryDataCollector.php index 7c84bb93c3..502131147c 100644 --- a/src/Symfony/Component/HttpKernel/DataCollector/MemoryDataCollector.php +++ b/src/Symfony/Component/HttpKernel/DataCollector/MemoryDataCollector.php @@ -40,7 +40,7 @@ class MemoryDataCollector extends DataCollector /** * Gets the memory. * - * @return integer The memory + * @return int The memory */ public function getMemory() { @@ -50,7 +50,7 @@ class MemoryDataCollector extends DataCollector /** * Gets the PHP memory limit. * - * @return integer The memory limit + * @return int The memory limit */ public function getMemoryLimit() { diff --git a/src/Symfony/Component/HttpKernel/DataCollector/RouterDataCollector.php b/src/Symfony/Component/HttpKernel/DataCollector/RouterDataCollector.php index 8757412c63..a0fbac9472 100644 --- a/src/Symfony/Component/HttpKernel/DataCollector/RouterDataCollector.php +++ b/src/Symfony/Component/HttpKernel/DataCollector/RouterDataCollector.php @@ -69,7 +69,7 @@ class RouterDataCollector extends DataCollector } /** - * @return Boolean Whether this request will result in a redirect + * @return bool Whether this request will result in a redirect */ public function getRedirect() { diff --git a/src/Symfony/Component/HttpKernel/DataCollector/TimeDataCollector.php b/src/Symfony/Component/HttpKernel/DataCollector/TimeDataCollector.php index 0d6fe02b98..a700b864e2 100644 --- a/src/Symfony/Component/HttpKernel/DataCollector/TimeDataCollector.php +++ b/src/Symfony/Component/HttpKernel/DataCollector/TimeDataCollector.php @@ -105,7 +105,7 @@ class TimeDataCollector extends DataCollector /** * Gets the request time. * - * @return integer The time + * @return int The time */ public function getStartTime() { diff --git a/src/Symfony/Component/HttpKernel/Event/GetResponseEvent.php b/src/Symfony/Component/HttpKernel/Event/GetResponseEvent.php index f71ccae232..5565f82835 100644 --- a/src/Symfony/Component/HttpKernel/Event/GetResponseEvent.php +++ b/src/Symfony/Component/HttpKernel/Event/GetResponseEvent.php @@ -61,7 +61,7 @@ class GetResponseEvent extends KernelEvent /** * Returns whether a response was set * - * @return Boolean Whether a response was set + * @return bool Whether a response was set * * @api */ diff --git a/src/Symfony/Component/HttpKernel/Event/KernelEvent.php b/src/Symfony/Component/HttpKernel/Event/KernelEvent.php index e57eed4d16..41946133c3 100644 --- a/src/Symfony/Component/HttpKernel/Event/KernelEvent.php +++ b/src/Symfony/Component/HttpKernel/Event/KernelEvent.php @@ -39,7 +39,7 @@ class KernelEvent extends Event /** * The request type the kernel is currently processing. One of * HttpKernelInterface::MASTER_REQUEST and HttpKernelInterface::SUB_REQUEST - * @var integer + * @var int */ private $requestType; @@ -77,7 +77,7 @@ class KernelEvent extends Event /** * Returns the request type the kernel is currently processing * - * @return integer One of HttpKernelInterface::MASTER_REQUEST and + * @return int One of HttpKernelInterface::MASTER_REQUEST and * HttpKernelInterface::SUB_REQUEST * * @api diff --git a/src/Symfony/Component/HttpKernel/Exception/HttpExceptionInterface.php b/src/Symfony/Component/HttpKernel/Exception/HttpExceptionInterface.php index dd4a9dc5a3..67f0baeab4 100644 --- a/src/Symfony/Component/HttpKernel/Exception/HttpExceptionInterface.php +++ b/src/Symfony/Component/HttpKernel/Exception/HttpExceptionInterface.php @@ -21,7 +21,7 @@ interface HttpExceptionInterface /** * Returns the status code. * - * @return integer An HTTP response status code + * @return int An HTTP response status code */ public function getStatusCode(); diff --git a/src/Symfony/Component/HttpKernel/Fragment/HIncludeFragmentRenderer.php b/src/Symfony/Component/HttpKernel/Fragment/HIncludeFragmentRenderer.php index 8fc45724e7..e9bece0225 100644 --- a/src/Symfony/Component/HttpKernel/Fragment/HIncludeFragmentRenderer.php +++ b/src/Symfony/Component/HttpKernel/Fragment/HIncludeFragmentRenderer.php @@ -68,7 +68,7 @@ class HIncludeFragmentRenderer extends RoutableFragmentRenderer /** * Checks if a templating engine has been set. * - * @return Boolean true if the templating engine has been set, false otherwise + * @return bool true if the templating engine has been set, false otherwise */ public function hasTemplating() { @@ -126,7 +126,7 @@ class HIncludeFragmentRenderer extends RoutableFragmentRenderer /** * @param string $template * - * @return boolean + * @return bool */ private function templateExists($template) { diff --git a/src/Symfony/Component/HttpKernel/HttpCache/Esi.php b/src/Symfony/Component/HttpKernel/HttpCache/Esi.php index 57863c70f9..3ba9ecd818 100644 --- a/src/Symfony/Component/HttpKernel/HttpCache/Esi.php +++ b/src/Symfony/Component/HttpKernel/HttpCache/Esi.php @@ -56,7 +56,7 @@ class Esi * * @param Request $request A Request instance * - * @return Boolean true if one surrogate has ESI/1.0 capability, false otherwise + * @return bool true if one surrogate has ESI/1.0 capability, false otherwise */ public function hasSurrogateEsiCapability(Request $request) { @@ -99,7 +99,7 @@ class Esi * * @param Response $response A Response instance * - * @return Boolean true if the Response needs to be parsed, false otherwise + * @return bool true if the Response needs to be parsed, false otherwise */ public function needsEsiParsing(Response $response) { diff --git a/src/Symfony/Component/HttpKernel/HttpCache/HttpCache.php b/src/Symfony/Component/HttpKernel/HttpCache/HttpCache.php index 43e339dace..2bea9f58ba 100644 --- a/src/Symfony/Component/HttpKernel/HttpCache/HttpCache.php +++ b/src/Symfony/Component/HttpKernel/HttpCache/HttpCache.php @@ -496,7 +496,7 @@ class HttpCache implements HttpKernelInterface, TerminableInterface * @param Request $request A Request instance * @param Response $entry A Response instance * - * @return Boolean true if the cache entry if fresh enough, false otherwise + * @return bool true if the cache entry if fresh enough, false otherwise */ protected function isFreshEnough(Request $request, Response $entry) { @@ -517,7 +517,7 @@ class HttpCache implements HttpKernelInterface, TerminableInterface * @param Request $request A Request instance * @param Response $entry A Response instance * - * @return Boolean true if the cache entry can be returned even if it is staled, false otherwise + * @return bool true if the cache entry can be returned even if it is staled, false otherwise */ protected function lock(Request $request, Response $entry) { @@ -651,7 +651,7 @@ class HttpCache implements HttpKernelInterface, TerminableInterface * * @param Request $request A Request instance * - * @return Boolean true if the Request is private, false otherwise + * @return bool true if the Request is private, false otherwise */ private function isPrivateRequest(Request $request) { diff --git a/src/Symfony/Component/HttpKernel/HttpCache/Store.php b/src/Symfony/Component/HttpKernel/HttpCache/Store.php index d41b9f287e..e102f3f012 100644 --- a/src/Symfony/Component/HttpKernel/HttpCache/Store.php +++ b/src/Symfony/Component/HttpKernel/HttpCache/Store.php @@ -69,7 +69,7 @@ class Store implements StoreInterface * * @param Request $request A Request instance * - * @return Boolean|string true if the lock is acquired, the path to the current lock otherwise + * @return bool|string true if the lock is acquired, the path to the current lock otherwise */ public function lock(Request $request) { @@ -95,7 +95,7 @@ class Store implements StoreInterface * * @param Request $request A Request instance * - * @return Boolean False if the lock file does not exist or cannot be unlocked, true otherwise + * @return bool False if the lock file does not exist or cannot be unlocked, true otherwise */ public function unlock(Request $request) { @@ -258,7 +258,7 @@ class Store implements StoreInterface * @param array $env1 A Request HTTP header array * @param array $env2 A Request HTTP header array * - * @return Boolean true if the two environments match, false otherwise + * @return bool true if the two environments match, false otherwise */ private function requestsMatch($vary, $env1, $env2) { @@ -301,7 +301,7 @@ class Store implements StoreInterface * * @param string $url A URL * - * @return Boolean true if the URL exists and has been purged, false otherwise + * @return bool true if the URL exists and has been purged, false otherwise */ public function purge($url) { @@ -334,7 +334,7 @@ class Store implements StoreInterface * @param string $key The store key * @param string $data The data to store * - * @return Boolean + * @return bool */ private function save($key, $data) { diff --git a/src/Symfony/Component/HttpKernel/HttpCache/StoreInterface.php b/src/Symfony/Component/HttpKernel/HttpCache/StoreInterface.php index 29a54d8725..2f1587791d 100644 --- a/src/Symfony/Component/HttpKernel/HttpCache/StoreInterface.php +++ b/src/Symfony/Component/HttpKernel/HttpCache/StoreInterface.php @@ -58,7 +58,7 @@ interface StoreInterface * * @param Request $request A Request instance * - * @return Boolean|string true if the lock is acquired, the path to the current lock otherwise + * @return bool|string true if the lock is acquired, the path to the current lock otherwise */ public function lock(Request $request); @@ -67,7 +67,7 @@ interface StoreInterface * * @param Request $request A Request instance * - * @return Boolean False if the lock file does not exist or cannot be unlocked, true otherwise + * @return bool False if the lock file does not exist or cannot be unlocked, true otherwise */ public function unlock(Request $request); @@ -76,7 +76,7 @@ interface StoreInterface * * @param Request $request A Request instance * - * @return Boolean true if lock exists, false otherwise + * @return bool true if lock exists, false otherwise */ public function isLocked(Request $request); @@ -85,7 +85,7 @@ interface StoreInterface * * @param string $url A URL * - * @return Boolean true if the URL exists and has been purged, false otherwise + * @return bool true if the URL exists and has been purged, false otherwise */ public function purge($url); diff --git a/src/Symfony/Component/HttpKernel/KernelInterface.php b/src/Symfony/Component/HttpKernel/KernelInterface.php index c197471f29..922f63180f 100644 --- a/src/Symfony/Component/HttpKernel/KernelInterface.php +++ b/src/Symfony/Component/HttpKernel/KernelInterface.php @@ -74,7 +74,7 @@ interface KernelInterface extends HttpKernelInterface, \Serializable * * @param string $class A class name * - * @return Boolean true if the class belongs to an active bundle, false otherwise + * @return bool true if the class belongs to an active bundle, false otherwise * * @api */ @@ -145,7 +145,7 @@ interface KernelInterface extends HttpKernelInterface, \Serializable /** * Checks if debug mode is enabled. * - * @return Boolean true if debug mode is enabled, false otherwise + * @return bool true if debug mode is enabled, false otherwise * * @api */ @@ -172,7 +172,7 @@ interface KernelInterface extends HttpKernelInterface, \Serializable /** * Gets the request start time (not available if debug is disabled). * - * @return integer The request start timestamp + * @return int The request start timestamp * * @api */ diff --git a/src/Symfony/Component/HttpKernel/Log/DebugLoggerInterface.php b/src/Symfony/Component/HttpKernel/Log/DebugLoggerInterface.php index 4442c6398e..c015b0d702 100644 --- a/src/Symfony/Component/HttpKernel/Log/DebugLoggerInterface.php +++ b/src/Symfony/Component/HttpKernel/Log/DebugLoggerInterface.php @@ -32,7 +32,7 @@ interface DebugLoggerInterface /** * Returns the number of errors. * - * @return integer The number of errors + * @return int The number of errors */ public function countErrors(); } diff --git a/src/Symfony/Component/HttpKernel/Profiler/BaseMemcacheProfilerStorage.php b/src/Symfony/Component/HttpKernel/Profiler/BaseMemcacheProfilerStorage.php index fd6bd96e2d..39b517fac2 100644 --- a/src/Symfony/Component/HttpKernel/Profiler/BaseMemcacheProfilerStorage.php +++ b/src/Symfony/Component/HttpKernel/Profiler/BaseMemcacheProfilerStorage.php @@ -205,7 +205,7 @@ abstract class BaseMemcacheProfilerStorage implements ProfilerStorageInterface * @param mixed $value * @param int $expiration * - * @return boolean + * @return bool */ abstract protected function setValue($key, $value, $expiration = 0); @@ -214,7 +214,7 @@ abstract class BaseMemcacheProfilerStorage implements ProfilerStorageInterface * * @param string $key * - * @return boolean + * @return bool */ abstract protected function delete($key); @@ -224,7 +224,7 @@ abstract class BaseMemcacheProfilerStorage implements ProfilerStorageInterface * @param string $value * @param int $expiration * - * @return boolean + * @return bool */ abstract protected function appendValue($key, $value, $expiration = 0); diff --git a/src/Symfony/Component/HttpKernel/Profiler/Profile.php b/src/Symfony/Component/HttpKernel/Profiler/Profile.php index b3fa5514d3..a2c57f3b0e 100644 --- a/src/Symfony/Component/HttpKernel/Profiler/Profile.php +++ b/src/Symfony/Component/HttpKernel/Profiler/Profile.php @@ -261,7 +261,7 @@ class Profile * * @param string $name A collector name * - * @return Boolean + * @return bool */ public function hasCollector($name) { diff --git a/src/Symfony/Component/HttpKernel/Profiler/Profiler.php b/src/Symfony/Component/HttpKernel/Profiler/Profiler.php index 42c1c40876..569a4d8b45 100644 --- a/src/Symfony/Component/HttpKernel/Profiler/Profiler.php +++ b/src/Symfony/Component/HttpKernel/Profiler/Profiler.php @@ -39,7 +39,7 @@ class Profiler private $logger; /** - * @var Boolean + * @var bool */ private $enabled = true; @@ -104,7 +104,7 @@ class Profiler * * @param Profile $profile A Profile instance * - * @return Boolean + * @return bool */ public function saveProfile(Profile $profile) { @@ -245,7 +245,7 @@ class Profiler * * @param string $name A collector name * - * @return Boolean + * @return bool */ public function has($name) { diff --git a/src/Symfony/Component/HttpKernel/Profiler/ProfilerStorageInterface.php b/src/Symfony/Component/HttpKernel/Profiler/ProfilerStorageInterface.php index f4b9e5e212..2e169155b5 100644 --- a/src/Symfony/Component/HttpKernel/Profiler/ProfilerStorageInterface.php +++ b/src/Symfony/Component/HttpKernel/Profiler/ProfilerStorageInterface.php @@ -48,7 +48,7 @@ interface ProfilerStorageInterface * * @param Profile $profile A Profile instance * - * @return Boolean Write operation successful + * @return bool Write operation successful */ public function write(Profile $profile); diff --git a/src/Symfony/Component/HttpKernel/Profiler/RedisProfilerStorage.php b/src/Symfony/Component/HttpKernel/Profiler/RedisProfilerStorage.php index 67678d6f15..7ea4244500 100644 --- a/src/Symfony/Component/HttpKernel/Profiler/RedisProfilerStorage.php +++ b/src/Symfony/Component/HttpKernel/Profiler/RedisProfilerStorage.php @@ -344,7 +344,7 @@ class RedisProfilerStorage implements ProfilerStorageInterface * @param int $expiration * @param int $serializer * - * @return Boolean + * @return bool */ private function setValue($key, $value, $expiration = 0, $serializer = self::REDIS_SERIALIZER_NONE) { @@ -361,7 +361,7 @@ class RedisProfilerStorage implements ProfilerStorageInterface * @param string $value * @param int $expiration * - * @return Boolean + * @return bool */ private function appendValue($key, $value, $expiration = 0) { @@ -382,7 +382,7 @@ class RedisProfilerStorage implements ProfilerStorageInterface * * @param array $keys * - * @return Boolean + * @return bool */ private function delete(array $keys) { diff --git a/src/Symfony/Component/HttpKernel/Tests/Profiler/Mock/MemcacheMock.php b/src/Symfony/Component/HttpKernel/Tests/Profiler/Mock/MemcacheMock.php index d0e37c294d..e4993ceeb9 100644 --- a/src/Symfony/Component/HttpKernel/Tests/Profiler/Mock/MemcacheMock.php +++ b/src/Symfony/Component/HttpKernel/Tests/Profiler/Mock/MemcacheMock.php @@ -34,7 +34,7 @@ class MemcacheMock * @param int $port * @param int $timeout * - * @return boolean + * @return bool */ public function connect($host, $port = null, $timeout = null) { @@ -54,7 +54,7 @@ class MemcacheMock * @param int $port * @param int $timeout * - * @return boolean + * @return bool */ public function pconnect($host, $port = null, $timeout = null) { @@ -80,7 +80,7 @@ class MemcacheMock * @param callable $failure_callback * @param int $timeoutms * - * @return boolean + * @return bool */ public function addServer($host, $port = 11211, $persistent = null, $weight = null, $timeout = null, $retry_interval = null, $status = null, $failure_callback = null, $timeoutms = null) { @@ -101,7 +101,7 @@ class MemcacheMock * @param int $flag * @param int $expire * - * @return boolean + * @return bool */ public function add($key, $var, $flag = null, $expire = null) { @@ -126,7 +126,7 @@ class MemcacheMock * @param int $flag * @param int $expire * - * @return boolean + * @return bool */ public function set($key, $var, $flag = null, $expire = null) { @@ -147,7 +147,7 @@ class MemcacheMock * @param int $flag * @param int $expire * - * @return boolean + * @return bool */ public function replace($key, $var, $flag = null, $expire = null) { @@ -197,7 +197,7 @@ class MemcacheMock * * @param string $key * - * @return boolean + * @return bool */ public function delete($key) { @@ -217,7 +217,7 @@ class MemcacheMock /** * Flush all existing items at the server * - * @return boolean + * @return bool */ public function flush() { @@ -233,7 +233,7 @@ class MemcacheMock /** * Close memcached server connection * - * @return boolean + * @return bool */ public function close() { diff --git a/src/Symfony/Component/HttpKernel/Tests/Profiler/Mock/MemcachedMock.php b/src/Symfony/Component/HttpKernel/Tests/Profiler/Mock/MemcachedMock.php index 07806b7530..d9d3104b74 100644 --- a/src/Symfony/Component/HttpKernel/Tests/Profiler/Mock/MemcachedMock.php +++ b/src/Symfony/Component/HttpKernel/Tests/Profiler/Mock/MemcachedMock.php @@ -33,7 +33,7 @@ class MemcachedMock * @param int $option * @param mixed $value * - * @return boolean + * @return bool */ public function setOption($option, $value) { @@ -47,7 +47,7 @@ class MemcachedMock * @param int $port * @param int $weight * - * @return boolean + * @return bool */ public function addServer($host, $port = 11211, $weight = 0) { @@ -67,7 +67,7 @@ class MemcachedMock * @param mixed $value * @param int $expiration * - * @return boolean + * @return bool */ public function add($key, $value, $expiration = 0) { @@ -91,7 +91,7 @@ class MemcachedMock * @param mixed $value * @param int $expiration * - * @return boolean + * @return bool */ public function set($key, $value, $expiration = null) { @@ -111,7 +111,7 @@ class MemcachedMock * @param mixed $value * @param int $expiration * - * @return boolean + * @return bool */ public function replace($key, $value, $expiration = null) { @@ -135,7 +135,7 @@ class MemcachedMock * @param callable $cache_cb * @param float $cas_token * - * @return boolean + * @return bool */ public function get($key, $cache_cb = null, &$cas_token = null) { @@ -152,7 +152,7 @@ class MemcachedMock * @param string $key * @param string $value * - * @return boolean + * @return bool */ public function append($key, $value) { @@ -174,7 +174,7 @@ class MemcachedMock * * @param string $key * - * @return boolean + * @return bool */ public function delete($key) { @@ -194,7 +194,7 @@ class MemcachedMock /** * Flush all existing items at the server * - * @return boolean + * @return bool */ public function flush() { diff --git a/src/Symfony/Component/HttpKernel/Tests/Profiler/Mock/RedisMock.php b/src/Symfony/Component/HttpKernel/Tests/Profiler/Mock/RedisMock.php index 79c9607933..13b726fdc4 100644 --- a/src/Symfony/Component/HttpKernel/Tests/Profiler/Mock/RedisMock.php +++ b/src/Symfony/Component/HttpKernel/Tests/Profiler/Mock/RedisMock.php @@ -35,7 +35,7 @@ class RedisMock * @param int $port * @param float $timeout * - * @return boolean + * @return bool */ public function connect($host, $port = 6379, $timeout = 0) { @@ -54,7 +54,7 @@ class RedisMock * @param int $name * @param int $value * - * @return boolean + * @return bool */ public function setOption($name, $value) { @@ -70,7 +70,7 @@ class RedisMock * * @param string $key * - * @return boolean + * @return bool */ public function exists($key) { @@ -88,7 +88,7 @@ class RedisMock * @param int $ttl * @param mixed $value * - * @return boolean + * @return bool */ public function setex($key, $ttl, $value) { @@ -107,7 +107,7 @@ class RedisMock * @param string $key * @param int $ttl * - * @return boolean + * @return bool */ public function setTimeout($key, $ttl) { @@ -127,7 +127,7 @@ class RedisMock * * @param string $key * - * @return boolean + * @return bool */ public function get($key) { @@ -144,7 +144,7 @@ class RedisMock * @param string $key * @param string $value * - * @return integer Size of the value after the append. + * @return int Size of the value after the append. */ public function append($key, $value) { @@ -166,7 +166,7 @@ class RedisMock * * @param string|array $key * - * @return integer + * @return int */ public function delete($key) { @@ -198,7 +198,7 @@ class RedisMock /** * Flush all existing items from all databases at the server. * - * @return boolean + * @return bool */ public function flushAll() { @@ -214,7 +214,7 @@ class RedisMock /** * Close Redis server connection * - * @return boolean + * @return bool */ public function close() { diff --git a/src/Symfony/Component/HttpKernel/UriSigner.php b/src/Symfony/Component/HttpKernel/UriSigner.php index 665e99e2ef..214a9f2690 100644 --- a/src/Symfony/Component/HttpKernel/UriSigner.php +++ b/src/Symfony/Component/HttpKernel/UriSigner.php @@ -54,7 +54,7 @@ class UriSigner * * @param string $uri A signed URI * - * @return Boolean True if the URI is signed correctly, false otherwise + * @return bool True if the URI is signed correctly, false otherwise */ public function check($uri) { diff --git a/src/Symfony/Component/Intl/Collator/Collator.php b/src/Symfony/Component/Intl/Collator/Collator.php index cb240c81d1..a0fefd3e40 100644 --- a/src/Symfony/Component/Intl/Collator/Collator.php +++ b/src/Symfony/Component/Intl/Collator/Collator.php @@ -104,7 +104,7 @@ class Collator * Collator::SORT_NUMERIC - compare items numerically * Collator::SORT_STRING - compare items as strings * - * @return Boolean True on success or false on failure + * @return bool True on success or false on failure */ public function asort(&$array, $sortFlag = self::SORT_REGULAR) { @@ -125,7 +125,7 @@ class Collator * @param string $str1 The first string to compare * @param string $str2 The second string to compare * - * @return Boolean|int Return the comparison result or false on failure: + * @return bool|int Return the comparison result or false on failure: * 1 if $str1 is greater than $str2 * 0 if $str1 is equal than $str2 * -1 if $str1 is less than $str2 @@ -144,7 +144,7 @@ class Collator * * @param int $attr An attribute specifier, one of the attribute constants * - * @return Boolean|int The attribute value on success or false on error + * @return bool|int The attribute value on success or false on error * * @see http://www.php.net/manual/en/collator.getattribute.php * @@ -207,7 +207,7 @@ class Collator /** * Not supported. Get current collator's strength * - * @return Boolean|int The current collator's strength or false on failure + * @return bool|int The current collator's strength or false on failure * * @see http://www.php.net/manual/en/collator.getstrength.php * @@ -224,7 +224,7 @@ class Collator * @param int $attr An attribute specifier, one of the attribute constants * @param int $val The attribute value, one of the attribute value constants * - * @return Boolean True on success or false on failure + * @return bool True on success or false on failure * * @see http://www.php.net/manual/en/collator.setattribute.php * @@ -246,7 +246,7 @@ class Collator * Collator::IDENTICAL * Collator::DEFAULT * - * @return Boolean True on success or false on failure + * @return bool True on success or false on failure * * @see http://www.php.net/manual/en/collator.setstrength.php * @@ -262,7 +262,7 @@ class Collator * * @param array &$arr Array of strings to sort * - * @return Boolean True on success or false on failure + * @return bool True on success or false on failure * * @see http://www.php.net/manual/en/collator.sortwithsortkeys.php * @@ -282,7 +282,7 @@ class Collator * Collator::SORT_NUMERIC * Collator::SORT_STRING * - * @return Boolean True on success or false on failure + * @return bool True on success or false on failure * * @see http://www.php.net/manual/en/collator.sort.php * diff --git a/src/Symfony/Component/Intl/DateFormatter/DateFormat/FullTransformer.php b/src/Symfony/Component/Intl/DateFormatter/DateFormat/FullTransformer.php index 767da7e7c6..d812cc4435 100644 --- a/src/Symfony/Component/Intl/DateFormatter/DateFormat/FullTransformer.php +++ b/src/Symfony/Component/Intl/DateFormatter/DateFormat/FullTransformer.php @@ -210,7 +210,7 @@ class FullTransformer * * @param string $quoteMatch The string to check * - * @return Boolean true if matches, false otherwise + * @return bool true if matches, false otherwise */ public function isQuoteMatch($quoteMatch) { @@ -284,7 +284,7 @@ class FullTransformer * @param \DateTime $dateTime The DateTime object to be used to calculate the timestamp * @param array $options An array with the matched values to be used to calculate the timestamp * - * @return Boolean|int The calculated timestamp or false if matched date is invalid + * @return bool|int The calculated timestamp or false if matched date is invalid */ protected function calculateUnixTimestamp(\DateTime $dateTime, array $options) { diff --git a/src/Symfony/Component/Intl/DateFormatter/IntlDateFormatter.php b/src/Symfony/Component/Intl/DateFormatter/IntlDateFormatter.php index 9dbb332acb..6b4aeb1785 100644 --- a/src/Symfony/Component/Intl/DateFormatter/IntlDateFormatter.php +++ b/src/Symfony/Component/Intl/DateFormatter/IntlDateFormatter.php @@ -49,7 +49,7 @@ class IntlDateFormatter /** * The error code from the last operation * - * @var integer + * @var int */ protected $errorCode = IntlGlobals::U_ZERO_ERROR; @@ -117,7 +117,7 @@ class IntlDateFormatter private $dateTimeZone; /** - * @var Boolean + * @var bool */ private $unitializedTimeZoneId = false; @@ -190,7 +190,7 @@ class IntlDateFormatter * @param int|\DateTime $timestamp The timestamp to format. \DateTime objects * are supported as of PHP 5.3.4. * - * @return string|Boolean The formatted value or false if formatting failed. + * @return string|bool The formatted value or false if formatting failed. * * @see http://www.php.net/manual/en/intldateformatter.format.php * @@ -400,7 +400,7 @@ class IntlDateFormatter /** * Returns whether the formatter is lenient * - * @return Boolean Currently always returns false. + * @return bool Currently always returns false. * * @see http://www.php.net/manual/en/intldateformatter.islenient.php * @@ -470,7 +470,7 @@ class IntlDateFormatter * * @param string $calendar The calendar to use. Default is IntlDateFormatter::GREGORIAN. * - * @return Boolean true on success or false on failure + * @return bool true on success or false on failure * * @see http://www.php.net/manual/en/intldateformatter.setcalendar.php * @@ -492,7 +492,7 @@ class IntlDateFormatter * @param bool $lenient Sets whether the parser is lenient or not. Currently * only false (strict) is supported. * - * @return Boolean true on success or false on failure + * @return bool true on success or false on failure * * @see http://www.php.net/manual/en/intldateformatter.setlenient.php * @@ -512,7 +512,7 @@ class IntlDateFormatter * * @param string $pattern A pattern string in conformance with the ICU IntlDateFormatter documentation * - * @return Boolean true on success or false on failure + * @return bool true on success or false on failure * * @see http://www.php.net/manual/en/intldateformatter.setpattern.php * @see http://userguide.icu-project.org/formatparse/datetime @@ -535,7 +535,7 @@ class IntlDateFormatter * If NULL or the empty string, the default time zone for the * runtime is used. * - * @return Boolean true on success or false on failure + * @return bool true on success or false on failure * * @see http://www.php.net/manual/en/intldateformatter.settimezoneid.php */ @@ -584,7 +584,7 @@ class IntlDateFormatter * * @param mixed $timeZone * - * @return Boolean true on success or false on failure + * @return bool true on success or false on failure * * @see http://www.php.net/manual/en/intldateformatter.settimezone.php */ diff --git a/src/Symfony/Component/Intl/Globals/IntlGlobals.php b/src/Symfony/Component/Intl/Globals/IntlGlobals.php index ce47509202..f37c860f02 100644 --- a/src/Symfony/Component/Intl/Globals/IntlGlobals.php +++ b/src/Symfony/Component/Intl/Globals/IntlGlobals.php @@ -21,21 +21,21 @@ abstract class IntlGlobals /** * Indicates that no error occurred * - * @var integer + * @var int */ const U_ZERO_ERROR = 0; /** * Indicates that an invalid argument was passed * - * @var integer + * @var int */ const U_ILLEGAL_ARGUMENT_ERROR = 1; /** * Indicates that the parse() operation failed * - * @var integer + * @var int */ const U_PARSE_ERROR = 9; @@ -53,14 +53,14 @@ abstract class IntlGlobals /** * The error code of the last operation * - * @var integer + * @var int */ private static $errorCode = self::U_ZERO_ERROR; /** * The error code of the last operation * - * @var integer + * @var int */ private static $errorMessage = 'U_ZERO_ERROR'; @@ -69,7 +69,7 @@ abstract class IntlGlobals * * @param int $errorCode The error code returned by IntlGlobals::getErrorCode() * - * @return Boolean + * @return bool */ public static function isFailure($errorCode) { @@ -82,7 +82,7 @@ abstract class IntlGlobals * * Returns IntlGlobals::U_ZERO_ERROR if no error occurred. * - * @return integer + * @return int */ public static function getErrorCode() { diff --git a/src/Symfony/Component/Intl/Intl.php b/src/Symfony/Component/Intl/Intl.php index d0373988d2..df42a8c11c 100644 --- a/src/Symfony/Component/Intl/Intl.php +++ b/src/Symfony/Component/Intl/Intl.php @@ -53,7 +53,7 @@ class Intl private static $regionBundle; /** - * @var string|Boolean|null + * @var string|bool|null */ private static $icuVersion = false; @@ -70,7 +70,7 @@ class Intl /** * Returns whether the intl extension is installed. * - * @return Boolean Returns true if the intl extension is installed, false otherwise. + * @return bool Returns true if the intl extension is installed, false otherwise. */ public static function isExtensionLoaded() { diff --git a/src/Symfony/Component/Intl/Locale/Locale.php b/src/Symfony/Component/Intl/Locale/Locale.php index 2a025891a5..69459d5317 100644 --- a/src/Symfony/Component/Intl/Locale/Locale.php +++ b/src/Symfony/Component/Intl/Locale/Locale.php @@ -304,7 +304,7 @@ class Locale * * @param string $locale The locale code * - * @return Boolean true on success or false on failure + * @return bool true on success or false on failure * * @see http://www.php.net/manual/en/locale.parselocale.php * diff --git a/src/Symfony/Component/Intl/NumberFormatter/NumberFormatter.php b/src/Symfony/Component/Intl/NumberFormatter/NumberFormatter.php index 52d44885b6..563f086024 100644 --- a/src/Symfony/Component/Intl/NumberFormatter/NumberFormatter.php +++ b/src/Symfony/Component/Intl/NumberFormatter/NumberFormatter.php @@ -130,7 +130,7 @@ class NumberFormatter /** * The error code from the last operation * - * @var integer + * @var int */ protected $errorCode = IntlGlobals::U_ZERO_ERROR; @@ -347,7 +347,7 @@ class NumberFormatter * @param int $type Type of the formatting, one of the format type constants. * Only type NumberFormatter::TYPE_DEFAULT is currently supported. * - * @return Boolean|string The formatted value or false on error + * @return bool|string The formatted value or false on error * * @see http://www.php.net/manual/en/numberformatter.format.php * @@ -391,7 +391,7 @@ class NumberFormatter * * @param int $attr An attribute specifier, one of the numeric attribute constants * - * @return Boolean|int The attribute value on success or false on error + * @return bool|int The attribute value on success or false on error * * @see http://www.php.net/manual/en/numberformatter.getattribute.php */ @@ -444,7 +444,7 @@ class NumberFormatter /** * Not supported. Returns the formatter's pattern * - * @return Boolean|string The pattern string used by the formatter or false on error + * @return bool|string The pattern string used by the formatter or false on error * * @see http://www.php.net/manual/en/numberformatter.getpattern.php * @@ -460,7 +460,7 @@ class NumberFormatter * * @param int $attr A symbol specifier, one of the format symbol constants * - * @return Boolean|string The symbol value or false on error + * @return bool|string The symbol value or false on error * * @see http://www.php.net/manual/en/numberformatter.getsymbol.php */ @@ -474,7 +474,7 @@ class NumberFormatter * * @param int $attr An attribute specifier, one of the text attribute constants * - * @return Boolean|string The attribute value or false on error + * @return bool|string The attribute value or false on error * * @see http://www.php.net/manual/en/numberformatter.gettextattribute.php */ @@ -490,7 +490,7 @@ class NumberFormatter * @param string $currency Parameter to receive the currency name (reference) * @param int $position Offset to begin the parsing on return this value will hold the offset at which the parsing ended * - * @return Boolean|string The parsed numeric value of false on error + * @return bool|string The parsed numeric value of false on error * * @see http://www.php.net/manual/en/numberformatter.parsecurrency.php * @@ -508,7 +508,7 @@ class NumberFormatter * @param string $type Type of the formatting, one of the format type constants. NumberFormatter::TYPE_DOUBLE by default * @param int $position Offset to begin the parsing on return this value will hold the offset at which the parsing ended * - * @return Boolean|string The parsed value of false on error + * @return bool|string The parsed value of false on error * * @see http://www.php.net/manual/en/numberformatter.parse.php */ @@ -553,7 +553,7 @@ class NumberFormatter * NumberFormatter::ROUND_HALFEVEN, NumberFormatter::ROUND_HALFDOWN and * NumberFormatter::ROUND_HALFUP. * - * @return Boolean true on success or false on failure + * @return bool true on success or false on failure * * @see http://www.php.net/manual/en/numberformatter.setattribute.php * @@ -599,7 +599,7 @@ class NumberFormatter * * @param string $pattern A pattern string in conformance with the ICU DecimalFormat documentation * - * @return Boolean true on success or false on failure + * @return bool true on success or false on failure * * @see http://www.php.net/manual/en/numberformatter.setpattern.php * @see http://www.icu-project.org/apiref/icu4c/classDecimalFormat.html#_details @@ -617,7 +617,7 @@ class NumberFormatter * @param int $attr A symbol specifier, one of the format symbol constants * @param string $value The value for the symbol * - * @return Boolean true on success or false on failure + * @return bool true on success or false on failure * * @see http://www.php.net/manual/en/numberformatter.setsymbol.php * @@ -634,7 +634,7 @@ class NumberFormatter * @param int $attr An attribute specifier, one of the text attribute constants * @param int $value The attribute value * - * @return Boolean true on success or false on failure + * @return bool true on success or false on failure * * @see http://www.php.net/manual/en/numberformatter.settextattribute.php * @@ -696,7 +696,7 @@ class NumberFormatter * @param int|float $value The value to round * @param int $precision The number of decimal digits to round to * - * @return integer|float The rounded value + * @return int|float The rounded value */ private function round($value, $precision) { @@ -752,7 +752,7 @@ class NumberFormatter * * @param string $attr The attribute name * - * @return Boolean true if the value was set by client, false otherwise + * @return bool true if the value was set by client, false otherwise */ private function isInitializedAttribute($attr) { @@ -765,7 +765,7 @@ class NumberFormatter * @param mixed $value The value to be converted * @param int $type The type to convert. Can be TYPE_DOUBLE (float) or TYPE_INT32 (int) * - * @return integer|float The converted value + * @return int|float The converted value */ private function convertValueDataType($value, $type) { @@ -849,7 +849,7 @@ class NumberFormatter * * @param int $value The rounding mode value to check * - * @return Boolean true if the rounding mode is invalid, false otherwise + * @return bool true if the rounding mode is invalid, false otherwise */ private function isInvalidRoundingMode($value) { diff --git a/src/Symfony/Component/Intl/ResourceBundle/CurrencyBundleInterface.php b/src/Symfony/Component/Intl/ResourceBundle/CurrencyBundleInterface.php index 1a88e93722..f34232e349 100644 --- a/src/Symfony/Component/Intl/ResourceBundle/CurrencyBundleInterface.php +++ b/src/Symfony/Component/Intl/ResourceBundle/CurrencyBundleInterface.php @@ -55,7 +55,7 @@ interface CurrencyBundleInterface extends ResourceBundleInterface * * @param string $currency A currency code (e.g. "EUR"). * - * @return integer|null The number of digits after the comma or NULL if not found. + * @return int|null The number of digits after the comma or NULL if not found. */ public function getFractionDigits($currency); @@ -68,7 +68,7 @@ interface CurrencyBundleInterface extends ResourceBundleInterface * * @param string $currency A currency code (e.g. "EUR"). * - * @return float|integer|null The rounding increment or NULL if not found. + * @return float|int|null The rounding increment or NULL if not found. */ public function getRoundingIncrement($currency); } diff --git a/src/Symfony/Component/Intl/Resources/stubs/functions.php b/src/Symfony/Component/Intl/Resources/stubs/functions.php index c7eb16eb31..b552d0e859 100644 --- a/src/Symfony/Component/Intl/Resources/stubs/functions.php +++ b/src/Symfony/Component/Intl/Resources/stubs/functions.php @@ -21,7 +21,7 @@ if (!function_exists('intl_is_failure')) { * * @param int $errorCode The error code returned by intl_get_error_code(). * - * @return Boolean Whether the error code indicates an error. + * @return bool Whether the error code indicates an error. * * @see \Symfony\Component\Intl\Globals\StubIntlGlobals::isFailure */ @@ -36,7 +36,7 @@ if (!function_exists('intl_is_failure')) { * * @author Bernhard Schussek * - * @return Boolean The error code of the last intl function call or + * @return bool The error code of the last intl function call or * IntlGlobals::U_ZERO_ERROR if no error occurred. * * @see \Symfony\Component\Intl\Globals\StubIntlGlobals::getErrorCode @@ -52,7 +52,7 @@ if (!function_exists('intl_is_failure')) { * * @author Bernhard Schussek * - * @return Boolean The error message of the last intl function call or + * @return bool The error message of the last intl function call or * "U_ZERO_ERROR" if no error occurred. * * @see \Symfony\Component\Intl\Globals\StubIntlGlobals::getErrorMessage diff --git a/src/Symfony/Component/Intl/Tests/DateFormatter/AbstractIntlDateFormatterTest.php b/src/Symfony/Component/Intl/Tests/DateFormatter/AbstractIntlDateFormatterTest.php index 25e45628e1..1a68d90f42 100644 --- a/src/Symfony/Component/Intl/Tests/DateFormatter/AbstractIntlDateFormatterTest.php +++ b/src/Symfony/Component/Intl/Tests/DateFormatter/AbstractIntlDateFormatterTest.php @@ -919,14 +919,14 @@ abstract class AbstractIntlDateFormatterTest extends \PHPUnit_Framework_TestCase abstract protected function getIntlErrorMessage(); /** - * @return integer + * @return int */ abstract protected function getIntlErrorCode(); /** * @param int $errorCode * - * @return Boolean + * @return bool */ abstract protected function isIntlFailure($errorCode); } diff --git a/src/Symfony/Component/Intl/Tests/NumberFormatter/AbstractNumberFormatterTest.php b/src/Symfony/Component/Intl/Tests/NumberFormatter/AbstractNumberFormatterTest.php index e59e6aa1ab..e1938de3fe 100644 --- a/src/Symfony/Component/Intl/Tests/NumberFormatter/AbstractNumberFormatterTest.php +++ b/src/Symfony/Component/Intl/Tests/NumberFormatter/AbstractNumberFormatterTest.php @@ -729,14 +729,14 @@ abstract class AbstractNumberFormatterTest extends \PHPUnit_Framework_TestCase abstract protected function getIntlErrorMessage(); /** - * @return integer + * @return int */ abstract protected function getIntlErrorCode(); /** * @param int $errorCode * - * @return Boolean + * @return bool */ abstract protected function isIntlFailure($errorCode); } diff --git a/src/Symfony/Component/Intl/Util/IcuVersion.php b/src/Symfony/Component/Intl/Util/IcuVersion.php index f12b8ab602..0eface090e 100644 --- a/src/Symfony/Component/Intl/Util/IcuVersion.php +++ b/src/Symfony/Component/Intl/Util/IcuVersion.php @@ -49,7 +49,7 @@ class IcuVersion * @param int|null $precision The number of components to compare. Pass * NULL to compare the versions unchanged. * - * @return Boolean Whether the comparison succeeded. + * @return bool Whether the comparison succeeded. * * @see normalize() */ diff --git a/src/Symfony/Component/Intl/Util/Version.php b/src/Symfony/Component/Intl/Util/Version.php index 0afb4f2511..d8e75007f7 100644 --- a/src/Symfony/Component/Intl/Util/Version.php +++ b/src/Symfony/Component/Intl/Util/Version.php @@ -39,7 +39,7 @@ class Version * @param int|null $precision The number of components to compare. Pass * NULL to compare the versions unchanged. * - * @return Boolean Whether the comparison succeeded. + * @return bool Whether the comparison succeeded. * * @see normalize() */ diff --git a/src/Symfony/Component/OptionsResolver/Options.php b/src/Symfony/Component/OptionsResolver/Options.php index 5b958af4c4..43c81f0c33 100644 --- a/src/Symfony/Component/OptionsResolver/Options.php +++ b/src/Symfony/Component/OptionsResolver/Options.php @@ -52,7 +52,7 @@ class Options implements \ArrayAccess, \Iterator, \Countable * process. If any option is changed after being read, all evaluated * lazy options that depend on this option would become invalid. * - * @var Boolean + * @var bool */ private $reading = false; @@ -244,7 +244,7 @@ class Options implements \ArrayAccess, \Iterator, \Countable * * @param string $option The option name. * - * @return Boolean Whether the option exists. + * @return bool Whether the option exists. */ public function has($option) { @@ -324,7 +324,7 @@ class Options implements \ArrayAccess, \Iterator, \Countable * * @param string $option The option name. * - * @return Boolean Whether the option exists. + * @return bool Whether the option exists. * * @see \ArrayAccess::offsetExists() */ diff --git a/src/Symfony/Component/OptionsResolver/OptionsResolverInterface.php b/src/Symfony/Component/OptionsResolver/OptionsResolverInterface.php index 8474c4bcd7..fa57fef0fd 100644 --- a/src/Symfony/Component/OptionsResolver/OptionsResolverInterface.php +++ b/src/Symfony/Component/OptionsResolver/OptionsResolverInterface.php @@ -175,7 +175,7 @@ interface OptionsResolverInterface * * @param string $option The name of the option. * - * @return Boolean Whether the option is known. + * @return bool Whether the option is known. */ public function isKnown($option); @@ -188,7 +188,7 @@ interface OptionsResolverInterface * * @param string $option The name of the option. * - * @return Boolean Whether the option is required. + * @return bool Whether the option is required. */ public function isRequired($option); diff --git a/src/Symfony/Component/Process/Process.php b/src/Symfony/Component/Process/Process.php index 850a8799bd..fcc0987696 100644 --- a/src/Symfony/Component/Process/Process.php +++ b/src/Symfony/Component/Process/Process.php @@ -184,7 +184,7 @@ class Process * @param callback|null $callback A PHP callback to run whenever there is some * output available on STDOUT or STDERR * - * @return integer The exit status code + * @return int The exit status code * * @throws RuntimeException When process can't be launched * @throws RuntimeException When process stopped after receiving signal @@ -297,7 +297,7 @@ class Process * * @param callback|null $callback A valid PHP callback * - * @return integer The exitcode of the process + * @return int The exitcode of the process * * @throws RuntimeException When process timed out * @throws RuntimeException When process stopped after receiving signal @@ -333,7 +333,7 @@ class Process /** * Returns the Pid (process identifier), if applicable. * - * @return integer|null The process id if running, null otherwise + * @return int|null The process id if running, null otherwise * * @throws RuntimeException In case --enable-sigchild is activated */ @@ -450,7 +450,7 @@ class Process /** * Returns the exit code returned by the process. * - * @return null|integer The exit status code, null if the Process is not terminated + * @return null|int The exit status code, null if the Process is not terminated * * @throws RuntimeException In case --enable-sigchild is activated and the sigchild compatibility mode is disabled * @@ -492,7 +492,7 @@ class Process /** * Checks if the process ended successfully. * - * @return Boolean true if the process ended successfully, false otherwise + * @return bool true if the process ended successfully, false otherwise * * @api */ @@ -506,7 +506,7 @@ class Process * * It always returns false on Windows. * - * @return Boolean + * @return bool * * @throws RuntimeException In case --enable-sigchild is activated * @throws LogicException In case the process is not terminated @@ -531,7 +531,7 @@ class Process * * It is only meaningful if hasBeenSignaled() returns true. * - * @return integer + * @return int * * @throws RuntimeException In case --enable-sigchild is activated * @throws LogicException In case the process is not terminated @@ -556,7 +556,7 @@ class Process * * It always returns false on Windows. * - * @return Boolean + * @return bool * * @throws LogicException In case the process is not terminated * @@ -576,7 +576,7 @@ class Process * * It is only meaningful if hasBeenStopped() returns true. * - * @return integer + * @return int * * @throws LogicException In case the process is not terminated * @@ -594,7 +594,7 @@ class Process /** * Checks if the process is currently running. * - * @return Boolean true if the process is currently running, false otherwise + * @return bool true if the process is currently running, false otherwise */ public function isRunning() { @@ -610,7 +610,7 @@ class Process /** * Checks if the process has been started with no regard to the current state. * - * @return Boolean true if status is ready, false otherwise + * @return bool true if status is ready, false otherwise */ public function isStarted() { @@ -620,7 +620,7 @@ class Process /** * Checks if the process is terminated. * - * @return Boolean true if process is terminated, false otherwise + * @return bool true if process is terminated, false otherwise */ public function isTerminated() { @@ -649,7 +649,7 @@ class Process * @param int|float $timeout The timeout in seconds * @param int $signal A POSIX signal to send in case the process has not stop at timeout, default is SIGKILL * - * @return integer The exit-code of the process + * @return int The exit-code of the process * * @throws RuntimeException if the process got signaled */ @@ -784,7 +784,7 @@ class Process /** * Checks if the TTY mode is enabled. * - * @return Boolean true if the TTY mode is enabled, false otherwise + * @return bool true if the TTY mode is enabled, false otherwise */ public function isTty() { @@ -912,7 +912,7 @@ class Process * * This is true by default. * - * @return Boolean + * @return bool */ public function getEnhanceWindowsCompatibility() { @@ -936,7 +936,7 @@ class Process /** * Returns whether sigchild compatibility mode is activated or not. * - * @return Boolean + * @return bool */ public function getEnhanceSigchildCompatibility() { @@ -1056,7 +1056,7 @@ class Process /** * Returns whether PHP has been compiled with the '--enable-sigchild' option or not. * - * @return Boolean + * @return bool */ protected function isSigchildEnabled() { @@ -1110,7 +1110,7 @@ class Process /** * Closes process resource, closes file handles, sets the exitcode. * - * @return Integer The exitcode + * @return int The exitcode */ private function close() { @@ -1158,7 +1158,7 @@ class Process * @param int $signal A valid POSIX signal (see http://www.php.net/manual/en/pcntl.constants.php) * @param bool $throwException Whether to throw exception in case signal failed * - * @return Boolean True if the signal was sent successfully, false otherwise + * @return bool True if the signal was sent successfully, false otherwise * * @throws LogicException In case the process is not running * @throws RuntimeException In case --enable-sigchild is activated diff --git a/src/Symfony/Component/Process/ProcessPipes.php b/src/Symfony/Component/Process/ProcessPipes.php index d03dd6ba0c..f35d1c1287 100644 --- a/src/Symfony/Component/Process/ProcessPipes.php +++ b/src/Symfony/Component/Process/ProcessPipes.php @@ -26,9 +26,9 @@ class ProcessPipes private $fileHandles = array(); /** @var array */ private $readBytes = array(); - /** @var Boolean */ + /** @var bool */ private $useFiles; - /** @var Boolean */ + /** @var bool */ private $ttyMode; const CHUNK_SIZE = 16384; @@ -175,7 +175,7 @@ class ProcessPipes /** * Returns if the current state has open file handles or pipes. * - * @return Boolean + * @return bool */ public function hasOpenHandles() { @@ -333,7 +333,7 @@ class ProcessPipes /** * Returns true if a system call has been interrupted. * - * @return Boolean + * @return bool */ private function hasSystemCallBeenInterrupted() { diff --git a/src/Symfony/Component/PropertyAccess/PropertyAccessor.php b/src/Symfony/Component/PropertyAccess/PropertyAccessor.php index 8a1fe5f7da..a8d36358c9 100644 --- a/src/Symfony/Component/PropertyAccess/PropertyAccessor.php +++ b/src/Symfony/Component/PropertyAccess/PropertyAccessor.php @@ -426,7 +426,7 @@ class PropertyAccessor implements PropertyAccessorInterface * @param string $methodName The method name * @param int $parameters The number of parameters * - * @return Boolean Whether the method is public and has $parameters + * @return bool Whether the method is public and has $parameters * required parameters */ private function isAccessible(\ReflectionClass $class, $methodName, $parameters) diff --git a/src/Symfony/Component/PropertyAccess/PropertyAccessorBuilder.php b/src/Symfony/Component/PropertyAccess/PropertyAccessorBuilder.php index 25686e953f..6e23e95cab 100644 --- a/src/Symfony/Component/PropertyAccess/PropertyAccessorBuilder.php +++ b/src/Symfony/Component/PropertyAccess/PropertyAccessorBuilder.php @@ -19,7 +19,7 @@ namespace Symfony\Component\PropertyAccess; class PropertyAccessorBuilder { /** - * @var Boolean + * @var bool */ private $magicCall = false; @@ -48,7 +48,7 @@ class PropertyAccessorBuilder } /** - * @return Boolean true if the use of "__call" by the ProperyAccessor is enabled + * @return bool true if the use of "__call" by the ProperyAccessor is enabled */ public function isMagicCallEnabled() { diff --git a/src/Symfony/Component/PropertyAccess/PropertyPath.php b/src/Symfony/Component/PropertyAccess/PropertyPath.php index 840fc71572..6753e7c451 100644 --- a/src/Symfony/Component/PropertyAccess/PropertyPath.php +++ b/src/Symfony/Component/PropertyAccess/PropertyPath.php @@ -42,7 +42,7 @@ class PropertyPath implements \IteratorAggregate, PropertyPathInterface /** * The number of elements in the property path - * @var integer + * @var int */ private $length; diff --git a/src/Symfony/Component/PropertyAccess/PropertyPathBuilder.php b/src/Symfony/Component/PropertyAccess/PropertyPathBuilder.php index 45118f98a8..af2c46f904 100644 --- a/src/Symfony/Component/PropertyAccess/PropertyPathBuilder.php +++ b/src/Symfony/Component/PropertyAccess/PropertyPathBuilder.php @@ -189,7 +189,7 @@ class PropertyPathBuilder /** * Returns the length of the current path. * - * @return integer The path length + * @return int The path length */ public function getLength() { diff --git a/src/Symfony/Component/PropertyAccess/PropertyPathInterface.php b/src/Symfony/Component/PropertyAccess/PropertyPathInterface.php index fe5c7c8842..4708a2decc 100644 --- a/src/Symfony/Component/PropertyAccess/PropertyPathInterface.php +++ b/src/Symfony/Component/PropertyAccess/PropertyPathInterface.php @@ -28,7 +28,7 @@ interface PropertyPathInterface extends \Traversable /** * Returns the length of the property path, i.e. the number of elements. * - * @return integer The path length + * @return int The path length */ public function getLength(); @@ -67,7 +67,7 @@ interface PropertyPathInterface extends \Traversable * * @param int $index The index in the property path * - * @return Boolean Whether the element at this index is a property + * @return bool Whether the element at this index is a property * * @throws Exception\OutOfBoundsException If the offset is invalid */ @@ -78,7 +78,7 @@ interface PropertyPathInterface extends \Traversable * * @param int $index The index in the property path * - * @return Boolean Whether the element at this index is an array index + * @return bool Whether the element at this index is an array index * * @throws Exception\OutOfBoundsException If the offset is invalid */ diff --git a/src/Symfony/Component/PropertyAccess/PropertyPathIteratorInterface.php b/src/Symfony/Component/PropertyAccess/PropertyPathIteratorInterface.php index cb43f8d7ea..79b1bbfe82 100644 --- a/src/Symfony/Component/PropertyAccess/PropertyPathIteratorInterface.php +++ b/src/Symfony/Component/PropertyAccess/PropertyPathIteratorInterface.php @@ -20,7 +20,7 @@ interface PropertyPathIteratorInterface extends \Iterator, \SeekableIterator * Returns whether the current element in the property path is an array * index. * - * @return Boolean + * @return bool */ public function isIndex(); @@ -28,7 +28,7 @@ interface PropertyPathIteratorInterface extends \Iterator, \SeekableIterator * Returns whether the current element in the property path is a property * name. * - * @return Boolean + * @return bool */ public function isProperty(); } diff --git a/src/Symfony/Component/Routing/Generator/ConfigurableRequirementsInterface.php b/src/Symfony/Component/Routing/Generator/ConfigurableRequirementsInterface.php index 4afc3cbcfd..3cf7edfa7b 100644 --- a/src/Symfony/Component/Routing/Generator/ConfigurableRequirementsInterface.php +++ b/src/Symfony/Component/Routing/Generator/ConfigurableRequirementsInterface.php @@ -49,7 +49,7 @@ interface ConfigurableRequirementsInterface * Returns whether to throw an exception on incorrect parameters. * Null means the requirements check is deactivated completely. * - * @return Boolean|null + * @return bool|null */ public function isStrictRequirements(); } diff --git a/src/Symfony/Component/Routing/Generator/UrlGenerator.php b/src/Symfony/Component/Routing/Generator/UrlGenerator.php index 4c926c2a45..ea8a4f08af 100644 --- a/src/Symfony/Component/Routing/Generator/UrlGenerator.php +++ b/src/Symfony/Component/Routing/Generator/UrlGenerator.php @@ -40,7 +40,7 @@ class UrlGenerator implements UrlGeneratorInterface, ConfigurableRequirementsInt protected $context; /** - * @var Boolean|null + * @var bool|null */ protected $strictRequirements = true; diff --git a/src/Symfony/Component/Routing/Loader/AnnotationClassLoader.php b/src/Symfony/Component/Routing/Loader/AnnotationClassLoader.php index 7abab5a631..f0777a05b3 100644 --- a/src/Symfony/Component/Routing/Loader/AnnotationClassLoader.php +++ b/src/Symfony/Component/Routing/Loader/AnnotationClassLoader.php @@ -68,7 +68,7 @@ abstract class AnnotationClassLoader implements LoaderInterface protected $routeAnnotationClass = 'Symfony\\Component\\Routing\\Annotation\\Route'; /** - * @var integer + * @var int */ protected $defaultRouteIndex = 0; diff --git a/src/Symfony/Component/Routing/Matcher/Dumper/DumperCollection.php b/src/Symfony/Component/Routing/Matcher/Dumper/DumperCollection.php index 612ac0d25a..25e8e24534 100644 --- a/src/Symfony/Component/Routing/Matcher/Dumper/DumperCollection.php +++ b/src/Symfony/Component/Routing/Matcher/Dumper/DumperCollection.php @@ -116,7 +116,7 @@ class DumperCollection implements \IteratorAggregate * * @param string $name The attribute name * - * @return Boolean true if the attribute is defined, false otherwise + * @return bool true if the attribute is defined, false otherwise */ public function hasAttribute($name) { diff --git a/src/Symfony/Component/Routing/RequestContext.php b/src/Symfony/Component/Routing/RequestContext.php index 8c7fae9d50..93fd09ad5b 100644 --- a/src/Symfony/Component/Routing/RequestContext.php +++ b/src/Symfony/Component/Routing/RequestContext.php @@ -293,7 +293,7 @@ class RequestContext * * @param string $name A parameter name * - * @return Boolean true if the parameter value is set, false otherwise + * @return bool true if the parameter value is set, false otherwise */ public function hasParameter($name) { diff --git a/src/Symfony/Component/Routing/Route.php b/src/Symfony/Component/Routing/Route.php index 5bc535c683..0adf704a1a 100644 --- a/src/Symfony/Component/Routing/Route.php +++ b/src/Symfony/Component/Routing/Route.php @@ -362,7 +362,7 @@ class Route implements \Serializable * * @param string $name An option name * - * @return Boolean true if the option is set, false otherwise + * @return bool true if the option is set, false otherwise */ public function hasOption($name) { @@ -431,7 +431,7 @@ class Route implements \Serializable * * @param string $name A variable name * - * @return Boolean true if the default value is set, false otherwise + * @return bool true if the default value is set, false otherwise */ public function hasDefault($name) { @@ -518,7 +518,7 @@ class Route implements \Serializable * * @param string $key A variable name * - * @return Boolean true if a requirement is specified, false otherwise + * @return bool true if a requirement is specified, false otherwise */ public function hasRequirement($key) { diff --git a/src/Symfony/Component/Security/Acl/Dbal/AclProvider.php b/src/Symfony/Component/Security/Acl/Dbal/AclProvider.php index d1b6198475..9b0774b563 100644 --- a/src/Symfony/Component/Security/Acl/Dbal/AclProvider.php +++ b/src/Symfony/Component/Security/Acl/Dbal/AclProvider.php @@ -374,7 +374,7 @@ QUERY; * Returns the primary key of the passed object identity. * * @param ObjectIdentityInterface $oid - * @return integer + * @return int */ final protected function retrieveObjectIdentityPrimaryKey(ObjectIdentityInterface $oid) { diff --git a/src/Symfony/Component/Security/Acl/Dbal/MutableAclProvider.php b/src/Symfony/Component/Security/Acl/Dbal/MutableAclProvider.php index 482f4436a4..ae86060e0f 100644 --- a/src/Symfony/Component/Security/Acl/Dbal/MutableAclProvider.php +++ b/src/Symfony/Component/Security/Acl/Dbal/MutableAclProvider.php @@ -673,7 +673,7 @@ QUERY; * If the type does not yet exist in the database, it will be created. * * @param string $classType - * @return integer + * @return int */ private function createOrRetrieveClassId($classType) { @@ -693,7 +693,7 @@ QUERY; * created. * * @param SecurityIdentityInterface $sid - * @return integer + * @return int */ private function createOrRetrieveSecurityIdentityId(SecurityIdentityInterface $sid) { diff --git a/src/Symfony/Component/Security/Acl/Domain/PermissionGrantingStrategy.php b/src/Symfony/Component/Security/Acl/Domain/PermissionGrantingStrategy.php index d031b34325..0ca078534c 100644 --- a/src/Symfony/Component/Security/Acl/Domain/PermissionGrantingStrategy.php +++ b/src/Symfony/Component/Security/Acl/Domain/PermissionGrantingStrategy.php @@ -130,7 +130,7 @@ class PermissionGrantingStrategy implements PermissionGrantingStrategyInterface * @param SecurityIdentityInterface[] $sids An array of SecurityIdentityInterface implementations * @param bool $administrativeMode True turns off audit logging * - * @return Boolean true, or false; either granting, or denying access respectively. + * @return bool true, or false; either granting, or denying access respectively. * * @throws NoAceFoundException */ @@ -191,7 +191,7 @@ class PermissionGrantingStrategy implements PermissionGrantingStrategyInterface * @param int $requiredMask * @param EntryInterface $ace * - * @return Boolean + * @return bool * * @throws \RuntimeException if the ACE strategy is not supported */ diff --git a/src/Symfony/Component/Security/Acl/Model/AclInterface.php b/src/Symfony/Component/Security/Acl/Model/AclInterface.php index 800eaa8933..85a4e833bd 100644 --- a/src/Symfony/Component/Security/Acl/Model/AclInterface.php +++ b/src/Symfony/Component/Security/Acl/Model/AclInterface.php @@ -72,7 +72,7 @@ interface AclInterface extends \Serializable /** * Whether this ACL is inheriting ACEs from a parent ACL. * - * @return Boolean + * @return bool */ public function isEntriesInheriting(); @@ -83,7 +83,7 @@ interface AclInterface extends \Serializable * @param array $masks * @param array $securityIdentities * @param bool $administrativeMode - * @return Boolean + * @return bool */ public function isFieldGranted($field, array $masks, array $securityIdentities, $administrativeMode = false); @@ -94,7 +94,7 @@ interface AclInterface extends \Serializable * @param array $masks * @param array $securityIdentities * @param bool $administrativeMode - * @return Boolean + * @return bool */ public function isGranted(array $masks, array $securityIdentities, $administrativeMode = false); @@ -102,7 +102,7 @@ interface AclInterface extends \Serializable * Whether the ACL has loaded ACEs for all of the passed security identities * * @param mixed $securityIdentities an implementation of SecurityIdentityInterface, or an array thereof - * @return Boolean + * @return bool */ public function isSidLoaded($securityIdentities); } diff --git a/src/Symfony/Component/Security/Acl/Model/AuditableEntryInterface.php b/src/Symfony/Component/Security/Acl/Model/AuditableEntryInterface.php index e957965c48..509acdafc1 100644 --- a/src/Symfony/Component/Security/Acl/Model/AuditableEntryInterface.php +++ b/src/Symfony/Component/Security/Acl/Model/AuditableEntryInterface.php @@ -21,14 +21,14 @@ interface AuditableEntryInterface extends EntryInterface /** * Whether auditing for successful grants is turned on * - * @return Boolean + * @return bool */ public function isAuditFailure(); /** * Whether auditing for successful denies is turned on * - * @return Boolean + * @return bool */ public function isAuditSuccess(); } diff --git a/src/Symfony/Component/Security/Acl/Model/EntryInterface.php b/src/Symfony/Component/Security/Acl/Model/EntryInterface.php index 98b754c111..b33f1f0b6f 100644 --- a/src/Symfony/Component/Security/Acl/Model/EntryInterface.php +++ b/src/Symfony/Component/Security/Acl/Model/EntryInterface.php @@ -31,14 +31,14 @@ interface EntryInterface extends \Serializable /** * The primary key of this ACE * - * @return integer + * @return int */ public function getId(); /** * The permission mask of this ACE * - * @return integer + * @return int */ public function getMask(); @@ -59,7 +59,7 @@ interface EntryInterface extends \Serializable /** * Returns whether this ACE is granting, or denying * - * @return Boolean + * @return bool */ public function isGranting(); } diff --git a/src/Symfony/Component/Security/Acl/Model/MutableAclInterface.php b/src/Symfony/Component/Security/Acl/Model/MutableAclInterface.php index d76c598d40..8993aa5556 100644 --- a/src/Symfony/Component/Security/Acl/Model/MutableAclInterface.php +++ b/src/Symfony/Component/Security/Acl/Model/MutableAclInterface.php @@ -54,7 +54,7 @@ interface MutableAclInterface extends AclInterface /** * Returns the primary key of this ACL * - * @return integer + * @return int */ public function getId(); diff --git a/src/Symfony/Component/Security/Acl/Model/ObjectIdentityInterface.php b/src/Symfony/Component/Security/Acl/Model/ObjectIdentityInterface.php index 8ad0ebae61..2ee365f44f 100644 --- a/src/Symfony/Component/Security/Acl/Model/ObjectIdentityInterface.php +++ b/src/Symfony/Component/Security/Acl/Model/ObjectIdentityInterface.php @@ -28,7 +28,7 @@ interface ObjectIdentityInterface * Example for Object Equality: $object1->getId() === $object2->getId() * * @param ObjectIdentityInterface $identity - * @return Boolean + * @return bool */ public function equals(ObjectIdentityInterface $identity); diff --git a/src/Symfony/Component/Security/Acl/Model/PermissionGrantingStrategyInterface.php b/src/Symfony/Component/Security/Acl/Model/PermissionGrantingStrategyInterface.php index def5fd17db..25f16877a6 100644 --- a/src/Symfony/Component/Security/Acl/Model/PermissionGrantingStrategyInterface.php +++ b/src/Symfony/Component/Security/Acl/Model/PermissionGrantingStrategyInterface.php @@ -25,7 +25,7 @@ interface PermissionGrantingStrategyInterface * @param array $masks * @param array $sids * @param bool $administrativeMode - * @return Boolean + * @return bool */ public function isGranted(AclInterface $acl, array $masks, array $sids, $administrativeMode = false); @@ -38,7 +38,7 @@ interface PermissionGrantingStrategyInterface * @param array $sids * @param bool $administrativeMode * - * @return Boolean + * @return bool */ public function isFieldGranted(AclInterface $acl, $field, array $masks, array $sids, $administrativeMode = false); } diff --git a/src/Symfony/Component/Security/Acl/Permission/MaskBuilder.php b/src/Symfony/Component/Security/Acl/Permission/MaskBuilder.php index c0d21ace41..4d475fbce4 100644 --- a/src/Symfony/Component/Security/Acl/Permission/MaskBuilder.php +++ b/src/Symfony/Component/Security/Acl/Permission/MaskBuilder.php @@ -110,7 +110,7 @@ class MaskBuilder /** * Returns the mask of this permission * - * @return integer + * @return int */ public function get() { diff --git a/src/Symfony/Component/Security/Acl/Permission/PermissionMapInterface.php b/src/Symfony/Component/Security/Acl/Permission/PermissionMapInterface.php index 44c15cc945..20ca181485 100644 --- a/src/Symfony/Component/Security/Acl/Permission/PermissionMapInterface.php +++ b/src/Symfony/Component/Security/Acl/Permission/PermissionMapInterface.php @@ -34,7 +34,7 @@ interface PermissionMapInterface * Whether this map contains the given permission * * @param string $permission - * @return Boolean + * @return bool */ public function contains($permission); } diff --git a/src/Symfony/Component/Security/Acl/Voter/AclVoter.php b/src/Symfony/Component/Security/Acl/Voter/AclVoter.php index 5e9aee6fa6..d401ef3bed 100644 --- a/src/Symfony/Component/Security/Acl/Voter/AclVoter.php +++ b/src/Symfony/Component/Security/Acl/Voter/AclVoter.php @@ -134,7 +134,7 @@ class AclVoter implements VoterInterface * * @param string $class The class name * - * @return Boolean + * @return bool */ public function supportsClass($class) { diff --git a/src/Symfony/Component/Security/Core/Authentication/AuthenticationTrustResolverInterface.php b/src/Symfony/Component/Security/Core/Authentication/AuthenticationTrustResolverInterface.php index ac07db0afa..03b48e9eb6 100644 --- a/src/Symfony/Component/Security/Core/Authentication/AuthenticationTrustResolverInterface.php +++ b/src/Symfony/Component/Security/Core/Authentication/AuthenticationTrustResolverInterface.php @@ -28,7 +28,7 @@ interface AuthenticationTrustResolverInterface * * @param TokenInterface $token * - * @return Boolean + * @return bool */ public function isAnonymous(TokenInterface $token = null); @@ -38,7 +38,7 @@ interface AuthenticationTrustResolverInterface * * @param TokenInterface $token * - * @return Boolean + * @return bool */ public function isRememberMe(TokenInterface $token = null); @@ -47,7 +47,7 @@ interface AuthenticationTrustResolverInterface * * @param TokenInterface $token * - * @return Boolean + * @return bool */ public function isFullFledged(TokenInterface $token = null); } diff --git a/src/Symfony/Component/Security/Core/Authentication/Provider/AuthenticationProviderInterface.php b/src/Symfony/Component/Security/Core/Authentication/Provider/AuthenticationProviderInterface.php index f63a9248e0..23724dbaa3 100644 --- a/src/Symfony/Component/Security/Core/Authentication/Provider/AuthenticationProviderInterface.php +++ b/src/Symfony/Component/Security/Core/Authentication/Provider/AuthenticationProviderInterface.php @@ -29,7 +29,7 @@ interface AuthenticationProviderInterface extends AuthenticationManagerInterface * * @param TokenInterface $token A TokenInterface instance * - * @return Boolean true if the implementation supports the Token, false otherwise + * @return bool true if the implementation supports the Token, false otherwise */ public function supports(TokenInterface $token); } diff --git a/src/Symfony/Component/Security/Core/Authentication/Token/AbstractToken.php b/src/Symfony/Component/Security/Core/Authentication/Token/AbstractToken.php index c22522cb93..993960be9c 100644 --- a/src/Symfony/Component/Security/Core/Authentication/Token/AbstractToken.php +++ b/src/Symfony/Component/Security/Core/Authentication/Token/AbstractToken.php @@ -192,7 +192,7 @@ abstract class AbstractToken implements TokenInterface * * @param string $name The attribute name * - * @return Boolean true if the attribute exists, false otherwise + * @return bool true if the attribute exists, false otherwise */ public function hasAttribute($name) { diff --git a/src/Symfony/Component/Security/Core/Authentication/Token/TokenInterface.php b/src/Symfony/Component/Security/Core/Authentication/Token/TokenInterface.php index a9094697b0..8f7d03fd27 100644 --- a/src/Symfony/Component/Security/Core/Authentication/Token/TokenInterface.php +++ b/src/Symfony/Component/Security/Core/Authentication/Token/TokenInterface.php @@ -69,7 +69,7 @@ interface TokenInterface extends \Serializable /** * Returns whether the user is authenticated or not. * - * @return Boolean true if the token has been authenticated, false otherwise + * @return bool true if the token has been authenticated, false otherwise */ public function isAuthenticated(); @@ -104,7 +104,7 @@ interface TokenInterface extends \Serializable * * @param string $name The attribute name * - * @return Boolean true if the attribute exists, false otherwise + * @return bool true if the attribute exists, false otherwise */ public function hasAttribute($name); diff --git a/src/Symfony/Component/Security/Core/Authorization/AccessDecisionManagerInterface.php b/src/Symfony/Component/Security/Core/Authorization/AccessDecisionManagerInterface.php index 742ea74fb6..ec82800dc6 100644 --- a/src/Symfony/Component/Security/Core/Authorization/AccessDecisionManagerInterface.php +++ b/src/Symfony/Component/Security/Core/Authorization/AccessDecisionManagerInterface.php @@ -27,7 +27,7 @@ interface AccessDecisionManagerInterface * @param array $attributes An array of attributes associated with the method being invoked * @param object $object The object to secure * - * @return Boolean true if the access is granted, false otherwise + * @return bool true if the access is granted, false otherwise */ public function decide(TokenInterface $token, array $attributes, $object = null); @@ -36,7 +36,7 @@ interface AccessDecisionManagerInterface * * @param string $attribute An attribute * - * @return Boolean true if this decision manager supports the attribute, false otherwise + * @return bool true if this decision manager supports the attribute, false otherwise */ public function supportsAttribute($attribute); diff --git a/src/Symfony/Component/Security/Core/Authorization/Voter/VoterInterface.php b/src/Symfony/Component/Security/Core/Authorization/Voter/VoterInterface.php index 0840c1c622..abc18b438b 100644 --- a/src/Symfony/Component/Security/Core/Authorization/Voter/VoterInterface.php +++ b/src/Symfony/Component/Security/Core/Authorization/Voter/VoterInterface.php @@ -29,7 +29,7 @@ interface VoterInterface * * @param string $attribute An attribute * - * @return Boolean true if this Voter supports the attribute, false otherwise + * @return bool true if this Voter supports the attribute, false otherwise */ public function supportsAttribute($attribute); @@ -38,7 +38,7 @@ interface VoterInterface * * @param string $class A class name * - * @return Boolean true if this Voter can process the class + * @return bool true if this Voter can process the class */ public function supportsClass($class); @@ -52,7 +52,7 @@ interface VoterInterface * @param object $object The object to secure * @param array $attributes An array of attributes associated with the method being invoked * - * @return integer either ACCESS_GRANTED, ACCESS_ABSTAIN, or ACCESS_DENIED + * @return int either ACCESS_GRANTED, ACCESS_ABSTAIN, or ACCESS_DENIED */ public function vote(TokenInterface $token, $object, array $attributes); } diff --git a/src/Symfony/Component/Security/Core/Encoder/BasePasswordEncoder.php b/src/Symfony/Component/Security/Core/Encoder/BasePasswordEncoder.php index b83eb3050d..b27c2b0b95 100644 --- a/src/Symfony/Component/Security/Core/Encoder/BasePasswordEncoder.php +++ b/src/Symfony/Component/Security/Core/Encoder/BasePasswordEncoder.php @@ -79,7 +79,7 @@ abstract class BasePasswordEncoder implements PasswordEncoderInterface * @param string $password1 The first password * @param string $password2 The second password * - * @return Boolean true if the two passwords are the same, false otherwise + * @return bool true if the two passwords are the same, false otherwise */ protected function comparePasswords($password1, $password2) { @@ -89,7 +89,7 @@ abstract class BasePasswordEncoder implements PasswordEncoderInterface /** * Checks if the password is too long. * - * @return Boolean true if the password is too long, false otherwise + * @return bool true if the password is too long, false otherwise */ protected function isPasswordTooLong($password) { diff --git a/src/Symfony/Component/Security/Core/Encoder/PasswordEncoderInterface.php b/src/Symfony/Component/Security/Core/Encoder/PasswordEncoderInterface.php index 78b4e42a87..23acaf3789 100644 --- a/src/Symfony/Component/Security/Core/Encoder/PasswordEncoderInterface.php +++ b/src/Symfony/Component/Security/Core/Encoder/PasswordEncoderInterface.php @@ -35,7 +35,7 @@ interface PasswordEncoderInterface * @param string $raw A raw password * @param string $salt The salt * - * @return Boolean true if the password is valid, false otherwise + * @return bool true if the password is valid, false otherwise */ public function isPasswordValid($encoded, $raw, $salt); } diff --git a/src/Symfony/Component/Security/Core/SecurityContextInterface.php b/src/Symfony/Component/Security/Core/SecurityContextInterface.php index 434f9a580a..ca816a8e48 100644 --- a/src/Symfony/Component/Security/Core/SecurityContextInterface.php +++ b/src/Symfony/Component/Security/Core/SecurityContextInterface.php @@ -44,7 +44,7 @@ interface SecurityContextInterface * @param mixed $attributes * @param mixed $object * - * @return Boolean + * @return bool */ public function isGranted($attributes, $object = null); } diff --git a/src/Symfony/Component/Security/Core/User/AdvancedUserInterface.php b/src/Symfony/Component/Security/Core/User/AdvancedUserInterface.php index 5b3a51a191..19775c0fd1 100644 --- a/src/Symfony/Component/Security/Core/User/AdvancedUserInterface.php +++ b/src/Symfony/Component/Security/Core/User/AdvancedUserInterface.php @@ -43,7 +43,7 @@ interface AdvancedUserInterface extends UserInterface * Internally, if this method returns false, the authentication system * will throw an AccountExpiredException and prevent login. * - * @return Boolean true if the user's account is non expired, false otherwise + * @return bool true if the user's account is non expired, false otherwise * * @see AccountExpiredException */ @@ -55,7 +55,7 @@ interface AdvancedUserInterface extends UserInterface * Internally, if this method returns false, the authentication system * will throw a LockedException and prevent login. * - * @return Boolean true if the user is not locked, false otherwise + * @return bool true if the user is not locked, false otherwise * * @see LockedException */ @@ -67,7 +67,7 @@ interface AdvancedUserInterface extends UserInterface * Internally, if this method returns false, the authentication system * will throw a CredentialsExpiredException and prevent login. * - * @return Boolean true if the user's credentials are non expired, false otherwise + * @return bool true if the user's credentials are non expired, false otherwise * * @see CredentialsExpiredException */ @@ -79,7 +79,7 @@ interface AdvancedUserInterface extends UserInterface * Internally, if this method returns false, the authentication system * will throw a DisabledException and prevent login. * - * @return Boolean true if the user is enabled, false otherwise + * @return bool true if the user is enabled, false otherwise * * @see DisabledException */ diff --git a/src/Symfony/Component/Security/Core/User/EquatableInterface.php b/src/Symfony/Component/Security/Core/User/EquatableInterface.php index 645b77c142..c6082ce501 100644 --- a/src/Symfony/Component/Security/Core/User/EquatableInterface.php +++ b/src/Symfony/Component/Security/Core/User/EquatableInterface.php @@ -31,7 +31,7 @@ interface EquatableInterface * * @param UserInterface $user * - * @return Boolean + * @return bool */ public function isEqualTo(UserInterface $user); } diff --git a/src/Symfony/Component/Security/Core/User/UserProviderInterface.php b/src/Symfony/Component/Security/Core/User/UserProviderInterface.php index 6669c437af..6b7895cd20 100644 --- a/src/Symfony/Component/Security/Core/User/UserProviderInterface.php +++ b/src/Symfony/Component/Security/Core/User/UserProviderInterface.php @@ -70,7 +70,7 @@ interface UserProviderInterface * * @param string $class * - * @return Boolean + * @return bool */ public function supportsClass($class); } diff --git a/src/Symfony/Component/Security/Core/Util/StringUtils.php b/src/Symfony/Component/Security/Core/Util/StringUtils.php index 2e8925d4a6..d47bd4bb37 100644 --- a/src/Symfony/Component/Security/Core/Util/StringUtils.php +++ b/src/Symfony/Component/Security/Core/Util/StringUtils.php @@ -31,7 +31,7 @@ class StringUtils * @param string $knownString The string of known length to compare against * @param string $userInput The string that the user can control * - * @return Boolean true if the two strings are the same, false otherwise + * @return bool true if the two strings are the same, false otherwise */ public static function equals($knownString, $userInput) { diff --git a/src/Symfony/Component/Security/Http/Firewall/AbstractAuthenticationListener.php b/src/Symfony/Component/Security/Http/Firewall/AbstractAuthenticationListener.php index 7fa991ce09..80bfcd0b96 100644 --- a/src/Symfony/Component/Security/Http/Firewall/AbstractAuthenticationListener.php +++ b/src/Symfony/Component/Security/Http/Firewall/AbstractAuthenticationListener.php @@ -171,7 +171,7 @@ abstract class AbstractAuthenticationListener implements ListenerInterface * * @param Request $request * - * @return Boolean + * @return bool */ protected function requiresAuthentication(Request $request) { diff --git a/src/Symfony/Component/Security/Http/Firewall/LogoutListener.php b/src/Symfony/Component/Security/Http/Firewall/LogoutListener.php index 7dc9503bd9..722f4a1389 100644 --- a/src/Symfony/Component/Security/Http/Firewall/LogoutListener.php +++ b/src/Symfony/Component/Security/Http/Firewall/LogoutListener.php @@ -121,7 +121,7 @@ class LogoutListener implements ListenerInterface * * @param Request $request * - * @return Boolean + * @return bool */ protected function requiresLogout(Request $request) { diff --git a/src/Symfony/Component/Security/Http/HttpUtils.php b/src/Symfony/Component/Security/Http/HttpUtils.php index a7b0226d05..50d4f26355 100644 --- a/src/Symfony/Component/Security/Http/HttpUtils.php +++ b/src/Symfony/Component/Security/Http/HttpUtils.php @@ -96,7 +96,7 @@ class HttpUtils * @param Request $request A Request instance * @param string $path A path (an absolute path (/foo), an absolute URL (http://...), or a route name (foo)) * - * @return Boolean true if the path is the same as the one from the Request, false otherwise + * @return bool true if the path is the same as the one from the Request, false otherwise */ public function checkRequestPath(Request $request, $path) { diff --git a/src/Symfony/Component/Security/Http/RememberMe/AbstractRememberMeServices.php b/src/Symfony/Component/Security/Http/RememberMe/AbstractRememberMeServices.php index 740d3d658c..1e60db0fca 100644 --- a/src/Symfony/Component/Security/Http/RememberMe/AbstractRememberMeServices.php +++ b/src/Symfony/Component/Security/Http/RememberMe/AbstractRememberMeServices.php @@ -295,7 +295,7 @@ abstract class AbstractRememberMeServices implements RememberMeServicesInterface * * @param Request $request * - * @return Boolean + * @return bool */ protected function isRememberMeRequested(Request $request) { diff --git a/src/Symfony/Component/Security/Http/RememberMe/TokenBasedRememberMeServices.php b/src/Symfony/Component/Security/Http/RememberMe/TokenBasedRememberMeServices.php index 75a2a0dd18..db1b5081dc 100644 --- a/src/Symfony/Component/Security/Http/RememberMe/TokenBasedRememberMeServices.php +++ b/src/Symfony/Component/Security/Http/RememberMe/TokenBasedRememberMeServices.php @@ -73,7 +73,7 @@ class TokenBasedRememberMeServices extends AbstractRememberMeServices * @param string $hash1 The first hash * @param string $hash2 The second hash * - * @return Boolean true if the two hashes are the same, false otherwise + * @return bool true if the two hashes are the same, false otherwise */ private function compareHashes($hash1, $hash2) { diff --git a/src/Symfony/Component/Serializer/Encoder/ChainEncoder.php b/src/Symfony/Component/Serializer/Encoder/ChainEncoder.php index 088420b118..43dfa00118 100644 --- a/src/Symfony/Component/Serializer/Encoder/ChainEncoder.php +++ b/src/Symfony/Component/Serializer/Encoder/ChainEncoder.php @@ -57,7 +57,7 @@ class ChainEncoder implements EncoderInterface * * @param string $format * - * @return Boolean + * @return bool */ public function needsNormalization($format) { diff --git a/src/Symfony/Component/Serializer/Encoder/DecoderInterface.php b/src/Symfony/Component/Serializer/Encoder/DecoderInterface.php index 9dd336d5f7..892e731b5c 100644 --- a/src/Symfony/Component/Serializer/Encoder/DecoderInterface.php +++ b/src/Symfony/Component/Serializer/Encoder/DecoderInterface.php @@ -39,7 +39,7 @@ interface DecoderInterface * * @param string $format format name * - * @return Boolean + * @return bool */ public function supportsDecoding($format); } diff --git a/src/Symfony/Component/Serializer/Encoder/EncoderInterface.php b/src/Symfony/Component/Serializer/Encoder/EncoderInterface.php index 2290db7f50..ff0225e1a7 100644 --- a/src/Symfony/Component/Serializer/Encoder/EncoderInterface.php +++ b/src/Symfony/Component/Serializer/Encoder/EncoderInterface.php @@ -34,7 +34,7 @@ interface EncoderInterface * * @param string $format format name * - * @return Boolean + * @return bool */ public function supportsEncoding($format); } diff --git a/src/Symfony/Component/Serializer/Encoder/JsonDecode.php b/src/Symfony/Component/Serializer/Encoder/JsonDecode.php index 6a593f85f1..aad5b79cbb 100644 --- a/src/Symfony/Component/Serializer/Encoder/JsonDecode.php +++ b/src/Symfony/Component/Serializer/Encoder/JsonDecode.php @@ -21,14 +21,14 @@ class JsonDecode implements DecoderInterface /** * Specifies if the returned result should be an associative array or a nested stdClass object hierarchy. * - * @var Boolean + * @var bool */ private $associative; /** * Specifies the recursion depth. * - * @var integer + * @var int */ private $recursionDepth; @@ -50,7 +50,7 @@ class JsonDecode implements DecoderInterface /** * Returns the last decoding error (if any). * - * @return integer + * @return int * * @see http://php.net/manual/en/function.json-last-error.php json_last_error */ diff --git a/src/Symfony/Component/Serializer/Encoder/JsonEncode.php b/src/Symfony/Component/Serializer/Encoder/JsonEncode.php index 4e0de3ed75..e8a06835d1 100644 --- a/src/Symfony/Component/Serializer/Encoder/JsonEncode.php +++ b/src/Symfony/Component/Serializer/Encoder/JsonEncode.php @@ -29,7 +29,7 @@ class JsonEncode implements EncoderInterface /** * Returns the last encoding error (if any) * - * @return integer + * @return int * * @see http://php.net/manual/en/function.json-last-error.php json_last_error */ diff --git a/src/Symfony/Component/Serializer/Encoder/JsonEncoder.php b/src/Symfony/Component/Serializer/Encoder/JsonEncoder.php index 02b179bc91..ea6e3818e1 100644 --- a/src/Symfony/Component/Serializer/Encoder/JsonEncoder.php +++ b/src/Symfony/Component/Serializer/Encoder/JsonEncoder.php @@ -39,7 +39,7 @@ class JsonEncoder implements EncoderInterface, DecoderInterface /** * Returns the last encoding error (if any) * - * @return integer + * @return int */ public function getLastEncodingError() { @@ -49,7 +49,7 @@ class JsonEncoder implements EncoderInterface, DecoderInterface /** * Returns the last decoding error (if any) * - * @return integer + * @return int */ public function getLastDecodingError() { diff --git a/src/Symfony/Component/Serializer/Encoder/XmlEncoder.php b/src/Symfony/Component/Serializer/Encoder/XmlEncoder.php index 33630079f6..ca3509a819 100644 --- a/src/Symfony/Component/Serializer/Encoder/XmlEncoder.php +++ b/src/Symfony/Component/Serializer/Encoder/XmlEncoder.php @@ -119,7 +119,7 @@ class XmlEncoder extends SerializerAwareEncoder implements EncoderInterface, Dec * * @param string $format format name * - * @return Boolean + * @return bool */ public function supportsEncoding($format) { @@ -131,7 +131,7 @@ class XmlEncoder extends SerializerAwareEncoder implements EncoderInterface, Dec * * @param string $format format name * - * @return Boolean + * @return bool */ public function supportsDecoding($format) { @@ -161,7 +161,7 @@ class XmlEncoder extends SerializerAwareEncoder implements EncoderInterface, Dec * @param \DOMNode $node * @param string $val * - * @return Boolean + * @return bool */ final protected function appendXMLString($node, $val) { @@ -180,7 +180,7 @@ class XmlEncoder extends SerializerAwareEncoder implements EncoderInterface, Dec * @param DOMNode $node * @param string $val * - * @return Boolean + * @return bool */ final protected function appendText($node, $val) { @@ -194,7 +194,7 @@ class XmlEncoder extends SerializerAwareEncoder implements EncoderInterface, Dec * @param DOMNode $node * @param string $val * - * @return Boolean + * @return bool */ final protected function appendCData($node, $val) { @@ -208,7 +208,7 @@ class XmlEncoder extends SerializerAwareEncoder implements EncoderInterface, Dec * @param DOMNode $node * @param DOMDocumentFragment $fragment * - * @return Boolean + * @return bool */ final protected function appendDocumentFragment($node, $fragment) { @@ -226,7 +226,7 @@ class XmlEncoder extends SerializerAwareEncoder implements EncoderInterface, Dec * * @param string $name * - * @return Boolean + * @return bool */ final protected function isElementNameValid($name) { @@ -293,7 +293,7 @@ class XmlEncoder extends SerializerAwareEncoder implements EncoderInterface, Dec * @param array|object $data data * @param string $xmlRootNodeName * - * @return Boolean + * @return bool * * @throws UnexpectedValueException */ @@ -362,7 +362,7 @@ class XmlEncoder extends SerializerAwareEncoder implements EncoderInterface, Dec * @param string $nodeName * @param string $key * - * @return Boolean + * @return bool */ private function appendNode($parentNode, $data, $nodeName, $key = null) { @@ -384,7 +384,7 @@ class XmlEncoder extends SerializerAwareEncoder implements EncoderInterface, Dec * * @param string $val * - * @return Boolean + * @return bool */ private function needsCdataWrapping($val) { @@ -397,7 +397,7 @@ class XmlEncoder extends SerializerAwareEncoder implements EncoderInterface, Dec * @param DOMNode $node * @param mixed $val * - * @return Boolean + * @return bool */ private function selectNodeType($node, $val) { diff --git a/src/Symfony/Component/Serializer/Normalizer/CustomNormalizer.php b/src/Symfony/Component/Serializer/Normalizer/CustomNormalizer.php index 645224129e..83c3c14384 100644 --- a/src/Symfony/Component/Serializer/Normalizer/CustomNormalizer.php +++ b/src/Symfony/Component/Serializer/Normalizer/CustomNormalizer.php @@ -41,7 +41,7 @@ class CustomNormalizer extends SerializerAwareNormalizer implements NormalizerIn * @param mixed $data Data to normalize. * @param string $format The format being (de-)serialized from or into. * - * @return Boolean + * @return bool */ public function supportsNormalization($data, $format = null) { @@ -55,7 +55,7 @@ class CustomNormalizer extends SerializerAwareNormalizer implements NormalizerIn * @param string $type The class to which the data should be denormalized. * @param string $format The format being deserialized from. * - * @return Boolean + * @return bool */ public function supportsDenormalization($data, $type, $format = null) { diff --git a/src/Symfony/Component/Serializer/Normalizer/DenormalizerInterface.php b/src/Symfony/Component/Serializer/Normalizer/DenormalizerInterface.php index 1a5ff93f75..001dd6863d 100644 --- a/src/Symfony/Component/Serializer/Normalizer/DenormalizerInterface.php +++ b/src/Symfony/Component/Serializer/Normalizer/DenormalizerInterface.php @@ -37,7 +37,7 @@ interface DenormalizerInterface * @param string $type The class to which the data should be denormalized. * @param string $format The format being deserialized from. * - * @return Boolean + * @return bool */ public function supportsDenormalization($data, $type, $format = null); } diff --git a/src/Symfony/Component/Serializer/Normalizer/GetSetMethodNormalizer.php b/src/Symfony/Component/Serializer/Normalizer/GetSetMethodNormalizer.php index 8600b31af1..3d7dad3975 100644 --- a/src/Symfony/Component/Serializer/Normalizer/GetSetMethodNormalizer.php +++ b/src/Symfony/Component/Serializer/Normalizer/GetSetMethodNormalizer.php @@ -195,7 +195,7 @@ class GetSetMethodNormalizer extends SerializerAwareNormalizer implements Normal * * @param string $class * - * @return Boolean + * @return bool */ private function supports($class) { @@ -215,7 +215,7 @@ class GetSetMethodNormalizer extends SerializerAwareNormalizer implements Normal * * @param \ReflectionMethod $method the method to check * - * @return Boolean whether the method is a getter. + * @return bool whether the method is a getter. */ private function isGetMethod(\ReflectionMethod $method) { diff --git a/src/Symfony/Component/Serializer/Normalizer/NormalizerInterface.php b/src/Symfony/Component/Serializer/Normalizer/NormalizerInterface.php index 744307a2ba..22a95438a0 100644 --- a/src/Symfony/Component/Serializer/Normalizer/NormalizerInterface.php +++ b/src/Symfony/Component/Serializer/Normalizer/NormalizerInterface.php @@ -35,7 +35,7 @@ interface NormalizerInterface * @param mixed $data Data to normalize. * @param string $format The format being (de-)serialized from or into. * - * @return Boolean + * @return bool */ public function supportsNormalization($data, $format = null); } diff --git a/src/Symfony/Component/Stopwatch/StopwatchEvent.php b/src/Symfony/Component/Stopwatch/StopwatchEvent.php index 6d2a3baee4..e62a3f222d 100644 --- a/src/Symfony/Component/Stopwatch/StopwatchEvent.php +++ b/src/Symfony/Component/Stopwatch/StopwatchEvent.php @@ -67,7 +67,7 @@ class StopwatchEvent /** * Gets the origin. * - * @return integer The origin in milliseconds + * @return int The origin in milliseconds */ public function getOrigin() { @@ -149,7 +149,7 @@ class StopwatchEvent /** * Gets the relative time of the start of the first period. * - * @return integer The time (in milliseconds) + * @return int The time (in milliseconds) */ public function getStartTime() { @@ -159,7 +159,7 @@ class StopwatchEvent /** * Gets the relative time of the end of the last period. * - * @return integer The time (in milliseconds) + * @return int The time (in milliseconds) */ public function getEndTime() { @@ -171,7 +171,7 @@ class StopwatchEvent /** * Gets the duration of the events (including all periods). * - * @return integer The duration (in milliseconds) + * @return int The duration (in milliseconds) */ public function getDuration() { @@ -186,7 +186,7 @@ class StopwatchEvent /** * Gets the max memory usage of all periods. * - * @return integer The memory usage (in bytes) + * @return int The memory usage (in bytes) */ public function getMemory() { diff --git a/src/Symfony/Component/Stopwatch/StopwatchPeriod.php b/src/Symfony/Component/Stopwatch/StopwatchPeriod.php index bd0e28b59b..e0838314c5 100644 --- a/src/Symfony/Component/Stopwatch/StopwatchPeriod.php +++ b/src/Symfony/Component/Stopwatch/StopwatchPeriod.php @@ -38,7 +38,7 @@ class StopwatchPeriod /** * Gets the relative time of the start of the period. * - * @return integer The time (in milliseconds) + * @return int The time (in milliseconds) */ public function getStartTime() { @@ -48,7 +48,7 @@ class StopwatchPeriod /** * Gets the relative time of the end of the period. * - * @return integer The time (in milliseconds) + * @return int The time (in milliseconds) */ public function getEndTime() { @@ -58,7 +58,7 @@ class StopwatchPeriod /** * Gets the time spent in this period. * - * @return integer The period duration (in milliseconds) + * @return int The period duration (in milliseconds) */ public function getDuration() { @@ -68,7 +68,7 @@ class StopwatchPeriod /** * Gets the memory usage. * - * @return integer The memory usage (in bytes) + * @return int The memory usage (in bytes) */ public function getMemory() { diff --git a/src/Symfony/Component/Templating/EngineInterface.php b/src/Symfony/Component/Templating/EngineInterface.php index dfa9c55efa..672f880f00 100644 --- a/src/Symfony/Component/Templating/EngineInterface.php +++ b/src/Symfony/Component/Templating/EngineInterface.php @@ -51,7 +51,7 @@ interface EngineInterface * * @param mixed $name A template name or a TemplateReferenceInterface instance * - * @return Boolean true if the template exists, false otherwise + * @return bool true if the template exists, false otherwise * * @api */ @@ -62,7 +62,7 @@ interface EngineInterface * * @param mixed $name A template name or a TemplateReferenceInterface instance * - * @return Boolean true if this class supports the given template, false otherwise + * @return bool true if this class supports the given template, false otherwise * * @api */ diff --git a/src/Symfony/Component/Templating/Helper/SlotsHelper.php b/src/Symfony/Component/Templating/Helper/SlotsHelper.php index e8a8533f9f..8868215c71 100644 --- a/src/Symfony/Component/Templating/Helper/SlotsHelper.php +++ b/src/Symfony/Component/Templating/Helper/SlotsHelper.php @@ -71,7 +71,7 @@ class SlotsHelper extends Helper * * @param string $name The slot name * - * @return Boolean + * @return bool * * @api */ @@ -114,7 +114,7 @@ class SlotsHelper extends Helper * @param string $name The slot name * @param bool|string $default The default slot content * - * @return Boolean true if the slot is defined or if a default content has been provided, false otherwise + * @return bool true if the slot is defined or if a default content has been provided, false otherwise * * @api */ diff --git a/src/Symfony/Component/Templating/Loader/CacheLoader.php b/src/Symfony/Component/Templating/Loader/CacheLoader.php index 357f61edf2..38457cdbab 100644 --- a/src/Symfony/Component/Templating/Loader/CacheLoader.php +++ b/src/Symfony/Component/Templating/Loader/CacheLoader.php @@ -46,7 +46,7 @@ class CacheLoader extends Loader * * @param TemplateReferenceInterface $template A template * - * @return Storage|Boolean false if the template cannot be loaded, a Storage instance otherwise + * @return Storage|bool false if the template cannot be loaded, a Storage instance otherwise */ public function load(TemplateReferenceInterface $template) { @@ -88,7 +88,7 @@ class CacheLoader extends Loader * @param TemplateReferenceInterface $template A template * @param int $time The last modification time of the cached template (timestamp) * - * @return Boolean + * @return bool */ public function isFresh(TemplateReferenceInterface $template, $time) { diff --git a/src/Symfony/Component/Templating/Loader/ChainLoader.php b/src/Symfony/Component/Templating/Loader/ChainLoader.php index 06146f3e93..ba9aeef7bb 100644 --- a/src/Symfony/Component/Templating/Loader/ChainLoader.php +++ b/src/Symfony/Component/Templating/Loader/ChainLoader.php @@ -51,7 +51,7 @@ class ChainLoader extends Loader * * @param TemplateReferenceInterface $template A template * - * @return Storage|Boolean false if the template cannot be loaded, a Storage instance otherwise + * @return Storage|bool false if the template cannot be loaded, a Storage instance otherwise */ public function load(TemplateReferenceInterface $template) { @@ -70,7 +70,7 @@ class ChainLoader extends Loader * @param TemplateReferenceInterface $template A template * @param int $time The last modification time of the cached template (timestamp) * - * @return Boolean + * @return bool */ public function isFresh(TemplateReferenceInterface $template, $time) { diff --git a/src/Symfony/Component/Templating/Loader/FilesystemLoader.php b/src/Symfony/Component/Templating/Loader/FilesystemLoader.php index 44de5f0cfe..7cd72e1177 100644 --- a/src/Symfony/Component/Templating/Loader/FilesystemLoader.php +++ b/src/Symfony/Component/Templating/Loader/FilesystemLoader.php @@ -43,7 +43,7 @@ class FilesystemLoader extends Loader * * @param TemplateReferenceInterface $template A template * - * @return Storage|Boolean false if the template cannot be loaded, a Storage instance otherwise + * @return Storage|bool false if the template cannot be loaded, a Storage instance otherwise * * @api */ @@ -90,7 +90,7 @@ class FilesystemLoader extends Loader * @param TemplateReferenceInterface $template A template * @param int $time The last modification time of the cached template (timestamp) * - * @return Boolean true if the template is still fresh, false otherwise + * @return bool true if the template is still fresh, false otherwise * * @api */ @@ -108,7 +108,7 @@ class FilesystemLoader extends Loader * * @param string $file A path * - * @return Boolean true if the path exists and is absolute, false otherwise + * @return bool true if the path exists and is absolute, false otherwise */ protected static function isAbsolutePath($file) { diff --git a/src/Symfony/Component/Templating/Loader/LoaderInterface.php b/src/Symfony/Component/Templating/Loader/LoaderInterface.php index ddbe27a4e1..a4365c6361 100644 --- a/src/Symfony/Component/Templating/Loader/LoaderInterface.php +++ b/src/Symfony/Component/Templating/Loader/LoaderInterface.php @@ -28,7 +28,7 @@ interface LoaderInterface * * @param TemplateReferenceInterface $template A template * - * @return Storage|Boolean false if the template cannot be loaded, a Storage instance otherwise + * @return Storage|bool false if the template cannot be loaded, a Storage instance otherwise * * @api */ @@ -40,7 +40,7 @@ interface LoaderInterface * @param TemplateReferenceInterface $template A template * @param int $time The last modification time of the cached template (timestamp) * - * @return Boolean + * @return bool * * @api */ diff --git a/src/Symfony/Component/Templating/PhpEngine.php b/src/Symfony/Component/Templating/PhpEngine.php index 465beea241..b4b23fd36d 100644 --- a/src/Symfony/Component/Templating/PhpEngine.php +++ b/src/Symfony/Component/Templating/PhpEngine.php @@ -116,7 +116,7 @@ class PhpEngine implements EngineInterface, \ArrayAccess * * @param mixed $name A template name or a TemplateReferenceInterface instance * - * @return Boolean true if the template exists, false otherwise + * @return bool true if the template exists, false otherwise * * @api */ @@ -136,7 +136,7 @@ class PhpEngine implements EngineInterface, \ArrayAccess * * @param mixed $name A template name or a TemplateReferenceInterface instance * - * @return Boolean true if this class supports the given resource, false otherwise + * @return bool true if this class supports the given resource, false otherwise * * @api */ @@ -205,7 +205,7 @@ class PhpEngine implements EngineInterface, \ArrayAccess * * @param string $name The helper name * - * @return Boolean true if the helper is defined, false otherwise + * @return bool true if the helper is defined, false otherwise * * @api */ @@ -291,7 +291,7 @@ class PhpEngine implements EngineInterface, \ArrayAccess * * @param string $name The helper name * - * @return Boolean true if the helper is defined, false otherwise + * @return bool true if the helper is defined, false otherwise * * @api */ diff --git a/src/Symfony/Component/Translation/Interval.php b/src/Symfony/Component/Translation/Interval.php index b9f071c67c..1a50c3abe2 100644 --- a/src/Symfony/Component/Translation/Interval.php +++ b/src/Symfony/Component/Translation/Interval.php @@ -39,7 +39,7 @@ class Interval * @param int $number A number * @param string $interval An interval * - * @return Boolean + * @return bool * * @throws \InvalidArgumentException */ diff --git a/src/Symfony/Component/Translation/Loader/MoFileLoader.php b/src/Symfony/Component/Translation/Loader/MoFileLoader.php index 3902ec3a13..f5fe1df8d6 100644 --- a/src/Symfony/Component/Translation/Loader/MoFileLoader.php +++ b/src/Symfony/Component/Translation/Loader/MoFileLoader.php @@ -39,7 +39,7 @@ class MoFileLoader extends ArrayLoader implements LoaderInterface /** * The size of the header of a MO file in bytes. * - * @var integer Number of bytes. + * @var int Number of bytes. */ const MO_HEADER_SIZE = 28; @@ -170,7 +170,7 @@ class MoFileLoader extends ArrayLoader implements LoaderInterface * * @param resource $stream * @param bool $isBigEndian - * @return integer + * @return int */ private function readLong($stream, $isBigEndian) { diff --git a/src/Symfony/Component/Translation/MessageCatalogueInterface.php b/src/Symfony/Component/Translation/MessageCatalogueInterface.php index 5e9be20c73..9ea6d69986 100644 --- a/src/Symfony/Component/Translation/MessageCatalogueInterface.php +++ b/src/Symfony/Component/Translation/MessageCatalogueInterface.php @@ -70,7 +70,7 @@ interface MessageCatalogueInterface * @param string $id The message id * @param string $domain The domain name * - * @return Boolean true if the message has a translation, false otherwise + * @return bool true if the message has a translation, false otherwise * * @api */ @@ -82,7 +82,7 @@ interface MessageCatalogueInterface * @param string $id The message id * @param string $domain The domain name * - * @return Boolean true if the message has a translation, false otherwise + * @return bool true if the message has a translation, false otherwise * * @api */ diff --git a/src/Symfony/Component/Translation/PluralizationRules.php b/src/Symfony/Component/Translation/PluralizationRules.php index 3cd978d722..5a3cf7ea28 100644 --- a/src/Symfony/Component/Translation/PluralizationRules.php +++ b/src/Symfony/Component/Translation/PluralizationRules.php @@ -27,7 +27,7 @@ class PluralizationRules * @param int $number The number * @param string $locale The locale * - * @return integer The plural position + * @return int The plural position */ public static function get($number, $locale) { diff --git a/src/Symfony/Component/Validator/ConstraintViolation.php b/src/Symfony/Component/Validator/ConstraintViolation.php index 557183ff3a..ddd14dbdc0 100644 --- a/src/Symfony/Component/Validator/ConstraintViolation.php +++ b/src/Symfony/Component/Validator/ConstraintViolation.php @@ -34,7 +34,7 @@ class ConstraintViolation implements ConstraintViolationInterface private $messageParameters; /** - * @var integer|null + * @var int|null */ private $messagePluralization; diff --git a/src/Symfony/Component/Validator/ConstraintViolationInterface.php b/src/Symfony/Component/Validator/ConstraintViolationInterface.php index cf1d5b9967..32be7c6550 100644 --- a/src/Symfony/Component/Validator/ConstraintViolationInterface.php +++ b/src/Symfony/Component/Validator/ConstraintViolationInterface.php @@ -85,7 +85,7 @@ interface ConstraintViolationInterface * This method returns the value of the parameter for choosing the right * pluralization form (in this case "choices"). * - * @return integer|null The number to use to pluralize of the message. + * @return int|null The number to use to pluralize of the message. */ public function getMessagePluralization(); diff --git a/src/Symfony/Component/Validator/ConstraintViolationListInterface.php b/src/Symfony/Component/Validator/ConstraintViolationListInterface.php index f941964dc3..6923519ff5 100644 --- a/src/Symfony/Component/Validator/ConstraintViolationListInterface.php +++ b/src/Symfony/Component/Validator/ConstraintViolationListInterface.php @@ -56,7 +56,7 @@ interface ConstraintViolationListInterface extends \Traversable, \Countable, \Ar * * @param int $offset The violation offset. * - * @return Boolean Whether the offset exists. + * @return bool Whether the offset exists. * * @api */ diff --git a/src/Symfony/Component/Validator/Constraints/AbstractComparisonValidator.php b/src/Symfony/Component/Validator/Constraints/AbstractComparisonValidator.php index 5cc49e4e87..6d80c45027 100644 --- a/src/Symfony/Component/Validator/Constraints/AbstractComparisonValidator.php +++ b/src/Symfony/Component/Validator/Constraints/AbstractComparisonValidator.php @@ -73,7 +73,7 @@ abstract class AbstractComparisonValidator extends ConstraintValidator * @param mixed $value1 The first value to compare * @param mixed $value2 The second value to compare * - * @return Boolean true if the relationship is valid, false otherwise + * @return bool true if the relationship is valid, false otherwise */ abstract protected function compareValues($value1, $value2); } diff --git a/src/Symfony/Component/Validator/Constraints/EmailValidator.php b/src/Symfony/Component/Validator/Constraints/EmailValidator.php index f45d749f2c..e14546ce82 100644 --- a/src/Symfony/Component/Validator/Constraints/EmailValidator.php +++ b/src/Symfony/Component/Validator/Constraints/EmailValidator.php @@ -59,7 +59,7 @@ class EmailValidator extends ConstraintValidator * * @param string $host Host * - * @return Boolean + * @return bool */ private function checkMX($host) { @@ -71,7 +71,7 @@ class EmailValidator extends ConstraintValidator * * @param string $host Host * - * @return Boolean + * @return bool */ private function checkHost($host) { diff --git a/src/Symfony/Component/Validator/Mapping/ClassMetadata.php b/src/Symfony/Component/Validator/Mapping/ClassMetadata.php index 9395c7cb58..553d7806ad 100644 --- a/src/Symfony/Component/Validator/Mapping/ClassMetadata.php +++ b/src/Symfony/Component/Validator/Mapping/ClassMetadata.php @@ -58,7 +58,7 @@ class ClassMetadata extends ElementMetadata implements MetadataInterface, ClassB public $groupSequence = array(); /** - * @var Boolean + * @var bool */ public $groupSequenceProvider = false; @@ -282,7 +282,7 @@ class ClassMetadata extends ElementMetadata implements MetadataInterface, ClassB * * @param string $property The name of the property * - * @return Boolean + * @return bool */ public function hasMemberMetadatas($property) { @@ -358,7 +358,7 @@ class ClassMetadata extends ElementMetadata implements MetadataInterface, ClassB /** * Returns whether this class has an overridden default group sequence. * - * @return Boolean + * @return bool */ public function hasGroupSequence() { @@ -412,7 +412,7 @@ class ClassMetadata extends ElementMetadata implements MetadataInterface, ClassB /** * Returns whether the class is a group sequence provider. * - * @return Boolean + * @return bool */ public function isGroupSequenceProvider() { diff --git a/src/Symfony/Component/Validator/Mapping/ElementMetadata.php b/src/Symfony/Component/Validator/Mapping/ElementMetadata.php index 9dedb79fd9..f7c48ed66c 100644 --- a/src/Symfony/Component/Validator/Mapping/ElementMetadata.php +++ b/src/Symfony/Component/Validator/Mapping/ElementMetadata.php @@ -84,7 +84,7 @@ abstract class ElementMetadata /** * Returns whether this element has any constraints. * - * @return Boolean + * @return bool */ public function hasConstraints() { diff --git a/src/Symfony/Component/Validator/Mapping/Loader/LoaderInterface.php b/src/Symfony/Component/Validator/Mapping/Loader/LoaderInterface.php index bd679b0f71..43358ad1d9 100644 --- a/src/Symfony/Component/Validator/Mapping/Loader/LoaderInterface.php +++ b/src/Symfony/Component/Validator/Mapping/Loader/LoaderInterface.php @@ -20,7 +20,7 @@ interface LoaderInterface * * @param ClassMetadata $metadata A metadata * - * @return Boolean + * @return bool */ public function loadClassMetadata(ClassMetadata $metadata); } diff --git a/src/Symfony/Component/Validator/Mapping/MemberMetadata.php b/src/Symfony/Component/Validator/Mapping/MemberMetadata.php index e52d08305b..6275c4146d 100644 --- a/src/Symfony/Component/Validator/Mapping/MemberMetadata.php +++ b/src/Symfony/Component/Validator/Mapping/MemberMetadata.php @@ -127,7 +127,7 @@ abstract class MemberMetadata extends ElementMetadata implements PropertyMetadat * * @param object|string $objectOrClassName The object or the class name * - * @return Boolean + * @return bool */ public function isPublic($objectOrClassName) { @@ -139,7 +139,7 @@ abstract class MemberMetadata extends ElementMetadata implements PropertyMetadat * * @param object|string $objectOrClassName The object or the class name * - * @return Boolean + * @return bool */ public function isProtected($objectOrClassName) { @@ -151,7 +151,7 @@ abstract class MemberMetadata extends ElementMetadata implements PropertyMetadat * * @param object|string $objectOrClassName The object or the class name * - * @return Boolean + * @return bool */ public function isPrivate($objectOrClassName) { @@ -161,7 +161,7 @@ abstract class MemberMetadata extends ElementMetadata implements PropertyMetadat /** * Returns whether objects stored in this member should be validated * - * @return Boolean + * @return bool */ public function isCascaded() { @@ -172,7 +172,7 @@ abstract class MemberMetadata extends ElementMetadata implements PropertyMetadat * Returns whether arrays or traversable objects stored in this member * should be traversed and validated in each entry * - * @return Boolean + * @return bool */ public function isCollectionCascaded() { @@ -183,7 +183,7 @@ abstract class MemberMetadata extends ElementMetadata implements PropertyMetadat * Returns whether arrays or traversable objects stored in this member * should be traversed recursively for inner arrays/traversable objects * - * @return Boolean + * @return bool */ public function isCollectionCascadedDeeply() { diff --git a/src/Symfony/Component/Validator/MetadataFactoryInterface.php b/src/Symfony/Component/Validator/MetadataFactoryInterface.php index 6dbab06ab7..594225ac25 100644 --- a/src/Symfony/Component/Validator/MetadataFactoryInterface.php +++ b/src/Symfony/Component/Validator/MetadataFactoryInterface.php @@ -34,7 +34,7 @@ interface MetadataFactoryInterface * * @param mixed $value Some value. * - * @return Boolean Whether metadata exists for the value. + * @return bool Whether metadata exists for the value. */ public function hasMetadataFor($value); } diff --git a/src/Symfony/Component/Validator/PropertyMetadataContainerInterface.php b/src/Symfony/Component/Validator/PropertyMetadataContainerInterface.php index 20bafb2950..a3afb1db26 100644 --- a/src/Symfony/Component/Validator/PropertyMetadataContainerInterface.php +++ b/src/Symfony/Component/Validator/PropertyMetadataContainerInterface.php @@ -23,7 +23,7 @@ interface PropertyMetadataContainerInterface * * @param string $property The property name. * - * @return Boolean + * @return bool */ public function hasPropertyMetadata($property); diff --git a/src/Symfony/Component/Yaml/Dumper.php b/src/Symfony/Component/Yaml/Dumper.php index e9f3d824dd..26103c88ec 100644 --- a/src/Symfony/Component/Yaml/Dumper.php +++ b/src/Symfony/Component/Yaml/Dumper.php @@ -21,7 +21,7 @@ class Dumper /** * The amount of spaces to use for indentation of nested nodes. * - * @var integer + * @var int */ protected $indentation = 4; diff --git a/src/Symfony/Component/Yaml/Escaper.php b/src/Symfony/Component/Yaml/Escaper.php index 3576e9ae6f..4a6b621613 100644 --- a/src/Symfony/Component/Yaml/Escaper.php +++ b/src/Symfony/Component/Yaml/Escaper.php @@ -44,7 +44,7 @@ class Escaper * * @param string $value A PHP value * - * @return Boolean True if the value would require double quotes. + * @return bool True if the value would require double quotes. */ public static function requiresDoubleQuoting($value) { @@ -68,7 +68,7 @@ class Escaper * * @param string $value A PHP value * - * @return Boolean True if the value would require single quotes. + * @return bool True if the value would require single quotes. */ public static function requiresSingleQuoting($value) { diff --git a/src/Symfony/Component/Yaml/Exception/ParseException.php b/src/Symfony/Component/Yaml/Exception/ParseException.php index d84a22fe6a..ff01d6b9a6 100644 --- a/src/Symfony/Component/Yaml/Exception/ParseException.php +++ b/src/Symfony/Component/Yaml/Exception/ParseException.php @@ -100,7 +100,7 @@ class ParseException extends RuntimeException /** * Gets the line where the error occurred. * - * @return integer The file line + * @return int The file line */ public function getParsedLine() { diff --git a/src/Symfony/Component/Yaml/Parser.php b/src/Symfony/Component/Yaml/Parser.php index 5a908a4b4a..d4e0a9fa66 100644 --- a/src/Symfony/Component/Yaml/Parser.php +++ b/src/Symfony/Component/Yaml/Parser.php @@ -261,7 +261,7 @@ class Parser /** * Returns the current line number (takes the offset into account). * - * @return integer The current line number + * @return int The current line number */ private function getRealCurrentLineNb() { @@ -271,7 +271,7 @@ class Parser /** * Returns the current line indentation. * - * @return integer The current line indentation + * @return int The current line indentation */ private function getCurrentLineIndentation() { @@ -349,7 +349,7 @@ class Parser /** * Moves the parser to the next line. * - * @return Boolean + * @return bool */ private function moveToNextLine() { @@ -497,7 +497,7 @@ class Parser /** * Returns true if the next line is indented. * - * @return Boolean Returns true if the next line is indented, false otherwise + * @return bool Returns true if the next line is indented, false otherwise */ private function isNextLineIndented() { @@ -525,7 +525,7 @@ class Parser /** * Returns true if the current line is blank or if it is a comment line. * - * @return Boolean Returns true if the current line is empty or if it is a comment line, false otherwise + * @return bool Returns true if the current line is empty or if it is a comment line, false otherwise */ private function isCurrentLineEmpty() { @@ -535,7 +535,7 @@ class Parser /** * Returns true if the current line is blank. * - * @return Boolean Returns true if the current line is blank, false otherwise + * @return bool Returns true if the current line is blank, false otherwise */ private function isCurrentLineBlank() { @@ -545,7 +545,7 @@ class Parser /** * Returns true if the current line is a comment line. * - * @return Boolean Returns true if the current line is a comment line, false otherwise + * @return bool Returns true if the current line is a comment line, false otherwise */ private function isCurrentLineComment() { @@ -596,7 +596,7 @@ class Parser /** * Returns true if the next line starts unindented collection * - * @return Boolean Returns true if the next line starts unindented collection, false otherwise + * @return bool Returns true if the next line starts unindented collection, false otherwise */ private function isNextLineUnIndentedCollection() { @@ -628,7 +628,7 @@ class Parser /** * Returns true if the string is un-indented collection item * - * @return Boolean Returns true if the string is un-indented collection item, false otherwise + * @return bool Returns true if the string is un-indented collection item, false otherwise */ private function isStringUnIndentedCollectionItem() {