[Standards] Changing many instances of "boolean" to "Boolean".

This commit is contained in:
Ryan Weaver 2011-01-20 19:39:28 -06:00 committed by Fabien Potencier
parent e6f1248151
commit 17f9162b89
57 changed files with 112 additions and 112 deletions

View File

@ -88,7 +88,7 @@ class DoctrineConverter implements ConverterInterface
*
* @param \ReflectionParameter $parameter
*
* @return boolean
* @return Boolean
*/
public function supports(\ReflectionClass $class)
{

View File

@ -35,7 +35,7 @@ class DoctrineMongoDBUniqueValidator extends ConstraintValidator
/**
* @param Doctrine\ODM\MongoDB\Document $value
* @param Constraint $constraint
* @return bool
* @return Boolean
*/
public function isValid($document, Constraint $constraint)
{

View File

@ -28,7 +28,7 @@ interface ConverterInterface
*
* @param \ReflectionParameter $parameter
*
* @return boolean
* @return Boolean
*/
function supports(\ReflectionClass $class);
}

View File

@ -56,7 +56,7 @@ class LazyLoader implements LoaderInterface
* @param mixed $resource A resource
* @param string $type The resource type
*
* @return boolean True if this class supports the given resource, false otherwise
* @return Boolean True if this class supports the given resource, false otherwise
*/
public function supports($resource, $type = null)
{

View File

@ -57,7 +57,7 @@ class Filesystem
* @param string $path The directory path
* @param int $mode The directory mode
*
* @return bool true if the directory has been created, false otherwise
* @return Boolean true if the directory has been created, false otherwise
*/
public function mkdirs($path, $mode = 0777)
{
@ -161,9 +161,9 @@ class Filesystem
/**
* Creates a symbolic link or copy a directory.
*
* @param string $originDir The origin directory path
* @param string $targetDir The symbolic link name
* @param bool $copyOnWindows Whether to copy files if on windows
* @param string $originDir The origin directory path
* @param string $targetDir The symbolic link name
* @param Boolean $copyOnWindows Whether to copy files if on windows
*/
public function symlink($originDir, $targetDir, $copyOnWindows = false)
{

View File

@ -93,7 +93,7 @@ class TwigEngine implements EngineInterface
*
* @param string $name A template name
*
* @return boolean True if this class supports the given resource, false otherwise
* @return Boolean True if this class supports the given resource, false otherwise
*/
public function supports($name)
{

View File

@ -124,7 +124,7 @@ class Container implements ContainerInterface
*
* @param string $name The parameter name
*
* @return boolean The presence of parameter in container
* @return Boolean The presence of parameter in container
*/
public function hasParameter($name)
{

View File

@ -514,7 +514,7 @@ class ContainerBuilder extends Container implements TaggedContainerInterface
*
* @param string $class The class
*
* @return boolean true if at least one InterfaceInjector is defined, false otherwise
* @return Boolean true if at least one InterfaceInjector is defined, false otherwise
*/
public function hasInterfaceInjectorForClass($class)
{

View File

@ -230,7 +230,7 @@ class Definition
*
* @param string $method The method name to search for
*
* @return boolean
* @return Boolean
*/
public function hasMethodCall($method)
{

View File

@ -726,7 +726,7 @@ EOF;
return $this->dumpParameter($value);
} elseif (true === $interpolate && is_string($value)) {
if (preg_match('/^%([^%]+)%$/', $value, $match)) {
// we do this to deal with non string values (boolean, integer, ...)
// we do this to deal with non string values (Boolean, integer, ...)
// the preg_replace_callback converts them to strings
return $this->dumpParameter(strtolower($match[1]));
} else {

View File

@ -85,7 +85,7 @@ class InterfaceInjector
* Inspects if current interface injector is to be used with a given class
*
* @param string $object
* @return boolean
* @return Boolean
*/
public function supports($object)
{
@ -146,7 +146,7 @@ class InterfaceInjector
*
* @param string $method The method name to search for
*
* @return boolean
* @return Boolean
*/
public function hasMethodCall($method)
{

View File

@ -136,7 +136,7 @@ class ParameterBag implements ParameterBagInterface
}
if (preg_match('/^%([^%]+)%$/', $value, $match)) {
// we do this to deal with non string values (boolean, integer, ...)
// we do this to deal with non string values (Boolean, integer, ...)
// the preg_replace_callback converts them to strings
return $this->get(strtolower($match[1]));
}

View File

@ -85,7 +85,7 @@ class Event
*/
public function setProcessed($processed)
{
$this->processed = (boolean) $processed;
$this->processed = (Boolean) $processed;
}
/**

View File

@ -131,7 +131,7 @@ abstract class Configurable
*
* @param string $name The option name
*
* @return bool true if the option is set, false otherwise
* @return Boolean true if the option is set, false otherwise
*/
public function hasOption($name)
{

View File

@ -237,7 +237,7 @@ class DateField extends HybridField
* The year is valid if it is contained in the list passed to the field's
* option "years".
*
* @return boolean
* @return Boolean
*/
public function isYearWithinRange()
{
@ -252,7 +252,7 @@ class DateField extends HybridField
* The month is valid if it is contained in the list passed to the field's
* option "months".
*
* @return boolean
* @return Boolean
*/
public function isMonthWithinRange()
{
@ -267,7 +267,7 @@ class DateField extends HybridField
* The day is valid if it is contained in the list passed to the field's
* option "days".
*
* @return boolean
* @return Boolean
*/
public function isDayWithinRange()
{

View File

@ -31,7 +31,7 @@ use Symfony\Component\Form\ValueTransformer\TransformationFailedException;
* localized string (3) is presented to and modified by the user.
*
* In most cases, format (1) and format (2) will be the same. For example,
* a checkbox field uses a boolean value both for internal processing as for
* a checkbox field uses a Boolean value both for internal processing as for
* storage in the object. In these cases you simply need to set a value
* transformer to convert between formats (2) and (3). You can do this by
* calling setValueTransformer() in the configure() method.
@ -263,7 +263,7 @@ class Field extends Configurable implements FieldInterface
* Binds POST data to the field, transforms and validates it.
*
* @param string|array $taintedData The POST data
* @return boolean Whether the form is valid
* @return Boolean Whether the form is valid
* @throws AlreadyBoundException when the field is already bound
*/
public function bind($taintedData)
@ -337,7 +337,7 @@ class Field extends Configurable implements FieldInterface
/**
* Returns whether the field is bound.
*
* @return boolean true if the form is bound to input values, false otherwise
* @return Boolean true if the form is bound to input values, false otherwise
*/
public function isBound()
{
@ -347,7 +347,7 @@ class Field extends Configurable implements FieldInterface
/**
* Returns whether the bound value could be reverse transformed correctly
*
* @return boolean
* @return Boolean
*/
public function isTransformationSuccessful()
{
@ -357,7 +357,7 @@ class Field extends Configurable implements FieldInterface
/**
* Returns whether the field is valid.
*
* @return boolean
* @return Boolean
*/
public function isValid()
{
@ -367,7 +367,7 @@ class Field extends Configurable implements FieldInterface
/**
* Returns whether or not there are errors.
*
* @return boolean true if form is bound and not valid
* @return Boolean true if form is bound and not valid
*/
public function hasErrors()
{

View File

@ -152,7 +152,7 @@ class FieldGroup extends Field implements \IteratorAggregate, FieldGroupInterfac
* Returns whether a field with the given key exists.
*
* @param string $key
* @return boolean
* @return Boolean
*/
public function has($key)
{
@ -233,15 +233,15 @@ class FieldGroup extends Field implements \IteratorAggregate, FieldGroupInterfac
/**
* Returns a filtered array of fields from the current schema.
*
* @param boolean $hidden Whether to return hidden fields only or visible fields only
* @param boolean $recursive Whether to recur through embedded schemas
* @param Boolean $hidden Whether to return hidden fields only or visible fields only
* @param Boolean $recursive Whether to recur through embedded schemas
*
* @return array
*/
protected function getFieldsByVisibility($hidden, $recursive)
{
$fields = array();
$hidden = (bool)$hidden;
$hidden = (Boolean)$hidden;
foreach ($this->fields as $field) {
if ($field instanceof FieldGroup && $recursive) {
@ -400,7 +400,7 @@ class FieldGroup extends Field implements \IteratorAggregate, FieldGroupInterfac
/**
* Returns whether this form was bound with extra fields
*
* @return boolean
* @return Boolean
*/
public function isBoundWithExtraFields()
{
@ -411,7 +411,7 @@ class FieldGroup extends Field implements \IteratorAggregate, FieldGroupInterfac
/**
* Returns whether the field is valid.
*
* @return boolean
* @return Boolean
*/
public function isValid()
{
@ -472,7 +472,7 @@ class FieldGroup extends Field implements \IteratorAggregate, FieldGroupInterfac
/**
* Returns whether the field requires a multipart form.
*
* @return boolean
* @return Boolean
*/
public function isMultipart()
{

View File

@ -38,7 +38,7 @@ interface FieldGroupInterface extends FieldInterface, \ArrayAccess, \Traversable
* "address.postal_code". If $group is virtual though, the fields are
* mapped directly to "street" and "postal_code".
*
* @return boolean Whether the group is virtual
* @return Boolean Whether the group is virtual
*/
public function isVirtual();
}

View File

@ -155,7 +155,7 @@ interface FieldInterface
* Binds POST data to the field, transforms and validates it.
*
* @param string|array $taintedData The POST data
* @return boolean Whether the form is valid
* @return Boolean Whether the form is valid
* @throws InvalidConfigurationException when the field is not configured
* correctly
*/
@ -190,21 +190,21 @@ interface FieldInterface
/**
* Returns whether the field is bound.
*
* @return boolean
* @return Boolean
*/
function isBound();
/**
* Returns whether the field is valid.
*
* @return boolean
* @return Boolean
*/
function isValid();
/**
* Returns whether the field requires a multipart form.
*
* @return boolean
* @return Boolean
*/
function isMultipart();
@ -215,7 +215,7 @@ interface FieldInterface
* will always return false. Otherwise the value set with setRequired()
* is returned.
*
* @return boolean
* @return Boolean
*/
function isRequired();
@ -228,21 +228,21 @@ interface FieldInterface
* Fields whose parents are disabled are considered disabled regardless of
* their own state.
*
* @return boolean
* @return Boolean
*/
function isDisabled();
/**
* Returns whether the field is hidden
*
* @return boolean
* @return Boolean
*/
function isHidden();
/**
* Sets whether this field is required to be filled out when submitted.
*
* @param boolean $required
* @param Boolean $required
*/
function setRequired($required);
}

View File

@ -22,20 +22,20 @@ class FileField extends FieldGroup
/**
* Whether the size of the uploaded file exceeds the upload_max_filesize
* directive in php.ini
* @var boolean
* @var Boolean
*/
protected $iniSizeExceeded = false;
/**
* Whether the size of the uploaded file exceeds the MAX_FILE_SIZE
* directive specified in the HTML form
* @var boolean
* @var Boolean
*/
protected $formSizeExceeded = false;
/**
* Whether the file was completely uploaded
* @var boolean
* @var Boolean
*/
protected $uploadComplete = true;
@ -177,7 +177,7 @@ class FileField extends FieldGroup
* Returns true if the size of the uploaded file exceeds the
* upload_max_filesize directive in php.ini
*
* @return boolean
* @return Boolean
*/
public function isIniSizeExceeded()
{
@ -188,7 +188,7 @@ class FileField extends FieldGroup
* Returns true if the size of the uploaded file exceeds the
* MAX_FILE_SIZE directive specified in the HTML form
*
* @return boolean
* @return Boolean
*/
public function isFormSizeExceeded()
{
@ -198,7 +198,7 @@ class FileField extends FieldGroup
/**
* Returns true if the file was completely uploaded
*
* @return boolean
* @return Boolean
*/
public function isUploadComplete()
{

View File

@ -140,7 +140,7 @@ class Form extends FieldGroup
*
* @param array $taintedValues The form data of the $_POST array
* @param array $taintedFiles An array of uploaded files
* @return boolean Whether the form is valid
* @return Boolean Whether the form is valid
*/
final public function bind($taintedValues, array $taintedFiles = null)
{
@ -186,7 +186,7 @@ class Form extends FieldGroup
* Binds the form with the given data.
*
* @param array $taintedData The data to bind to the form
* @return boolean Whether the form is valid
* @return Boolean Whether the form is valid
*/
protected function doBind(array $taintedData)
{
@ -229,7 +229,7 @@ class Form extends FieldGroup
/**
* Returns whether the CSRF token is valid
*
* @return boolean
* @return Boolean
*/
public function isCsrfTokenValid()
{
@ -246,7 +246,7 @@ class Form extends FieldGroup
/**
* Returns whether the maximum POST size was reached in this request.
*
* @return boolean
* @return Boolean
*/
public function isPostMaxSizeReached()
{

View File

@ -54,7 +54,7 @@ class FormContext implements FormContextInterface
/**
* Whether the new form should be CSRF protected
* @var boolean
* @var Boolean
*/
protected $csrfProtection = false;
@ -206,7 +206,7 @@ class FormContext implements FormContextInterface
/**
* Returns whether the new form will be CSRF protected
*
* @return boolean Whether the form will be CSRF protected
* @return Boolean Whether the form will be CSRF protected
*/
public function isCsrfProtectionEnabled()
{

View File

@ -59,7 +59,7 @@ interface FormContextInterface
/**
* Enables or disables CSRF protection for the form
*
* @param boolean $enabled Whether the form should be CSRF protected
* @param Boolean $enabled Whether the form should be CSRF protected
* @return FormContextInterface This object
*/
function csrfProtection($enabled);

View File

@ -50,7 +50,7 @@ class HybridField extends FieldGroup
}
/**
* @return boolean
* @return Boolean
*/
public function isField()
{
@ -58,7 +58,7 @@ class HybridField extends FieldGroup
}
/**
* @return boolean
* @return Boolean
*/
public function isGroup()
{

View File

@ -35,7 +35,7 @@ class PropertyPath implements \IteratorAggregate
protected $length;
/**
* Contains a boolean for each property in $elements denoting whether this
* Contains a Boolean for each property in $elements denoting whether this
* element is an index. It is a property otherwise.
* @var array
*/
@ -135,7 +135,7 @@ class PropertyPath implements \IteratorAggregate
* Returns whether the element at the given index is a property
*
* @param integer $index The index in the property path
* @return boolean Whether the element at this index is a property
* @return Boolean Whether the element at this index is a property
*/
public function isProperty($index)
{
@ -146,7 +146,7 @@ class PropertyPath implements \IteratorAggregate
* Returns whether the element at the given index is an array index
*
* @param integer $index The index in the property path
* @return boolean Whether the element at this index is an array index
* @return Boolean Whether the element at this index is an array index
*/
public function isIndex($index)
{

View File

@ -40,7 +40,7 @@ class PropertyPathIterator extends \ArrayIterator
/**
* Returns whether next() can be called without making the iterator invalid
*
* @return boolean
* @return Boolean
*/
public function hasNext()
{
@ -51,7 +51,7 @@ class PropertyPathIterator extends \ArrayIterator
* Returns whether the current element in the property path is an array
* index
*
* @return boolean
* @return Boolean
*/
public function isIndex()
{
@ -62,7 +62,7 @@ class PropertyPathIterator extends \ArrayIterator
* Returns whether the current element in the property path is a property
* names
*
* @return boolean
* @return Boolean
*/
public function isProperty()
{

View File

@ -60,7 +60,7 @@ class RepeatedField extends FieldGroup
/**
* Returns whether both entered values are equal
*
* @return bool
* @return Boolean
*/
public function isFirstEqualToSecond()
{

View File

@ -154,7 +154,7 @@ class TimeField extends FieldGroup
* The hour is valid if it is contained in the list passed to the field's
* option "hours".
*
* @return boolean
* @return Boolean
*/
public function isHourWithinRange()
{
@ -169,7 +169,7 @@ class TimeField extends FieldGroup
* The minute is valid if it is contained in the list passed to the field's
* option "minutes".
*
* @return boolean
* @return Boolean
*/
public function isMinuteWithinRange()
{
@ -184,7 +184,7 @@ class TimeField extends FieldGroup
* The second is valid if it is contained in the list passed to the field's
* option "seconds".
*
* @return boolean
* @return Boolean
*/
public function isSecondWithinRange()
{

View File

@ -22,9 +22,9 @@ use Symfony\Component\Form\Exception\UnexpectedTypeException;
class BooleanToStringTransformer extends BaseValueTransformer
{
/**
* Transforms a boolean into a string.
* Transforms a Boolean into a string.
*
* @param boolean $value Boolean value.
* @param Boolean $value Boolean value.
* @return string String value.
*/
public function transform($value)
@ -34,17 +34,17 @@ class BooleanToStringTransformer extends BaseValueTransformer
}
if (!is_bool($value)) {
throw new UnexpectedTypeException($value, 'boolean');
throw new UnexpectedTypeException($value, 'Boolean');
}
return true === $value ? '1' : '';
}
/**
* Transforms a string into a boolean.
* Transforms a string into a Boolean.
*
* @param string $value String value.
* @return boolean Boolean value.
* @return Boolean Boolean value.
*/
public function reverseTransform($value, $originalValue)
{

View File

@ -23,7 +23,7 @@ class ContentTypeMimeTypeGuesser implements MimeTypeGuesserInterface
/**
* Returns whether this guesser is supported on the current OS/PHP setup
*
* @return boolean
* @return Boolean
*/
static public function isSupported()
{

View File

@ -23,7 +23,7 @@ class FileinfoMimeTypeGuesser implements MimeTypeGuesserInterface
/**
* Returns whether this guesser is supported on the current OS/PHP setup
*
* @return boolean
* @return Boolean
*/
static public function isSupported()
{

View File

@ -619,7 +619,7 @@ class Request
/**
* Returns the request body content.
*
* @param bool $asResource If true, a resource will be returned
* @param Boolean $asResource If true, a resource will be returned
*
* @return string|resource The request body content or a resource to read the body stream.
*/
@ -749,7 +749,7 @@ class Request
* It works if your JavaScript library set an X-Requested-With HTTP header.
* It is known to work with Prototype, Mootools, jQuery.
*
* @return bool true if the request is an XMLHttpRequest, false otherwise
* @return Boolean true if the request is an XMLHttpRequest, false otherwise
*/
public function isXmlHttpRequest()
{

View File

@ -147,9 +147,9 @@ class NativeSessionStorage implements SessionStorageInterface
/**
* Regenerates id that represents this storage.
*
* @param boolean $destroy Destroy session when regenerating?
* @param Boolean $destroy Destroy session when regenerating?
*
* @return boolean True if session regenerated, false if error
* @return Boolean True if session regenerated, false if error
*
*/
public function regenerate($destroy = false)

View File

@ -67,7 +67,7 @@ class PdoSessionStorage extends NativeSessionStorage
* @param string $path (ignored)
* @param string $name (ignored)
*
* @return boolean true, if the session was opened, otherwise an exception is thrown
* @return Boolean true, if the session was opened, otherwise an exception is thrown
*/
public function sessionOpen($path = null, $name = null)
{
@ -77,7 +77,7 @@ class PdoSessionStorage extends NativeSessionStorage
/**
* Closes a session.
*
* @return boolean true, if the session was closed, otherwise false
* @return Boolean true, if the session was closed, otherwise false
*/
public function sessionClose()
{
@ -90,7 +90,7 @@ class PdoSessionStorage extends NativeSessionStorage
*
* @param string $id A session ID
*
* @return bool true, if the session was destroyed, otherwise an exception is thrown
* @return Boolean true, if the session was destroyed, otherwise an exception is thrown
*
* @throws \RuntimeException If the session cannot be destroyed
*/
@ -119,7 +119,7 @@ class PdoSessionStorage extends NativeSessionStorage
*
* @param int $lifetime The lifetime of a session
*
* @return bool true, if old sessions have been cleaned, otherwise an exception is thrown
* @return Boolean true, if old sessions have been cleaned, otherwise an exception is thrown
*
* @throws \RuntimeException If any old sessions cannot be cleaned
*/
@ -194,7 +194,7 @@ class PdoSessionStorage extends NativeSessionStorage
* @param string $id A session ID
* @param string $data A serialized chunk of session data
*
* @return bool true, if the session was written, otherwise an exception is thrown
* @return Boolean true, if the session was written, otherwise an exception is thrown
*
* @throws \RuntimeException If the session data cannot be written
*/

View File

@ -73,9 +73,9 @@ interface SessionStorageInterface
/**
* Regenerates id that represents this storage.
*
* @param boolean $destroy Destroy session when regenerating?
* @param Boolean $destroy Destroy session when regenerating?
*
* @return boolean True if session regenerated, false if error
* @return Boolean True if session regenerated, false if error
*
* @throws \RuntimeException If an error occurs while regenerating this storage
*/

View File

@ -108,7 +108,7 @@ abstract class Kernel implements HttpKernelInterface, \Serializable
/**
* Checks whether the current kernel has been booted or not.
*
* @return boolean $booted
* @return Boolean $booted
*/
public function isBooted()
{

View File

@ -150,7 +150,7 @@ abstract class AnnotationClassLoader implements LoaderInterface
* @param mixed $resource A resource
* @param string $type The resource type
*
* @return boolean True if this class supports the given resource, false otherwise
* @return Boolean True if this class supports the given resource, false otherwise
*/
public function supports($resource, $type = null)
{

View File

@ -58,7 +58,7 @@ class AnnotationDirectoryLoader extends AnnotationFileLoader
* @param mixed $resource A resource
* @param string $type The resource type
*
* @return boolean True if this class supports the given resource, false otherwise
* @return Boolean True if this class supports the given resource, false otherwise
*/
public function supports($resource, $type = null)
{

View File

@ -73,7 +73,7 @@ class AnnotationFileLoader extends FileLoader
* @param mixed $resource A resource
* @param string $type The resource type
*
* @return boolean True if this class supports the given resource, false otherwise
* @return Boolean True if this class supports the given resource, false otherwise
*/
public function supports($resource, $type = null)
{

View File

@ -47,7 +47,7 @@ class AnnotationGlobLoader extends AnnotationDirectoryLoader
* @param mixed $resource A resource
* @param string $type The resource type
*
* @return boolean True if this class supports the given resource, false otherwise
* @return Boolean True if this class supports the given resource, false otherwise
*/
public function supports($resource, $type = null)
{

View File

@ -37,7 +37,7 @@ class ClosureLoader extends Loader
* @param mixed $resource A resource
* @param string $type The resource type
*
* @return boolean True if this class supports the given resource, false otherwise
* @return Boolean True if this class supports the given resource, false otherwise
*/
public function supports($resource, $type = null)
{

View File

@ -65,7 +65,7 @@ class DelegatingLoader extends Loader
* @param mixed $resource A resource
* @param string $type The resource type
*
* @return boolean True if this class supports the given resource, false otherwise
* @return Boolean True if this class supports the given resource, false otherwise
*/
public function supports($resource, $type = null)
{

View File

@ -82,7 +82,7 @@ class FileLocator
*
* @param string $file A file path
*
* @return boolean
* @return Boolean
*/
public function isAbsolutePath($file)
{

View File

@ -36,7 +36,7 @@ interface LoaderInterface
* @param mixed $resource A resource
* @param string $type The resource type
*
* @return boolean True if this class supports the given resource, false otherwise
* @return Boolean True if this class supports the given resource, false otherwise
*/
function supports($resource, $type = null);

View File

@ -47,7 +47,7 @@ class PhpFileLoader extends FileLoader
* @param mixed $resource A resource
* @param string $type The resource type
*
* @return boolean True if this class supports the given resource, false otherwise
* @return Boolean True if this class supports the given resource, false otherwise
*/
public function supports($resource, $type = null)
{

View File

@ -73,7 +73,7 @@ class XmlFileLoader extends FileLoader
* @param mixed $resource A resource
* @param string $type The resource type
*
* @return boolean True if this class supports the given resource, false otherwise
* @return Boolean True if this class supports the given resource, false otherwise
*/
public function supports($resource, $type = null)
{

View File

@ -75,7 +75,7 @@ class YamlFileLoader extends FileLoader
* @param mixed $resource A resource
* @param string $type The resource type
*
* @return boolean True if this class supports the given resource, false otherwise
* @return Boolean True if this class supports the given resource, false otherwise
*/
public function supports($resource, $type = null)
{

View File

@ -90,7 +90,7 @@ class DelegatingEngine implements EngineInterface
*
* @param string $name A template name
*
* @return boolean True if this class supports the given template, false otherwise
* @return Boolean True if this class supports the given template, false otherwise
*/
public function supports($name)
{

View File

@ -55,7 +55,7 @@ interface EngineInterface
*
* @param string $name A template name
*
* @return boolean True if this class supports the given template, false otherwise
* @return Boolean True if this class supports the given template, false otherwise
*/
function supports($name);
}

View File

@ -147,7 +147,7 @@ class PhpEngine implements EngineInterface, \ArrayAccess
*
* @param string $name A template name
*
* @return boolean True if this class supports the given resource, false otherwise
* @return Boolean True if this class supports the given resource, false otherwise
*/
public function supports($name)
{
@ -413,7 +413,7 @@ class PhpEngine implements EngineInterface, \ArrayAccess
*/
function ($value) use ($that)
{
// Numbers and boolean values get turned into strings which can cause problems
// Numbers and Boolean values get turned into strings which can cause problems
// with type comparisons (e.g. === or is_int() etc).
return is_string($value) ? htmlspecialchars($value, ENT_QUOTES, $that->getCharset(), false) : $value;
},

View File

@ -23,7 +23,7 @@ interface ConstraintValidatorInterface
/**
* @param mixed $value The value that should be validated
* @param Constraint $constraint The constrain for the validation
* @return boolean Whether or not the value is valid
* @return Boolean Whether or not the value is valid
*/
function isValid($value, Constraint $constraint);

View File

@ -55,7 +55,7 @@ class EmailValidator extends ConstraintValidator
*
* @param string $host Host name
*
* @return boolean
* @return Boolean
*/
private function checkMX($host)
{

View File

@ -250,7 +250,7 @@ class ClassMetadata extends ElementMetadata
/**
* Returns whether this class has an overridden default group sequence.
*
* @return boolean
* @return Boolean
*/
public function hasGroupSequence()
{

View File

@ -79,7 +79,7 @@ abstract class ElementMetadata
/**
* Returns whether this element has any constraints.
*
* @return boolean
* @return Boolean
*/
public function hasConstraints()
{

View File

@ -20,7 +20,7 @@ interface LoaderInterface
*
* @param ClassMetadata $metadata A metadata
*
* @return boolean
* @return Boolean
*/
function loadClassMetadata(ClassMetadata $metadata);
}

View File

@ -106,7 +106,7 @@ abstract class MemberMetadata extends ElementMetadata
/**
* Returns whether this member is public
*
* @return boolean
* @return Boolean
*/
public function isPublic()
{
@ -116,7 +116,7 @@ abstract class MemberMetadata extends ElementMetadata
/**
* Returns whether this member is protected
*
* @return boolean
* @return Boolean
*/
public function isProtected()
{
@ -126,7 +126,7 @@ abstract class MemberMetadata extends ElementMetadata
/**
* Returns whether this member is private
*
* @return boolean
* @return Boolean
*/
public function isPrivate()
{
@ -136,7 +136,7 @@ abstract class MemberMetadata extends ElementMetadata
/**
* Returns whether objects stored in this member should be validated
*
* @return boolean
* @return Boolean
*/
public function isCascaded()
{

View File

@ -145,7 +145,7 @@ class Inline
* @param string $delimiters
* @param array $stringDelimiter
* @param integer $i
* @param boolean $evaluate
* @param Boolean $evaluate
*
* @return string A YAML string
*