Ver Fonte

capitalized 'boolean'

Eriksen Costa há 14 anos atrás
pai
commit
164ce5210d
23 ficheiros alterados com 30 adições e 30 exclusões
  1. 1 1
      src/Symfony/Bridge/Doctrine/Form/DoctrineOrmTypeGuesser.php
  2. 1 1
      src/Symfony/Component/Config/Definition/ArrayNode.php
  3. 1 1
      src/Symfony/Component/Config/Definition/PrototypedArrayNode.php
  4. 3 3
      src/Symfony/Component/Console/Formatter/OutputFormatter.php
  5. 1 1
      src/Symfony/Component/Console/Formatter/OutputFormatterInterface.php
  6. 3 3
      src/Symfony/Component/DependencyInjection/Alias.php
  7. 1 1
      src/Symfony/Component/DependencyInjection/Compiler/AnalyzeServiceReferencesPass.php
  8. 1 1
      src/Symfony/Component/DependencyInjection/Compiler/InlineServiceDefinitionsPass.php
  9. 1 1
      src/Symfony/Component/DependencyInjection/Compiler/ResolveInvalidReferencesPass.php
  10. 2 2
      src/Symfony/Component/DependencyInjection/Compiler/ServiceReferenceGraphNode.php
  11. 1 1
      src/Symfony/Component/DependencyInjection/ContainerBuilder.php
  12. 1 1
      src/Symfony/Component/DependencyInjection/Dumper/GraphvizDumper.php
  13. 3 3
      src/Symfony/Component/DependencyInjection/Dumper/PhpDumper.php
  14. 1 1
      src/Symfony/Component/DependencyInjection/Reference.php
  15. 1 1
      src/Symfony/Component/Form/Extension/Core/DataTransformer/BooleanToStringTransformer.php
  16. 1 1
      src/Symfony/Component/Form/Extension/Csrf/CsrfProvider/CsrfProviderInterface.php
  17. 1 1
      src/Symfony/Component/Form/FormInterface.php
  18. 1 1
      src/Symfony/Component/Locale/Stub/StubNumberFormatter.php
  19. 1 1
      src/Symfony/Component/Security/Core/SecurityContext.php
  20. 1 1
      src/Symfony/Component/Security/Core/SecurityContextInterface.php
  21. 1 1
      src/Symfony/Component/Validator/ValidatorFactory.php
  22. 1 1
      tests/Symfony/Tests/Component/Form/Extension/Core/Type/ChoiceTypeTest.php
  23. 1 1
      tests/Symfony/Tests/Component/Yaml/Fixtures/YtsTypeTransfers.yml

+ 1 - 1
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)
     {

+ 1 - 1
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()
     {

+ 1 - 1
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()
     {

+ 3 - 3
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)
     {

+ 1 - 1
src/Symfony/Component/Console/Formatter/OutputFormatterInterface.php

@@ -53,7 +53,7 @@ interface OutputFormatterInterface
      *
      * @param   string  $name
      *
-     * @return  boolean
+     * @return  Boolean
      *
      * @api
      */

+ 3 - 3
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)
     {

+ 1 - 1
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)
     {

+ 1 - 1
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)
     {

+ 1 - 1
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)
     {

+ 2 - 2
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()
     {

+ 1 - 1
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)
     {

+ 1 - 1
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
      */

+ 3 - 3
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)

+ 1 - 1
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()
     {

+ 1 - 1
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 <bernhard.schussek@symfony.com>
  * @author Florian Eckerstorfer <florian@eckerstorfer.org>

+ 1 - 1
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);

+ 1 - 1
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();
 

+ 1 - 1
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)

+ 1 - 1
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)
     {

+ 1 - 1
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);
 }

+ 1 - 1
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.

+ 1 - 1
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()

+ 1 - 1
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