From 83c15db887fd1f614716ea2de5853ac84054d604 Mon Sep 17 00:00:00 2001 From: Graham Campbell Date: Sun, 21 Dec 2014 17:00:50 +0000 Subject: [PATCH] [2.3] CS And DocBlock Fixes --- .../Doctrine/ContainerAwareEventManager.php | 1 + .../CompilerPass/DoctrineValidationPass.php | 4 +- .../CompilerPass/RegisterMappingsPass.php | 11 +++- .../Form/ChoiceList/EntityChoiceList.php | 16 +++--- .../Form/ChoiceList/ORMQueryBuilderLoader.php | 6 +- .../Bridge/Doctrine/RegistryInterface.php | 2 +- .../RememberMe/DoctrineTokenProvider.php | 4 +- .../Doctrine/Tests/DoctrineOrmTestCase.php | 2 +- .../Tests/Fixtures/AssociationEntity.php | 2 + .../Validator/Constraints/UniqueEntity.php | 2 +- .../Monolog/Handler/ChromePhpHandler.php | 4 +- .../Bridge/Monolog/Handler/FirePHPHandler.php | 4 +- .../Monolog/Handler/SwiftMailerHandler.php | 6 +- .../Bridge/Monolog/Processor/WebProcessor.php | 2 +- .../DataCollector/PropelDataCollector.php | 6 +- .../Form/ChoiceList/ModelChoiceList.php | 2 +- .../TranslationCollectionFormListener.php | 2 +- .../EventListener/TranslationFormListener.php | 2 +- .../Form/Type/TranslationCollectionType.php | 2 +- .../Propel1/Form/Type/TranslationType.php | 2 +- .../Security/User/PropelUserProvider.php | 2 +- .../Propel1/Tests/Fixtures/ItemQuery.php | 6 +- .../Instantiator/RuntimeInstantiator.php | 2 +- .../LazyProxy/PhpDumper/ProxyDumper.php | 2 +- .../Tests/LazyProxy/ContainerBuilderTest.php | 2 +- .../Tests/LazyProxy/Dumper/PhpDumperTest.php | 4 +- .../LazyProxy/Fixtures/php/lazy_service.php | 2 +- .../Instantiator/RuntimeInstantiatorTest.php | 2 +- .../LazyProxy/PhpDumper/ProxyDumperTest.php | 2 +- .../Command/ConfigDumpReferenceCommand.php | 2 +- .../Command/ContainerAwareCommand.php | 1 + .../Command/ContainerDebugCommand.php | 6 +- .../Command/RouterDebugCommand.php | 4 +- .../FrameworkBundle/Controller/Controller.php | 4 +- .../DependencyInjection/Compiler/FormPass.php | 2 +- .../Compiler/ProfilerPass.php | 2 +- .../Compiler/RoutingResolverPass.php | 2 +- .../Compiler/TranslationDumperPass.php | 2 +- .../Compiler/TranslationExtractorPass.php | 2 +- .../EventListener/TestSessionListener.php | 2 +- .../Templating/Helper/RequestHelper.php | 2 +- .../Templating/Helper/SessionHelper.php | 2 +- .../Templating/TemplateReference.php | 2 +- .../Compiler/ProfilerPassTest.php | 5 +- .../Compiler/SerializerPassTest.php | 2 +- .../Helper/FormHelperDivLayoutTest.php | 2 - .../Helper/FormHelperTableLayoutTest.php | 2 - .../Translation/PhpExtractor.php | 2 +- .../Translation/PhpStringTokenParser.php | 2 +- .../Translation/TranslationLoader.php | 1 + .../SecurityBundle/Command/InitAclCommand.php | 2 +- .../Compiler/AddSecurityVotersPass.php | 2 +- .../DependencyInjection/MainConfiguration.php | 4 +- .../Security/Factory/AbstractFactory.php | 2 +- .../SecurityBundle/Security/FirewallMap.php | 2 +- .../Compiler/TwigEnvironmentPass.php | 2 +- .../Compiler/TwigLoaderPass.php | 2 +- .../TwigBundle/Extension/ActionsExtension.php | 2 +- .../TwigBundle/Extension/AssetsExtension.php | 2 +- .../DependencyInjection/Configuration.php | 2 +- .../Profiler/TemplateManager.php | 2 +- .../WebProfilerExtensionTest.php | 2 +- .../Tests/Profiler/TemplateManagerTest.php | 4 +- .../Tests/ClassMapGeneratorTest.php | 2 +- .../Component/Config/Definition/BaseNode.php | 4 +- .../Builder/ArrayNodeDefinition.php | 2 +- .../Builder/BooleanNodeDefinition.php | 2 +- .../Definition/Builder/EnumNodeDefinition.php | 2 +- .../Config/Definition/Builder/ExprBuilder.php | 4 +- .../Definition/Builder/MergeBuilder.php | 2 +- .../Config/Definition/Builder/NodeBuilder.php | 3 +- .../Definition/Builder/NodeDefinition.php | 4 +- .../Builder/NodeParentInterface.php | 2 +- .../Builder/NormalizationBuilder.php | 2 +- .../Builder/ParentNodeDefinitionInterface.php | 2 +- .../Builder/ScalarNodeDefinition.php | 2 +- .../Definition/Builder/ValidationBuilder.php | 2 +- .../Builder/VariableNodeDefinition.php | 2 +- .../Definition/ConfigurationInterface.php | 2 +- .../Config/Definition/Exception/Exception.php | 2 +- .../Config/Definition/NodeInterface.php | 3 +- .../Config/Definition/NumericNode.php | 2 +- .../Config/Definition/PrototypedArrayNode.php | 2 +- .../Config/Definition/ReferenceDumper.php | 2 +- .../Config/Resource/DirectoryResource.php | 2 +- .../Definition/Builder/ExprBuilderTest.php | 5 +- .../Definition/PrototypedArrayNodeTest.php | 2 +- .../Component/Config/Util/XmlUtils.php | 2 +- src/Symfony/Component/Console/Application.php | 18 +++--- .../Component/Console/Command/Command.php | 3 +- .../Component/Console/Command/HelpCommand.php | 2 +- .../Formatter/OutputFormatterStyle.php | 1 - .../Console/Helper/DescriptorHelper.php | 6 +- .../Component/Console/Helper/DialogHelper.php | 9 ++- .../Console/Helper/ProgressHelper.php | 14 ++--- .../Component/Console/Input/ArgvInput.php | 2 +- .../Component/Console/Input/ArrayInput.php | 2 +- src/Symfony/Component/Console/Input/Input.php | 2 +- .../CssSelector/XPath/TranslatorInterface.php | 2 +- .../Debug/Tests/ErrorHandlerTest.php | 2 +- .../Compiler/CheckCircularReferencesPass.php | 2 +- .../Compiler/CheckReferenceValidityPass.php | 2 +- .../Compiler/CompilerPassInterface.php | 2 +- .../MergeExtensionConfigurationPass.php | 2 +- .../Compiler/PassConfig.php | 2 +- .../RemoveAbstractDefinitionsPass.php | 5 +- .../Compiler/RemovePrivateAliasesPass.php | 2 +- .../Compiler/RepeatedPass.php | 4 +- .../ResolveDefinitionTemplatesPass.php | 2 +- .../Compiler/ServiceReferenceGraphEdge.php | 6 +- .../Compiler/ServiceReferenceGraphNode.php | 2 +- .../DependencyInjection/Container.php | 8 +-- .../DependencyInjection/ContainerBuilder.php | 9 ++- .../ContainerInterface.php | 8 +-- .../DependencyInjection/Definition.php | 12 ++-- .../DefinitionDecorator.php | 3 +- .../Dumper/GraphvizDumper.php | 4 +- .../DependencyInjection/Dumper/PhpDumper.php | 24 ++++---- .../DependencyInjection/Dumper/XmlDumper.php | 2 +- .../DependencyInjection/Dumper/YamlDumper.php | 12 ++-- .../ConfigurationExtensionInterface.php | 2 +- .../IntrospectableContainerInterface.php | 2 - .../Loader/XmlFileLoader.php | 10 ++-- .../Loader/YamlFileLoader.php | 6 +- .../ParameterBag/ParameterBag.php | 2 +- .../ParameterBag/ParameterBagInterface.php | 4 +- .../DependencyInjection/Reference.php | 2 +- .../Tests/Compiler/IntegrationTest.php | 12 ++-- .../RealServiceInstantiatorTest.php | 2 +- .../LazyProxy/PhpDumper/NullDumperTest.php | 2 +- .../DependencyInjection/Variable.php | 4 +- src/Symfony/Component/DomCrawler/Crawler.php | 14 ++--- .../DomCrawler/Field/ChoiceFormField.php | 8 +-- .../DomCrawler/Field/FileFormField.php | 2 +- .../Component/DomCrawler/Field/FormField.php | 2 +- src/Symfony/Component/DomCrawler/Link.php | 2 +- .../Component/DomCrawler/Tests/FormTest.php | 3 +- .../ContainerAwareEventDispatcher.php | 15 +++-- .../Component/EventDispatcher/Event.php | 5 +- .../EventDispatcher/GenericEvent.php | 2 +- .../ImmutableEventDispatcher.php | 1 + .../Tests/GenericEventTest.php | 2 +- .../Filesystem/Exception/IOException.php | 2 +- .../Component/Filesystem/Filesystem.php | 6 +- .../Filesystem/Tests/FilesystemTest.php | 6 +- .../Finder/Comparator/NumberComparator.php | 1 - .../Iterator/RecursiveDirectoryIterator.php | 6 +- src/Symfony/Component/Finder/SplFileInfo.php | 10 ++-- .../Finder/Tests/Expression/RegexTest.php | 4 +- .../Tests/Iterator/IteratorTestCase.php | 4 +- .../Component/Form/AbstractExtension.php | 12 ++-- src/Symfony/Component/Form/Button.php | 8 --- src/Symfony/Component/Form/ButtonBuilder.php | 20 ------- .../Component/Form/CallbackTransformer.php | 6 +- .../Core/ChoiceList/ChoiceListInterface.php | 4 +- .../Core/ChoiceList/LazyChoiceList.php | 6 +- .../BooleanToStringTransformer.php | 3 +- .../DataTransformer/DataTransformerChain.php | 11 ++-- .../DateTimeToLocalizedStringTransformer.php | 4 +- .../DateTimeToStringTransformer.php | 11 ++-- .../DateTimeToTimestampTransformer.php | 4 +- .../NumberToLocalizedStringTransformer.php | 4 +- .../PercentToLocalizedStringTransformer.php | 2 +- .../EventListener/MergeCollectionListener.php | 6 +- .../Core/EventListener/ResizeFormListener.php | 6 +- .../Core/EventListener/TrimListener.php | 2 +- .../Form/Extension/Core/Type/ChoiceType.php | 1 + .../Form/Extension/Core/Type/DateTimeType.php | 2 +- .../Form/Extension/Core/Type/MoneyType.php | 2 +- .../Form/Extension/Core/Type/TimezoneType.php | 3 +- .../CsrfProvider/CsrfProviderInterface.php | 2 +- .../Csrf/CsrfProvider/DefaultCsrfProvider.php | 5 +- .../Csrf/CsrfProvider/SessionCsrfProvider.php | 3 +- .../EventListener/CsrfValidationListener.php | 9 ++- .../Validator/ValidatorTypeGuesser.php | 10 ++-- .../ViolationMapper/ViolationPath.php | 2 +- src/Symfony/Component/Form/Form.php | 32 +++++++---- src/Symfony/Component/Form/FormError.php | 19 ++++--- src/Symfony/Component/Form/FormRegistry.php | 2 +- .../Component/Form/FormTypeGuesserChain.php | 2 +- .../Form/FormTypeGuesserInterface.php | 9 +-- src/Symfony/Component/Form/FormView.php | 5 +- src/Symfony/Component/Form/Guess/Guess.php | 16 ++++-- .../Component/Form/Guess/TypeGuess.php | 14 +++-- .../Component/Form/Guess/ValueGuess.php | 9 +-- .../Component/Form/ReversedTransformer.php | 7 ++- .../Tests/CompoundFormPerformanceTest.php | 2 +- .../DataMapper/PropertyPathMapperTest.php | 1 + ...NumberToLocalizedStringTransformerTest.php | 1 + .../Extension/Core/Type/FormTypeTest.php | 1 + .../FormValidatorPerformanceTest.php | 2 +- .../Constraints/FormValidatorTest.php | 2 +- .../Component/Form/Tests/FormBuilderTest.php | 2 +- .../Form/Tests/Util/OrderedHashMapTest.php | 2 +- src/Symfony/Component/Form/Util/FormUtil.php | 2 +- .../Component/HttpFoundation/AcceptHeader.php | 2 +- .../Component/HttpFoundation/Cookie.php | 4 +- .../File/Exception/FileException.php | 2 +- .../File/Exception/FileNotFoundException.php | 2 +- .../File/Exception/UploadException.php | 2 +- .../File/MimeType/ExtensionGuesser.php | 12 ++-- .../MimeType/ExtensionGuesserInterface.php | 2 +- .../MimeType/FileBinaryMimeTypeGuesser.php | 4 +- .../File/MimeType/FileinfoMimeTypeGuesser.php | 2 +- .../File/MimeType/MimeTypeGuesser.php | 12 ++-- .../MimeType/MimeTypeGuesserInterface.php | 2 +- .../HttpFoundation/File/UploadedFile.php | 4 +- .../Component/HttpFoundation/IpUtils.php | 5 +- .../Component/HttpFoundation/Request.php | 17 +++--- .../stubs/SessionHandlerInterface.php | 2 +- .../Component/HttpFoundation/Response.php | 4 +- .../HttpFoundation/ResponseHeaderBag.php | 7 ++- .../Session/Attribute/AttributeBag.php | 2 +- .../Session/Flash/AutoExpireFlashBag.php | 2 +- .../HttpFoundation/Session/Flash/FlashBag.php | 2 +- .../Session/SessionBagInterface.php | 4 +- .../Session/SessionInterface.php | 2 +- .../Storage/Handler/MongoDbSessionHandler.php | 4 +- .../Session/Storage/NativeSessionStorage.php | 3 +- .../Storage/PhpBridgeSessionStorage.php | 2 +- .../Storage/SessionStorageInterface.php | 8 +-- .../HttpFoundation/Tests/CookieTest.php | 2 +- .../HttpFoundation/Tests/ServerBagTest.php | 2 +- .../Session/Attribute/AttributeBagTest.php | 2 +- .../Attribute/NamespacedAttributeBagTest.php | 2 +- .../Session/Flash/AutoExpireFlashBagTest.php | 2 +- .../Tests/Session/Flash/FlashBagTest.php | 2 +- .../Tests/Session/SessionTest.php | 2 +- .../CacheClearer/ChainCacheClearer.php | 2 +- .../DataCollector/ConfigDataCollector.php | 2 +- .../Debug/TraceableEventDispatcher.php | 2 +- .../Event/FilterControllerEvent.php | 9 +-- .../HttpKernel/Event/FilterResponseEvent.php | 9 +-- .../HttpKernel/Event/GetResponseEvent.php | 11 ++-- .../GetResponseForControllerResultEvent.php | 4 +- .../Event/GetResponseForExceptionEvent.php | 9 +-- .../HttpKernel/Event/KernelEvent.php | 17 +++--- .../HttpKernel/Event/PostResponseEvent.php | 5 +- .../PreconditionRequiredHttpException.php | 1 + .../TooManyRequestsHttpException.php | 1 + .../HttpKernel/HttpCache/HttpCache.php | 4 +- .../Component/HttpKernel/HttpKernel.php | 2 +- src/Symfony/Component/HttpKernel/Kernel.php | 2 +- .../Component/HttpKernel/KernelEvents.php | 14 ++--- .../HttpKernel/Log/LoggerInterface.php | 5 ++ .../Component/HttpKernel/Log/NullLogger.php | 4 ++ .../Profiler/BaseMemcacheProfilerStorage.php | 13 +++-- .../Profiler/MemcacheProfilerStorage.php | 6 +- .../Profiler/MemcachedProfilerStorage.php | 6 +- .../Profiler/MongoDbProfilerStorage.php | 2 +- .../Profiler/MysqlProfilerStorage.php | 2 +- .../Profiler/PdoProfilerStorage.php | 4 +- .../Component/HttpKernel/Profiler/Profile.php | 4 +- .../Profiler/RedisProfilerStorage.php | 2 +- .../RequestDataCollectorTest.php | 2 +- .../EventListener/ExceptionListenerTest.php | 2 +- .../Fragment/InlineFragmentRendererTest.php | 2 +- .../Tests/Profiler/Mock/MemcacheMock.php | 12 ++-- .../Tests/Profiler/Mock/MemcachedMock.php | 10 ++-- .../Tests/Profiler/Mock/RedisMock.php | 6 +- .../Component/Intl/Collator/Collator.php | 28 +++++----- .../Data/Bundle/Reader/BundleEntryReader.php | 2 +- .../Data/Generator/CurrencyDataGenerator.php | 2 +- .../Data/Generator/LanguageDataGenerator.php | 4 +- .../Data/Generator/RegionDataGenerator.php | 2 +- .../Data/Generator/ScriptDataGenerator.php | 2 +- .../DateFormat/AmPmTransformer.php | 2 +- .../DateFormat/DayOfWeekTransformer.php | 2 +- .../DateFormat/DayOfYearTransformer.php | 2 +- .../DateFormat/DayTransformer.php | 2 +- .../DateFormat/FullTransformer.php | 24 ++++---- .../DateFormat/Hour1200Transformer.php | 2 +- .../DateFormat/Hour1201Transformer.php | 2 +- .../DateFormat/Hour2400Transformer.php | 2 +- .../DateFormat/Hour2401Transformer.php | 2 +- .../DateFormat/HourTransformer.php | 4 +- .../DateFormat/MinuteTransformer.php | 2 +- .../DateFormat/MonthTransformer.php | 13 +++-- .../DateFormat/QuarterTransformer.php | 2 +- .../DateFormat/SecondTransformer.php | 2 +- .../DateFormat/TimeZoneTransformer.php | 4 +- .../DateFormatter/DateFormat/Transformer.php | 10 ++-- .../DateFormat/YearTransformer.php | 2 +- .../Intl/DateFormatter/IntlDateFormatter.php | 56 +++++++++---------- .../MethodArgumentNotImplementedException.php | 2 +- ...odArgumentValueNotImplementedException.php | 2 +- .../MethodNotImplementedException.php | 2 +- .../Exception/NotImplementedException.php | 2 +- .../Component/Intl/Globals/IntlGlobals.php | 24 ++++---- src/Symfony/Component/Intl/Locale/Locale.php | 34 +++++------ .../Intl/NumberFormatter/NumberFormatter.php | 48 ++++++++-------- .../Intl/Resources/stubs/Collator.php | 2 +- .../Resources/stubs/IntlDateFormatter.php | 2 +- .../Component/Intl/Resources/stubs/Locale.php | 2 +- .../Intl/Resources/stubs/NumberFormatter.php | 2 +- .../AbstractIntlDateFormatterTest.php | 4 +- .../AbstractNumberFormatterTest.php | 1 + src/Symfony/Component/Locale/Locale.php | 29 +++++----- .../Component/Locale/Stub/StubLocale.php | 10 ++-- .../Component/OptionsResolver/Options.php | 4 ++ .../OptionsResolver/OptionsResolver.php | 5 ++ .../Component/Process/ProcessBuilder.php | 4 +- .../Component/Process/ProcessPipes.php | 2 +- .../Component/Process/ProcessUtils.php | 4 +- .../Process/Tests/AbstractProcessTest.php | 7 +-- .../Process/Tests/NonStopableProcess.php | 2 +- .../Process/Tests/PhpExecutableFinderTest.php | 8 +-- .../Tests/ProcessFailedExceptionTest.php | 4 +- .../PropertyAccess/PropertyAccessor.php | 4 +- .../PropertyAccessorInterface.php | 4 +- .../Component/PropertyAccess/PropertyPath.php | 14 +++-- .../PropertyAccess/PropertyPathInterface.php | 10 ++-- .../PropertyAccess/PropertyPathIterator.php | 5 +- .../Component/PropertyAccess/StringUtil.php | 2 +- .../Component/Routing/CompiledRoute.php | 2 +- .../Routing/Exception/ExceptionInterface.php | 2 +- .../Exception/InvalidParameterException.php | 2 +- .../Exception/RouteNotFoundException.php | 2 +- .../Generator/UrlGeneratorInterface.php | 1 + .../Matcher/Dumper/ApacheMatcherDumper.php | 6 +- .../Matcher/Dumper/DumperCollection.php | 2 +- .../Matcher/Dumper/DumperPrefixCollection.php | 2 +- .../Matcher/Dumper/PhpMatcherDumper.php | 2 +- src/Symfony/Component/Routing/Route.php | 2 +- .../Component/Routing/RouteCollection.php | 2 +- .../Tests/Fixtures/CustomXmlFileLoader.php | 2 +- .../Security/Acl/Dbal/MutableAclProvider.php | 4 +- .../Component/Security/Acl/Dbal/Schema.php | 12 ++-- .../Component/Security/Acl/Domain/Acl.php | 26 ++++----- .../Security/Acl/Domain/AuditLogger.php | 6 +- .../Security/Acl/Domain/DoctrineAclCache.php | 6 +- .../Component/Security/Acl/Domain/Entry.php | 12 ++-- .../Security/Acl/Domain/FieldEntry.php | 4 +- .../Security/Acl/Domain/ObjectIdentity.php | 6 +- .../ObjectIdentityRetrievalStrategy.php | 2 +- .../Acl/Domain/PermissionGrantingStrategy.php | 2 +- .../Acl/Domain/RoleSecurityIdentity.php | 6 +- .../SecurityIdentityRetrievalStrategy.php | 4 +- .../Acl/Domain/UserSecurityIdentity.php | 12 ++-- .../Security/Acl/Exception/Exception.php | 2 +- .../Exception/NotAllAclsFoundException.php | 4 +- .../Security/Acl/Model/AclCacheInterface.php | 14 ++--- .../Security/Acl/Model/AclInterface.php | 16 +++--- .../Acl/Model/AclProviderInterface.php | 6 +- .../Acl/Model/AuditLoggerInterface.php | 2 +- .../Acl/Model/AuditableAclInterface.php | 8 +-- .../Acl/Model/AuditableEntryInterface.php | 4 +- .../Security/Acl/Model/EntryInterface.php | 10 ++-- .../Acl/Model/FieldEntryInterface.php | 2 +- .../Acl/Model/MutableAclInterface.php | 30 +++++----- ...jectIdentityRetrievalStrategyInterface.php | 4 +- .../PermissionGrantingStrategyInterface.php | 4 +- ...rityIdentityRetrievalStrategyInterface.php | 4 +- .../Security/Acl/Permission/MaskBuilder.php | 14 ++--- .../Acl/Permission/PermissionMapInterface.php | 2 +- .../AuthenticationTrustResolver.php | 2 +- .../RememberMe/PersistentToken.php | 2 +- .../RememberMe/PersistentTokenInterface.php | 2 +- .../RememberMe/TokenProviderInterface.php | 2 +- .../Core/Encoder/BCryptPasswordEncoder.php | 1 + .../Security/Core/Encoder/EncoderFactory.php | 4 +- .../Core/User/UserProviderInterface.php | 4 +- .../Security/Core/Util/ClassUtils.php | 5 +- .../Security/Core/Util/StringUtils.php | 2 +- .../AuthenticationSuccessHandlerInterface.php | 2 +- .../Http/Event/InteractiveLoginEvent.php | 2 +- .../Security/Http/Event/SwitchUserEvent.php | 2 +- .../AbstractAuthenticationListener.php | 2 +- .../AbstractPreAuthenticatedListener.php | 2 +- .../Http/Firewall/ContextListener.php | 2 +- .../Http/Firewall/ExceptionListener.php | 1 + .../Http/Firewall/ListenerInterface.php | 2 +- .../Security/Http/Firewall/LogoutListener.php | 4 +- .../Http/Firewall/RememberMeListener.php | 2 +- .../Http/Logout/SessionLogoutHandler.php | 2 +- .../RememberMe/AbstractRememberMeServices.php | 10 ++-- ...PersistentTokenBasedRememberMeServices.php | 2 +- .../TokenBasedRememberMeServices.php | 2 +- ...SessionAuthenticationStrategyInterface.php | 2 +- .../Tests/Acl/Dbal/MutableAclProviderTest.php | 2 + .../Tests/Core/Util/SecureRandomTest.php | 10 ++-- .../Tests/Core/Util/StringUtilsTest.php | 2 +- .../Serializer/Encoder/ChainDecoder.php | 1 + .../Serializer/Encoder/ChainEncoder.php | 1 + .../Serializer/Encoder/DecoderInterface.php | 2 +- .../Serializer/Encoder/EncoderInterface.php | 6 +- .../Serializer/Encoder/JsonDecode.php | 2 +- .../Serializer/Encoder/JsonEncode.php | 6 +- .../Serializer/Encoder/JsonEncoder.php | 6 +- .../Encoder/NormalizationAwareInterface.php | 2 +- .../Encoder/SerializerAwareEncoder.php | 2 +- .../Serializer/Encoder/XmlEncoder.php | 19 ++++--- .../Serializer/Exception/Exception.php | 2 +- .../Exception/InvalidArgumentException.php | 2 +- .../Serializer/Exception/LogicException.php | 2 +- .../Serializer/Exception/RuntimeException.php | 2 +- .../Exception/UnexpectedValueException.php | 2 +- .../Exception/UnsupportedException.php | 2 +- .../Normalizer/DenormalizableInterface.php | 2 +- .../Normalizer/DenormalizerInterface.php | 4 +- .../Normalizer/GetSetMethodNormalizer.php | 8 +-- .../Normalizer/NormalizableInterface.php | 2 +- .../Normalizer/NormalizerInterface.php | 4 +- .../Normalizer/SerializerAwareNormalizer.php | 2 +- .../Component/Serializer/Serializer.php | 6 +- .../Serializer/SerializerAwareInterface.php | 4 +- .../Serializer/SerializerInterface.php | 4 +- src/Symfony/Component/Stopwatch/Stopwatch.php | 4 +- .../Component/Stopwatch/StopwatchEvent.php | 2 +- .../Component/Stopwatch/StopwatchPeriod.php | 2 +- .../Stopwatch/Tests/StopwatchEventTest.php | 2 +- .../Stopwatch/Tests/StopwatchTest.php | 2 +- .../Component/Templating/PhpEngine.php | 3 +- .../Translation/Loader/ArrayLoader.php | 2 +- .../Translation/Loader/IcuResFileLoader.php | 2 +- .../Translation/Loader/MoFileLoader.php | 1 + .../Translation/Loader/XliffFileLoader.php | 4 +- .../Tests/PluralizationRulesTest.php | 2 +- .../Component/Validator/Constraint.php | 21 ++++--- .../Validator/ConstraintValidator.php | 2 +- .../AbstractComparisonValidator.php | 2 +- .../Constraints/CallbackValidator.php | 2 +- .../Constraints/CardSchemeValidator.php | 9 +-- .../Constraints/CountryValidator.php | 2 +- .../Constraints/CurrencyValidator.php | 2 +- .../Validator/Constraints/GroupSequence.php | 5 +- .../Constraints/GroupSequenceProvider.php | 2 +- .../Validator/Constraints/IbanValidator.php | 1 + .../Validator/Constraints/ImageValidator.php | 2 +- .../Component/Validator/Constraints/Ip.php | 2 +- .../Validator/Constraints/IpValidator.php | 2 +- .../Constraints/LanguageValidator.php | 2 +- .../Validator/Constraints/LocaleValidator.php | 2 +- .../Validator/Constraints/LuhnValidator.php | 3 +- .../Component/Validator/Constraints/Regex.php | 2 +- .../Validator/Constraints/RegexValidator.php | 2 +- .../Mapping/Cache/CacheInterface.php | 8 +-- .../Validator/Mapping/ClassMetadata.php | 8 +-- .../Mapping/ClassMetadataFactory.php | 6 +- .../Mapping/Loader/AbstractLoader.php | 3 +- .../Validator/Mapping/Loader/LoaderChain.php | 4 +- .../Mapping/Loader/XmlFilesLoader.php | 2 +- .../Mapping/Loader/YamlFileLoader.php | 4 +- .../Mapping/Loader/YamlFilesLoader.php | 2 +- .../Validator/Mapping/MemberMetadata.php | 24 ++++---- .../AbstractComparisonValidatorTestCase.php | 2 + .../AbstractConstraintValidatorTest.php | 1 + .../Fixtures/StubGlobalExecutionContext.php | 1 + .../Tests/Mapping/ClassMetadataTest.php | 4 +- src/Symfony/Component/Yaml/Parser.php | 6 +- .../Component/Yaml/Tests/ParserTest.php | 2 - src/Symfony/Component/Yaml/Unescaper.php | 2 +- 452 files changed, 1137 insertions(+), 1029 deletions(-) diff --git a/src/Symfony/Bridge/Doctrine/ContainerAwareEventManager.php b/src/Symfony/Bridge/Doctrine/ContainerAwareEventManager.php index 1aa8618cf3..5d07cee69b 100644 --- a/src/Symfony/Bridge/Doctrine/ContainerAwareEventManager.php +++ b/src/Symfony/Bridge/Doctrine/ContainerAwareEventManager.php @@ -24,6 +24,7 @@ class ContainerAwareEventManager extends EventManager { /** * Map of registered listeners. + * * => * * @var array diff --git a/src/Symfony/Bridge/Doctrine/DependencyInjection/CompilerPass/DoctrineValidationPass.php b/src/Symfony/Bridge/Doctrine/DependencyInjection/CompilerPass/DoctrineValidationPass.php index 2812b92ea9..de35c55219 100644 --- a/src/Symfony/Bridge/Doctrine/DependencyInjection/CompilerPass/DoctrineValidationPass.php +++ b/src/Symfony/Bridge/Doctrine/DependencyInjection/CompilerPass/DoctrineValidationPass.php @@ -16,7 +16,7 @@ use Symfony\Component\DependencyInjection\Compiler\CompilerPassInterface; use Symfony\Component\Config\Resource\FileResource; /** - * Registers additional validators + * Registers additional validators. * * @author Benjamin Eberlei */ @@ -43,7 +43,7 @@ class DoctrineValidationPass implements CompilerPassInterface /** * Gets the validation mapping files for the format and extends them with - * files matching a doctrine search pattern (Resources/config/validation.orm.xml) + * files matching a doctrine search pattern (Resources/config/validation.orm.xml). * * @param ContainerBuilder $container * @param string $mapping diff --git a/src/Symfony/Bridge/Doctrine/DependencyInjection/CompilerPass/RegisterMappingsPass.php b/src/Symfony/Bridge/Doctrine/DependencyInjection/CompilerPass/RegisterMappingsPass.php index bd9e2e50b0..1ab331dc12 100644 --- a/src/Symfony/Bridge/Doctrine/DependencyInjection/CompilerPass/RegisterMappingsPass.php +++ b/src/Symfony/Bridge/Doctrine/DependencyInjection/CompilerPass/RegisterMappingsPass.php @@ -35,12 +35,14 @@ abstract class RegisterMappingsPass implements CompilerPassInterface /** * DI object for the driver to use, either a service definition for a * private service or a reference for a public service. + * * @var Definition|Reference */ protected $driver; /** - * List of namespaces handled by the driver + * List of namespaces handled by the driver. + * * @var string[] */ protected $namespaces; @@ -48,14 +50,16 @@ abstract class RegisterMappingsPass implements CompilerPassInterface /** * List of potential container parameters that hold the object manager name * to register the mappings with the correct metadata driver, for example - * array('acme.manager', 'doctrine.default_entity_manager') + * array('acme.manager', 'doctrine.default_entity_manager'). + * * @var string[] */ protected $managerParameters; /** * Naming pattern of the metadata chain driver service ids, for example - * 'doctrine.orm.%s_metadata_driver' + * 'doctrine.orm.%s_metadata_driver'. + * * @var string */ protected $driverPattern; @@ -64,6 +68,7 @@ abstract class RegisterMappingsPass implements CompilerPassInterface * A name for a parameter in the container. If set, this compiler pass will * only do anything if the parameter is present. (But regardless of the * value of that parameter. + * * @var string */ protected $enabledParameter; diff --git a/src/Symfony/Bridge/Doctrine/Form/ChoiceList/EntityChoiceList.php b/src/Symfony/Bridge/Doctrine/Form/ChoiceList/EntityChoiceList.php index 389ce68611..fdfd65421e 100644 --- a/src/Symfony/Bridge/Doctrine/Form/ChoiceList/EntityChoiceList.php +++ b/src/Symfony/Bridge/Doctrine/Form/ChoiceList/EntityChoiceList.php @@ -18,7 +18,7 @@ use Doctrine\Common\Persistence\ObjectManager; use Symfony\Component\PropertyAccess\PropertyAccessorInterface; /** - * A choice list presenting a list of Doctrine entities as choices + * A choice list presenting a list of Doctrine entities as choices. * * @author Bernhard Schussek */ @@ -41,7 +41,7 @@ class EntityChoiceList extends ObjectChoiceList /** * Contains the query builder that builds the query for fetching the - * entities + * entities. * * This property should only be accessed through queryBuilder. * @@ -50,21 +50,21 @@ class EntityChoiceList extends ObjectChoiceList private $entityLoader; /** - * The identifier field, if the identifier is not composite + * The identifier field, if the identifier is not composite. * * @var array */ private $idField = null; /** - * Whether to use the identifier for index generation + * Whether to use the identifier for index generation. * * @var bool */ private $idAsIndex = false; /** - * Whether to use the identifier for value generation + * Whether to use the identifier for value generation. * * @var bool */ @@ -98,7 +98,7 @@ class EntityChoiceList extends ObjectChoiceList * the choices are given as flat array. * @param PropertyAccessorInterface $propertyAccessor The reflection graph for reading property paths. */ - public function __construct(ObjectManager $manager, $class, $labelPath = null, EntityLoaderInterface $entityLoader = null, $entities = null, array $preferredEntities = array(), $groupPath = null, PropertyAccessorInterface $propertyAccessor = null) + public function __construct(ObjectManager $manager, $class, $labelPath = null, EntityLoaderInterface $entityLoader = null, $entities = null, array $preferredEntities = array(), $groupPath = null, PropertyAccessorInterface $propertyAccessor = null) { $this->em = $manager; $this->entityLoader = $entityLoader; @@ -128,7 +128,7 @@ class EntityChoiceList extends ObjectChoiceList } /** - * Returns the list of entities + * Returns the list of entities. * * @return array * @@ -144,7 +144,7 @@ class EntityChoiceList extends ObjectChoiceList } /** - * Returns the values for the entities + * Returns the values for the entities. * * @return array * diff --git a/src/Symfony/Bridge/Doctrine/Form/ChoiceList/ORMQueryBuilderLoader.php b/src/Symfony/Bridge/Doctrine/Form/ChoiceList/ORMQueryBuilderLoader.php index bb92bb794f..872e77affe 100644 --- a/src/Symfony/Bridge/Doctrine/Form/ChoiceList/ORMQueryBuilderLoader.php +++ b/src/Symfony/Bridge/Doctrine/Form/ChoiceList/ORMQueryBuilderLoader.php @@ -17,13 +17,13 @@ use Doctrine\DBAL\Connection; use Doctrine\ORM\EntityManager; /** - * Getting Entities through the ORM QueryBuilder + * Getting Entities through the ORM QueryBuilder. */ class ORMQueryBuilderLoader implements EntityLoaderInterface { /** * Contains the query builder that builds the query for fetching the - * entities + * entities. * * This property should only be accessed through queryBuilder. * @@ -32,7 +32,7 @@ class ORMQueryBuilderLoader implements EntityLoaderInterface private $queryBuilder; /** - * Construct an ORM Query Builder Loader + * Construct an ORM Query Builder Loader. * * @param QueryBuilder|\Closure $queryBuilder * @param EntityManager $manager diff --git a/src/Symfony/Bridge/Doctrine/RegistryInterface.php b/src/Symfony/Bridge/Doctrine/RegistryInterface.php index 2086f715df..18c9742214 100644 --- a/src/Symfony/Bridge/Doctrine/RegistryInterface.php +++ b/src/Symfony/Bridge/Doctrine/RegistryInterface.php @@ -39,7 +39,7 @@ interface RegistryInterface extends ManagerRegistryInterface public function getEntityManager($name = null); /** - * Gets an array of all registered entity managers + * Gets an array of all registered entity managers. * * @return array An array of EntityManager instances */ diff --git a/src/Symfony/Bridge/Doctrine/Security/RememberMe/DoctrineTokenProvider.php b/src/Symfony/Bridge/Doctrine/Security/RememberMe/DoctrineTokenProvider.php index d62b54478b..40112462c6 100644 --- a/src/Symfony/Bridge/Doctrine/Security/RememberMe/DoctrineTokenProvider.php +++ b/src/Symfony/Bridge/Doctrine/Security/RememberMe/DoctrineTokenProvider.php @@ -39,14 +39,14 @@ class DoctrineTokenProvider implements TokenProviderInterface { /** * Doctrine DBAL database connection - * F.ex. service id: doctrine.dbal.default_connection + * F.ex. service id: doctrine.dbal.default_connection. * * @var \Doctrine\DBAL\Connection */ private $conn; /** - * new DoctrineTokenProvider for the RemembeMe authentication service + * new DoctrineTokenProvider for the RemembeMe authentication service. * * @param \Doctrine\DBAL\Connection $conn */ diff --git a/src/Symfony/Bridge/Doctrine/Tests/DoctrineOrmTestCase.php b/src/Symfony/Bridge/Doctrine/Tests/DoctrineOrmTestCase.php index 970c997314..a13dd9a0b6 100644 --- a/src/Symfony/Bridge/Doctrine/Tests/DoctrineOrmTestCase.php +++ b/src/Symfony/Bridge/Doctrine/Tests/DoctrineOrmTestCase.php @@ -14,7 +14,7 @@ namespace Symfony\Bridge\Doctrine\Tests; use Symfony\Bridge\Doctrine\Test\DoctrineTestHelper; /** - * Class DoctrineOrmTestCase + * Class DoctrineOrmTestCase. * * @deprecated Deprecated as of Symfony 2.4, to be removed in Symfony 3.0. * Use {@link DoctrineTestHelper} instead. diff --git a/src/Symfony/Bridge/Doctrine/Tests/Fixtures/AssociationEntity.php b/src/Symfony/Bridge/Doctrine/Tests/Fixtures/AssociationEntity.php index eda2ce85da..c6d689a96a 100644 --- a/src/Symfony/Bridge/Doctrine/Tests/Fixtures/AssociationEntity.php +++ b/src/Symfony/Bridge/Doctrine/Tests/Fixtures/AssociationEntity.php @@ -27,6 +27,7 @@ class AssociationEntity /** * @ORM\ManyToOne(targetEntity="SingleIntIdEntity") + * * @var \Symfony\Bridge\Doctrine\Tests\Fixtures\SingleIntIdEntity */ public $single; @@ -37,6 +38,7 @@ class AssociationEntity * @ORM\JoinColumn(name="composite_id1", referencedColumnName="id1"), * @ORM\JoinColumn(name="composite_id2", referencedColumnName="id2") * }) + * * @var \Symfony\Bridge\Doctrine\Tests\Fixtures\CompositeIntIdEntity */ public $composite; diff --git a/src/Symfony/Bridge/Doctrine/Validator/Constraints/UniqueEntity.php b/src/Symfony/Bridge/Doctrine/Validator/Constraints/UniqueEntity.php index 067e9a8b06..fc6e213bd7 100644 --- a/src/Symfony/Bridge/Doctrine/Validator/Constraints/UniqueEntity.php +++ b/src/Symfony/Bridge/Doctrine/Validator/Constraints/UniqueEntity.php @@ -14,7 +14,7 @@ namespace Symfony\Bridge\Doctrine\Validator\Constraints; use Symfony\Component\Validator\Constraint; /** - * Constraint for the Unique Entity validator + * Constraint for the Unique Entity validator. * * @Annotation * @Target({"CLASS", "ANNOTATION"}) diff --git a/src/Symfony/Bridge/Monolog/Handler/ChromePhpHandler.php b/src/Symfony/Bridge/Monolog/Handler/ChromePhpHandler.php index 873632e696..97ce308983 100644 --- a/src/Symfony/Bridge/Monolog/Handler/ChromePhpHandler.php +++ b/src/Symfony/Bridge/Monolog/Handler/ChromePhpHandler.php @@ -34,7 +34,7 @@ class ChromePhpHandler extends BaseChromePhpHandler private $response; /** - * Adds the headers to the response once it's created + * Adds the headers to the response once it's created. */ public function onKernelResponse(FilterResponseEvent $event) { @@ -73,7 +73,7 @@ class ChromePhpHandler extends BaseChromePhpHandler } /** - * Override default behavior since we check it in onKernelResponse + * Override default behavior since we check it in onKernelResponse. */ protected function headersAccepted() { diff --git a/src/Symfony/Bridge/Monolog/Handler/FirePHPHandler.php b/src/Symfony/Bridge/Monolog/Handler/FirePHPHandler.php index 2d42235556..0131d19b0f 100644 --- a/src/Symfony/Bridge/Monolog/Handler/FirePHPHandler.php +++ b/src/Symfony/Bridge/Monolog/Handler/FirePHPHandler.php @@ -34,7 +34,7 @@ class FirePHPHandler extends BaseFirePHPHandler private $response; /** - * Adds the headers to the response once it's created + * Adds the headers to the response once it's created. */ public function onKernelResponse(FilterResponseEvent $event) { @@ -74,7 +74,7 @@ class FirePHPHandler extends BaseFirePHPHandler } /** - * Override default behavior since we check the user agent in onKernelResponse + * Override default behavior since we check the user agent in onKernelResponse. */ protected function headersAccepted() { diff --git a/src/Symfony/Bridge/Monolog/Handler/SwiftMailerHandler.php b/src/Symfony/Bridge/Monolog/Handler/SwiftMailerHandler.php index 29134115f3..85671e47a9 100644 --- a/src/Symfony/Bridge/Monolog/Handler/SwiftMailerHandler.php +++ b/src/Symfony/Bridge/Monolog/Handler/SwiftMailerHandler.php @@ -15,7 +15,7 @@ use Monolog\Handler\SwiftMailerHandler as BaseSwiftMailerHandler; use Symfony\Component\HttpKernel\Event\PostResponseEvent; /** - * Extended SwiftMailerHandler that flushes mail queue if necessary + * Extended SwiftMailerHandler that flushes mail queue if necessary. * * @author Philipp Kräutli */ @@ -34,7 +34,7 @@ class SwiftMailerHandler extends BaseSwiftMailerHandler } /** - * After the kernel has been terminated we will always flush messages + * After the kernel has been terminated we will always flush messages. * * @param PostResponseEvent $event */ @@ -56,7 +56,7 @@ class SwiftMailerHandler extends BaseSwiftMailerHandler } /** - * Flushes the mail queue if a memory spool is used + * Flushes the mail queue if a memory spool is used. */ private function flushMemorySpool() { diff --git a/src/Symfony/Bridge/Monolog/Processor/WebProcessor.php b/src/Symfony/Bridge/Monolog/Processor/WebProcessor.php index d5ac5a5dc5..375b505a7d 100644 --- a/src/Symfony/Bridge/Monolog/Processor/WebProcessor.php +++ b/src/Symfony/Bridge/Monolog/Processor/WebProcessor.php @@ -16,7 +16,7 @@ use Symfony\Component\HttpKernel\Event\GetResponseEvent; use Symfony\Component\HttpKernel\HttpKernelInterface; /** - * WebProcessor override to read from the HttpFoundation's Request + * WebProcessor override to read from the HttpFoundation's Request. * * @author Jordi Boggiano */ diff --git a/src/Symfony/Bridge/Propel1/DataCollector/PropelDataCollector.php b/src/Symfony/Bridge/Propel1/DataCollector/PropelDataCollector.php index dfa12fe78b..6efb8f561a 100644 --- a/src/Symfony/Bridge/Propel1/DataCollector/PropelDataCollector.php +++ b/src/Symfony/Bridge/Propel1/DataCollector/PropelDataCollector.php @@ -24,21 +24,21 @@ use Symfony\Component\HttpKernel\DataCollector\DataCollector; class PropelDataCollector extends DataCollector { /** - * Propel logger + * Propel logger. * * @var \Symfony\Bridge\Propel1\Logger\PropelLogger */ private $logger; /** - * Propel configuration + * Propel configuration. * * @var \PropelConfiguration */ protected $propelConfiguration; /** - * Constructor + * Constructor. * * @param PropelLogger $logger A Propel logger. * @param \PropelConfiguration $propelConfiguration The Propel configuration object. diff --git a/src/Symfony/Bridge/Propel1/Form/ChoiceList/ModelChoiceList.php b/src/Symfony/Bridge/Propel1/Form/ChoiceList/ModelChoiceList.php index 19de6e613f..a11deed45b 100644 --- a/src/Symfony/Bridge/Propel1/Form/ChoiceList/ModelChoiceList.php +++ b/src/Symfony/Bridge/Propel1/Form/ChoiceList/ModelChoiceList.php @@ -29,7 +29,7 @@ use Symfony\Component\PropertyAccess\PropertyAccessorInterface; class ModelChoiceList extends ObjectChoiceList { /** - * The fields of which the identifier of the underlying class consists + * The fields of which the identifier of the underlying class consists. * * This property should only be accessed through identifier. * diff --git a/src/Symfony/Bridge/Propel1/Form/EventListener/TranslationCollectionFormListener.php b/src/Symfony/Bridge/Propel1/Form/EventListener/TranslationCollectionFormListener.php index 9829bb238d..b881747bc7 100644 --- a/src/Symfony/Bridge/Propel1/Form/EventListener/TranslationCollectionFormListener.php +++ b/src/Symfony/Bridge/Propel1/Form/EventListener/TranslationCollectionFormListener.php @@ -16,7 +16,7 @@ use Symfony\Component\EventDispatcher\EventSubscriberInterface; use Symfony\Component\Form\FormEvent; /** - * listener class for propel1_translatable_collection + * listener class for propel1_translatable_collection. * * @author Patrick Kaufmann */ diff --git a/src/Symfony/Bridge/Propel1/Form/EventListener/TranslationFormListener.php b/src/Symfony/Bridge/Propel1/Form/EventListener/TranslationFormListener.php index 083e0ac886..bd3c71e71b 100644 --- a/src/Symfony/Bridge/Propel1/Form/EventListener/TranslationFormListener.php +++ b/src/Symfony/Bridge/Propel1/Form/EventListener/TranslationFormListener.php @@ -15,7 +15,7 @@ use Symfony\Component\Form\FormEvent; use Symfony\Component\Form\FormEvents; /** - * Event Listener class for propel1_translation + * Event Listener class for propel1_translation. * * @author Patrick Kaufmann */ diff --git a/src/Symfony/Bridge/Propel1/Form/Type/TranslationCollectionType.php b/src/Symfony/Bridge/Propel1/Form/Type/TranslationCollectionType.php index 1ed78ae705..e9b6978a0f 100644 --- a/src/Symfony/Bridge/Propel1/Form/Type/TranslationCollectionType.php +++ b/src/Symfony/Bridge/Propel1/Form/Type/TranslationCollectionType.php @@ -18,7 +18,7 @@ use Symfony\Component\OptionsResolver\OptionsResolverInterface; use Symfony\Bridge\Propel1\Form\EventListener\TranslationCollectionFormListener; /** - * form type for i18n-columns in propel + * form type for i18n-columns in propel. * * @author Patrick Kaufmann */ diff --git a/src/Symfony/Bridge/Propel1/Form/Type/TranslationType.php b/src/Symfony/Bridge/Propel1/Form/Type/TranslationType.php index 6881476533..7fed076fe0 100644 --- a/src/Symfony/Bridge/Propel1/Form/Type/TranslationType.php +++ b/src/Symfony/Bridge/Propel1/Form/Type/TranslationType.php @@ -17,7 +17,7 @@ use Symfony\Component\OptionsResolver\OptionsResolverInterface; use Symfony\Bridge\Propel1\Form\EventListener\TranslationFormListener; /** - * Translation type class + * Translation type class. * * @author Patrick Kaufmann */ diff --git a/src/Symfony/Bridge/Propel1/Security/User/PropelUserProvider.php b/src/Symfony/Bridge/Propel1/Security/User/PropelUserProvider.php index d4d5a4e911..44a55593d5 100644 --- a/src/Symfony/Bridge/Propel1/Security/User/PropelUserProvider.php +++ b/src/Symfony/Bridge/Propel1/Security/User/PropelUserProvider.php @@ -45,7 +45,7 @@ class PropelUserProvider implements UserProviderInterface protected $property; /** - * Default constructor + * Default constructor. * * @param string $class The User model class. * @param string|null $property The property to use to retrieve a user. diff --git a/src/Symfony/Bridge/Propel1/Tests/Fixtures/ItemQuery.php b/src/Symfony/Bridge/Propel1/Tests/Fixtures/ItemQuery.php index 220f40525e..cae2569446 100644 --- a/src/Symfony/Bridge/Propel1/Tests/Fixtures/ItemQuery.php +++ b/src/Symfony/Bridge/Propel1/Tests/Fixtures/ItemQuery.php @@ -51,7 +51,7 @@ class ItemQuery } /** - * Method from the TableMap API + * Method from the TableMap API. */ public function hasColumn($column) { @@ -59,7 +59,7 @@ class ItemQuery } /** - * Method from the TableMap API + * Method from the TableMap API. */ public function getColumn($column) { @@ -69,7 +69,7 @@ class ItemQuery } /** - * Method from the TableMap API + * Method from the TableMap API. */ public function getRelations() { diff --git a/src/Symfony/Bridge/ProxyManager/LazyProxy/Instantiator/RuntimeInstantiator.php b/src/Symfony/Bridge/ProxyManager/LazyProxy/Instantiator/RuntimeInstantiator.php index 8a98b29f6f..6c5043f2c5 100644 --- a/src/Symfony/Bridge/ProxyManager/LazyProxy/Instantiator/RuntimeInstantiator.php +++ b/src/Symfony/Bridge/ProxyManager/LazyProxy/Instantiator/RuntimeInstantiator.php @@ -32,7 +32,7 @@ class RuntimeInstantiator implements InstantiatorInterface private $factory; /** - * Constructor + * Constructor. */ public function __construct() { diff --git a/src/Symfony/Bridge/ProxyManager/LazyProxy/PhpDumper/ProxyDumper.php b/src/Symfony/Bridge/ProxyManager/LazyProxy/PhpDumper/ProxyDumper.php index d354dde227..bcc6a4ca48 100644 --- a/src/Symfony/Bridge/ProxyManager/LazyProxy/PhpDumper/ProxyDumper.php +++ b/src/Symfony/Bridge/ProxyManager/LazyProxy/PhpDumper/ProxyDumper.php @@ -37,7 +37,7 @@ class ProxyDumper implements DumperInterface private $classGenerator; /** - * Constructor + * Constructor. */ public function __construct() { diff --git a/src/Symfony/Bridge/ProxyManager/Tests/LazyProxy/ContainerBuilderTest.php b/src/Symfony/Bridge/ProxyManager/Tests/LazyProxy/ContainerBuilderTest.php index 10faf8e12a..b6c3b4fd36 100644 --- a/src/Symfony/Bridge/ProxyManager/Tests/LazyProxy/ContainerBuilderTest.php +++ b/src/Symfony/Bridge/ProxyManager/Tests/LazyProxy/ContainerBuilderTest.php @@ -18,7 +18,7 @@ use Symfony\Component\DependencyInjection\ContainerBuilder; /** * Integration tests for {@see \Symfony\Component\DependencyInjection\ContainerBuilder} combined - * with the ProxyManager bridge + * with the ProxyManager bridge. * * @author Marco Pivetta */ diff --git a/src/Symfony/Bridge/ProxyManager/Tests/LazyProxy/Dumper/PhpDumperTest.php b/src/Symfony/Bridge/ProxyManager/Tests/LazyProxy/Dumper/PhpDumperTest.php index 51dab3cc4e..412674ee3f 100644 --- a/src/Symfony/Bridge/ProxyManager/Tests/LazyProxy/Dumper/PhpDumperTest.php +++ b/src/Symfony/Bridge/ProxyManager/Tests/LazyProxy/Dumper/PhpDumperTest.php @@ -17,7 +17,7 @@ use Symfony\Component\DependencyInjection\Dumper\PhpDumper; /** * Integration tests for {@see \Symfony\Component\DependencyInjection\Dumper\PhpDumper} combined - * with the ProxyManager bridge + * with the ProxyManager bridge. * * @author Marco Pivetta */ @@ -45,7 +45,7 @@ class PhpDumperTest extends \PHPUnit_Framework_TestCase } /** - * Verifies that the generated container retrieves the same proxy instance on multiple subsequent requests + * Verifies that the generated container retrieves the same proxy instance on multiple subsequent requests. */ public function testDumpContainerWithProxyServiceWillShareProxies() { diff --git a/src/Symfony/Bridge/ProxyManager/Tests/LazyProxy/Fixtures/php/lazy_service.php b/src/Symfony/Bridge/ProxyManager/Tests/LazyProxy/Fixtures/php/lazy_service.php index 998e3773e7..262252e1e8 100644 --- a/src/Symfony/Bridge/ProxyManager/Tests/LazyProxy/Fixtures/php/lazy_service.php +++ b/src/Symfony/Bridge/ProxyManager/Tests/LazyProxy/Fixtures/php/lazy_service.php @@ -11,7 +11,7 @@ use Symfony\Component\DependencyInjection\Parameter; use Symfony\Component\DependencyInjection\ParameterBag\FrozenParameterBag; /** - * ProjectServiceContainer + * ProjectServiceContainer. * * This class has been auto-generated * by the Symfony Dependency Injection Component. diff --git a/src/Symfony/Bridge/ProxyManager/Tests/LazyProxy/Instantiator/RuntimeInstantiatorTest.php b/src/Symfony/Bridge/ProxyManager/Tests/LazyProxy/Instantiator/RuntimeInstantiatorTest.php index 84790d8198..f258ed34dd 100644 --- a/src/Symfony/Bridge/ProxyManager/Tests/LazyProxy/Instantiator/RuntimeInstantiatorTest.php +++ b/src/Symfony/Bridge/ProxyManager/Tests/LazyProxy/Instantiator/RuntimeInstantiatorTest.php @@ -17,7 +17,7 @@ use Symfony\Component\DependencyInjection\ContainerInterface; use Symfony\Component\DependencyInjection\Definition; /** - * Tests for {@see \Symfony\Bridge\ProxyManager\LazyProxy\Instantiator\RuntimeInstantiator} + * Tests for {@see \Symfony\Bridge\ProxyManager\LazyProxy\Instantiator\RuntimeInstantiator}. * * @author Marco Pivetta * diff --git a/src/Symfony/Bridge/ProxyManager/Tests/LazyProxy/PhpDumper/ProxyDumperTest.php b/src/Symfony/Bridge/ProxyManager/Tests/LazyProxy/PhpDumper/ProxyDumperTest.php index e3ef13d8e9..969a668308 100644 --- a/src/Symfony/Bridge/ProxyManager/Tests/LazyProxy/PhpDumper/ProxyDumperTest.php +++ b/src/Symfony/Bridge/ProxyManager/Tests/LazyProxy/PhpDumper/ProxyDumperTest.php @@ -15,7 +15,7 @@ use Symfony\Bridge\ProxyManager\LazyProxy\PhpDumper\ProxyDumper; use Symfony\Component\DependencyInjection\Definition; /** - * Tests for {@see \Symfony\Bridge\ProxyManager\LazyProxy\PhpDumper\ProxyDumper} + * Tests for {@see \Symfony\Bridge\ProxyManager\LazyProxy\PhpDumper\ProxyDumper}. * * @author Marco Pivetta * diff --git a/src/Symfony/Bundle/FrameworkBundle/Command/ConfigDumpReferenceCommand.php b/src/Symfony/Bundle/FrameworkBundle/Command/ConfigDumpReferenceCommand.php index bf118407b0..9376b08473 100644 --- a/src/Symfony/Bundle/FrameworkBundle/Command/ConfigDumpReferenceCommand.php +++ b/src/Symfony/Bundle/FrameworkBundle/Command/ConfigDumpReferenceCommand.php @@ -18,7 +18,7 @@ use Symfony\Component\Console\Output\OutputInterface; use Symfony\Component\Config\Definition\ConfigurationInterface; /** - * A console command for dumping available configuration reference + * A console command for dumping available configuration reference. * * @author Kevin Bond */ diff --git a/src/Symfony/Bundle/FrameworkBundle/Command/ContainerAwareCommand.php b/src/Symfony/Bundle/FrameworkBundle/Command/ContainerAwareCommand.php index 2832479e3d..218f816057 100644 --- a/src/Symfony/Bundle/FrameworkBundle/Command/ContainerAwareCommand.php +++ b/src/Symfony/Bundle/FrameworkBundle/Command/ContainerAwareCommand.php @@ -29,6 +29,7 @@ abstract class ContainerAwareCommand extends Command implements ContainerAwareIn /** * @return ContainerInterface + * * @throws \LogicException */ protected function getContainer() diff --git a/src/Symfony/Bundle/FrameworkBundle/Command/ContainerDebugCommand.php b/src/Symfony/Bundle/FrameworkBundle/Command/ContainerDebugCommand.php index 17fe850019..9331a51c80 100644 --- a/src/Symfony/Bundle/FrameworkBundle/Command/ContainerDebugCommand.php +++ b/src/Symfony/Bundle/FrameworkBundle/Command/ContainerDebugCommand.php @@ -22,7 +22,7 @@ use Symfony\Component\DependencyInjection\ContainerBuilder; use Symfony\Component\Config\FileLocator; /** - * A console command for retrieving information about services + * A console command for retrieving information about services. * * @author Ryan Weaver */ @@ -269,7 +269,7 @@ EOF } /** - * Renders detailed service information about one service + * Renders detailed service information about one service. */ protected function outputService(OutputInterface $output, $serviceId) { @@ -409,7 +409,7 @@ EOF } /** - * Renders list of tagged services grouped by tag + * Renders list of tagged services grouped by tag. * * @param OutputInterface $output * @param bool $showPrivate diff --git a/src/Symfony/Bundle/FrameworkBundle/Command/RouterDebugCommand.php b/src/Symfony/Bundle/FrameworkBundle/Command/RouterDebugCommand.php index 7bd026c6ae..67c5bc9444 100644 --- a/src/Symfony/Bundle/FrameworkBundle/Command/RouterDebugCommand.php +++ b/src/Symfony/Bundle/FrameworkBundle/Command/RouterDebugCommand.php @@ -17,7 +17,7 @@ use Symfony\Component\Console\Output\OutputInterface; use Symfony\Component\Routing\RouterInterface; /** - * A console command for retrieving information about routes + * A console command for retrieving information about routes. * * @author Fabien Potencier * @author Tobias Schultze @@ -101,7 +101,7 @@ EOF $format = '%-'.$maxName.'s %-'.$maxMethod.'s %-'.$maxScheme.'s %-'.$maxHost.'s %s'; $formatHeader = '%-'.($maxName + 19).'s %-'.($maxMethod + 19).'s %-'.($maxScheme + 19).'s %-'.($maxHost + 19).'s %s'; - $output->writeln(sprintf($formatHeader, 'Name', 'Method', 'Scheme', 'Host', 'Path')); + $output->writeln(sprintf($formatHeader, 'Name', 'Method', 'Scheme', 'Host', 'Path')); foreach ($routes as $name => $route) { $method = $route->getMethods() ? implode('|', $route->getMethods()) : 'ANY'; diff --git a/src/Symfony/Bundle/FrameworkBundle/Controller/Controller.php b/src/Symfony/Bundle/FrameworkBundle/Controller/Controller.php index f4f1fbd99d..58569d0983 100644 --- a/src/Symfony/Bundle/FrameworkBundle/Controller/Controller.php +++ b/src/Symfony/Bundle/FrameworkBundle/Controller/Controller.php @@ -164,7 +164,7 @@ class Controller extends ContainerAware } /** - * Creates and returns a form builder instance + * Creates and returns a form builder instance. * * @param mixed $data The initial data for the form * @param array $options Options for the form @@ -203,7 +203,7 @@ class Controller extends ContainerAware } /** - * Get a user from the Security Context + * Get a user from the Security Context. * * @return mixed * diff --git a/src/Symfony/Bundle/FrameworkBundle/DependencyInjection/Compiler/FormPass.php b/src/Symfony/Bundle/FrameworkBundle/DependencyInjection/Compiler/FormPass.php index 7fd96e9508..8b46b946e5 100644 --- a/src/Symfony/Bundle/FrameworkBundle/DependencyInjection/Compiler/FormPass.php +++ b/src/Symfony/Bundle/FrameworkBundle/DependencyInjection/Compiler/FormPass.php @@ -16,7 +16,7 @@ use Symfony\Component\DependencyInjection\Compiler\CompilerPassInterface; /** * Adds all services with the tags "form.type" and "form.type_guesser" as - * arguments of the "form.extension" service + * arguments of the "form.extension" service. * * @author Bernhard Schussek */ diff --git a/src/Symfony/Bundle/FrameworkBundle/DependencyInjection/Compiler/ProfilerPass.php b/src/Symfony/Bundle/FrameworkBundle/DependencyInjection/Compiler/ProfilerPass.php index d7dce5abc4..78ccb799cc 100644 --- a/src/Symfony/Bundle/FrameworkBundle/DependencyInjection/Compiler/ProfilerPass.php +++ b/src/Symfony/Bundle/FrameworkBundle/DependencyInjection/Compiler/ProfilerPass.php @@ -16,7 +16,7 @@ use Symfony\Component\DependencyInjection\ContainerBuilder; use Symfony\Component\DependencyInjection\Compiler\CompilerPassInterface; /** - * Adds tagged data_collector services to profiler service + * Adds tagged data_collector services to profiler service. * * @author Fabien Potencier */ diff --git a/src/Symfony/Bundle/FrameworkBundle/DependencyInjection/Compiler/RoutingResolverPass.php b/src/Symfony/Bundle/FrameworkBundle/DependencyInjection/Compiler/RoutingResolverPass.php index 322f7ba2ec..6ff7c124cd 100644 --- a/src/Symfony/Bundle/FrameworkBundle/DependencyInjection/Compiler/RoutingResolverPass.php +++ b/src/Symfony/Bundle/FrameworkBundle/DependencyInjection/Compiler/RoutingResolverPass.php @@ -16,7 +16,7 @@ use Symfony\Component\DependencyInjection\ContainerBuilder; use Symfony\Component\DependencyInjection\Compiler\CompilerPassInterface; /** - * Adds tagged routing.loader services to routing.resolver service + * Adds tagged routing.loader services to routing.resolver service. * * @author Fabien Potencier */ diff --git a/src/Symfony/Bundle/FrameworkBundle/DependencyInjection/Compiler/TranslationDumperPass.php b/src/Symfony/Bundle/FrameworkBundle/DependencyInjection/Compiler/TranslationDumperPass.php index b7ba86018b..f7c09748b4 100644 --- a/src/Symfony/Bundle/FrameworkBundle/DependencyInjection/Compiler/TranslationDumperPass.php +++ b/src/Symfony/Bundle/FrameworkBundle/DependencyInjection/Compiler/TranslationDumperPass.php @@ -16,7 +16,7 @@ use Symfony\Component\DependencyInjection\ContainerBuilder; use Symfony\Component\DependencyInjection\Compiler\CompilerPassInterface; /** - * Adds tagged translation.formatter services to translation writer + * Adds tagged translation.formatter services to translation writer. */ class TranslationDumperPass implements CompilerPassInterface { diff --git a/src/Symfony/Bundle/FrameworkBundle/DependencyInjection/Compiler/TranslationExtractorPass.php b/src/Symfony/Bundle/FrameworkBundle/DependencyInjection/Compiler/TranslationExtractorPass.php index d982cedad5..af885855f6 100644 --- a/src/Symfony/Bundle/FrameworkBundle/DependencyInjection/Compiler/TranslationExtractorPass.php +++ b/src/Symfony/Bundle/FrameworkBundle/DependencyInjection/Compiler/TranslationExtractorPass.php @@ -16,7 +16,7 @@ use Symfony\Component\DependencyInjection\ContainerBuilder; use Symfony\Component\DependencyInjection\Compiler\CompilerPassInterface; /** - * Adds tagged translation.extractor services to translation extractor + * Adds tagged translation.extractor services to translation extractor. */ class TranslationExtractorPass implements CompilerPassInterface { diff --git a/src/Symfony/Bundle/FrameworkBundle/EventListener/TestSessionListener.php b/src/Symfony/Bundle/FrameworkBundle/EventListener/TestSessionListener.php index d0360c3e2c..3b568074f3 100644 --- a/src/Symfony/Bundle/FrameworkBundle/EventListener/TestSessionListener.php +++ b/src/Symfony/Bundle/FrameworkBundle/EventListener/TestSessionListener.php @@ -57,7 +57,7 @@ class TestSessionListener implements EventSubscriberInterface /** * Checks if session was initialized and saves if current request is master - * Runs on 'kernel.response' in test environment + * Runs on 'kernel.response' in test environment. * * @param FilterResponseEvent $event */ diff --git a/src/Symfony/Bundle/FrameworkBundle/Templating/Helper/RequestHelper.php b/src/Symfony/Bundle/FrameworkBundle/Templating/Helper/RequestHelper.php index 4533bf172b..c098be8cf6 100644 --- a/src/Symfony/Bundle/FrameworkBundle/Templating/Helper/RequestHelper.php +++ b/src/Symfony/Bundle/FrameworkBundle/Templating/Helper/RequestHelper.php @@ -49,7 +49,7 @@ class RequestHelper extends Helper } /** - * Returns the locale + * Returns the locale. * * @return string */ diff --git a/src/Symfony/Bundle/FrameworkBundle/Templating/Helper/SessionHelper.php b/src/Symfony/Bundle/FrameworkBundle/Templating/Helper/SessionHelper.php index aac3f6dd7b..c4362df1db 100644 --- a/src/Symfony/Bundle/FrameworkBundle/Templating/Helper/SessionHelper.php +++ b/src/Symfony/Bundle/FrameworkBundle/Templating/Helper/SessionHelper.php @@ -34,7 +34,7 @@ class SessionHelper extends Helper } /** - * Returns an attribute + * Returns an attribute. * * @param string $name The attribute name * @param mixed $default The default value diff --git a/src/Symfony/Bundle/FrameworkBundle/Templating/TemplateReference.php b/src/Symfony/Bundle/FrameworkBundle/Templating/TemplateReference.php index 0687a9913b..d9bc982d74 100644 --- a/src/Symfony/Bundle/FrameworkBundle/Templating/TemplateReference.php +++ b/src/Symfony/Bundle/FrameworkBundle/Templating/TemplateReference.php @@ -34,7 +34,7 @@ class TemplateReference extends BaseTemplateReference /** * Returns the path to the template * - as a path when the template is not part of a bundle - * - as a resource when the template is part of a bundle + * - as a resource when the template is part of a bundle. * * @return string A path to the template or a resource */ diff --git a/src/Symfony/Bundle/FrameworkBundle/Tests/DependencyInjection/Compiler/ProfilerPassTest.php b/src/Symfony/Bundle/FrameworkBundle/Tests/DependencyInjection/Compiler/ProfilerPassTest.php index 428c6d8a8e..d7fb6fe739 100644 --- a/src/Symfony/Bundle/FrameworkBundle/Tests/DependencyInjection/Compiler/ProfilerPassTest.php +++ b/src/Symfony/Bundle/FrameworkBundle/Tests/DependencyInjection/Compiler/ProfilerPassTest.php @@ -26,8 +26,9 @@ class ProfilerPassTest extends \PHPUnit_Framework_TestCase /** * Tests that collectors that specify a template but no "id" will throw - * an exception (both are needed if the template is specified). Thus, - * a fully-valid tag looks something like this: + * an exception (both are needed if the template is specified). + * + * Thus, a fully-valid tag looks something like this: * * */ diff --git a/src/Symfony/Bundle/FrameworkBundle/Tests/DependencyInjection/Compiler/SerializerPassTest.php b/src/Symfony/Bundle/FrameworkBundle/Tests/DependencyInjection/Compiler/SerializerPassTest.php index d4489a463c..3268a9b8b2 100644 --- a/src/Symfony/Bundle/FrameworkBundle/Tests/DependencyInjection/Compiler/SerializerPassTest.php +++ b/src/Symfony/Bundle/FrameworkBundle/Tests/DependencyInjection/Compiler/SerializerPassTest.php @@ -16,7 +16,7 @@ use Symfony\Component\DependencyInjection\Reference; use Symfony\Bundle\FrameworkBundle\DependencyInjection\Compiler\SerializerPass; /** - * Tests for the SerializerPass class + * Tests for the SerializerPass class. * * @author Javier Lopez */ diff --git a/src/Symfony/Bundle/FrameworkBundle/Tests/Templating/Helper/FormHelperDivLayoutTest.php b/src/Symfony/Bundle/FrameworkBundle/Tests/Templating/Helper/FormHelperDivLayoutTest.php index 70df59acbe..edf4a5d0eb 100644 --- a/src/Symfony/Bundle/FrameworkBundle/Tests/Templating/Helper/FormHelperDivLayoutTest.php +++ b/src/Symfony/Bundle/FrameworkBundle/Tests/Templating/Helper/FormHelperDivLayoutTest.php @@ -18,8 +18,6 @@ use Symfony\Bundle\FrameworkBundle\Tests\Templating\Helper\Fixtures\StubTemplate use Symfony\Bundle\FrameworkBundle\Tests\Templating\Helper\Fixtures\StubTranslator; use Symfony\Component\Templating\PhpEngine; use Symfony\Component\Templating\Loader\FilesystemLoader; - -// should probably be moved to the Translation component use Symfony\Bundle\FrameworkBundle\Templating\Helper\TranslatorHelper; class FormHelperDivLayoutTest extends AbstractDivLayoutTest diff --git a/src/Symfony/Bundle/FrameworkBundle/Tests/Templating/Helper/FormHelperTableLayoutTest.php b/src/Symfony/Bundle/FrameworkBundle/Tests/Templating/Helper/FormHelperTableLayoutTest.php index 96c56b6506..db0809df22 100644 --- a/src/Symfony/Bundle/FrameworkBundle/Tests/Templating/Helper/FormHelperTableLayoutTest.php +++ b/src/Symfony/Bundle/FrameworkBundle/Tests/Templating/Helper/FormHelperTableLayoutTest.php @@ -18,8 +18,6 @@ use Symfony\Bundle\FrameworkBundle\Tests\Templating\Helper\Fixtures\StubTemplate use Symfony\Bundle\FrameworkBundle\Tests\Templating\Helper\Fixtures\StubTranslator; use Symfony\Component\Templating\PhpEngine; use Symfony\Component\Templating\Loader\FilesystemLoader; - -// should probably be moved to the Translation component use Symfony\Bundle\FrameworkBundle\Templating\Helper\TranslatorHelper; class FormHelperTableLayoutTest extends AbstractTableLayoutTest diff --git a/src/Symfony/Bundle/FrameworkBundle/Translation/PhpExtractor.php b/src/Symfony/Bundle/FrameworkBundle/Translation/PhpExtractor.php index 67de7da719..5007a86bca 100644 --- a/src/Symfony/Bundle/FrameworkBundle/Translation/PhpExtractor.php +++ b/src/Symfony/Bundle/FrameworkBundle/Translation/PhpExtractor.php @@ -103,7 +103,7 @@ class PhpExtractor implements ExtractorInterface /** * Extracts the message from the iterator while the tokens - * match allowed message tokens + * match allowed message tokens. */ private function getMessage(\Iterator $tokenIterator) { diff --git a/src/Symfony/Bundle/FrameworkBundle/Translation/PhpStringTokenParser.php b/src/Symfony/Bundle/FrameworkBundle/Translation/PhpStringTokenParser.php index 1bb4173763..7e42cd6315 100644 --- a/src/Symfony/Bundle/FrameworkBundle/Translation/PhpStringTokenParser.php +++ b/src/Symfony/Bundle/FrameworkBundle/Translation/PhpStringTokenParser.php @@ -77,7 +77,7 @@ class PhpStringTokenParser if ('\'' === $str[$bLength]) { return str_replace( array('\\\\', '\\\''), - array( '\\', '\''), + array( '\\', '\''), substr($str, $bLength + 1, -1) ); } else { diff --git a/src/Symfony/Bundle/FrameworkBundle/Translation/TranslationLoader.php b/src/Symfony/Bundle/FrameworkBundle/Translation/TranslationLoader.php index c22c6191af..0a00cf2b19 100644 --- a/src/Symfony/Bundle/FrameworkBundle/Translation/TranslationLoader.php +++ b/src/Symfony/Bundle/FrameworkBundle/Translation/TranslationLoader.php @@ -31,6 +31,7 @@ class TranslationLoader /** * Adds a loader to the translation extractor. + * * @param string $format The format of the loader * @param LoaderInterface $loader */ diff --git a/src/Symfony/Bundle/SecurityBundle/Command/InitAclCommand.php b/src/Symfony/Bundle/SecurityBundle/Command/InitAclCommand.php index 3585b16a86..a976c585ee 100644 --- a/src/Symfony/Bundle/SecurityBundle/Command/InitAclCommand.php +++ b/src/Symfony/Bundle/SecurityBundle/Command/InitAclCommand.php @@ -17,7 +17,7 @@ use Symfony\Component\Console\Output\OutputInterface; use Doctrine\DBAL\Schema\SchemaException; /** - * Installs the tables required by the ACL system + * Installs the tables required by the ACL system. * * @author Johannes M. Schmitt */ diff --git a/src/Symfony/Bundle/SecurityBundle/DependencyInjection/Compiler/AddSecurityVotersPass.php b/src/Symfony/Bundle/SecurityBundle/DependencyInjection/Compiler/AddSecurityVotersPass.php index 7061ae73fd..497807174d 100644 --- a/src/Symfony/Bundle/SecurityBundle/DependencyInjection/Compiler/AddSecurityVotersPass.php +++ b/src/Symfony/Bundle/SecurityBundle/DependencyInjection/Compiler/AddSecurityVotersPass.php @@ -16,7 +16,7 @@ use Symfony\Component\DependencyInjection\ContainerBuilder; use Symfony\Component\DependencyInjection\Compiler\CompilerPassInterface; /** - * Adds all configured security voters to the access decision manager + * Adds all configured security voters to the access decision manager. * * @author Johannes M. Schmitt */ diff --git a/src/Symfony/Bundle/SecurityBundle/DependencyInjection/MainConfiguration.php b/src/Symfony/Bundle/SecurityBundle/DependencyInjection/MainConfiguration.php index b06a6dc77b..55d607d1e7 100644 --- a/src/Symfony/Bundle/SecurityBundle/DependencyInjection/MainConfiguration.php +++ b/src/Symfony/Bundle/SecurityBundle/DependencyInjection/MainConfiguration.php @@ -17,7 +17,9 @@ use Symfony\Component\Config\Definition\Builder\ArrayNodeDefinition; use Symfony\Component\Config\Definition\ConfigurationInterface; /** - * This class contains the configuration information for the following tags: + * This class contains the configuration information. + * + * This information is for the following tags: * * * security.config * * security.acl diff --git a/src/Symfony/Bundle/SecurityBundle/DependencyInjection/Security/Factory/AbstractFactory.php b/src/Symfony/Bundle/SecurityBundle/DependencyInjection/Security/Factory/AbstractFactory.php index cef118de77..a797bfc75a 100644 --- a/src/Symfony/Bundle/SecurityBundle/DependencyInjection/Security/Factory/AbstractFactory.php +++ b/src/Symfony/Bundle/SecurityBundle/DependencyInjection/Security/Factory/AbstractFactory.php @@ -18,7 +18,7 @@ use Symfony\Component\DependencyInjection\Reference; /** * AbstractFactory is the base class for all classes inheriting from - * AbstractAuthenticationListener + * AbstractAuthenticationListener. * * @author Lukas Kahwe Smith * @author Johannes M. Schmitt diff --git a/src/Symfony/Bundle/SecurityBundle/Security/FirewallMap.php b/src/Symfony/Bundle/SecurityBundle/Security/FirewallMap.php index b06234bc22..dc87681c37 100644 --- a/src/Symfony/Bundle/SecurityBundle/Security/FirewallMap.php +++ b/src/Symfony/Bundle/SecurityBundle/Security/FirewallMap.php @@ -16,7 +16,7 @@ use Symfony\Component\HttpFoundation\Request; use Symfony\Component\DependencyInjection\ContainerInterface; /** - * This is a lazy-loading firewall map implementation + * This is a lazy-loading firewall map implementation. * * Listeners will only be initialized if we really need them. * diff --git a/src/Symfony/Bundle/TwigBundle/DependencyInjection/Compiler/TwigEnvironmentPass.php b/src/Symfony/Bundle/TwigBundle/DependencyInjection/Compiler/TwigEnvironmentPass.php index 785c597c78..927e4b46e1 100644 --- a/src/Symfony/Bundle/TwigBundle/DependencyInjection/Compiler/TwigEnvironmentPass.php +++ b/src/Symfony/Bundle/TwigBundle/DependencyInjection/Compiler/TwigEnvironmentPass.php @@ -16,7 +16,7 @@ use Symfony\Component\DependencyInjection\ContainerBuilder; use Symfony\Component\DependencyInjection\Compiler\CompilerPassInterface; /** - * Adds tagged twig.extension services to twig service + * Adds tagged twig.extension services to twig service. * * @author Fabien Potencier */ diff --git a/src/Symfony/Bundle/TwigBundle/DependencyInjection/Compiler/TwigLoaderPass.php b/src/Symfony/Bundle/TwigBundle/DependencyInjection/Compiler/TwigLoaderPass.php index 075177d5eb..c34f958393 100644 --- a/src/Symfony/Bundle/TwigBundle/DependencyInjection/Compiler/TwigLoaderPass.php +++ b/src/Symfony/Bundle/TwigBundle/DependencyInjection/Compiler/TwigLoaderPass.php @@ -17,7 +17,7 @@ use Symfony\Component\DependencyInjection\Compiler\CompilerPassInterface; use Symfony\Component\DependencyInjection\Exception\LogicException; /** - * Adds services tagged twig.loader as Twig loaders + * Adds services tagged twig.loader as Twig loaders. * * @author Daniel Leech */ diff --git a/src/Symfony/Bundle/TwigBundle/Extension/ActionsExtension.php b/src/Symfony/Bundle/TwigBundle/Extension/ActionsExtension.php index 388f13bf10..be96d69c04 100644 --- a/src/Symfony/Bundle/TwigBundle/Extension/ActionsExtension.php +++ b/src/Symfony/Bundle/TwigBundle/Extension/ActionsExtension.php @@ -15,7 +15,7 @@ use Symfony\Bundle\TwigBundle\TokenParser\RenderTokenParser; use Symfony\Component\DependencyInjection\ContainerInterface; /** - * Twig extension for Symfony actions helper + * Twig extension for Symfony actions helper. * * @author Fabien Potencier * diff --git a/src/Symfony/Bundle/TwigBundle/Extension/AssetsExtension.php b/src/Symfony/Bundle/TwigBundle/Extension/AssetsExtension.php index 20834d7fa2..929680597c 100644 --- a/src/Symfony/Bundle/TwigBundle/Extension/AssetsExtension.php +++ b/src/Symfony/Bundle/TwigBundle/Extension/AssetsExtension.php @@ -14,7 +14,7 @@ namespace Symfony\Bundle\TwigBundle\Extension; use Symfony\Component\DependencyInjection\ContainerInterface; /** - * Twig extension for Symfony assets helper + * Twig extension for Symfony assets helper. * * @author Fabien Potencier */ diff --git a/src/Symfony/Bundle/WebProfilerBundle/DependencyInjection/Configuration.php b/src/Symfony/Bundle/WebProfilerBundle/DependencyInjection/Configuration.php index ece674c6c3..79ad59f870 100644 --- a/src/Symfony/Bundle/WebProfilerBundle/DependencyInjection/Configuration.php +++ b/src/Symfony/Bundle/WebProfilerBundle/DependencyInjection/Configuration.php @@ -15,7 +15,7 @@ use Symfony\Component\Config\Definition\Builder\TreeBuilder; use Symfony\Component\Config\Definition\ConfigurationInterface; /** - * This class contains the configuration information for the bundle + * This class contains the configuration information for the bundle. * * This information is solely responsible for how the different configuration * sections are normalized, and merged. diff --git a/src/Symfony/Bundle/WebProfilerBundle/Profiler/TemplateManager.php b/src/Symfony/Bundle/WebProfilerBundle/Profiler/TemplateManager.php index 63032ecd4c..5d0fd277c5 100644 --- a/src/Symfony/Bundle/WebProfilerBundle/Profiler/TemplateManager.php +++ b/src/Symfony/Bundle/WebProfilerBundle/Profiler/TemplateManager.php @@ -16,7 +16,7 @@ use Symfony\Component\HttpKernel\Profiler\Profiler; use Symfony\Component\HttpKernel\Profiler\Profile; /** - * Profiler Templates Manager + * Profiler Templates Manager. * * @author Fabien Potencier * @author Artur Wielogórski diff --git a/src/Symfony/Bundle/WebProfilerBundle/Tests/DependencyInjection/WebProfilerExtensionTest.php b/src/Symfony/Bundle/WebProfilerBundle/Tests/DependencyInjection/WebProfilerExtensionTest.php index e5aac762f8..f6efc96481 100644 --- a/src/Symfony/Bundle/WebProfilerBundle/Tests/DependencyInjection/WebProfilerExtensionTest.php +++ b/src/Symfony/Bundle/WebProfilerBundle/Tests/DependencyInjection/WebProfilerExtensionTest.php @@ -24,7 +24,7 @@ class WebProfilerExtensionTest extends TestCase { private $kernel; /** - * @var Symfony\Component\DependencyInjection\Container $container + * @var Symfony\Component\DependencyInjection\Container */ private $container; diff --git a/src/Symfony/Bundle/WebProfilerBundle/Tests/Profiler/TemplateManagerTest.php b/src/Symfony/Bundle/WebProfilerBundle/Tests/Profiler/TemplateManagerTest.php index 84edf5db03..d76731fcc7 100644 --- a/src/Symfony/Bundle/WebProfilerBundle/Tests/Profiler/TemplateManagerTest.php +++ b/src/Symfony/Bundle/WebProfilerBundle/Tests/Profiler/TemplateManagerTest.php @@ -66,7 +66,7 @@ class TemplateManagerTest extends TestCase } /** - * if template exists in both profile and profiler then its name should be returned + * if template exists in both profile and profiler then its name should be returned. */ public function testGetNameValidTemplate() { @@ -85,7 +85,7 @@ class TemplateManagerTest extends TestCase /** * template should be loaded for 'foo' because other collectors are - * missing in profile or in profiler + * missing in profile or in profiler. */ public function testGetTemplates() { diff --git a/src/Symfony/Component/ClassLoader/Tests/ClassMapGeneratorTest.php b/src/Symfony/Component/ClassLoader/Tests/ClassMapGeneratorTest.php index e49cfdcf9b..6438bf4bf2 100644 --- a/src/Symfony/Component/ClassLoader/Tests/ClassMapGeneratorTest.php +++ b/src/Symfony/Component/ClassLoader/Tests/ClassMapGeneratorTest.php @@ -16,7 +16,7 @@ use Symfony\Component\ClassLoader\ClassMapGenerator; class ClassMapGeneratorTest extends \PHPUnit_Framework_TestCase { /** - * @var string $workspace + * @var string|null */ private $workspace = null; diff --git a/src/Symfony/Component/Config/Definition/BaseNode.php b/src/Symfony/Component/Config/Definition/BaseNode.php index b5b95e40b2..732e086261 100644 --- a/src/Symfony/Component/Config/Definition/BaseNode.php +++ b/src/Symfony/Component/Config/Definition/BaseNode.php @@ -17,7 +17,7 @@ use Symfony\Component\Config\Definition\Exception\InvalidConfigurationException; use Symfony\Component\Config\Definition\Exception\InvalidTypeException; /** - * The base node class + * The base node class. * * @author Johannes M. Schmitt */ @@ -187,7 +187,7 @@ abstract class BaseNode implements NodeInterface } /** - * Returns the name of this node + * Returns the name of this node. * * @return string The Node's name. */ diff --git a/src/Symfony/Component/Config/Definition/Builder/ArrayNodeDefinition.php b/src/Symfony/Component/Config/Definition/Builder/ArrayNodeDefinition.php index 719be30a2d..7cf662dbc0 100644 --- a/src/Symfony/Component/Config/Definition/Builder/ArrayNodeDefinition.php +++ b/src/Symfony/Component/Config/Definition/Builder/ArrayNodeDefinition.php @@ -337,7 +337,7 @@ class ArrayNodeDefinition extends NodeDefinition implements ParentNodeDefinition } /** - * Returns a node builder to be used to add children and prototype + * Returns a node builder to be used to add children and prototype. * * @return NodeBuilder The node builder */ diff --git a/src/Symfony/Component/Config/Definition/Builder/BooleanNodeDefinition.php b/src/Symfony/Component/Config/Definition/Builder/BooleanNodeDefinition.php index 979f9bac6d..db7ebc2411 100644 --- a/src/Symfony/Component/Config/Definition/Builder/BooleanNodeDefinition.php +++ b/src/Symfony/Component/Config/Definition/Builder/BooleanNodeDefinition.php @@ -31,7 +31,7 @@ class BooleanNodeDefinition extends ScalarNodeDefinition } /** - * Instantiate a Node + * Instantiate a Node. * * @return BooleanNode The node */ diff --git a/src/Symfony/Component/Config/Definition/Builder/EnumNodeDefinition.php b/src/Symfony/Component/Config/Definition/Builder/EnumNodeDefinition.php index d3ef35bbfa..c84e389bbd 100644 --- a/src/Symfony/Component/Config/Definition/Builder/EnumNodeDefinition.php +++ b/src/Symfony/Component/Config/Definition/Builder/EnumNodeDefinition.php @@ -36,7 +36,7 @@ class EnumNodeDefinition extends ScalarNodeDefinition } /** - * Instantiate a Node + * Instantiate a Node. * * @return EnumNode The node * diff --git a/src/Symfony/Component/Config/Definition/Builder/ExprBuilder.php b/src/Symfony/Component/Config/Definition/Builder/ExprBuilder.php index 885863bbb6..7887f2d288 100644 --- a/src/Symfony/Component/Config/Definition/Builder/ExprBuilder.php +++ b/src/Symfony/Component/Config/Definition/Builder/ExprBuilder.php @@ -26,7 +26,7 @@ class ExprBuilder public $thenPart; /** - * Constructor + * Constructor. * * @param NodeDefinition $node The related node */ @@ -196,7 +196,7 @@ class ExprBuilder } /** - * Returns the related node + * Returns the related node. * * @return NodeDefinition * diff --git a/src/Symfony/Component/Config/Definition/Builder/MergeBuilder.php b/src/Symfony/Component/Config/Definition/Builder/MergeBuilder.php index a5a202cc78..c21e4bafa9 100644 --- a/src/Symfony/Component/Config/Definition/Builder/MergeBuilder.php +++ b/src/Symfony/Component/Config/Definition/Builder/MergeBuilder.php @@ -23,7 +23,7 @@ class MergeBuilder public $allowOverwrite; /** - * Constructor + * Constructor. * * @param NodeDefinition $node The related node */ diff --git a/src/Symfony/Component/Config/Definition/Builder/NodeBuilder.php b/src/Symfony/Component/Config/Definition/Builder/NodeBuilder.php index 29914cbcc9..b2b63368e2 100644 --- a/src/Symfony/Component/Config/Definition/Builder/NodeBuilder.php +++ b/src/Symfony/Component/Config/Definition/Builder/NodeBuilder.php @@ -22,8 +22,7 @@ class NodeBuilder implements NodeParentInterface protected $nodeMapping; /** - * Constructor - * + * Constructor. */ public function __construct() { diff --git a/src/Symfony/Component/Config/Definition/Builder/NodeDefinition.php b/src/Symfony/Component/Config/Definition/Builder/NodeDefinition.php index 5ddb70c791..260535916b 100644 --- a/src/Symfony/Component/Config/Definition/Builder/NodeDefinition.php +++ b/src/Symfony/Component/Config/Definition/Builder/NodeDefinition.php @@ -39,7 +39,7 @@ abstract class NodeDefinition implements NodeParentInterface protected $attributes = array(); /** - * Constructor + * Constructor. * * @param string $name The name of the node * @param NodeParentInterface $parent The parent @@ -336,7 +336,7 @@ abstract class NodeDefinition implements NodeParentInterface } /** - * Instantiate and configure the node according to this definition + * Instantiate and configure the node according to this definition. * * @return NodeInterface $node The node instance * diff --git a/src/Symfony/Component/Config/Definition/Builder/NodeParentInterface.php b/src/Symfony/Component/Config/Definition/Builder/NodeParentInterface.php index 24f397193e..305e993167 100644 --- a/src/Symfony/Component/Config/Definition/Builder/NodeParentInterface.php +++ b/src/Symfony/Component/Config/Definition/Builder/NodeParentInterface.php @@ -12,7 +12,7 @@ namespace Symfony\Component\Config\Definition\Builder; /** - * An interface that must be implemented by all node parents + * An interface that must be implemented by all node parents. * * @author Victor Berchet */ diff --git a/src/Symfony/Component/Config/Definition/Builder/NormalizationBuilder.php b/src/Symfony/Component/Config/Definition/Builder/NormalizationBuilder.php index 87f25b723a..b47726303d 100644 --- a/src/Symfony/Component/Config/Definition/Builder/NormalizationBuilder.php +++ b/src/Symfony/Component/Config/Definition/Builder/NormalizationBuilder.php @@ -23,7 +23,7 @@ class NormalizationBuilder public $remappings; /** - * Constructor + * Constructor. * * @param NodeDefinition $node The related node */ diff --git a/src/Symfony/Component/Config/Definition/Builder/ParentNodeDefinitionInterface.php b/src/Symfony/Component/Config/Definition/Builder/ParentNodeDefinitionInterface.php index 005c26b7df..575495bb68 100644 --- a/src/Symfony/Component/Config/Definition/Builder/ParentNodeDefinitionInterface.php +++ b/src/Symfony/Component/Config/Definition/Builder/ParentNodeDefinitionInterface.php @@ -12,7 +12,7 @@ namespace Symfony\Component\Config\Definition\Builder; /** - * An interface that must be implemented by nodes which can have children + * An interface that must be implemented by nodes which can have children. * * @author Victor Berchet */ diff --git a/src/Symfony/Component/Config/Definition/Builder/ScalarNodeDefinition.php b/src/Symfony/Component/Config/Definition/Builder/ScalarNodeDefinition.php index 6a115fe1d1..6170555ccf 100644 --- a/src/Symfony/Component/Config/Definition/Builder/ScalarNodeDefinition.php +++ b/src/Symfony/Component/Config/Definition/Builder/ScalarNodeDefinition.php @@ -21,7 +21,7 @@ use Symfony\Component\Config\Definition\ScalarNode; class ScalarNodeDefinition extends VariableNodeDefinition { /** - * Instantiate a Node + * Instantiate a Node. * * @return ScalarNode The node */ diff --git a/src/Symfony/Component/Config/Definition/Builder/ValidationBuilder.php b/src/Symfony/Component/Config/Definition/Builder/ValidationBuilder.php index 22f54a1091..25265da81d 100644 --- a/src/Symfony/Component/Config/Definition/Builder/ValidationBuilder.php +++ b/src/Symfony/Component/Config/Definition/Builder/ValidationBuilder.php @@ -22,7 +22,7 @@ class ValidationBuilder public $rules; /** - * Constructor + * Constructor. * * @param NodeDefinition $node The related node */ diff --git a/src/Symfony/Component/Config/Definition/Builder/VariableNodeDefinition.php b/src/Symfony/Component/Config/Definition/Builder/VariableNodeDefinition.php index 26196c8bc3..30446cfb8b 100644 --- a/src/Symfony/Component/Config/Definition/Builder/VariableNodeDefinition.php +++ b/src/Symfony/Component/Config/Definition/Builder/VariableNodeDefinition.php @@ -21,7 +21,7 @@ use Symfony\Component\Config\Definition\VariableNode; class VariableNodeDefinition extends NodeDefinition { /** - * Instantiate a Node + * Instantiate a Node. * * @return VariableNode The node */ diff --git a/src/Symfony/Component/Config/Definition/ConfigurationInterface.php b/src/Symfony/Component/Config/Definition/ConfigurationInterface.php index 336cb0088e..d6456edb84 100644 --- a/src/Symfony/Component/Config/Definition/ConfigurationInterface.php +++ b/src/Symfony/Component/Config/Definition/ConfigurationInterface.php @@ -12,7 +12,7 @@ namespace Symfony\Component\Config\Definition; /** - * Configuration interface + * Configuration interface. * * @author Victor Berchet */ diff --git a/src/Symfony/Component/Config/Definition/Exception/Exception.php b/src/Symfony/Component/Config/Definition/Exception/Exception.php index 1fda6c2e5e..8933a49233 100644 --- a/src/Symfony/Component/Config/Definition/Exception/Exception.php +++ b/src/Symfony/Component/Config/Definition/Exception/Exception.php @@ -12,7 +12,7 @@ namespace Symfony\Component\Config\Definition\Exception; /** - * Base exception for all configuration exceptions + * Base exception for all configuration exceptions. * * @author Johannes M. Schmitt */ diff --git a/src/Symfony/Component/Config/Definition/NodeInterface.php b/src/Symfony/Component/Config/Definition/NodeInterface.php index 738726411c..b9bddc4938 100644 --- a/src/Symfony/Component/Config/Definition/NodeInterface.php +++ b/src/Symfony/Component/Config/Definition/NodeInterface.php @@ -52,7 +52,8 @@ interface NodeInterface /** * Returns the default value of the node. * - * @return mixed The default value + * @return mixed The default value + * * @throws \RuntimeException if the node has no default value */ public function getDefaultValue(); diff --git a/src/Symfony/Component/Config/Definition/NumericNode.php b/src/Symfony/Component/Config/Definition/NumericNode.php index 39b96d610d..2304ad9987 100644 --- a/src/Symfony/Component/Config/Definition/NumericNode.php +++ b/src/Symfony/Component/Config/Definition/NumericNode.php @@ -14,7 +14,7 @@ namespace Symfony\Component\Config\Definition; use Symfony\Component\Config\Definition\Exception\InvalidConfigurationException; /** - * This node represents a numeric value in the config tree + * This node represents a numeric value in the config tree. * * @author David Jeanmonod */ diff --git a/src/Symfony/Component/Config/Definition/PrototypedArrayNode.php b/src/Symfony/Component/Config/Definition/PrototypedArrayNode.php index fb392d40ec..febb016e82 100644 --- a/src/Symfony/Component/Config/Definition/PrototypedArrayNode.php +++ b/src/Symfony/Component/Config/Definition/PrototypedArrayNode.php @@ -169,7 +169,7 @@ class PrototypedArrayNode extends ArrayNode } /** - * Retrieves the prototype + * Retrieves the prototype. * * @return PrototypeNodeInterface The prototype */ diff --git a/src/Symfony/Component/Config/Definition/ReferenceDumper.php b/src/Symfony/Component/Config/Definition/ReferenceDumper.php index f1a0a7bb8c..2287284266 100644 --- a/src/Symfony/Component/Config/Definition/ReferenceDumper.php +++ b/src/Symfony/Component/Config/Definition/ReferenceDumper.php @@ -155,7 +155,7 @@ class ReferenceDumper } /** - * Outputs a single config reference line + * Outputs a single config reference line. * * @param string $text * @param int $indent diff --git a/src/Symfony/Component/Config/Resource/DirectoryResource.php b/src/Symfony/Component/Config/Resource/DirectoryResource.php index f15b81a311..515fb5c42d 100644 --- a/src/Symfony/Component/Config/Resource/DirectoryResource.php +++ b/src/Symfony/Component/Config/Resource/DirectoryResource.php @@ -50,7 +50,7 @@ class DirectoryResource implements ResourceInterface, \Serializable } /** - * Returns the pattern to restrict monitored files + * Returns the pattern to restrict monitored files. * * @return string|null */ diff --git a/src/Symfony/Component/Config/Tests/Definition/Builder/ExprBuilderTest.php b/src/Symfony/Component/Config/Tests/Definition/Builder/ExprBuilderTest.php index cde19e0c0a..a9f521593c 100644 --- a/src/Symfony/Component/Config/Tests/Definition/Builder/ExprBuilderTest.php +++ b/src/Symfony/Component/Config/Tests/Definition/Builder/ExprBuilderTest.php @@ -202,12 +202,11 @@ class ExprBuilderTest extends \PHPUnit_Framework_TestCase } /** - * Assert that the given test builder, will return the given value + * Assert that the given test builder, will return the given value. * * @param mixed $value The value to test * @param TreeBuilder $treeBuilder The tree builder to finalize - * - * @param mixed $config The config values that new to be finalized + * @param mixed $config The config values that new to be finalized */ protected function assertFinalizedValueIs($value, $treeBuilder, $config = null) { diff --git a/src/Symfony/Component/Config/Tests/Definition/PrototypedArrayNodeTest.php b/src/Symfony/Component/Config/Tests/Definition/PrototypedArrayNodeTest.php index d200574ecd..c343fcfd94 100644 --- a/src/Symfony/Component/Config/Tests/Definition/PrototypedArrayNodeTest.php +++ b/src/Symfony/Component/Config/Tests/Definition/PrototypedArrayNodeTest.php @@ -54,7 +54,7 @@ class PrototypedArrayNodeTest extends \PHPUnit_Framework_TestCase } /** - * Tests that when a key attribute is mapped, that key is removed from the array: + * Tests that when a key attribute is mapped, that key is removed from the array. * * *