capitalized 'boolean'
This commit is contained in:
parent
4db0752894
commit
164ce5210d
@ -33,7 +33,7 @@ class DoctrineOrmTypeGuesser implements FormTypeGuesserInterface
|
|||||||
/**
|
/**
|
||||||
* Returns whether Doctrine 2 metadata exists for that class
|
* Returns whether Doctrine 2 metadata exists for that class
|
||||||
*
|
*
|
||||||
* @return boolean
|
* @return Boolean
|
||||||
*/
|
*/
|
||||||
protected function isMappedClass($class)
|
protected function isMappedClass($class)
|
||||||
{
|
{
|
||||||
|
@ -126,7 +126,7 @@ class ArrayNode extends BaseNode implements PrototypeNodeInterface
|
|||||||
/**
|
/**
|
||||||
* Checks if the node has a default value.
|
* Checks if the node has a default value.
|
||||||
*
|
*
|
||||||
* @return boolean
|
* @return Boolean
|
||||||
*/
|
*/
|
||||||
public function hasDefaultValue()
|
public function hasDefaultValue()
|
||||||
{
|
{
|
||||||
|
@ -97,7 +97,7 @@ class PrototypedArrayNode extends ArrayNode
|
|||||||
/**
|
/**
|
||||||
* Checks if the node has a default value.
|
* Checks if the node has a default value.
|
||||||
*
|
*
|
||||||
* @return boolean
|
* @return Boolean
|
||||||
*/
|
*/
|
||||||
public function hasDefaultValue()
|
public function hasDefaultValue()
|
||||||
{
|
{
|
||||||
|
@ -26,7 +26,7 @@ class OutputFormatter implements OutputFormatterInterface
|
|||||||
/**
|
/**
|
||||||
* Initializes console output formatter.
|
* 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
|
* @param array $styles Array of "name => FormatterStyle" instance
|
||||||
*
|
*
|
||||||
* @api
|
* @api
|
||||||
@ -87,7 +87,7 @@ class OutputFormatter implements OutputFormatterInterface
|
|||||||
*
|
*
|
||||||
* @param string $name
|
* @param string $name
|
||||||
*
|
*
|
||||||
* @return boolean
|
* @return Boolean
|
||||||
*
|
*
|
||||||
* @api
|
* @api
|
||||||
*/
|
*/
|
||||||
@ -217,7 +217,7 @@ class OutputFormatter implements OutputFormatterInterface
|
|||||||
*
|
*
|
||||||
* @param string $string
|
* @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)
|
private function createStyleFromString($string)
|
||||||
{
|
{
|
||||||
|
@ -53,7 +53,7 @@ interface OutputFormatterInterface
|
|||||||
*
|
*
|
||||||
* @param string $name
|
* @param string $name
|
||||||
*
|
*
|
||||||
* @return boolean
|
* @return Boolean
|
||||||
*
|
*
|
||||||
* @api
|
* @api
|
||||||
*/
|
*/
|
||||||
|
@ -20,7 +20,7 @@ class Alias
|
|||||||
* Constructor.
|
* Constructor.
|
||||||
*
|
*
|
||||||
* @param string $id Alias identifier
|
* @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)
|
public function __construct($id, $public = true)
|
||||||
{
|
{
|
||||||
@ -31,7 +31,7 @@ class Alias
|
|||||||
/**
|
/**
|
||||||
* Checks if this DI Alias should be public or not.
|
* Checks if this DI Alias should be public or not.
|
||||||
*
|
*
|
||||||
* @return boolean
|
* @return Boolean
|
||||||
*/
|
*/
|
||||||
public function isPublic()
|
public function isPublic()
|
||||||
{
|
{
|
||||||
@ -41,7 +41,7 @@ class Alias
|
|||||||
/**
|
/**
|
||||||
* Sets if this Alias is public.
|
* 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)
|
public function setPublic($boolean)
|
||||||
{
|
{
|
||||||
|
@ -36,7 +36,7 @@ class AnalyzeServiceReferencesPass implements RepeatablePassInterface
|
|||||||
/**
|
/**
|
||||||
* Constructor.
|
* 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)
|
public function __construct($onlyConstructorArguments = false)
|
||||||
{
|
{
|
||||||
|
@ -106,7 +106,7 @@ class InlineServiceDefinitionsPass implements RepeatablePassInterface
|
|||||||
* @param ContainerBuilder $container
|
* @param ContainerBuilder $container
|
||||||
* @param string $id
|
* @param string $id
|
||||||
* @param Definition $definition
|
* @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)
|
private function isInlinableDefinition(ContainerBuilder $container, $id, Definition $definition)
|
||||||
{
|
{
|
||||||
|
@ -69,7 +69,7 @@ class ResolveInvalidReferencesPass implements CompilerPassInterface
|
|||||||
* Processes arguments to determine invalid references.
|
* Processes arguments to determine invalid references.
|
||||||
*
|
*
|
||||||
* @param array $arguments An array of Reference objects
|
* @param array $arguments An array of Reference objects
|
||||||
* @param boolean $inMethodCall
|
* @param Boolean $inMethodCall
|
||||||
*/
|
*/
|
||||||
private function processArguments(array $arguments, $inMethodCall = false)
|
private function processArguments(array $arguments, $inMethodCall = false)
|
||||||
{
|
{
|
||||||
|
@ -65,7 +65,7 @@ class ServiceReferenceGraphNode
|
|||||||
/**
|
/**
|
||||||
* Checks if the value of this node is an Alias.
|
* 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()
|
public function isAlias()
|
||||||
{
|
{
|
||||||
@ -75,7 +75,7 @@ class ServiceReferenceGraphNode
|
|||||||
/**
|
/**
|
||||||
* Checks if the value of this node is a Definition.
|
* 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()
|
public function isDefinition()
|
||||||
{
|
{
|
||||||
|
@ -83,7 +83,7 @@ class ContainerBuilder extends Container implements TaggedContainerInterface
|
|||||||
* Checks if we have an extension.
|
* Checks if we have an extension.
|
||||||
*
|
*
|
||||||
* @param string $name The name of the 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)
|
public function hasExtension($name)
|
||||||
{
|
{
|
||||||
|
@ -123,7 +123,7 @@ class GraphvizDumper extends Dumper
|
|||||||
*
|
*
|
||||||
* @param string $id The service id used to find edges
|
* @param string $id The service id used to find edges
|
||||||
* @param array $arguments An array of arguments
|
* @param array $arguments An array of arguments
|
||||||
* @param boolean $required
|
* @param Boolean $required
|
||||||
* @param string $name
|
* @param string $name
|
||||||
* @return array An array of edges
|
* @return array An array of edges
|
||||||
*/
|
*/
|
||||||
|
@ -330,7 +330,7 @@ class PhpDumper extends Dumper
|
|||||||
*
|
*
|
||||||
* @param string $id
|
* @param string $id
|
||||||
* @param Definition $definition
|
* @param Definition $definition
|
||||||
* @return boolean
|
* @return Boolean
|
||||||
*/
|
*/
|
||||||
private function isSimpleInstance($id, $definition)
|
private function isSimpleInstance($id, $definition)
|
||||||
{
|
{
|
||||||
@ -913,7 +913,7 @@ EOF;
|
|||||||
*
|
*
|
||||||
* @param string $id
|
* @param string $id
|
||||||
* @param array $arguments
|
* @param array $arguments
|
||||||
* @return boolean
|
* @return Boolean
|
||||||
*/
|
*/
|
||||||
private function hasReference($id, array $arguments)
|
private function hasReference($id, array $arguments)
|
||||||
{
|
{
|
||||||
@ -936,7 +936,7 @@ EOF;
|
|||||||
* Dumps values.
|
* Dumps values.
|
||||||
*
|
*
|
||||||
* @param array $value
|
* @param array $value
|
||||||
* @param boolean $interpolate
|
* @param Boolean $interpolate
|
||||||
* @return string
|
* @return string
|
||||||
*/
|
*/
|
||||||
private function dumpValue($value, $interpolate = true)
|
private function dumpValue($value, $interpolate = true)
|
||||||
|
@ -61,7 +61,7 @@ class Reference
|
|||||||
/**
|
/**
|
||||||
* Returns true when this Reference is strict
|
* Returns true when this Reference is strict
|
||||||
*
|
*
|
||||||
* @return boolean
|
* @return Boolean
|
||||||
*/
|
*/
|
||||||
public function isStrict()
|
public function isStrict()
|
||||||
{
|
{
|
||||||
|
@ -16,7 +16,7 @@ use Symfony\Component\Form\Exception\TransformationFailedException;
|
|||||||
use Symfony\Component\Form\Exception\UnexpectedTypeException;
|
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 Bernhard Schussek <bernhard.schussek@symfony.com>
|
||||||
* @author Florian Eckerstorfer <florian@eckerstorfer.org>
|
* @author Florian Eckerstorfer <florian@eckerstorfer.org>
|
||||||
|
@ -44,7 +44,7 @@ interface CsrfProviderInterface
|
|||||||
*
|
*
|
||||||
* @param string $pageId The page ID used when generating the CSRF token
|
* @param string $pageId The page ID used when generating the CSRF token
|
||||||
* @param string $token The token supplied by the browser
|
* @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
|
* correct
|
||||||
*/
|
*/
|
||||||
public function isCsrfTokenValid($pageId, $token);
|
public function isCsrfTokenValid($pageId, $token);
|
||||||
|
@ -104,7 +104,7 @@ interface FormInterface extends \ArrayAccess, \Traversable, \Countable
|
|||||||
/**
|
/**
|
||||||
* Returns whether the form is empty
|
* Returns whether the form is empty
|
||||||
*
|
*
|
||||||
* @return boolean
|
* @return Boolean
|
||||||
*/
|
*/
|
||||||
function isEmpty();
|
function isEmpty();
|
||||||
|
|
||||||
|
@ -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
|
* 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
|
* @param mixed $value The value to be normalized
|
||||||
* @return int The normalized value for the attribute (0 or 1)
|
* @return int The normalized value for the attribute (0 or 1)
|
||||||
|
@ -53,7 +53,7 @@ class SecurityContext implements SecurityContextInterface
|
|||||||
* @throws AuthenticationCredentialsNotFoundException when the security context has no authentication token.
|
* @throws AuthenticationCredentialsNotFoundException when the security context has no authentication token.
|
||||||
* @param mixed $attributes
|
* @param mixed $attributes
|
||||||
* @param mixed|null $object
|
* @param mixed|null $object
|
||||||
* @return boolean
|
* @return Boolean
|
||||||
*/
|
*/
|
||||||
public final function isGranted($attributes, $object = null)
|
public final function isGranted($attributes, $object = null)
|
||||||
{
|
{
|
||||||
|
@ -35,7 +35,7 @@ interface SecurityContextInterface
|
|||||||
*
|
*
|
||||||
* @param array $attributes
|
* @param array $attributes
|
||||||
* @param mixed $object
|
* @param mixed $object
|
||||||
* @return boolean
|
* @return Boolean
|
||||||
*/
|
*/
|
||||||
function isGranted($attributes, $object = null);
|
function isGranted($attributes, $object = null);
|
||||||
}
|
}
|
@ -87,7 +87,7 @@ class ValidatorFactory implements ValidatorContextInterface
|
|||||||
* @param array $mappingFiles A list of XML or YAML file names
|
* @param array $mappingFiles A list of XML or YAML file names
|
||||||
* where mapping information can be
|
* where mapping information can be
|
||||||
* found. Can be empty.
|
* found. Can be empty.
|
||||||
* @param boolean $annotations Whether to use annotations for
|
* @param Boolean $annotations Whether to use annotations for
|
||||||
* retrieving mapping information
|
* retrieving mapping information
|
||||||
* @param array $annotationNamespaces The annotation namespaces used
|
* @param array $annotationNamespaces The annotation namespaces used
|
||||||
* for finding the annotation classes.
|
* for finding the annotation classes.
|
||||||
|
@ -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'
|
* e.g. false => 'No', true => 'Yes'
|
||||||
*/
|
*/
|
||||||
public function testSetDataSingleNonExpandedAcceptsBoolean()
|
public function testSetDataSingleNonExpandedAcceptsBoolean()
|
||||||
|
@ -157,7 +157,7 @@ php: |
|
|||||||
---
|
---
|
||||||
test: Boolean
|
test: Boolean
|
||||||
brief: >
|
brief: >
|
||||||
You can use 'true' and 'false' for boolean values.
|
You can use 'true' and 'false' for Boolean values.
|
||||||
yaml: |
|
yaml: |
|
||||||
Is Gus a Liar?: true
|
Is Gus a Liar?: true
|
||||||
Do I rely on Gus for Sustenance?: false
|
Do I rely on Gus for Sustenance?: false
|
||||||
|
Reference in New Issue
Block a user