made phpdoc types consistent with those defined in Hack

This commit is contained in:
Fabien Potencier 2014-04-12 19:54:57 +02:00
parent 0555b7f2ab
commit 3c9c10f3a0
251 changed files with 639 additions and 639 deletions

View File

@ -60,7 +60,7 @@ class WebProcessorTest extends \PHPUnit_Framework_TestCase
}
/**
* @param integer $level
* @param int $level
* @param string $message
*
* @return array Record

View File

@ -39,7 +39,7 @@ class LazyServiceProjectServiceContainer extends Container
* This service is shared.
* This method always returns the same instance of the service.
*
* @param boolean $lazyLoad whether to try lazy-loading the service with a proxy
* @param bool $lazyLoad whether to try lazy-loading the service with a proxy
*
* @return stdClass A stdClass instance.
*/

View File

@ -34,7 +34,7 @@ class MessageDataCollector extends DataCollector
* to avoid the creation of these objects when no emails are sent.
*
* @param ContainerInterface $container A ContainerInterface instance
* @param Boolean $isSpool
* @param bool $isSpool
*/
public function __construct(ContainerInterface $container, $isSpool)
{

View File

@ -157,7 +157,7 @@ class CodeExtension extends \Twig_Extension
* Formats a file path.
*
* @param string $file An absolute file path
* @param integer $line The line number
* @param int $line The line number
* @param string $text Use this text for the link rather than the file path
*
* @return string
@ -186,7 +186,7 @@ class CodeExtension extends \Twig_Extension
* Returns the link for a given file/line pair.
*
* @param string $file An absolute file path
* @param integer $line The line number
* @param int $line The line number
*
* @return string A link of false
*/

View File

@ -412,7 +412,7 @@ EOF
* Renders list of tagged services grouped by tag
*
* @param OutputInterface $output
* @param Boolean $showPrivate
* @param bool $showPrivate
*/
protected function outputTags(OutputInterface $output, $showPrivate = false)
{

View File

@ -38,7 +38,7 @@ class Controller extends ContainerAware
*
* @param string $route The name of the route
* @param mixed $parameters An array of parameters
* @param Boolean|string $referenceType The type of reference (one of the constants in UrlGeneratorInterface)
* @param bool|string $referenceType The type of reference (one of the constants in UrlGeneratorInterface)
*
* @return string The generated URL
*
@ -70,7 +70,7 @@ class Controller extends ContainerAware
* Returns a RedirectResponse to the given URL.
*
* @param string $url The URL to redirect to
* @param integer $status The status code to use for the Response
* @param int $status The status code to use for the Response
*
* @return RedirectResponse
*/

View File

@ -36,8 +36,8 @@ class RedirectController extends ContainerAware
*
* @param Request $request The request instance
* @param string $route The route name to redirect to
* @param Boolean $permanent Whether the redirection is permanent
* @param Boolean|array $ignoreAttributes Whether to ignore attributes or an array of attributes to ignore
* @param bool $permanent Whether the redirection is permanent
* @param bool|array $ignoreAttributes Whether to ignore attributes or an array of attributes to ignore
*
* @return Response A Response instance
*
@ -72,10 +72,10 @@ class RedirectController extends ContainerAware
*
* @param Request $request The request instance
* @param string $path The absolute path or URL to redirect to
* @param Boolean $permanent Whether the redirect is permanent or not
* @param bool $permanent Whether the redirect is permanent or not
* @param string|null $scheme The URL scheme (null to keep the current one)
* @param integer|null $httpPort The HTTP port (null to keep the current one for the same scheme or the configured port in the container)
* @param integer|null $httpsPort The HTTPS port (null to keep the current one for the same scheme or the configured port in the container)
* @param int |null $httpPort The HTTP port (null to keep the current one for the same scheme or the configured port in the container)
* @param int |null $httpsPort The HTTPS port (null to keep the current one for the same scheme or the configured port in the container)
*
* @return Response A Response instance
*

View File

@ -27,7 +27,7 @@ class TemplateController extends ContainerAware
* @param string $template The template name
* @param int|null $maxAge Max age for client caching
* @param int|null $sharedAge Max age for shared (proxy) caching
* @param Boolean|null $private Whether or not caching should apply for client caches only
* @param bool|null $private Whether or not caching should apply for client caches only
*
* @return Response A Response instance
*/

View File

@ -46,7 +46,7 @@ abstract class HttpCache extends BaseHttpCache
* Forwards the Request to the backend and returns the Response.
*
* @param Request $request A Request instance
* @param Boolean $raw Whether to catch exceptions or not
* @param bool $raw Whether to catch exceptions or not
* @param Response $entry A Response instance (the stale entry if present, null otherwise)
*
* @return Response A Response instance

View File

@ -151,7 +151,7 @@ class CodeHelper extends Helper
* Formats a file path.
*
* @param string $file An absolute file path
* @param integer $line The line number
* @param int $line The line number
* @param string $text Use this text for the link rather than the file path
*
* @return string
@ -180,7 +180,7 @@ class CodeHelper extends Helper
* Returns the link for a given file/line pair.
*
* @param string $file An absolute file path
* @param integer $line The line number
* @param int $line The line number
*
* @return string A link of false
*/

View File

@ -38,7 +38,7 @@ class RouterHelper extends Helper
*
* @param string $name The name of the route
* @param mixed $parameters An array of parameters
* @param Boolean|string $referenceType The type of reference (one of the constants in UrlGeneratorInterface)
* @param bool|string $referenceType The type of reference (one of the constants in UrlGeneratorInterface)
*
* @return string The generated URL
*

View File

@ -57,7 +57,7 @@ class FilesystemLoader implements LoaderInterface
* Returns true if the template is still fresh.
*
* @param TemplateReferenceInterface $template The template name as an array
* @param integer $time The last modification time of the cached template (timestamp)
* @param int $time The last modification time of the cached template (timestamp)
*
* @return Boolean
*/

View File

@ -56,7 +56,7 @@ class TemplateLocator implements FileLocatorInterface
*
* @param TemplateReferenceInterface $template A template
* @param string $currentPath Unused
* @param Boolean $first Unused
* @param bool $first Unused
*
* @return string The full path for the file
*

View File

@ -82,7 +82,7 @@ class LogoutUrlHelper extends Helper
* Generates the logout URL for the firewall.
*
* @param string $key The firewall key
* @param Boolean|string $referenceType The type of reference (one of the constants in UrlGeneratorInterface)
* @param bool|string $referenceType The type of reference (one of the constants in UrlGeneratorInterface)
*
* @return string The logout URL
*

View File

@ -64,7 +64,7 @@ class ExceptionController
}
/**
* @param integer $startObLevel
* @param int $startObLevel
*
* @return string
*/
@ -86,8 +86,8 @@ class ExceptionController
/**
* @param Request $request
* @param string $format
* @param integer $code An HTTP response status code
* @param Boolean $debug
* @param int $code An HTTP response status code
* @param bool $debug
*
* @return TemplateReference
*/

View File

@ -70,7 +70,7 @@ abstract class Client
/**
* Sets whether to automatically follow redirects or not.
*
* @param Boolean $followRedirect Whether to follow redirects
* @param bool $followRedirect Whether to follow redirects
*
* @api
*/
@ -82,7 +82,7 @@ abstract class Client
/**
* Sets the maximum number of requests that crawler can follow.
*
* @param integer $maxRedirects
* @param int $maxRedirects
*/
public function setMaxRedirects($maxRedirects)
{
@ -93,7 +93,7 @@ abstract class Client
/**
* Sets the insulated flag.
*
* @param Boolean $insulated Whether to insulate the requests or not
* @param bool $insulated Whether to insulate the requests or not
*
* @throws \RuntimeException When Symfony Process Component is not installed
*
@ -287,7 +287,7 @@ abstract class Client
* @param array $files The files
* @param array $server The server parameters (HTTP headers are referenced with a HTTP_ prefix as PHP does)
* @param string $content The raw body data
* @param Boolean $changeHistory Whether to update the history or not (only used internally for back(), forward(), and reload())
* @param bool $changeHistory Whether to update the history or not (only used internally for back(), forward(), and reload())
*
* @return Crawler
*
@ -601,7 +601,7 @@ abstract class Client
* Makes a request from a Request object directly.
*
* @param Request $request A Request instance
* @param Boolean $changeHistory Whether to update the history or not (only used internally for back(), forward(), and reload())
* @param bool $changeHistory Whether to update the history or not (only used internally for back(), forward(), and reload())
*
* @return Crawler
*/

View File

@ -53,9 +53,9 @@ class Cookie
* @param string $expires The time the cookie expires
* @param string $path The path on the server in which the cookie will be available on
* @param string $domain The domain that the cookie is available
* @param Boolean $secure Indicates that the cookie should only be transmitted over a secure HTTPS connection from the client
* @param Boolean $httponly The cookie httponly flag
* @param Boolean $encodedValue Whether the value is encoded or not
* @param bool $secure Indicates that the cookie should only be transmitted over a secure HTTPS connection from the client
* @param bool $httponly The cookie httponly flag
* @param bool $encodedValue Whether the value is encoded or not
*
* @api
*/

View File

@ -201,7 +201,7 @@ class CookieJar
* Returns not yet expired cookie values for the given URI.
*
* @param string $uri A URI
* @param Boolean $returnsRawValue Returns raw value or urldecoded value
* @param bool $returnsRawValue Returns raw value or urldecoded value
*
* @return array An array of cookie values
*/

View File

@ -31,7 +31,7 @@ class Response
* then the value is an array of all the values.
*
* @param string $content The content of the response
* @param integer $status The response status code
* @param int $status The response status code
* @param array $headers An array of headers
*
* @api
@ -117,7 +117,7 @@ class Response
* Gets a response header.
*
* @param string $header The header name
* @param Boolean $first Whether to return the first value or all header values
* @param bool $first Whether to return the first value or all header values
*
* @return string|array The first header value if $first is true, an array of values otherwise
*/

View File

@ -79,7 +79,7 @@ class ApcClassLoader
/**
* Registers this instance as an autoloader.
*
* @param Boolean $prepend Whether to prepend the autoloader or not
* @param bool $prepend Whether to prepend the autoloader or not
*/
public function register($prepend = false)
{

View File

@ -28,8 +28,8 @@ class ClassCollectionLoader
* @param array $classes An array of classes to load
* @param string $cacheDir A cache directory
* @param string $name The cache name prefix
* @param Boolean $autoReload Whether to flush the cache when the cache is stale or not
* @param Boolean $adaptive Whether to remove already declared classes or not
* @param bool $autoReload Whether to flush the cache when the cache is stale or not
* @param bool $adaptive Whether to remove already declared classes or not
* @param string $extension File extension of the resulting file
*
* @throws \InvalidArgumentException When class can't be loaded

View File

@ -103,7 +103,7 @@ class ClassLoader
/**
* Turns on searching the include for class files.
*
* @param Boolean $useIncludePath
* @param bool $useIncludePath
*/
public function setUseIncludePath($useIncludePath)
{
@ -124,7 +124,7 @@ class ClassLoader
/**
* Registers this instance as an autoloader.
*
* @param Boolean $prepend Whether to prepend the autoloader or not
* @param bool $prepend Whether to prepend the autoloader or not
*/
public function register($prepend = false)
{

View File

@ -33,7 +33,7 @@ class MapClassLoader
/**
* Registers this instance as an autoloader.
*
* @param Boolean $prepend Whether to prepend the autoloader or not
* @param bool $prepend Whether to prepend the autoloader or not
*/
public function register($prepend = false)
{

View File

@ -70,7 +70,7 @@ class UniversalClassLoader
* Turns on searching the include for class files. Allows easy loading
* of installed PEAR packages
*
* @param Boolean $useIncludePath
* @param bool $useIncludePath
*/
public function useIncludePath($useIncludePath)
{
@ -229,7 +229,7 @@ class UniversalClassLoader
/**
* Registers this instance as an autoloader.
*
* @param Boolean $prepend Whether to prepend the autoloader or not
* @param bool $prepend Whether to prepend the autoloader or not
*
* @api
*/

View File

@ -76,7 +76,7 @@ class WinCacheClassLoader
/**
* Registers this instance as an autoloader.
*
* @param Boolean $prepend Whether to prepend the autoloader or not
* @param bool $prepend Whether to prepend the autoloader or not
*/
public function register($prepend = false)
{

View File

@ -73,7 +73,7 @@ class XcacheClassLoader
/**
* Registers this instance as an autoloader.
*
* @param Boolean $prepend Whether to prepend the autoloader or not
* @param bool $prepend Whether to prepend the autoloader or not
*/
public function register($prepend = false)
{

View File

@ -32,7 +32,7 @@ class ConfigCache
* Constructor.
*
* @param string $file The absolute cache path
* @param Boolean $debug Whether debugging is enabled or not
* @param bool $debug Whether debugging is enabled or not
*/
public function __construct($file, $debug)
{

View File

@ -109,7 +109,7 @@ class ArrayNode extends BaseNode implements PrototypeNodeInterface
* Sets whether to add default values for this array if it has not been
* defined in any of the configuration files.
*
* @param Boolean $boolean
* @param bool $boolean
*/
public function setAddIfNotSet($boolean)
{
@ -119,7 +119,7 @@ class ArrayNode extends BaseNode implements PrototypeNodeInterface
/**
* Sets whether false is allowed as value indicating that the array should be unset.
*
* @param Boolean $allow
* @param bool $allow
*/
public function setAllowFalse($allow)
{
@ -129,7 +129,7 @@ class ArrayNode extends BaseNode implements PrototypeNodeInterface
/**
* Sets whether new keys can be defined in subsequent configurations.
*
* @param Boolean $allow
* @param bool $allow
*/
public function setAllowNewKeys($allow)
{
@ -139,7 +139,7 @@ class ArrayNode extends BaseNode implements PrototypeNodeInterface
/**
* Sets if deep merging should occur.
*
* @param Boolean $boolean
* @param bool $boolean
*/
public function setPerformDeepMerging($boolean)
{
@ -149,7 +149,7 @@ class ArrayNode extends BaseNode implements PrototypeNodeInterface
/**
* Whether extra keys should just be ignore without an exception.
*
* @param Boolean $boolean To allow extra keys
* @param bool $boolean To allow extra keys
*/
public function setIgnoreExtraKeys($boolean)
{

View File

@ -138,7 +138,7 @@ abstract class BaseNode implements NodeInterface
/**
* Set this node as required.
*
* @param Boolean $boolean Required node
* @param bool $boolean Required node
*/
public function setRequired($boolean)
{
@ -148,7 +148,7 @@ abstract class BaseNode implements NodeInterface
/**
* Sets if this node can be overridden.
*
* @param Boolean $allow
* @param bool $allow
*/
public function setAllowOverwrite($allow)
{

View File

@ -105,7 +105,7 @@ class ArrayNodeDefinition extends NodeDefinition implements ParentNodeDefinition
/**
* Adds children with a default value when none are defined.
*
* @param integer|string|array|null $children The number of children|The child name|The children names to be added
* @param int |string|array|null $children The number of children|The child name|The children names to be added
*
* This method is applicable to prototype nodes only.
*
@ -185,7 +185,7 @@ class ArrayNodeDefinition extends NodeDefinition implements ParentNodeDefinition
* This method is applicable to prototype nodes only.
*
* @param string $name The name of the key
* @param Boolean $removeKeyItem Whether or not the key item should be removed.
* @param bool $removeKeyItem Whether or not the key item should be removed.
*
* @return ArrayNodeDefinition
*/
@ -200,7 +200,7 @@ class ArrayNodeDefinition extends NodeDefinition implements ParentNodeDefinition
/**
* Sets whether the node can be unset.
*
* @param Boolean $allow
* @param bool $allow
*
* @return ArrayNodeDefinition
*/
@ -303,7 +303,7 @@ class ArrayNodeDefinition extends NodeDefinition implements ParentNodeDefinition
/**
* Sets key normalization.
*
* @param Boolean $bool Whether to enable key normalization
* @param bool $bool Whether to enable key normalization
*
* @return ArrayNodeDefinition
*/

View File

@ -37,7 +37,7 @@ class MergeBuilder
/**
* Sets whether the node can be unset.
*
* @param Boolean $allow
* @param bool $allow
*
* @return MergeBuilder
*/
@ -51,7 +51,7 @@ class MergeBuilder
/**
* Sets whether the node can be overwritten.
*
* @param Boolean $deny Whether the overwriting is forbidden or not
* @param bool $deny Whether the overwriting is forbidden or not
*
* @return MergeBuilder
*/

View File

@ -120,7 +120,7 @@ abstract class NodeDefinition implements NodeParentInterface
/**
* Creates the node.
*
* @param Boolean $forceRootNode Whether to force this node as the root node
* @param bool $forceRootNode Whether to force this node as the root node
*
* @return NodeInterface
*/
@ -282,7 +282,7 @@ abstract class NodeDefinition implements NodeParentInterface
/**
* Sets whether the node can be overwritten.
*
* @param Boolean $deny Whether the overwriting is forbidden or not
* @param bool $deny Whether the overwriting is forbidden or not
*
* @return NodeDefinition
*/

View File

@ -48,7 +48,7 @@ class PrototypedArrayNode extends ArrayNode
* Sets the minimum number of elements that a prototype based node must
* contain. By default this is zero, meaning no elements.
*
* @param integer $number
* @param int $number
*/
public function setMinNumberOfElements($number)
{
@ -77,7 +77,7 @@ class PrototypedArrayNode extends ArrayNode
* array, then you can set the second argument of this method to false.
*
* @param string $attribute The name of the attribute which value is to be used as a key
* @param Boolean $remove Whether or not to remove the key
* @param bool $remove Whether or not to remove the key
*/
public function setKeyAttribute($attribute, $remove = true)
{
@ -124,7 +124,7 @@ class PrototypedArrayNode extends ArrayNode
/**
* Adds default children when none are set.
*
* @param integer|string|array|null $children The number of children|The child name|The children names to be added
* @param int |string|array|null $children The number of children|The child name|The children names to be added
*/
public function setAddChildrenIfNoneSet($children = array('defaults'))
{

View File

@ -39,7 +39,7 @@ class ReferenceDumper
/**
* @param NodeInterface $node
* @param integer $depth
* @param int $depth
*/
private function writeNode(NodeInterface $node, $depth = 0)
{

View File

@ -55,7 +55,7 @@ class VariableNode extends BaseNode implements PrototypeNodeInterface
/**
* Sets if this node is allowed to have an empty value.
*
* @param Boolean $boolean True if this entity will accept empty values.
* @param bool $boolean True if this entity will accept empty values.
*/
public function setAllowEmptyValue($boolean)
{

View File

@ -21,7 +21,7 @@ class FileLoaderLoadException extends \Exception
/**
* @param string $resource The resource that could not be imported
* @param string $sourceResource The original resource importing the new resource
* @param integer $code The error code
* @param int $code The error code
* @param \Exception $previous A previous exception
*/
public function __construct($resource, $sourceResource = null, $code = null, $previous = null)

View File

@ -35,7 +35,7 @@ class FileLocator implements FileLocatorInterface
*
* @param mixed $name The file name to locate
* @param string $currentPath The current path
* @param Boolean $first Whether to return the first occurrence or an array of filenames
* @param bool $first Whether to return the first occurrence or an array of filenames
*
* @return string|array The full path to the file|An array of file paths
*

View File

@ -21,7 +21,7 @@ interface FileLocatorInterface
*
* @param mixed $name The file name to locate
* @param string $currentPath The current path
* @param Boolean $first Whether to return the first occurrence or an array of filenames
* @param bool $first Whether to return the first occurrence or an array of filenames
*
* @return string|array The full path to the file|An array of file paths
*

View File

@ -53,7 +53,7 @@ abstract class FileLoader extends Loader
*
* @param mixed $resource A Resource
* @param string $type The resource type
* @param Boolean $ignoreErrors Whether to ignore import errors or not
* @param bool $ignoreErrors Whether to ignore import errors or not
* @param string $sourceResource The original resource importing the new resource
*
* @return mixed

View File

@ -61,7 +61,7 @@ class DirectoryResource implements ResourceInterface, \Serializable
/**
* Returns true if the resource has not been updated since the given timestamp.
*
* @param integer $timestamp The last time the resource was loaded
* @param int $timestamp The last time the resource was loaded
*
* @return Boolean true if the resource has not been updated, false otherwise
*/

View File

@ -55,7 +55,7 @@ class FileResource implements ResourceInterface, \Serializable
/**
* Returns true if the resource has not been updated since the given timestamp.
*
* @param integer $timestamp The last time the resource was loaded
* @param int $timestamp The last time the resource was loaded
*
* @return Boolean true if the resource has not been updated, false otherwise
*/

View File

@ -28,7 +28,7 @@ interface ResourceInterface
/**
* Returns true if the resource has not been updated since the given timestamp.
*
* @param integer $timestamp The last time the resource was loaded
* @param int $timestamp The last time the resource was loaded
*
* @return Boolean true if the resource has not been updated, false otherwise
*/

View File

@ -117,7 +117,7 @@ class XmlUtils
* * The nested-tags are converted to keys (<foo><foo>bar</foo></foo>)
*
* @param \DomElement $element A \DomElement instance
* @param Boolean $checkPrefix Check prefix in an element or an attribute name
* @param bool $checkPrefix Check prefix in an element or an attribute name
*
* @return array A PHP array
*/

View File

@ -270,7 +270,7 @@ class Application
/**
* Sets whether to catch exceptions or not during commands execution.
*
* @param Boolean $boolean Whether to catch exceptions or not during commands execution
* @param bool $boolean Whether to catch exceptions or not during commands execution
*
* @api
*/
@ -282,7 +282,7 @@ class Application
/**
* Sets whether to automatically exit after a command execution or not.
*
* @param Boolean $boolean Whether to automatically exit after a command execution or not
* @param bool $boolean Whether to automatically exit after a command execution or not
*
* @api
*/
@ -675,7 +675,7 @@ class Application
* Returns a text representation of the Application.
*
* @param string $namespace An optional namespace name
* @param boolean $raw Whether to return raw command list
* @param bool $raw Whether to return raw command list
*
* @return string A string representing the Application
*
@ -692,7 +692,7 @@ class Application
* Returns an XML representation of the Application.
*
* @param string $namespace An optional namespace name
* @param Boolean $asDom Whether to return a DOM or an XML string
* @param bool $asDom Whether to return a DOM or an XML string
*
* @return string|\DOMDocument An XML string representing the Application
*

View File

@ -279,7 +279,7 @@ class Command
*
* This method is not part of public API and should not be used directly.
*
* @param Boolean $mergeArgs Whether to merge or not the Application definition arguments to Command definition arguments
* @param bool $mergeArgs Whether to merge or not the Application definition arguments to Command definition arguments
*/
public function mergeApplicationDefinition($mergeArgs = true)
{
@ -354,7 +354,7 @@ class Command
* Adds an argument.
*
* @param string $name The argument name
* @param integer $mode The argument mode: InputArgument::REQUIRED or InputArgument::OPTIONAL
* @param int $mode The argument mode: InputArgument::REQUIRED or InputArgument::OPTIONAL
* @param string $description A description text
* @param mixed $default The default value (for InputArgument::OPTIONAL mode only)
*
@ -374,7 +374,7 @@ class Command
*
* @param string $name The option name
* @param string $shortcut The shortcut (can be null)
* @param integer $mode The option mode: One of the InputOption::VALUE_* constants
* @param int $mode The option mode: One of the InputOption::VALUE_* constants
* @param string $description A description text
* @param mixed $default The default value (must be null for InputOption::VALUE_REQUIRED or InputOption::VALUE_NONE)
*
@ -583,7 +583,7 @@ class Command
/**
* Returns an XML representation of the command.
*
* @param Boolean $asDom Whether to return a DOM or an XML string
* @param bool $asDom Whether to return a DOM or an XML string
*
* @return string|\DOMDocument An XML string representing the command
*

View File

@ -39,7 +39,7 @@ class ConsoleTerminateEvent extends ConsoleEvent
/**
* Sets the exit code.
*
* @param integer $exitCode The command exit code
* @param int $exitCode The command exit code
*/
public function setExitCode($exitCode)
{

View File

@ -39,7 +39,7 @@ class OutputFormatter implements OutputFormatterInterface
/**
* Initializes console output formatter.
*
* @param Boolean $decorated Whether this formatter should actually decorate strings
* @param bool $decorated Whether this formatter should actually decorate strings
* @param OutputFormatterStyleInterface[] $styles Array of "name => FormatterStyle" instances
*
* @api
@ -63,7 +63,7 @@ class OutputFormatter implements OutputFormatterInterface
/**
* Sets the decorated flag.
*
* @param Boolean $decorated Whether to decorate the messages or not
* @param bool $decorated Whether to decorate the messages or not
*
* @api
*/

View File

@ -23,7 +23,7 @@ interface OutputFormatterInterface
/**
* Sets the decorated flag.
*
* @param Boolean $decorated Whether to decorate the messages or not
* @param bool $decorated Whether to decorate the messages or not
*
* @api
*/

View File

@ -49,7 +49,7 @@ class DescriptorHelper extends Helper
* @param OutputInterface $output
* @param object $object
* @param string $format
* @param boolean $raw
* @param bool $raw
*/
public function describe(OutputInterface $output, $object, $format = null, $raw = false, $namespace = null)
{

View File

@ -31,10 +31,10 @@ class DialogHelper extends Helper
* @param OutputInterface $output An Output instance
* @param string|array $question The question to ask
* @param array $choices List of choices to pick from
* @param Boolean|string $default The default answer if the user enters nothing
* @param Boolean|integer $attempts Max number of times to ask before giving up (false by default, which means infinite)
* @param bool|string $default The default answer if the user enters nothing
* @param bool|integer $attempts Max number of times to ask before giving up (false by default, which means infinite)
* @param string $errorMessage Message which will be shown if invalid value from choice list would be picked
* @param Boolean $multiselect Select more than one value separated by comma
* @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)
*
@ -223,7 +223,7 @@ class DialogHelper extends Helper
*
* @param OutputInterface $output An Output instance
* @param string|array $question The question to ask
* @param Boolean $default The default answer if the user enters nothing
* @param bool $default The default answer if the user enters nothing
*
* @return Boolean true if the user has confirmed, false otherwise
*/
@ -246,7 +246,7 @@ class DialogHelper extends Helper
*
* @param OutputInterface $output An Output instance
* @param string|array $question The question
* @param Boolean $fallback In case the response can not be hidden, whether to fallback on non-hidden question or not
* @param bool $fallback In case the response can not be hidden, whether to fallback on non-hidden question or not
*
* @return string The answer
*
@ -321,7 +321,7 @@ class DialogHelper extends Helper
* @param OutputInterface $output An Output instance
* @param string|array $question The question to ask
* @param callable $validator A PHP callback
* @param integer $attempts Max number of times to ask before giving up (false by default, which means infinite)
* @param int $attempts Max number of times to ask before giving up (false by default, which means infinite)
* @param string $default The default answer if none is given by the user
* @param array $autocomplete List of values to autocomplete
*
@ -350,8 +350,8 @@ class DialogHelper extends Helper
* @param OutputInterface $output An Output instance
* @param string|array $question The question to ask
* @param callable $validator A PHP callback
* @param integer $attempts Max number of times to ask before giving up (false by default, which means infinite)
* @param Boolean $fallback In case the response can not be hidden, whether to fallback on non-hidden question or not
* @param int $attempts Max number of times to ask before giving up (false by default, which means infinite)
* @param bool $fallback In case the response can not be hidden, whether to fallback on non-hidden question or not
*
* @return string The response
*
@ -444,7 +444,7 @@ class DialogHelper extends Helper
* @param callable $interviewer A callable that will ask for a question and return the result
* @param OutputInterface $output An Output instance
* @param callable $validator A PHP callback
* @param integer $attempts Max number of times to ask before giving up ; false will ask infinitely
* @param int $attempts Max number of times to ask before giving up ; false will ask infinitely
*
* @return string The validated response
*

View File

@ -39,7 +39,7 @@ class FormatterHelper extends Helper
*
* @param string|array $messages The message to write in the block
* @param string $style The style to apply to the whole block
* @param Boolean $large Whether to return a large block
* @param bool $large Whether to return a large block
*
* @return string The formatter message
*/

View File

@ -178,7 +178,7 @@ class ProgressHelper extends Helper
* Starts the progress output.
*
* @param OutputInterface $output An Output instance
* @param integer|null $max Maximum steps
* @param int |null $max Maximum steps
*/
public function start(OutputInterface $output, $max = null)
{
@ -220,8 +220,8 @@ class ProgressHelper extends Helper
/**
* Advances the progress output X steps.
*
* @param integer $step Number of steps to advance
* @param Boolean $redraw Whether to redraw or not
* @param int $step Number of steps to advance
* @param bool $redraw Whether to redraw or not
*
* @throws \LogicException
*/
@ -248,8 +248,8 @@ class ProgressHelper extends Helper
/**
* Sets the current progress.
*
* @param integer $current The current progress
* @param Boolean $redraw Whether to redraw or not
* @param int $current The current progress
* @param bool $redraw Whether to redraw or not
*
* @throws \LogicException
*/
@ -282,7 +282,7 @@ class ProgressHelper extends Helper
/**
* Outputs the current progress string.
*
* @param Boolean $finish Forces the end result
* @param bool $finish Forces the end result
*
* @throws \LogicException
*/
@ -343,7 +343,7 @@ class ProgressHelper extends Helper
/**
* Generates the array map of format variables to values.
*
* @param Boolean $finish Forces the end result
* @param bool $finish Forces the end result
*
* @return array Array of format vars and values
*/
@ -401,7 +401,7 @@ class ProgressHelper extends Helper
/**
* Converts seconds into human-readable format.
*
* @param integer $secs Number of seconds
* @param int $secs Number of seconds
*
* @return string Time in readable format
*/

View File

@ -277,7 +277,7 @@ class TableHelper extends Helper
/**
* Sets cell padding type.
*
* @param integer $padType STR_PAD_*
* @param int $padType STR_PAD_*
*
* @return TableHelper
*/
@ -376,7 +376,7 @@ class TableHelper extends Helper
* Renders table cell with padding.
*
* @param array $row
* @param integer $column
* @param int $column
* @param string $cellFormat
*/
private function renderCell(array $row, $column, $cellFormat)
@ -425,7 +425,7 @@ class TableHelper extends Helper
/**
* Gets column width.
*
* @param integer $column
* @param int $column
*
* @return int
*/
@ -448,7 +448,7 @@ class TableHelper extends Helper
* Gets cell width.
*
* @param array $row
* @param integer $column
* @param int $column
*
* @return int
*/

View File

@ -90,7 +90,7 @@ abstract class Input implements InputInterface
/**
* Sets the input interactivity.
*
* @param Boolean $interactive If the input should be interactive
* @param bool $interactive If the input should be interactive
*/
public function setInteractive($interactive)
{

View File

@ -33,7 +33,7 @@ class InputArgument
* Constructor.
*
* @param string $name The argument name
* @param integer $mode The argument mode: self::REQUIRED or self::OPTIONAL
* @param int $mode The argument mode: self::REQUIRED or self::OPTIONAL
* @param string $description A description text
* @param mixed $default The default value (for self::OPTIONAL mode only)
*

View File

@ -433,7 +433,7 @@ class InputDefinition
/**
* Returns an XML representation of the InputDefinition.
*
* @param Boolean $asDom Whether to return a DOM or an XML string
* @param bool $asDom Whether to return a DOM or an XML string
*
* @return string|\DOMDocument An XML string representing the InputDefinition
*

View File

@ -146,7 +146,7 @@ interface InputInterface
/**
* Sets the input interactivity.
*
* @param Boolean $interactive If the input should be interactive
* @param bool $interactive If the input should be interactive
*/
public function setInteractive($interactive);
}

View File

@ -36,7 +36,7 @@ class InputOption
*
* @param string $name The option name
* @param string|array $shortcut The shortcuts, can be null, a string of shortcuts delimited by | or an array of shortcuts
* @param integer $mode The option mode: One of the VALUE_* constants
* @param int $mode The option mode: One of the VALUE_* constants
* @param string $description A description text
* @param mixed $default The default value (must be null for self::VALUE_REQUIRED or self::VALUE_NONE)
*

View File

@ -35,8 +35,8 @@ class ConsoleOutput extends StreamOutput implements ConsoleOutputInterface
/**
* Constructor.
*
* @param integer $verbosity The verbosity level (one of the VERBOSITY constants in OutputInterface)
* @param Boolean|null $decorated Whether to decorate messages (null for auto-guessing)
* @param int $verbosity The verbosity level (one of the VERBOSITY constants in OutputInterface)
* @param bool|null $decorated Whether to decorate messages (null for auto-guessing)
* @param OutputFormatterInterface|null $formatter Output formatter instance (null to use default OutputFormatter)
*
* @api

View File

@ -37,8 +37,8 @@ abstract class Output implements OutputInterface
/**
* Constructor.
*
* @param integer $verbosity The verbosity level (one of the VERBOSITY constants in OutputInterface)
* @param Boolean $decorated Whether to decorate messages
* @param int $verbosity The verbosity level (one of the VERBOSITY constants in OutputInterface)
* @param bool $decorated Whether to decorate messages
* @param OutputFormatterInterface|null $formatter Output formatter instance (null to use default OutputFormatter)
*
* @api
@ -139,7 +139,7 @@ abstract class Output implements OutputInterface
* Writes a message to the output.
*
* @param string $message A message to write to the output
* @param Boolean $newline Whether to add a newline or not
* @param bool $newline Whether to add a newline or not
*/
abstract protected function doWrite($message, $newline);
}

View File

@ -36,8 +36,8 @@ interface OutputInterface
* Writes a message to the output.
*
* @param string|array $messages The message as an array of lines or a single string
* @param Boolean $newline Whether to add a newline
* @param integer $type The type of output (one of the OUTPUT constants)
* @param bool $newline Whether to add a newline
* @param int $type The type of output (one of the OUTPUT constants)
*
* @throws \InvalidArgumentException When unknown output type is given
*
@ -49,7 +49,7 @@ interface OutputInterface
* Writes a message to the output and adds a newline at the end.
*
* @param string|array $messages The message as an array of lines of a single string
* @param integer $type The type of output (one of the OUTPUT constants)
* @param int $type The type of output (one of the OUTPUT constants)
*
* @throws \InvalidArgumentException When unknown output type is given
*
@ -60,7 +60,7 @@ interface OutputInterface
/**
* Sets the verbosity of the output.
*
* @param integer $level The level of verbosity (one of the VERBOSITY constants)
* @param int $level The level of verbosity (one of the VERBOSITY constants)
*
* @api
*/
@ -78,7 +78,7 @@ interface OutputInterface
/**
* Sets the decorated flag.
*
* @param Boolean $decorated Whether to decorate the messages
* @param bool $decorated Whether to decorate the messages
*
* @api
*/

View File

@ -36,8 +36,8 @@ class StreamOutput extends Output
* Constructor.
*
* @param mixed $stream A stream resource
* @param integer $verbosity The verbosity level (one of the VERBOSITY constants in OutputInterface)
* @param Boolean|null $decorated Whether to decorate messages (null for auto-guessing)
* @param int $verbosity The verbosity level (one of the VERBOSITY constants in OutputInterface)
* @param bool|null $decorated Whether to decorate messages (null for auto-guessing)
* @param OutputFormatterInterface|null $formatter Output formatter instance (null to use default OutputFormatter)
*
* @throws \InvalidArgumentException When first argument is not a real stream

View File

@ -78,7 +78,7 @@ class ApplicationTester
/**
* Gets the display returned by the last execution of the application.
*
* @param Boolean $normalize Whether to normalize end of lines to \n or not
* @param bool $normalize Whether to normalize end of lines to \n or not
*
* @return string The display
*/

View File

@ -73,7 +73,7 @@ class CommandTester
/**
* Gets the display returned by the last execution of the command.
*
* @param Boolean $normalize Whether to normalize end of lines to \n or not
* @param bool $normalize Whether to normalize end of lines to \n or not
*
* @return string The display
*/

View File

@ -169,7 +169,7 @@ class Parser implements ParserInterface
* Parses next simple node (hash, class, pseudo, negation).
*
* @param TokenStream $stream
* @param boolean $insideNegation
* @param bool $insideNegation
*
* @throws SyntaxErrorException
*

View File

@ -46,8 +46,8 @@ class FunctionExtension extends AbstractExtension
/**
* @param XPathExpr $xpath
* @param FunctionNode $function
* @param boolean $last
* @param boolean $addNameTest
* @param bool $last
* @param bool $addNameTest
*
* @return XPathExpr
*

View File

@ -53,7 +53,7 @@ class NodeExtension extends AbstractExtension
/**
* @param int $flag
* @param boolean $on
* @param bool $on
*
* @return NodeExtension
*/

View File

@ -40,7 +40,7 @@ class XPathExpr
* @param string $path
* @param string $element
* @param string $condition
* @param boolean $starPrefix
* @param bool $starPrefix
*/
public function __construct($path = '', $element = '*', $condition = '', $starPrefix = false)
{

View File

@ -30,8 +30,8 @@ class Debug
* If the Symfony ClassLoader component is available, a special
* class loader is also registered.
*
* @param integer $errorReportingLevel The level of error reporting you want
* @param Boolean $displayErrors Whether to display errors (for development) or just log them (for production)
* @param int $errorReportingLevel The level of error reporting you want
* @param bool $displayErrors Whether to display errors (for development) or just log them (for production)
*/
public static function enable($errorReportingLevel = null, $displayErrors = true)
{

View File

@ -56,8 +56,8 @@ class ErrorHandler
/**
* Registers the error handler.
*
* @param integer $level The level at which the conversion to Exception is done (null to use the error_reporting() value and 0 to disable)
* @param Boolean $displayErrors Display errors (for dev environment) or just log they (production usage)
* @param int $level The level at which the conversion to Exception is done (null to use the error_reporting() value and 0 to disable)
* @param bool $displayErrors Display errors (for dev environment) or just log they (production usage)
*
* @return ErrorHandler The registered error handler
*/

View File

@ -43,7 +43,7 @@ class ExceptionHandler
/**
* Registers the exception handler.
*
* @param Boolean $debug
* @param bool $debug
*
* @return ExceptionHandler The registered exception handler
*/

View File

@ -23,7 +23,7 @@ class Alias
* Constructor.
*
* @param string $id Alias identifier
* @param Boolean $public If this alias is public
* @param bool $public If this alias is public
*
* @api
*/
@ -48,7 +48,7 @@ class Alias
/**
* Sets if this Alias is public.
*
* @param Boolean $boolean If this Alias should be public
* @param bool $boolean If this Alias should be public
*
* @api
*/

View File

@ -36,7 +36,7 @@ class AnalyzeServiceReferencesPass implements RepeatablePassInterface
/**
* Constructor.
*
* @param Boolean $onlyConstructorArguments Sets this Service Reference pass to ignore method calls
* @param bool $onlyConstructorArguments Sets this Service Reference pass to ignore method calls
*/
public function __construct($onlyConstructorArguments = false)
{

View File

@ -70,7 +70,7 @@ class ResolveInvalidReferencesPass implements CompilerPassInterface
* Processes arguments to determine invalid references.
*
* @param array $arguments An array of Reference objects
* @param Boolean $inMethodCall
* @param bool $inMethodCall
*
* @return array
*

View File

@ -254,7 +254,7 @@ class Container implements IntrospectableContainerInterface
* with a get{$id}Service() method, the former has always precedence.
*
* @param string $id The service identifier
* @param integer $invalidBehavior The behavior when the service does not exist
* @param int $invalidBehavior The behavior when the service does not exist
*
* @return object The associated service
*

View File

@ -84,7 +84,7 @@ class ContainerBuilder extends Container implements TaggedContainerInterface
* If you are not using the loaders and therefore don't want
* to depend on the Config component, set this flag to false.
*
* @param Boolean $track true if you want to track resources, false otherwise
* @param bool $track true if you want to track resources, false otherwise
*/
public function setResourceTracking($track)
{
@ -445,7 +445,7 @@ class ContainerBuilder extends Container implements TaggedContainerInterface
* Gets a service.
*
* @param string $id The service identifier
* @param integer $invalidBehavior The behavior when the service does not exist
* @param int $invalidBehavior The behavior when the service does not exist
*
* @return object The associated service
*
@ -901,7 +901,7 @@ class ContainerBuilder extends Container implements TaggedContainerInterface
*
* @param Definition $definition A service definition instance
* @param string $id The service identifier
* @param Boolean $tryProxy Whether to try proxying the service with a lazy proxy
* @param bool $tryProxy Whether to try proxying the service with a lazy proxy
*
* @return object The service described by the service definition
*

View File

@ -240,7 +240,7 @@ class Definition
/**
* Sets a specific argument
*
* @param integer $index
* @param int $index
* @param mixed $argument
*
* @return Definition The current instance
@ -275,7 +275,7 @@ class Definition
/**
* Gets an argument to pass to the service constructor/factory method.
*
* @param integer $index
* @param int $index
*
* @return mixed The argument value
*
@ -548,7 +548,7 @@ class Definition
/**
* Sets the visibility of this service.
*
* @param Boolean $boolean
* @param bool $boolean
*
* @return Definition The current instance
*
@ -576,7 +576,7 @@ class Definition
/**
* Sets the synchronized flag of this service.
*
* @param Boolean $boolean
* @param bool $boolean
*
* @return Definition The current instance
*
@ -604,7 +604,7 @@ class Definition
/**
* Sets the lazy flag of this service.
*
* @param Boolean $lazy
* @param bool $lazy
*
* @return Definition The current instance
*/
@ -629,7 +629,7 @@ class Definition
* Sets whether this definition is synthetic, that is not constructed by the
* container, but dynamically injected.
*
* @param Boolean $boolean
* @param bool $boolean
*
* @return Definition the current instance
*
@ -659,7 +659,7 @@ class Definition
* Whether this definition is abstract, that means it merely serves as a
* template for other definitions.
*
* @param Boolean $boolean
* @param bool $boolean
*
* @return Definition the current instance
*

View File

@ -167,7 +167,7 @@ class DefinitionDecorator extends Definition
* If replaceArgument() has been used to replace an argument, this method
* will return the replacement value.
*
* @param integer $index
* @param int $index
*
* @return mixed The argument value
*
@ -198,7 +198,7 @@ class DefinitionDecorator extends Definition
* certain conventions when you want to overwrite the arguments of the
* parent definition, otherwise your arguments will only be appended.
*
* @param integer $index
* @param int $index
* @param mixed $value
*
* @return DefinitionDecorator the current instance

View File

@ -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 bool $required
* @param string $name
*
* @return array An array of edges

View File

@ -544,7 +544,7 @@ EOF;
if ($definition->isLazy()) {
$lazyInitialization = '$lazyLoad = true';
$lazyInitializationDoc = "\n * @param boolean \$lazyLoad whether to try lazy-loading the service with a proxy\n *";
$lazyInitializationDoc = "\n * @param bool \$lazyLoad whether to try lazy-loading the service with a proxy\n *";
} else {
$lazyInitialization = '';
$lazyInitializationDoc = '';
@ -955,7 +955,7 @@ EOF;
*
* @param array $parameters
* @param string $path
* @param integer $indent
* @param int $indent
*
* @return string
*
@ -1104,7 +1104,7 @@ EOF;
*
* @param string $id
* @param array $arguments
* @param Boolean $deep
* @param bool $deep
* @param array $visited
*
* @return Boolean
@ -1141,7 +1141,7 @@ EOF;
* Dumps values.
*
* @param array $value
* @param Boolean $interpolate
* @param bool $interpolate
*
* @return string
*

View File

@ -275,7 +275,7 @@ class YamlDumper extends Dumper
* Prepares parameters.
*
* @param array $parameters
* @param Boolean $escape
* @param bool $escape
*
* @return array
*/

View File

@ -29,7 +29,7 @@ class Reference
*
* @param string $id The service identifier
* @param int $invalidBehavior The behavior when the service does not exist
* @param Boolean $strict Sets how this reference is validated
* @param bool $strict Sets how this reference is validated
*
* @see Container
*/

View File

@ -36,7 +36,7 @@ class SimpleXMLElement extends \SimpleXMLElement
* Returns arguments as valid PHP types.
*
* @param string $name
* @param Boolean $lowercase
* @param bool $lowercase
*
* @return mixed
*/

View File

@ -280,7 +280,7 @@ class Crawler extends \SplObjectStorage
/**
* Returns a node given its position in the node list.
*
* @param integer $position The position
* @param int $position The position
*
* @return Crawler A new instance of the Crawler with the selected node, or an empty Crawler if it does not exist.
*
@ -772,7 +772,7 @@ class Crawler extends \SplObjectStorage
}
/**
* @param integer $position
* @param int $position
*
* @return \DOMElement|null
*/

View File

@ -23,7 +23,7 @@ class FileFormField extends FormField
/**
* Sets the PHP error code associated with the field.
*
* @param integer $error The error code (one of UPLOAD_ERR_INI_SIZE, UPLOAD_ERR_FORM_SIZE, UPLOAD_ERR_PARTIAL, UPLOAD_ERR_NO_FILE, UPLOAD_ERR_NO_TMP_DIR, UPLOAD_ERR_CANT_WRITE, or UPLOAD_ERR_EXTENSION)
* @param int $error The error code (one of UPLOAD_ERR_INI_SIZE, UPLOAD_ERR_FORM_SIZE, UPLOAD_ERR_PARTIAL, UPLOAD_ERR_NO_FILE, UPLOAD_ERR_NO_TMP_DIR, UPLOAD_ERR_CANT_WRITE, or UPLOAD_ERR_EXTENSION)
*
* @throws \InvalidArgumentException When error code doesn't exist
*/

View File

@ -57,7 +57,7 @@ class ContainerAwareEventDispatcher extends EventDispatcher
* @param string $eventName Event for which the listener is added
* @param array $callback The service ID of the listener service & the method
* name that has to be called
* @param integer $priority The higher this value, the earlier an event listener
* @param int $priority The higher this value, the earlier an event listener
* will be triggered in the chain.
* Defaults to 0.
*

View File

@ -42,7 +42,7 @@ interface EventDispatcherInterface
*
* @param string $eventName The event to listen on
* @param callable $listener The listener
* @param integer $priority The higher this value, the earlier an event
* @param int $priority The higher this value, the earlier an event
* listener will be triggered in the chain (defaults to 0)
*
* @api

View File

@ -29,7 +29,7 @@ class Filesystem
*
* @param string $originFile The original filename
* @param string $targetFile The target filename
* @param boolean $override Whether to override an existing file or not
* @param bool $override Whether to override an existing file or not
*
* @throws IOException When copy fails
*/
@ -66,7 +66,7 @@ class Filesystem
* Creates a directory recursively.
*
* @param string|array|\Traversable $dirs The directory path
* @param integer $mode The directory mode
* @param int $mode The directory mode
*
* @throws IOException On any directory creation failure
*/
@ -105,8 +105,8 @@ class Filesystem
* Sets access and modification time of file.
*
* @param string|array|\Traversable $files A filename, an array of files, or a \Traversable instance to create
* @param integer $time The touch time as a Unix timestamp
* @param integer $atime The access time as a Unix timestamp
* @param int $time The touch time as a Unix timestamp
* @param int $atime The access time as a Unix timestamp
*
* @throws IOException When touch fails
*/
@ -161,9 +161,9 @@ class Filesystem
* Change mode for an array of files or directories.
*
* @param string|array|\Traversable $files A filename, an array of files, or a \Traversable instance to change mode
* @param integer $mode The new mode (octal)
* @param integer $umask The mode mask (octal)
* @param Boolean $recursive Whether change the mod recursively or not
* @param int $mode The new mode (octal)
* @param int $umask The mode mask (octal)
* @param bool $recursive Whether change the mod recursively or not
*
* @throws IOException When the change fail
*/
@ -184,7 +184,7 @@ class Filesystem
*
* @param string|array|\Traversable $files A filename, an array of files, or a \Traversable instance to change owner
* @param string $user The new owner user name
* @param Boolean $recursive Whether change the owner recursively or not
* @param bool $recursive Whether change the owner recursively or not
*
* @throws IOException When the change fail
*/
@ -211,7 +211,7 @@ class Filesystem
*
* @param string|array|\Traversable $files A filename, an array of files, or a \Traversable instance to change group
* @param string $group The group name
* @param Boolean $recursive Whether change the group recursively or not
* @param bool $recursive Whether change the group recursively or not
*
* @throws IOException When the change fail
*/
@ -238,7 +238,7 @@ class Filesystem
*
* @param string $origin The origin filename or directory
* @param string $target The new filename or directory
* @param Boolean $overwrite Whether to overwrite the target if it already exists
* @param bool $overwrite Whether to overwrite the target if it already exists
*
* @throws IOException When target file or directory already exists
* @throws IOException When origin cannot be renamed
@ -260,7 +260,7 @@ class Filesystem
*
* @param string $originDir The origin directory path
* @param string $targetDir The symbolic link name
* @param Boolean $copyOnWindows Whether to copy files if on Windows
* @param bool $copyOnWindows Whether to copy files if on Windows
*
* @throws IOException When symlink fails
*/

View File

@ -148,7 +148,7 @@ abstract class AbstractFindAdapter extends AbstractAdapter
/**
* @param Command $command
* @param string[] $names
* @param Boolean $not
* @param bool $not
*/
private function buildNamesFiltering(Command $command, array $names, $not = false)
{
@ -196,7 +196,7 @@ abstract class AbstractFindAdapter extends AbstractAdapter
* @param Command $command
* @param string $dir
* @param string[] $paths
* @param Boolean $not
* @param bool $not
*/
private function buildPathsFiltering(Command $command, $dir, array $paths, $not = false)
{
@ -321,7 +321,7 @@ abstract class AbstractFindAdapter extends AbstractAdapter
/**
* @param Command $command
* @param array $contains
* @param Boolean $not
* @param bool $not
*/
abstract protected function buildContentFiltering(Command $command, array $contains, $not = false);
}

View File

@ -17,14 +17,14 @@ namespace Symfony\Component\Finder\Adapter;
interface AdapterInterface
{
/**
* @param Boolean $followLinks
* @param bool $followLinks
*
* @return AdapterInterface Current instance
*/
public function setFollowLinks($followLinks);
/**
* @param integer $mode
* @param int $mode
*
* @return AdapterInterface Current instance
*/
@ -115,7 +115,7 @@ interface AdapterInterface
public function setNotPath(array $notPaths);
/**
* @param boolean $ignore
* @param bool $ignore
*
* @return AdapterInterface Current instance
*/

View File

@ -90,7 +90,7 @@ class Finder implements \IteratorAggregate, \Countable
* Registers a finder engine implementation.
*
* @param AdapterInterface $adapter An adapter instance
* @param integer $priority Highest is selected first
* @param int $priority Highest is selected first
*
* @return Finder The current Finder instance
*/
@ -415,7 +415,7 @@ class Finder implements \IteratorAggregate, \Countable
/**
* Excludes "hidden" directories and files (starting with a dot).
*
* @param Boolean $ignoreDotFiles Whether to exclude "hidden" files or not
* @param bool $ignoreDotFiles Whether to exclude "hidden" files or not
*
* @return Finder The current Finder instance
*
@ -437,7 +437,7 @@ class Finder implements \IteratorAggregate, \Countable
/**
* Forces the finder to ignore version control directories.
*
* @param Boolean $ignoreVCS Whether to exclude VCS files or not
* @param bool $ignoreVCS Whether to exclude VCS files or not
*
* @return Finder The current Finder instance
*
@ -632,7 +632,7 @@ class Finder implements \IteratorAggregate, \Countable
*
* By default, scanning unreadable directories content throws an AccessDeniedException.
*
* @param boolean $ignore
* @param bool $ignore
*
* @return Finder The current Finder instance
*/

View File

@ -39,8 +39,8 @@ class Glob
* Returns a regexp which is the equivalent of the glob pattern.
*
* @param string $glob The glob pattern
* @param Boolean $strictLeadingDot
* @param Boolean $strictWildcardSlash
* @param bool $strictLeadingDot
* @param bool $strictWildcardSlash
*
* @return string regex The regexp
*/

View File

@ -27,7 +27,7 @@ class FileTypeFilterIterator extends FilterIterator
* Constructor.
*
* @param \Iterator $iterator The Iterator to filter
* @param integer $mode The mode (self::ONLY_FILES or self::ONLY_DIRECTORIES)
* @param int $mode The mode (self::ONLY_FILES or self::ONLY_DIRECTORIES)
*/
public function __construct(\Iterator $iterator, $mode)
{

View File

@ -36,7 +36,7 @@ class RecursiveDirectoryIterator extends \RecursiveDirectoryIterator
*
* @param string $path
* @param int $flags
* @param boolean $ignoreUnreadableDirs
* @param bool $ignoreUnreadableDirs
*
* @throws \RuntimeException
*/

View File

@ -31,7 +31,7 @@ class SortableIterator implements \IteratorAggregate
* Constructor.
*
* @param \Traversable $iterator The Iterator to filter
* @param integer|callback $sort The sort type (SORT_BY_NAME, SORT_BY_TYPE, or a PHP callback)
* @param int |callback $sort The sort type (SORT_BY_NAME, SORT_BY_TYPE, or a PHP callback)
*
* @throws \InvalidArgumentException
*/

View File

@ -283,7 +283,7 @@ class Command
* Insert a string or a Command instance before the bit at given position $index (index starts from 0).
*
* @param string|Command $bit
* @param integer $index
* @param int $index
*
* @return Command The current Command instance
*/

View File

@ -19,8 +19,8 @@ class RecursiveDirectoryIteratorTest extends IteratorTestCase
* @dataProvider getPaths
*
* @param string $path
* @param Boolean $seekable
* @param Boolean $supports
* @param bool $seekable
* @param bool $supports
* @param string $message
*/
public function testRewind($path, $seekable, $contains, $message = null)
@ -40,8 +40,8 @@ class RecursiveDirectoryIteratorTest extends IteratorTestCase
* @dataProvider getPaths
*
* @param string $path
* @param Boolean $seekable
* @param Boolean $supports
* @param bool $seekable
* @param bool $supports
* @param string $message
*/
public function testSeek($path, $seekable, $contains, $message = null)

View File

@ -146,7 +146,7 @@ abstract class AbstractRendererEngine implements FormRendererEngineInterface
* themes.
* @param array $blockNameHierarchy The block hierarchy, with the most
* specific block name at the end.
* @param integer $hierarchyLevel The level in the block hierarchy that
* @param int $hierarchyLevel The level in the block hierarchy that
* should be loaded.
*
* @return Boolean True if the resource could be loaded, false otherwise.

View File

@ -374,7 +374,7 @@ class Button implements \IteratorAggregate, FormInterface
* Submits data to the button.
*
* @param null|string $submittedData The data.
* @param Boolean $clearMissing Not used.
* @param bool $clearMissing Not used.
*
* @return Button The button instance
*

View File

@ -169,7 +169,7 @@ class ButtonBuilder implements \IteratorAggregate, FormBuilderInterface
*
* @param string $eventName
* @param callable $listener
* @param integer $priority
* @param int $priority
*
* @throws BadMethodCallException
*/
@ -198,7 +198,7 @@ class ButtonBuilder implements \IteratorAggregate, FormBuilderInterface
* This method should not be invoked.
*
* @param DataTransformerInterface $viewTransformer
* @param Boolean $forcePrepend
* @param bool $forcePrepend
*
* @throws BadMethodCallException
*/
@ -225,7 +225,7 @@ class ButtonBuilder implements \IteratorAggregate, FormBuilderInterface
* This method should not be invoked.
*
* @param DataTransformerInterface $modelTransformer
* @param Boolean $forceAppend
* @param bool $forceAppend
*
* @throws BadMethodCallException
*/
@ -283,7 +283,7 @@ class ButtonBuilder implements \IteratorAggregate, FormBuilderInterface
/**
* Set whether the button is disabled.
*
* @param Boolean $disabled Whether the button is disabled
* @param bool $disabled Whether the button is disabled
*
* @return ButtonBuilder The button builder.
*/
@ -313,7 +313,7 @@ class ButtonBuilder implements \IteratorAggregate, FormBuilderInterface
*
* This method should not be invoked.
*
* @param Boolean $errorBubbling
* @param bool $errorBubbling
*
* @throws BadMethodCallException
*/
@ -327,7 +327,7 @@ class ButtonBuilder implements \IteratorAggregate, FormBuilderInterface
*
* This method should not be invoked.
*
* @param Boolean $required
* @param bool $required
*
* @throws BadMethodCallException
*/
@ -355,7 +355,7 @@ class ButtonBuilder implements \IteratorAggregate, FormBuilderInterface
*
* This method should not be invoked.
*
* @param Boolean $mapped
* @param bool $mapped
*
* @throws BadMethodCallException
*/
@ -369,7 +369,7 @@ class ButtonBuilder implements \IteratorAggregate, FormBuilderInterface
*
* This method should not be invoked.
*
* @param Boolean $byReference
* @param bool $byReference
*
* @throws BadMethodCallException
*/
@ -383,7 +383,7 @@ class ButtonBuilder implements \IteratorAggregate, FormBuilderInterface
*
* This method should not be invoked.
*
* @param Boolean $virtual
* @param bool $virtual
*
* @throws BadMethodCallException
*/
@ -397,7 +397,7 @@ class ButtonBuilder implements \IteratorAggregate, FormBuilderInterface
*
* This method should not be invoked.
*
* @param Boolean $compound
* @param bool $compound
*
* @throws BadMethodCallException
*/
@ -439,7 +439,7 @@ class ButtonBuilder implements \IteratorAggregate, FormBuilderInterface
*
* This method should not be invoked.
*
* @param Boolean $locked
* @param bool $locked
*
* @throws BadMethodCallException
*/
@ -503,7 +503,7 @@ class ButtonBuilder implements \IteratorAggregate, FormBuilderInterface
/**
* Unsupported method.
*
* @param Boolean $initialize
* @param bool $initialize
*
* @throws BadMethodCallException
*/
@ -519,7 +519,7 @@ class ButtonBuilder implements \IteratorAggregate, FormBuilderInterface
/**
* Unsupported method.
*
* @param Boolean $inheritData
* @param bool $inheritData
*
* @throws BadMethodCallException
*/

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