fixed types in phpdocs

This commit is contained in:
Fabien Potencier 2014-04-16 12:30:19 +02:00
parent d56ea768cc
commit e96b018805
298 changed files with 720 additions and 720 deletions

View File

@ -44,7 +44,7 @@ class ContainerAwareEventManager extends EventManager
* the name of the method that is invoked on listeners.
* @param EventArgs $eventArgs The event arguments to pass to the event handlers/listeners.
* If not supplied, the single empty EventArgs instance is used.
* @return boolean
* @return bool
*/
public function dispatchEvent($eventName, EventArgs $eventArgs = null)
{
@ -81,7 +81,7 @@ class ContainerAwareEventManager extends EventManager
*
* @param string $event
*
* @return boolean TRUE if the specified event has any listeners, FALSE otherwise.
* @return bool TRUE if the specified event has any listeners, FALSE otherwise.
*/
public function hasListeners($event)
{

View File

@ -156,7 +156,7 @@ abstract class RegisterMappingsPass implements CompilerPassInterface
*
* @param ContainerBuilder $container
*
* @return boolean whether this compiler pass really should register the mappings
* @return bool whether this compiler pass really should register the mappings
*/
protected function enabled(ContainerBuilder $container)
{

View File

@ -59,21 +59,21 @@ class EntityChoiceList extends ObjectChoiceList
/**
* Whether to use the identifier for index generation
*
* @var Boolean
* @var bool
*/
private $idAsIndex = false;
/**
* Whether to use the identifier for value generation
*
* @var Boolean
* @var bool
*/
private $idAsValue = false;
/**
* Whether the entities have already been loaded.
*
* @var Boolean
* @var bool
*/
private $loaded = false;
@ -365,7 +365,7 @@ class EntityChoiceList extends ObjectChoiceList
*
* @param mixed $entity The choice to create an index for
*
* @return integer|string A unique index containing only ASCII letters,
* @return int|string A unique index containing only ASCII letters,
* digits and underscores.
*/
protected function createIndex($entity)
@ -386,7 +386,7 @@ class EntityChoiceList extends ObjectChoiceList
*
* @param mixed $entity The choice to create a value for
*
* @return integer|string A unique value without character limitations.
* @return int|string A unique value without character limitations.
*/
protected function createValue($entity)
{

View File

@ -158,7 +158,7 @@ class DbalSessionHandler implements \SessionHandlerInterface
* @param string $id
* @param string $data
*
* @return Boolean
* @return bool
*/
private function createNewSession($id, $data = '')
{

View File

@ -55,14 +55,14 @@ class ModelChoiceList extends ObjectChoiceList
/**
* Whether the model objects have already been loaded.
*
* @var Boolean
* @var bool
*/
protected $loaded = false;
/**
* Whether to use the identifier for index generation.
*
* @var Boolean
* @var bool
*/
private $identifierAsIndex = false;
@ -356,7 +356,7 @@ class ModelChoiceList extends ObjectChoiceList
*
* @param mixed $model The choice to create an index for
*
* @return integer|string A unique index containing only ASCII letters,
* @return int|string A unique index containing only ASCII letters,
* digits and underscores.
*/
protected function createIndex($model)
@ -377,7 +377,7 @@ class ModelChoiceList extends ObjectChoiceList
*
* @param mixed $model The choice to create a value for
*
* @return integer|string A unique value without character limitations.
* @return int|string A unique value without character limitations.
*/
protected function createValue($model)
{
@ -454,7 +454,7 @@ class ModelChoiceList extends ObjectChoiceList
*
* @param \ColumnMap $column
*
* @return Boolean
* @return bool
*/
private function isScalar(\ColumnMap $column)
{
@ -471,7 +471,7 @@ class ModelChoiceList extends ObjectChoiceList
* @param mixed $choice
* @param mixed $givenChoice
*
* @return Boolean
* @return bool
*/
private function isEqual($choice, $givenChoice)
{

View File

@ -113,7 +113,7 @@ class FormExtension extends \Twig_Extension
* @param ChoiceView $choice The choice to check.
* @param string|array $selectedValue The selected value to compare.
*
* @return Boolean Whether the choice is selected.
* @return bool Whether the choice is selected.
*
* @see ChoiceView::isSelected()
*/

View File

@ -74,7 +74,7 @@ class TwigRendererEngine extends AbstractRendererEngine implements TwigRendererE
* @param FormView $view The form view for finding the applying themes.
* @param string $blockName The name of the block to load.
*
* @return Boolean True if the resource could be loaded, false otherwise.
* @return bool True if the resource could be loaded, false otherwise.
*/
protected function loadResourceForBlockName($cacheKey, FormView $view, $blockName)
{

View File

@ -32,7 +32,7 @@ class Scope
private $data;
/**
* @var boolean
* @var bool
*/
private $left;
@ -97,7 +97,7 @@ class Scope
*
* @param string $key
*
* @return boolean
* @return bool
*/
public function has($key)
{

View File

@ -71,7 +71,7 @@ class TwigEngine implements EngineInterface, StreamingEngineInterface
*
* @param mixed $name A template name
*
* @return Boolean true if the template exists, false otherwise
* @return bool true if the template exists, false otherwise
*/
public function exists($name)
{
@ -99,7 +99,7 @@ class TwigEngine implements EngineInterface, StreamingEngineInterface
*
* @param string $name A template name
*
* @return Boolean True if this class supports the given resource, false otherwise
* @return bool True if this class supports the given resource, false otherwise
*/
public function supports($name)
{

View File

@ -49,7 +49,7 @@ class RouterCacheWarmer implements CacheWarmerInterface
/**
* Checks whether this warmer is optional or not.
*
* @return Boolean always true
* @return bool always true
*/
public function isOptional()
{

View File

@ -55,7 +55,7 @@ class TemplatePathsCacheWarmer extends CacheWarmer
/**
* Checks whether this warmer is optional or not.
*
* @return Boolean always true
* @return bool always true
*/
public function isOptional()
{

View File

@ -63,7 +63,7 @@ class Application extends BaseApplication
* @param InputInterface $input An Input instance
* @param OutputInterface $output An Output instance
*
* @return integer 0 if everything went fine, or an error code
* @return int 0 if everything went fine, or an error code
*/
public function doRun(InputInterface $input, OutputInterface $output)
{

View File

@ -233,7 +233,7 @@ class Controller extends ContainerAware
*
* @param string $id The service id
*
* @return Boolean true if the service id is defined, false otherwise
* @return bool true if the service id is defined, false otherwise
*/
public function has($id)
{

View File

@ -108,7 +108,7 @@ class GlobalVariables
/**
* Returns the current app debug mode.
*
* @return Boolean The current debug mode
* @return bool The current debug mode
*/
public function getDebug()
{

View File

@ -40,7 +40,7 @@ class FilesystemLoader implements LoaderInterface
*
* @param TemplateReferenceInterface $template A template
*
* @return FileStorage|Boolean false if the template cannot be loaded, a Storage instance otherwise
* @return FileStorage|bool false if the template cannot be loaded, a Storage instance otherwise
*/
public function load(TemplateReferenceInterface $template)
{
@ -59,7 +59,7 @@ class FilesystemLoader implements LoaderInterface
* @param TemplateReferenceInterface $template The template name as an array
* @param int $time The last modification time of the cached template (timestamp)
*
* @return Boolean
* @return bool
*/
public function isFresh(TemplateReferenceInterface $template, $time)
{

View File

@ -65,7 +65,7 @@ class SecurityDataCollector extends DataCollector
/**
* Checks if security is enabled.
*
* @return Boolean true if security is enabled, false otherwise
* @return bool true if security is enabled, false otherwise
*/
public function isEnabled()
{
@ -95,7 +95,7 @@ class SecurityDataCollector extends DataCollector
/**
* Checks if the user is authenticated or not.
*
* @return Boolean true if the user is authenticated, false otherwise
* @return bool true if the user is authenticated, false otherwise
*/
public function isAuthenticated()
{

View File

@ -146,7 +146,7 @@ abstract class AbstractFactory implements SecurityFactoryInterface
*
* @param array $config
*
* @return Boolean Whether a possibly configured RememberMeServices should be set for this listener
* @return bool Whether a possibly configured RememberMeServices should be set for this listener
*/
protected function isRememberMeAware($config)
{

View File

@ -69,7 +69,7 @@ class TemplateCacheCacheWarmer implements CacheWarmerInterface
/**
* Checks whether this warmer is optional or not.
*
* @return Boolean always true
* @return bool always true
*/
public function isOptional()
{

View File

@ -297,7 +297,7 @@ class Cookie
/**
* Returns the secure flag of the cookie.
*
* @return Boolean The cookie secure flag
* @return bool The cookie secure flag
*
* @api
*/
@ -309,7 +309,7 @@ class Cookie
/**
* Returns the httponly flag of the cookie.
*
* @return Boolean The cookie httponly flag
* @return bool The cookie httponly flag
*
* @api
*/
@ -321,7 +321,7 @@ class Cookie
/**
* Returns true if the cookie has expired.
*
* @return Boolean true if the cookie has expired, false otherwise
* @return bool true if the cookie has expired, false otherwise
*
* @api
*/

View File

@ -53,7 +53,7 @@ class History
/**
* Returns true if the history is empty.
*
* @return Boolean true if the history is empty, false otherwise
* @return bool true if the history is empty, false otherwise
*/
public function isEmpty()
{

View File

@ -92,7 +92,7 @@ class Response
/**
* Gets the response status code.
*
* @return integer The response status code
* @return int The response status code
*
* @api
*/

View File

@ -99,7 +99,7 @@ class ApcClassLoader
*
* @param string $class The name of the class
*
* @return Boolean|null True, if loaded
* @return bool|null True, if loaded
*/
public function loadClass($class)
{

View File

@ -114,7 +114,7 @@ class ClassLoader
* Can be used to check if the autoloader uses the include path to check
* for classes.
*
* @return Boolean
* @return bool
*/
public function getUseIncludePath()
{
@ -144,7 +144,7 @@ class ClassLoader
*
* @param string $class The name of the class
*
* @return Boolean|null True, if loaded
* @return bool|null True, if loaded
*/
public function loadClass($class)
{

View File

@ -86,7 +86,7 @@ class DebugClassLoader
*
* @param string $class The name of the class
*
* @return Boolean|null True, if loaded
* @return bool|null True, if loaded
*
* @throws \RuntimeException
*/

View File

@ -81,7 +81,7 @@ class UniversalClassLoader
* Can be used to check if the autoloader uses the include path to check
* for classes.
*
* @return Boolean
* @return bool
*/
public function getUseIncludePath()
{
@ -243,7 +243,7 @@ class UniversalClassLoader
*
* @param string $class The name of the class
*
* @return Boolean|null True, if loaded
* @return bool|null True, if loaded
*/
public function loadClass($class)
{

View File

@ -96,7 +96,7 @@ class WinCacheClassLoader
*
* @param string $class The name of the class
*
* @return Boolean|null True, if loaded
* @return bool|null True, if loaded
*/
public function loadClass($class)
{

View File

@ -93,7 +93,7 @@ class XcacheClassLoader
*
* @param string $class The name of the class
*
* @return Boolean|null True, if loaded
* @return bool|null True, if loaded
*/
public function loadClass($class)
{

View File

@ -56,7 +56,7 @@ class ConfigCache
* This method always returns true when debug is off and the
* cache file exists.
*
* @return Boolean true if the cache is fresh, false otherwise
* @return bool true if the cache is fresh, false otherwise
*/
public function isFresh()
{

View File

@ -169,7 +169,7 @@ class ArrayNode extends BaseNode implements PrototypeNodeInterface
/**
* Checks if the node has a default value.
*
* @return Boolean
* @return bool
*/
public function hasDefaultValue()
{

View File

@ -178,7 +178,7 @@ abstract class BaseNode implements NodeInterface
/**
* Checks if this node is required.
*
* @return Boolean
* @return bool
*/
public function isRequired()
{

View File

@ -33,7 +33,7 @@ class BooleanNodeDefinition extends ScalarNodeDefinition
/**
* Instantiate a Node
*
* @return BooleanNode The node
* @return boolNode The node
*/
protected function instantiateNode()
{

View File

@ -23,7 +23,7 @@ class IntegerNodeDefinition extends NumericNodeDefinition
/**
* Instantiates a Node.
*
* @return IntegerNode The node
* @return intNode The node
*/
protected function instantiateNode()
{

View File

@ -81,7 +81,7 @@ class NodeBuilder implements NodeParentInterface
*
* @param string $name The name of the node
*
* @return BooleanNodeDefinition The child node
* @return boolNodeDefinition The child node
*/
public function booleanNode($name)
{
@ -93,7 +93,7 @@ class NodeBuilder implements NodeParentInterface
*
* @param string $name the name of the node
*
* @return IntegerNodeDefinition The child node
* @return intNodeDefinition The child node
*/
public function integerNode($name)
{

View File

@ -38,14 +38,14 @@ interface NodeInterface
/**
* Returns true when the node is required.
*
* @return Boolean If the node is required
* @return bool If the node is required
*/
public function isRequired();
/**
* Returns true when the node has a default value.
*
* @return Boolean If the node has a default value
* @return bool If the node has a default value
*/
public function hasDefaultValue();

View File

@ -114,7 +114,7 @@ class PrototypedArrayNode extends ArrayNode
/**
* Checks if the node has a default value.
*
* @return Boolean
* @return bool
*/
public function hasDefaultValue()
{

View File

@ -80,7 +80,7 @@ class FileLocator implements FileLocatorInterface
*
* @param string $file A file path
*
* @return Boolean
* @return bool
*/
private function isAbsolutePath($file)
{

View File

@ -32,7 +32,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 bool true if this class supports the given resource, false otherwise
*/
public function supports($resource, $type = null);

View File

@ -63,7 +63,7 @@ class DirectoryResource implements ResourceInterface, \Serializable
*
* @param int $timestamp The last time the resource was loaded
*
* @return Boolean true if the resource has not been updated, false otherwise
* @return bool true if the resource has not been updated, false otherwise
*/
public function isFresh($timestamp)
{

View File

@ -57,7 +57,7 @@ class FileResource implements ResourceInterface, \Serializable
*
* @param int $timestamp The last time the resource was loaded
*
* @return Boolean true if the resource has not been updated, false otherwise
* @return bool true if the resource has not been updated, false otherwise
*/
public function isFresh($timestamp)
{

View File

@ -30,7 +30,7 @@ interface ResourceInterface
*
* @param int $timestamp The last time the resource was loaded
*
* @return Boolean true if the resource has not been updated, false otherwise
* @return bool true if the resource has not been updated, false otherwise
*/
public function isFresh($timestamp);

View File

@ -99,7 +99,7 @@ class Application
* @param InputInterface $input An Input instance
* @param OutputInterface $output An Output instance
*
* @return integer 0 if everything went fine, or an error code
* @return int 0 if everything went fine, or an error code
*
* @throws \Exception When doRun returns Exception
*
@ -159,7 +159,7 @@ class Application
* @param InputInterface $input An Input instance
* @param OutputInterface $output An Output instance
*
* @return integer 0 if everything went fine, or an error code
* @return int 0 if everything went fine, or an error code
*/
public function doRun(InputInterface $input, OutputInterface $output)
{
@ -449,7 +449,7 @@ class Application
*
* @param string $name The command name or alias
*
* @return Boolean true if the command exists, false otherwise
* @return bool true if the command exists, false otherwise
*
* @api
*/
@ -890,7 +890,7 @@ class Application
* @param InputInterface $input An Input instance
* @param OutputInterface $output An Output instance
*
* @return integer 0 if everything went fine, or an error code
* @return int 0 if everything went fine, or an error code
*/
protected function doRunCommand(Command $command, InputInterface $input, OutputInterface $output)
{

View File

@ -136,7 +136,7 @@ class Command
* Override this to check for x or y and return false if the command can not
* run properly under the current conditions.
*
* @return Boolean
* @return bool
*/
public function isEnabled()
{
@ -161,7 +161,7 @@ class Command
* @param InputInterface $input An InputInterface instance
* @param OutputInterface $output An OutputInterface instance
*
* @return null|integer null or 0 if everything went fine, or an error code
* @return null|int null or 0 if everything went fine, or an error code
*
* @throws \LogicException When this abstract method is not implemented
* @see setCode()
@ -204,7 +204,7 @@ class Command
* @param InputInterface $input An InputInterface instance
* @param OutputInterface $output An OutputInterface instance
*
* @return integer The command exit code
* @return int The command exit code
*
* @throws \Exception
*

View File

@ -58,7 +58,7 @@ class ConsoleExceptionEvent extends ConsoleEvent
/**
* Gets the exit code.
*
* @return integer The command exit code
* @return int The command exit code
*/
public function getExitCode()
{

View File

@ -25,7 +25,7 @@ class ConsoleTerminateEvent extends ConsoleEvent
/**
* The exit code of the command.
*
* @var integer
* @var int
*/
private $exitCode;
@ -49,7 +49,7 @@ class ConsoleTerminateEvent extends ConsoleEvent
/**
* Gets the exit code.
*
* @return integer The command exit code
* @return int The command exit code
*/
public function getExitCode()
{

View File

@ -75,7 +75,7 @@ class OutputFormatter implements OutputFormatterInterface
/**
* Gets the decorated flag.
*
* @return Boolean true if the output will decorate messages, false otherwise
* @return bool true if the output will decorate messages, false otherwise
*
* @api
*/
@ -102,7 +102,7 @@ class OutputFormatter implements OutputFormatterInterface
*
* @param string $name
*
* @return Boolean
* @return bool
*
* @api
*/
@ -194,7 +194,7 @@ class OutputFormatter implements OutputFormatterInterface
*
* @param string $string
*
* @return OutputFormatterStyle|Boolean false if string is not format string
* @return OutputFormatterStyle|bool false if string is not format string
*/
private function createStyleFromString($string)
{

View File

@ -32,7 +32,7 @@ interface OutputFormatterInterface
/**
* Gets the decorated flag.
*
* @return Boolean true if the output will decorate messages, false otherwise
* @return bool true if the output will decorate messages, false otherwise
*
* @api
*/
@ -53,7 +53,7 @@ interface OutputFormatterInterface
*
* @param string $name
*
* @return Boolean
* @return bool
*
* @api
*/

View File

@ -36,7 +36,7 @@ class DialogHelper extends Helper
* @param string $errorMessage Message which will be shown if invalid value from choice list would be picked
* @param bool $multiselect Select more than one value separated by comma
*
* @return integer|string|array The selected value or values (the key of the choices array)
* @return int|string|array The selected value or values (the key of the choices array)
*
* @throws \InvalidArgumentException
*/
@ -225,7 +225,7 @@ class DialogHelper extends Helper
* @param string|array $question The question to ask
* @param bool $default The default answer if the user enters nothing
*
* @return Boolean true if the user has confirmed, false otherwise
* @return bool true if the user has confirmed, false otherwise
*/
public function askConfirmation(OutputInterface $output, $question, $default = true)
{
@ -403,7 +403,7 @@ class DialogHelper extends Helper
/**
* Return a valid Unix shell
*
* @return string|Boolean The valid shell name, false in case no valid shell is found
* @return string|bool The valid shell name, false in case no valid shell is found
*/
private function getShell()
{

View File

@ -45,7 +45,7 @@ abstract class Helper implements HelperInterface
*
* @param string $string The string to check its length
*
* @return integer The length of the string
* @return int The length of the string
*/
protected function strlen($string)
{

View File

@ -57,7 +57,7 @@ class HelperSet
*
* @param string $name The helper name
*
* @return Boolean true if the helper is defined, false otherwise
* @return bool true if the helper is defined, false otherwise
*/
public function has($name)
{

View File

@ -47,21 +47,21 @@ class ProgressHelper extends Helper
/**
* Current step
*
* @var integer
* @var int
*/
private $current;
/**
* Maximum number of steps
*
* @var integer
* @var int
*/
private $max;
/**
* Start time of the progress bar
*
* @var integer
* @var int
*/
private $startTime;

View File

@ -278,7 +278,7 @@ class ArgvInput extends Input
*
* @param string|array $values The value(s) to look for in the raw parameters (can be an array)
*
* @return Boolean true if the value is contained in the raw parameters
* @return bool true if the value is contained in the raw parameters
*/
public function hasParameterOption($values)
{

View File

@ -65,7 +65,7 @@ class ArrayInput extends Input
*
* @param string|array $values The values to look for in the raw parameters (can be an array)
*
* @return Boolean true if the value is contained in the raw parameters
* @return bool true if the value is contained in the raw parameters
*/
public function hasParameterOption($values)
{

View File

@ -80,7 +80,7 @@ abstract class Input implements InputInterface
/**
* Checks if the input is interactive.
*
* @return Boolean Returns true if the input is interactive
* @return bool Returns true if the input is interactive
*/
public function isInteractive()
{
@ -147,7 +147,7 @@ abstract class Input implements InputInterface
*
* @param string|int $name The InputArgument name or position
*
* @return Boolean true if the InputArgument object exists, false otherwise
* @return bool true if the InputArgument object exists, false otherwise
*/
public function hasArgument($name)
{
@ -204,7 +204,7 @@ abstract class Input implements InputInterface
*
* @param string $name The InputOption name
*
* @return Boolean true if the InputOption object exists, false otherwise
* @return bool true if the InputOption object exists, false otherwise
*/
public function hasOption($name)
{

View File

@ -69,7 +69,7 @@ class InputArgument
/**
* Returns true if the argument is required.
*
* @return Boolean true if parameter mode is self::REQUIRED, false otherwise
* @return bool true if parameter mode is self::REQUIRED, false otherwise
*/
public function isRequired()
{
@ -79,7 +79,7 @@ class InputArgument
/**
* Returns true if the argument can take multiple values.
*
* @return Boolean true if mode is self::IS_ARRAY, false otherwise
* @return bool true if mode is self::IS_ARRAY, false otherwise
*/
public function isArray()
{

View File

@ -172,7 +172,7 @@ class InputDefinition
*
* @param string|int $name The InputArgument name or position
*
* @return Boolean true if the InputArgument object exists, false otherwise
* @return bool true if the InputArgument object exists, false otherwise
*
* @api
*/
@ -198,7 +198,7 @@ class InputDefinition
/**
* Returns the number of InputArguments.
*
* @return integer The number of InputArguments
* @return int The number of InputArguments
*/
public function getArgumentCount()
{
@ -208,7 +208,7 @@ class InputDefinition
/**
* Returns the number of required InputArguments.
*
* @return integer The number of required InputArguments
* @return int The number of required InputArguments
*/
public function getArgumentRequiredCount()
{
@ -314,7 +314,7 @@ class InputDefinition
*
* @param string $name The InputOption name
*
* @return Boolean true if the InputOption object exists, false otherwise
* @return bool true if the InputOption object exists, false otherwise
*
* @api
*/
@ -340,7 +340,7 @@ class InputDefinition
*
* @param string $name The InputOption shortcut
*
* @return Boolean true if the InputOption object exists, false otherwise
* @return bool true if the InputOption object exists, false otherwise
*/
public function hasShortcut($name)
{

View File

@ -33,7 +33,7 @@ interface InputInterface
*
* @param string|array $values The values to look for in the raw parameters (can be an array)
*
* @return Boolean true if the value is contained in the raw parameters
* @return bool true if the value is contained in the raw parameters
*/
public function hasParameterOption($values);
@ -97,7 +97,7 @@ interface InputInterface
*
* @param string|int $name The InputArgument name or position
*
* @return Boolean true if the InputArgument object exists, false otherwise
* @return bool true if the InputArgument object exists, false otherwise
*/
public function hasArgument($name);
@ -132,14 +132,14 @@ interface InputInterface
*
* @param string $name The InputOption name
*
* @return Boolean true if the InputOption object exists, false otherwise
* @return bool true if the InputOption object exists, false otherwise
*/
public function hasOption($name);
/**
* Is this input means interactive?
*
* @return Boolean
* @return bool
*/
public function isInteractive();

View File

@ -112,7 +112,7 @@ class InputOption
/**
* Returns true if the option accepts a value.
*
* @return Boolean true if value mode is not self::VALUE_NONE, false otherwise
* @return bool true if value mode is not self::VALUE_NONE, false otherwise
*/
public function acceptValue()
{
@ -122,7 +122,7 @@ class InputOption
/**
* Returns true if the option requires a value.
*
* @return Boolean true if value mode is self::VALUE_REQUIRED, false otherwise
* @return bool true if value mode is self::VALUE_REQUIRED, false otherwise
*/
public function isValueRequired()
{
@ -132,7 +132,7 @@ class InputOption
/**
* Returns true if the option takes an optional value.
*
* @return Boolean true if value mode is self::VALUE_OPTIONAL, false otherwise
* @return bool true if value mode is self::VALUE_OPTIONAL, false otherwise
*/
public function isValueOptional()
{
@ -142,7 +142,7 @@ class InputOption
/**
* Returns true if the option can take multiple values.
*
* @return Boolean true if mode is self::VALUE_IS_ARRAY, false otherwise
* @return bool true if mode is self::VALUE_IS_ARRAY, false otherwise
*/
public function isArray()
{
@ -197,7 +197,7 @@ class InputOption
* Checks whether the given option equals this one
*
* @param InputOption $option option to compare
* @return Boolean
* @return bool
*/
public function equals(InputOption $option)
{

View File

@ -104,7 +104,7 @@ class ConsoleOutput extends StreamOutput implements ConsoleOutputInterface
* STDOUT and doesn't properly convert ASCII to EBCDIC, resulting in garbage
* output.
*
* @return boolean
* @return bool
*/
protected function hasStdoutSupport()
{

View File

@ -69,7 +69,7 @@ interface OutputInterface
/**
* Gets the current verbosity of the output.
*
* @return integer The current level of verbosity (one of the VERBOSITY constants)
* @return int The current level of verbosity (one of the VERBOSITY constants)
*
* @api
*/
@ -87,7 +87,7 @@ interface OutputInterface
/**
* Gets the decorated flag.
*
* @return Boolean true if the output will decorate messages, false otherwise
* @return bool true if the output will decorate messages, false otherwise
*
* @api
*/

View File

@ -92,7 +92,7 @@ class StreamOutput extends Output
* - Windows without Ansicon and ConEmu
* - non tty consoles
*
* @return Boolean true if the stream supports colorization, false otherwise
* @return bool true if the stream supports colorization, false otherwise
*/
protected function hasColorSupport()
{

View File

@ -164,7 +164,7 @@ EOF;
*
* @param string $text The last segment of the entered text
*
* @return Boolean|array A list of guessed strings or true
* @return bool|array A list of guessed strings or true
*/
private function autocompleter($text)
{

View File

@ -55,7 +55,7 @@ class ApplicationTester
* @param array $input An array of arguments and options
* @param array $options An array of options
*
* @return integer The command exit code
* @return int The command exit code
*/
public function run(array $input, $options = array())
{

View File

@ -50,7 +50,7 @@ class CommandTester
* @param array $input An array of arguments and options
* @param array $options An array of options
*
* @return integer The command exit code
* @return int The command exit code
*/
public function execute(array $input, array $options = array())
{

View File

@ -28,7 +28,7 @@ interface HandlerInterface
* @param Reader $reader
* @param TokenStream $stream
*
* @return boolean
* @return bool
*/
public function handle(Reader $reader, TokenStream $stream);
}

View File

@ -81,7 +81,7 @@ class Token
}
/**
* @return boolean
* @return bool
*/
public function isFileEnd()
{
@ -91,7 +91,7 @@ class Token
/**
* @param array $values
*
* @return boolean
* @return bool
*/
public function isDelimiter(array $values = array())
{
@ -107,7 +107,7 @@ class Token
}
/**
* @return boolean
* @return bool
*/
public function isWhitespace()
{
@ -115,7 +115,7 @@ class Token
}
/**
* @return boolean
* @return bool
*/
public function isIdentifier()
{
@ -123,7 +123,7 @@ class Token
}
/**
* @return boolean
* @return bool
*/
public function isHash()
{
@ -131,7 +131,7 @@ class Token
}
/**
* @return boolean
* @return bool
*/
public function isNumber()
{
@ -139,7 +139,7 @@ class Token
}
/**
* @return boolean
* @return bool
*/
public function isString()
{

View File

@ -30,7 +30,7 @@ class TokenStream
private $tokens = array();
/**
* @var boolean
* @var bool
*/
private $frozen = false;
@ -50,7 +50,7 @@ class TokenStream
private $peeked = null;
/**
* @var boolean
* @var bool
*/
private $peeking = false;

View File

@ -73,7 +73,7 @@ class NodeExtension extends AbstractExtension
/**
* @param int $flag
*
* @return boolean
* @return bool
*/
public function hasFlag($flag)
{
@ -261,7 +261,7 @@ class NodeExtension extends AbstractExtension
*
* @param string $name
*
* @return boolean
* @return bool
*/
private function isSafeName($name)
{

View File

@ -36,7 +36,7 @@ class Alias
/**
* Checks if this DI Alias should be public or not.
*
* @return Boolean
* @return bool
*
* @api
*/

View File

@ -109,7 +109,7 @@ class InlineServiceDefinitionsPass implements RepeatablePassInterface
* @param string $id
* @param Definition $definition
*
* @return Boolean If the definition is inlineable
* @return bool If the definition is inlineable
*/
private function isInlineableDefinition(ContainerBuilder $container, $id, Definition $definition)
{

View File

@ -22,7 +22,7 @@ use Symfony\Component\DependencyInjection\Exception\InvalidArgumentException;
class RepeatedPass implements CompilerPassInterface
{
/**
* @var Boolean
* @var bool
*/
private $repeat = false;

View File

@ -41,7 +41,7 @@ class ServiceReferenceGraph
*
* @param string $id Id to check
*
* @return Boolean
* @return bool
*/
public function hasNode($id)
{

View File

@ -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 bool 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 bool True if the value is a Definition instance
*/
public function isDefinition()
{

View File

@ -117,7 +117,7 @@ class Container implements IntrospectableContainerInterface
/**
* Returns true if the container parameter bag are frozen.
*
* @return Boolean true if the container parameter bag are frozen, false otherwise
* @return bool true if the container parameter bag are frozen, false otherwise
*
* @api
*/
@ -159,7 +159,7 @@ class Container implements IntrospectableContainerInterface
*
* @param string $name The parameter name
*
* @return Boolean The presence of parameter in container
* @return bool The presence of parameter in container
*
* @api
*/
@ -232,7 +232,7 @@ class Container implements IntrospectableContainerInterface
*
* @param string $id The service identifier
*
* @return Boolean true if the service is defined, false otherwise
* @return bool true if the service is defined, false otherwise
*
* @api
*/
@ -341,7 +341,7 @@ class Container implements IntrospectableContainerInterface
*
* @param string $id The service identifier
*
* @return Boolean true if service has already been initialized, false otherwise
* @return bool true if service has already been initialized, false otherwise
*/
public function initialized($id)
{
@ -498,7 +498,7 @@ class Container implements IntrospectableContainerInterface
*
* @param string $name The name of the scope
*
* @return Boolean
* @return bool
*
* @api
*/
@ -514,7 +514,7 @@ class Container implements IntrospectableContainerInterface
*
* @param string $name
*
* @return Boolean
* @return bool
*
* @api
*/

View File

@ -94,7 +94,7 @@ class ContainerBuilder extends Container implements TaggedContainerInterface
/**
* Checks if resources are tracked.
*
* @return Boolean true if resources are tracked, false otherwise
* @return bool true if resources are tracked, false otherwise
*/
public function isTrackingResources()
{
@ -168,7 +168,7 @@ class ContainerBuilder extends Container implements TaggedContainerInterface
*
* @param string $name The name of the extension
*
* @return Boolean If the extension exists
* @return bool If the extension exists
*
* @api
*/
@ -430,7 +430,7 @@ class ContainerBuilder extends Container implements TaggedContainerInterface
*
* @param string $id The service identifier
*
* @return Boolean true if the service is defined, false otherwise
* @return bool true if the service is defined, false otherwise
*
* @api
*/
@ -713,7 +713,7 @@ class ContainerBuilder extends Container implements TaggedContainerInterface
*
* @param string $id The service identifier
*
* @return Boolean true if the alias exists, false otherwise
* @return bool true if the alias exists, false otherwise
*
* @api
*/
@ -843,7 +843,7 @@ class ContainerBuilder extends Container implements TaggedContainerInterface
*
* @param string $id The service identifier
*
* @return Boolean true if the service definition exists, false otherwise
* @return bool true if the service definition exists, false otherwise
*
* @api
*/

View File

@ -65,7 +65,7 @@ interface ContainerInterface
*
* @param string $id The service identifier
*
* @return Boolean true if the service is defined, false otherwise
* @return bool true if the service is defined, false otherwise
*
* @api
*/
@ -89,7 +89,7 @@ interface ContainerInterface
*
* @param string $name The parameter name
*
* @return Boolean The presence of parameter in container
* @return bool The presence of parameter in container
*
* @api
*/
@ -137,7 +137,7 @@ interface ContainerInterface
*
* @param string $name
*
* @return Boolean
* @return bool
*
* @api
*/
@ -150,7 +150,7 @@ interface ContainerInterface
*
* @param string $name
*
* @return Boolean
* @return bool
*
* @api
*/

View File

@ -359,7 +359,7 @@ class Definition
*
* @param string $method The method name to search for
*
* @return Boolean
* @return bool
*
* @api
*/
@ -450,7 +450,7 @@ class Definition
*
* @param string $name
*
* @return Boolean
* @return bool
*
* @api
*/
@ -564,7 +564,7 @@ class Definition
/**
* Whether this service is public facing
*
* @return Boolean
* @return bool
*
* @api
*/
@ -592,7 +592,7 @@ class Definition
/**
* Whether this service is synchronized.
*
* @return Boolean
* @return bool
*
* @api
*/
@ -618,7 +618,7 @@ class Definition
/**
* Whether this service is lazy.
*
* @return Boolean
* @return bool
*/
public function isLazy()
{
@ -646,7 +646,7 @@ class Definition
* Whether this definition is synthetic, that is not constructed by the
* container, but dynamically injected.
*
* @return Boolean
* @return bool
*
* @api
*/
@ -676,7 +676,7 @@ class Definition
* Whether this definition is abstract, that means it merely serves as a
* template for other definitions.
*
* @return Boolean
* @return bool
*
* @api
*/

View File

@ -367,7 +367,7 @@ class PhpDumper extends Dumper
* @param string $id
* @param Definition $definition
*
* @return Boolean
* @return bool
*/
private function isSimpleInstance($id, $definition)
{
@ -1107,7 +1107,7 @@ EOF;
* @param bool $deep
* @param array $visited
*
* @return Boolean
* @return bool
*/
private function hasReference($id, array $arguments, $deep = false, $visited = array())
{

View File

@ -111,7 +111,7 @@ abstract class Extension implements ExtensionInterface, ConfigurationExtensionIn
* @param ContainerBuilder $container
* @param array $config
*
* @return Boolean Whether the configuration is enabled
* @return bool Whether the configuration is enabled
*
* @throws InvalidArgumentException When the config is not enableable
*/

View File

@ -25,7 +25,7 @@ interface IntrospectableContainerInterface extends ContainerInterface
*
* @param string $id
*
* @return Boolean true if the service has been initialized, false otherwise
* @return bool true if the service has been initialized, false otherwise
*
*/
public function initialized($id);

View File

@ -52,7 +52,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 bool true if this class supports the given resource, false otherwise
*/
public function supports($resource, $type = null)
{

View File

@ -53,7 +53,7 @@ class IniFileLoader 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 bool true if this class supports the given resource, false otherwise
*/
public function supports($resource, $type = null)
{

View File

@ -48,7 +48,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 bool true if this class supports the given resource, false otherwise
*/
public function supports($resource, $type = null)
{

View File

@ -66,7 +66,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 bool true if this class supports the given resource, false otherwise
*/
public function supports($resource, $type = null)
{
@ -279,7 +279,7 @@ class XmlFileLoader extends FileLoader
*
* @param \DOMDocument $dom
*
* @return Boolean
* @return bool
*
* @throws RuntimeException When extension references a non-existent XSD file
*/

View File

@ -73,7 +73,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 bool true if this class supports the given resource, false otherwise
*/
public function supports($resource, $type = null)
{

View File

@ -129,7 +129,7 @@ class ParameterBag implements ParameterBagInterface
*
* @param string $name The parameter name
*
* @return Boolean true if the parameter name is defined, false otherwise
* @return bool true if the parameter name is defined, false otherwise
*
* @api
*/

View File

@ -75,7 +75,7 @@ interface ParameterBagInterface
*
* @param string $name The parameter name
*
* @return Boolean true if the parameter name is defined, false otherwise
* @return bool true if the parameter name is defined, false otherwise
*
* @api
*/

View File

@ -63,7 +63,7 @@ class Reference
/**
* Returns true when this Reference is strict
*
* @return Boolean
* @return bool
*/
public function isStrict()
{

View File

@ -27,7 +27,7 @@ class ChoiceFormField extends FormField
*/
private $type;
/**
* @var Boolean
* @var bool
*/
private $multiple;
/**
@ -38,7 +38,7 @@ class ChoiceFormField extends FormField
/**
* Returns true if the field should be included in the submitted values.
*
* @return Boolean true if the field should be included in the submitted values, false otherwise
* @return bool true if the field should be included in the submitted values, false otherwise
*/
public function hasValue()
{
@ -53,7 +53,7 @@ class ChoiceFormField extends FormField
/**
* Check if the current selected option is disabled
*
* @return Boolean
* @return bool
*/
public function isDisabled()
{
@ -188,7 +188,7 @@ class ChoiceFormField extends FormField
/**
* Returns true if the field accepts multiple values.
*
* @return Boolean true if the field accepts multiple values, false otherwise
* @return bool true if the field accepts multiple values, false otherwise
*/
public function isMultiple()
{

View File

@ -39,7 +39,7 @@ abstract class FormField
*/
protected $xpath;
/**
* @var Boolean
* @var bool
*/
protected $disabled;
@ -98,7 +98,7 @@ abstract class FormField
/**
* Returns true if the field should be included in the submitted values.
*
* @return Boolean true if the field should be included in the submitted values, false otherwise
* @return bool true if the field should be included in the submitted values, false otherwise
*/
public function hasValue()
{
@ -108,7 +108,7 @@ abstract class FormField
/**
* Check if the current field is disabled
*
* @return Boolean
* @return bool
*/
public function isDisabled()
{

View File

@ -228,7 +228,7 @@ class Form extends Link implements \ArrayAccess
*
* @param string $name The field name
*
* @return Boolean true if the field exists, false otherwise
* @return bool true if the field exists, false otherwise
*
* @api
*/
@ -296,7 +296,7 @@ class Form extends Link implements \ArrayAccess
*
* @param string $name The field name
*
* @return Boolean true if the field exists, false otherwise
* @return bool true if the field exists, false otherwise
*/
public function offsetExists($name)
{

View File

@ -99,7 +99,7 @@ class FormFieldRegistry
*
* @param string $name The fully qualified name of the field
*
* @return Boolean Whether the form has the given field
* @return bool Whether the form has the given field
*/
public function has($name)
{

View File

@ -30,7 +30,7 @@ namespace Symfony\Component\EventDispatcher;
class Event
{
/**
* @var Boolean Whether no further event listeners should be triggered
* @var bool Whether no further event listeners should be triggered
*/
private $propagationStopped = false;
@ -48,7 +48,7 @@ class Event
* Returns whether further event listeners should be triggered.
*
* @see Event::stopPropagation
* @return Boolean Whether propagation was already stopped for this event.
* @return bool Whether propagation was already stopped for this event.
*
* @api
*/

View File

@ -90,7 +90,7 @@ interface EventDispatcherInterface
*
* @param string $eventName The name of the event
*
* @return Boolean true if the specified event has any listeners, false otherwise
* @return bool true if the specified event has any listeners, false otherwise
*/
public function hasListeners($eventName = null);
}

View File

@ -118,7 +118,7 @@ class GenericEvent extends Event implements \ArrayAccess, \IteratorAggregate
*
* @param string $key Key of arguments array.
*
* @return boolean
* @return bool
*/
public function hasArgument($key)
{
@ -167,7 +167,7 @@ class GenericEvent extends Event implements \ArrayAccess, \IteratorAggregate
*
* @param string $key Array key.
*
* @return boolean
* @return bool
*/
public function offsetExists($key)
{

View File

@ -88,7 +88,7 @@ class Filesystem
*
* @param string|array|\Traversable $files A filename, an array of files, or a \Traversable instance to check
*
* @return Boolean true if the file exists, false otherwise
* @return bool true if the file exists, false otherwise
*/
public function exists($files)
{
@ -410,7 +410,7 @@ class Filesystem
*
* @param string $file A file path
*
* @return Boolean
* @return bool
*/
public function isAbsolutePath($file)
{

View File

@ -956,7 +956,7 @@ class FilesystemTest extends \PHPUnit_Framework_TestCase
*
* @param string $filePath
*
* @return integer
* @return int
*/
private function getFilePermissions($filePath)
{

View File

@ -230,7 +230,7 @@ abstract class AbstractAdapter implements AdapterInterface
*
* @see isSupported
*
* @return Boolean Whether the adapter is supported
* @return bool Whether the adapter is supported
*/
abstract protected function canBeUsed();
}

View File

@ -131,7 +131,7 @@ interface AdapterInterface
/**
* Tests adapter support for current platform.
*
* @return Boolean
* @return bool
*/
public function isSupported();

View File

@ -76,7 +76,7 @@ class Comparator
*
* @param mixed $test A test value
*
* @return Boolean
* @return bool
*/
public function test($test)
{

View File

@ -46,7 +46,7 @@ class CustomFilterIterator extends FilterIterator
/**
* Filters the iterator values.
*
* @return Boolean true if the value should be kept, false otherwise
* @return bool true if the value should be kept, false otherwise
*/
public function accept()
{

Some files were not shown because too many files have changed in this diff Show More