From 164ce5210d4d50b985e1c77ee18733499c9983dc Mon Sep 17 00:00:00 2001 From: Eriksen Costa Date: Wed, 27 Apr 2011 02:25:26 -0300 Subject: [PATCH] capitalized 'boolean' --- src/Symfony/Bridge/Doctrine/Form/DoctrineOrmTypeGuesser.php | 2 +- src/Symfony/Component/Config/Definition/ArrayNode.php | 2 +- .../Component/Config/Definition/PrototypedArrayNode.php | 2 +- src/Symfony/Component/Console/Formatter/OutputFormatter.php | 6 +++--- .../Console/Formatter/OutputFormatterInterface.php | 2 +- src/Symfony/Component/DependencyInjection/Alias.php | 6 +++--- .../Compiler/AnalyzeServiceReferencesPass.php | 2 +- .../Compiler/InlineServiceDefinitionsPass.php | 2 +- .../Compiler/ResolveInvalidReferencesPass.php | 2 +- .../Compiler/ServiceReferenceGraphNode.php | 4 ++-- .../Component/DependencyInjection/ContainerBuilder.php | 2 +- .../Component/DependencyInjection/Dumper/GraphvizDumper.php | 2 +- .../Component/DependencyInjection/Dumper/PhpDumper.php | 6 +++--- src/Symfony/Component/DependencyInjection/Reference.php | 2 +- .../Core/DataTransformer/BooleanToStringTransformer.php | 2 +- .../Extension/Csrf/CsrfProvider/CsrfProviderInterface.php | 2 +- src/Symfony/Component/Form/FormInterface.php | 2 +- src/Symfony/Component/Locale/Stub/StubNumberFormatter.php | 2 +- src/Symfony/Component/Security/Core/SecurityContext.php | 2 +- .../Component/Security/Core/SecurityContextInterface.php | 2 +- src/Symfony/Component/Validator/ValidatorFactory.php | 2 +- .../Component/Form/Extension/Core/Type/ChoiceTypeTest.php | 2 +- .../Tests/Component/Yaml/Fixtures/YtsTypeTransfers.yml | 2 +- 23 files changed, 30 insertions(+), 30 deletions(-) diff --git a/src/Symfony/Bridge/Doctrine/Form/DoctrineOrmTypeGuesser.php b/src/Symfony/Bridge/Doctrine/Form/DoctrineOrmTypeGuesser.php index 8c5926d3ff..dbf8285ef1 100644 --- a/src/Symfony/Bridge/Doctrine/Form/DoctrineOrmTypeGuesser.php +++ b/src/Symfony/Bridge/Doctrine/Form/DoctrineOrmTypeGuesser.php @@ -33,7 +33,7 @@ class DoctrineOrmTypeGuesser implements FormTypeGuesserInterface /** * Returns whether Doctrine 2 metadata exists for that class * - * @return boolean + * @return Boolean */ protected function isMappedClass($class) { diff --git a/src/Symfony/Component/Config/Definition/ArrayNode.php b/src/Symfony/Component/Config/Definition/ArrayNode.php index cac0e685ba..67d76d5e0f 100644 --- a/src/Symfony/Component/Config/Definition/ArrayNode.php +++ b/src/Symfony/Component/Config/Definition/ArrayNode.php @@ -126,7 +126,7 @@ class ArrayNode extends BaseNode implements PrototypeNodeInterface /** * Checks if the node has a default value. * - * @return boolean + * @return Boolean */ public function hasDefaultValue() { diff --git a/src/Symfony/Component/Config/Definition/PrototypedArrayNode.php b/src/Symfony/Component/Config/Definition/PrototypedArrayNode.php index 5b187cfe70..ff68c092b5 100644 --- a/src/Symfony/Component/Config/Definition/PrototypedArrayNode.php +++ b/src/Symfony/Component/Config/Definition/PrototypedArrayNode.php @@ -97,7 +97,7 @@ class PrototypedArrayNode extends ArrayNode /** * Checks if the node has a default value. * - * @return boolean + * @return Boolean */ public function hasDefaultValue() { diff --git a/src/Symfony/Component/Console/Formatter/OutputFormatter.php b/src/Symfony/Component/Console/Formatter/OutputFormatter.php index 59f247d03a..14613700e7 100644 --- a/src/Symfony/Component/Console/Formatter/OutputFormatter.php +++ b/src/Symfony/Component/Console/Formatter/OutputFormatter.php @@ -26,7 +26,7 @@ class OutputFormatter implements OutputFormatterInterface /** * Initializes console output formatter. * - * @param boolean $decorated Whether this formatter should actually decorate strings + * @param Boolean $decorated Whether this formatter should actually decorate strings * @param array $styles Array of "name => FormatterStyle" instance * * @api @@ -87,7 +87,7 @@ class OutputFormatter implements OutputFormatterInterface * * @param string $name * - * @return boolean + * @return Boolean * * @api */ @@ -217,7 +217,7 @@ class OutputFormatter implements OutputFormatterInterface * * @param string $string * - * @return Symfony\Component\Console\Format\FormatterStyle|boolean false if string is not format string + * @return Symfony\Component\Console\Format\FormatterStyle|Boolean 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 b83e050062..fd205a4eba 100644 --- a/src/Symfony/Component/Console/Formatter/OutputFormatterInterface.php +++ b/src/Symfony/Component/Console/Formatter/OutputFormatterInterface.php @@ -53,7 +53,7 @@ interface OutputFormatterInterface * * @param string $name * - * @return boolean + * @return Boolean * * @api */ diff --git a/src/Symfony/Component/DependencyInjection/Alias.php b/src/Symfony/Component/DependencyInjection/Alias.php index c6aa80c069..4658c80718 100644 --- a/src/Symfony/Component/DependencyInjection/Alias.php +++ b/src/Symfony/Component/DependencyInjection/Alias.php @@ -20,7 +20,7 @@ class Alias * Constructor. * * @param string $id Alias identifier - * @param boolean $public If this alias is public + * @param Boolean $public If this alias is public */ public function __construct($id, $public = true) { @@ -31,7 +31,7 @@ class Alias /** * Checks if this DI Alias should be public or not. * - * @return boolean + * @return Boolean */ public function isPublic() { @@ -41,7 +41,7 @@ class Alias /** * Sets if this Alias is public. * - * @param boolean $boolean If this Alias should be public + * @param Boolean $boolean If this Alias should be public */ public function setPublic($boolean) { diff --git a/src/Symfony/Component/DependencyInjection/Compiler/AnalyzeServiceReferencesPass.php b/src/Symfony/Component/DependencyInjection/Compiler/AnalyzeServiceReferencesPass.php index 791bdfe6d8..2399f6ca12 100644 --- a/src/Symfony/Component/DependencyInjection/Compiler/AnalyzeServiceReferencesPass.php +++ b/src/Symfony/Component/DependencyInjection/Compiler/AnalyzeServiceReferencesPass.php @@ -36,7 +36,7 @@ class AnalyzeServiceReferencesPass implements RepeatablePassInterface /** * Constructor. * - * @param boolean $onlyConstructorArguments Sets this Service Reference pass to ignore method calls + * @param Boolean $onlyConstructorArguments Sets this Service Reference pass to ignore method calls */ public function __construct($onlyConstructorArguments = false) { diff --git a/src/Symfony/Component/DependencyInjection/Compiler/InlineServiceDefinitionsPass.php b/src/Symfony/Component/DependencyInjection/Compiler/InlineServiceDefinitionsPass.php index dd15cfe7d5..9cee8b8577 100644 --- a/src/Symfony/Component/DependencyInjection/Compiler/InlineServiceDefinitionsPass.php +++ b/src/Symfony/Component/DependencyInjection/Compiler/InlineServiceDefinitionsPass.php @@ -106,7 +106,7 @@ class InlineServiceDefinitionsPass implements RepeatablePassInterface * @param ContainerBuilder $container * @param string $id * @param Definition $definition - * @return boolean If the definition is inlineable + * @return Boolean If the definition is inlineable */ private function isInlinableDefinition(ContainerBuilder $container, $id, Definition $definition) { diff --git a/src/Symfony/Component/DependencyInjection/Compiler/ResolveInvalidReferencesPass.php b/src/Symfony/Component/DependencyInjection/Compiler/ResolveInvalidReferencesPass.php index 15a2d888b9..1ed10058c9 100644 --- a/src/Symfony/Component/DependencyInjection/Compiler/ResolveInvalidReferencesPass.php +++ b/src/Symfony/Component/DependencyInjection/Compiler/ResolveInvalidReferencesPass.php @@ -69,7 +69,7 @@ class ResolveInvalidReferencesPass implements CompilerPassInterface * Processes arguments to determine invalid references. * * @param array $arguments An array of Reference objects - * @param boolean $inMethodCall + * @param Boolean $inMethodCall */ private function processArguments(array $arguments, $inMethodCall = false) { diff --git a/src/Symfony/Component/DependencyInjection/Compiler/ServiceReferenceGraphNode.php b/src/Symfony/Component/DependencyInjection/Compiler/ServiceReferenceGraphNode.php index 6c71683d5f..89add2819b 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 Boolean 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 Boolean True if the value is a Definition instance */ public function isDefinition() { diff --git a/src/Symfony/Component/DependencyInjection/ContainerBuilder.php b/src/Symfony/Component/DependencyInjection/ContainerBuilder.php index a6c317313b..7f78212e6a 100644 --- a/src/Symfony/Component/DependencyInjection/ContainerBuilder.php +++ b/src/Symfony/Component/DependencyInjection/ContainerBuilder.php @@ -83,7 +83,7 @@ class ContainerBuilder extends Container implements TaggedContainerInterface * Checks if we have an extension. * * @param string $name The name of the extension - * @return boolean If the extension exists + * @return Boolean If the extension exists */ public function hasExtension($name) { diff --git a/src/Symfony/Component/DependencyInjection/Dumper/GraphvizDumper.php b/src/Symfony/Component/DependencyInjection/Dumper/GraphvizDumper.php index 331c8ef29c..8ed43509b6 100644 --- a/src/Symfony/Component/DependencyInjection/Dumper/GraphvizDumper.php +++ b/src/Symfony/Component/DependencyInjection/Dumper/GraphvizDumper.php @@ -123,7 +123,7 @@ class GraphvizDumper extends Dumper * * @param string $id The service id used to find edges * @param array $arguments An array of arguments - * @param boolean $required + * @param Boolean $required * @param string $name * @return array An array of edges */ diff --git a/src/Symfony/Component/DependencyInjection/Dumper/PhpDumper.php b/src/Symfony/Component/DependencyInjection/Dumper/PhpDumper.php index c3270404da..69d4195eff 100644 --- a/src/Symfony/Component/DependencyInjection/Dumper/PhpDumper.php +++ b/src/Symfony/Component/DependencyInjection/Dumper/PhpDumper.php @@ -330,7 +330,7 @@ class PhpDumper extends Dumper * * @param string $id * @param Definition $definition - * @return boolean + * @return Boolean */ private function isSimpleInstance($id, $definition) { @@ -913,7 +913,7 @@ EOF; * * @param string $id * @param array $arguments - * @return boolean + * @return Boolean */ private function hasReference($id, array $arguments) { @@ -936,7 +936,7 @@ EOF; * Dumps values. * * @param array $value - * @param boolean $interpolate + * @param Boolean $interpolate * @return string */ private function dumpValue($value, $interpolate = true) diff --git a/src/Symfony/Component/DependencyInjection/Reference.php b/src/Symfony/Component/DependencyInjection/Reference.php index 09d12bd773..8e21972e1e 100644 --- a/src/Symfony/Component/DependencyInjection/Reference.php +++ b/src/Symfony/Component/DependencyInjection/Reference.php @@ -61,7 +61,7 @@ class Reference /** * Returns true when this Reference is strict * - * @return boolean + * @return Boolean */ public function isStrict() { diff --git a/src/Symfony/Component/Form/Extension/Core/DataTransformer/BooleanToStringTransformer.php b/src/Symfony/Component/Form/Extension/Core/DataTransformer/BooleanToStringTransformer.php index 5300c2b729..384c05f454 100644 --- a/src/Symfony/Component/Form/Extension/Core/DataTransformer/BooleanToStringTransformer.php +++ b/src/Symfony/Component/Form/Extension/Core/DataTransformer/BooleanToStringTransformer.php @@ -16,7 +16,7 @@ use Symfony\Component\Form\Exception\TransformationFailedException; use Symfony\Component\Form\Exception\UnexpectedTypeException; /** - * Transforms between a boolean and a string. + * Transforms between a Boolean and a string. * * @author Bernhard Schussek * @author Florian Eckerstorfer diff --git a/src/Symfony/Component/Form/Extension/Csrf/CsrfProvider/CsrfProviderInterface.php b/src/Symfony/Component/Form/Extension/Csrf/CsrfProvider/CsrfProviderInterface.php index 3e610e46a9..19e7ba2e3d 100644 --- a/src/Symfony/Component/Form/Extension/Csrf/CsrfProvider/CsrfProviderInterface.php +++ b/src/Symfony/Component/Form/Extension/Csrf/CsrfProvider/CsrfProviderInterface.php @@ -44,7 +44,7 @@ interface CsrfProviderInterface * * @param string $pageId The page ID 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 + * @return Boolean Whether the token supplied by the browser is * correct */ public function isCsrfTokenValid($pageId, $token); diff --git a/src/Symfony/Component/Form/FormInterface.php b/src/Symfony/Component/Form/FormInterface.php index 5c336ce3f4..01cf4cf5d1 100644 --- a/src/Symfony/Component/Form/FormInterface.php +++ b/src/Symfony/Component/Form/FormInterface.php @@ -104,7 +104,7 @@ interface FormInterface extends \ArrayAccess, \Traversable, \Countable /** * Returns whether the form is empty * - * @return boolean + * @return Boolean */ function isEmpty(); diff --git a/src/Symfony/Component/Locale/Stub/StubNumberFormatter.php b/src/Symfony/Component/Locale/Stub/StubNumberFormatter.php index 4f4832c01f..ef669c22f8 100644 --- a/src/Symfony/Component/Locale/Stub/StubNumberFormatter.php +++ b/src/Symfony/Component/Locale/Stub/StubNumberFormatter.php @@ -732,7 +732,7 @@ class StubNumberFormatter /** * Returns the normalized value for the GROUPING_USED attribute. Any value that can be converted to int will be - * cast to boolean and then to int again. This way, negative values are converted to 1 and string values to 0. + * cast to Boolean and then to int again. This way, negative values are converted to 1 and string values to 0. * * @param mixed $value The value to be normalized * @return int The normalized value for the attribute (0 or 1) diff --git a/src/Symfony/Component/Security/Core/SecurityContext.php b/src/Symfony/Component/Security/Core/SecurityContext.php index c88f54fee7..575f94bccb 100644 --- a/src/Symfony/Component/Security/Core/SecurityContext.php +++ b/src/Symfony/Component/Security/Core/SecurityContext.php @@ -53,7 +53,7 @@ class SecurityContext implements SecurityContextInterface * @throws AuthenticationCredentialsNotFoundException when the security context has no authentication token. * @param mixed $attributes * @param mixed|null $object - * @return boolean + * @return Boolean */ public final function isGranted($attributes, $object = null) { diff --git a/src/Symfony/Component/Security/Core/SecurityContextInterface.php b/src/Symfony/Component/Security/Core/SecurityContextInterface.php index c54ca0e3c9..41815fbd18 100644 --- a/src/Symfony/Component/Security/Core/SecurityContextInterface.php +++ b/src/Symfony/Component/Security/Core/SecurityContextInterface.php @@ -35,7 +35,7 @@ interface SecurityContextInterface * * @param array $attributes * @param mixed $object - * @return boolean + * @return Boolean */ function isGranted($attributes, $object = null); } \ No newline at end of file diff --git a/src/Symfony/Component/Validator/ValidatorFactory.php b/src/Symfony/Component/Validator/ValidatorFactory.php index 0683d718a8..83d5c4dd59 100644 --- a/src/Symfony/Component/Validator/ValidatorFactory.php +++ b/src/Symfony/Component/Validator/ValidatorFactory.php @@ -87,7 +87,7 @@ class ValidatorFactory implements ValidatorContextInterface * @param array $mappingFiles A list of XML or YAML file names * where mapping information can be * found. Can be empty. - * @param boolean $annotations Whether to use annotations for + * @param Boolean $annotations Whether to use annotations for * retrieving mapping information * @param array $annotationNamespaces The annotation namespaces used * for finding the annotation classes. diff --git a/tests/Symfony/Tests/Component/Form/Extension/Core/Type/ChoiceTypeTest.php b/tests/Symfony/Tests/Component/Form/Extension/Core/Type/ChoiceTypeTest.php index adc7de5c27..2fd1355c97 100644 --- a/tests/Symfony/Tests/Component/Form/Extension/Core/Type/ChoiceTypeTest.php +++ b/tests/Symfony/Tests/Component/Form/Extension/Core/Type/ChoiceTypeTest.php @@ -227,7 +227,7 @@ class ChoiceTypeTest extends TypeTestCase } /* - * We need this functionality to create choice fields for boolean types, + * We need this functionality to create choice fields for Boolean types, * e.g. false => 'No', true => 'Yes' */ public function testSetDataSingleNonExpandedAcceptsBoolean() diff --git a/tests/Symfony/Tests/Component/Yaml/Fixtures/YtsTypeTransfers.yml b/tests/Symfony/Tests/Component/Yaml/Fixtures/YtsTypeTransfers.yml index 398fa0eb89..baba0057ee 100644 --- a/tests/Symfony/Tests/Component/Yaml/Fixtures/YtsTypeTransfers.yml +++ b/tests/Symfony/Tests/Component/Yaml/Fixtures/YtsTypeTransfers.yml @@ -157,7 +157,7 @@ php: | --- test: Boolean brief: > - You can use 'true' and 'false' for boolean values. + You can use 'true' and 'false' for Boolean values. yaml: | Is Gus a Liar?: true Do I rely on Gus for Sustenance?: false