Permalink
Browse files

CS Fixes - Replaced "array of type" by "Type[]" in PHPDoc block

  • Loading branch information...
1 parent b337655 commit 2379d86241385be8b16d177ea3f7548521523cf6 @raziel057 raziel057 committed with fabpot Nov 1, 2012
Showing with 390 additions and 232 deletions.
  1. +1 −1 src/Symfony/Component/BrowserKit/CookieJar.php
  2. +1 −1 src/Symfony/Component/BrowserKit/Request.php
  3. +1 −1 src/Symfony/Component/ClassLoader/ClassCollectionLoader.php
  4. +4 −2 src/Symfony/Component/Config/ConfigCache.php
  5. +2 −2 src/Symfony/Component/Config/Definition/BaseNode.php
  6. +1 −1 src/Symfony/Component/Config/Definition/Builder/ExprBuilder.php
  7. +2 −2 src/Symfony/Component/Console/Application.php
  8. +2 −2 src/Symfony/Component/Console/Formatter/OutputFormatter.php
  9. +4 −4 src/Symfony/Component/Console/Input/InputDefinition.php
  10. +4 −1 src/Symfony/Component/CssSelector/Node/OrNode.php
  11. +1 −1 src/Symfony/Component/DependencyInjection/Compiler/CheckCircularReferencesPass.php
  12. +10 −3 src/Symfony/Component/DependencyInjection/Compiler/RepeatedPass.php
  13. +4 −1 src/Symfony/Component/DependencyInjection/Compiler/ServiceReferenceGraph.php
  14. +4 −0 src/Symfony/Component/DependencyInjection/Container.php
  15. +41 −8 src/Symfony/Component/DependencyInjection/ContainerBuilder.php
  16. +1 −1 src/Symfony/Component/DependencyInjection/Definition.php
  17. +4 −4 src/Symfony/Component/DomCrawler/Crawler.php
  18. +9 −1 src/Symfony/Component/DomCrawler/Form.php
  19. +2 −2 src/Symfony/Component/DomCrawler/Link.php
  20. +4 −2 src/Symfony/Component/Finder/Iterator/DateRangeFilterIterator.php
  21. +4 −2 src/Symfony/Component/Finder/Iterator/SizeRangeFilterIterator.php
  22. +4 −4 src/Symfony/Component/Form/AbstractExtension.php
  23. +2 −2 src/Symfony/Component/Form/AbstractType.php
  24. +7 −7 src/Symfony/Component/Form/Form.php
  25. +1 −1 src/Symfony/Component/Form/FormBuilder.php
  26. +2 −2 src/Symfony/Component/Form/FormConfigInterface.php
  27. +1 −1 src/Symfony/Component/Form/FormExtensionInterface.php
  28. +2 −2 src/Symfony/Component/Form/FormInterface.php
  29. +3 −2 src/Symfony/Component/Form/FormRegistry.php
  30. +1 −1 src/Symfony/Component/Form/ResolvedFormTypeInterface.php
  31. +3 −3 src/Symfony/Component/HttpFoundation/Session/Storage/NativeSessionStorage.php
  32. +18 −47 src/Symfony/Component/HttpKernel/Kernel.php
  33. +3 −3 src/Symfony/Component/HttpKernel/KernelInterface.php
  34. +10 −22 src/Symfony/Component/HttpKernel/Profiler/MongoDbProfilerStorage.php
  35. +1 −1 src/Symfony/Component/HttpKernel/Profiler/PdoProfilerStorage.php
  36. +57 −5 src/Symfony/Component/HttpKernel/Profiler/Profile.php
  37. +18 −5 src/Symfony/Component/HttpKernel/Profiler/Profiler.php
  38. +5 −1 src/Symfony/Component/Locale/Stub/DateFormat/FullTransformer.php
  39. +2 −2 src/Symfony/Component/Security/Acl/Domain/AclCollectionCache.php
  40. +10 −5 src/Symfony/Component/Security/Acl/Domain/PermissionGrantingStrategy.php
  41. +11 −6 src/Symfony/Component/Security/Acl/Model/AclProviderInterface.php
  42. +2 −1 src/Symfony/Component/Security/Acl/Model/SecurityIdentityRetrievalStrategyInterface.php
  43. +1 −1 src/Symfony/Component/Security/Core/Authentication/Token/AbstractToken.php
  44. +5 −5 src/Symfony/Component/Security/Core/Authentication/Token/AnonymousToken.php
  45. +3 −1 src/Symfony/Component/Security/Core/Authentication/Token/TokenInterface.php
  46. +12 −6 src/Symfony/Component/Security/Core/Authentication/Token/UsernamePasswordToken.php
  47. +2 −2 src/Symfony/Component/Security/Core/Role/RoleHierarchyInterface.php
  48. +8 −26 src/Symfony/Component/Templating/DelegatingEngine.php
  49. +3 −1 src/Symfony/Component/Templating/Loader/FilesystemLoader.php
  50. +5 −3 src/Symfony/Component/Templating/PhpEngine.php
  51. +1 −0 src/Symfony/Component/Templating/StreamingEngineInterface.php
  52. +1 −1 src/Symfony/Component/Translation/Extractor/ChainExtractor.php
  53. +27 −8 src/Symfony/Component/Translation/Translator.php
  54. +39 −8 src/Symfony/Component/Validator/Mapping/ClassMetadata.php
  55. +8 −1 src/Symfony/Component/Validator/Mapping/ElementMetadata.php
  56. +1 −1 src/Symfony/Component/Validator/Mapping/Loader/FilesLoader.php
  57. +1 −1 src/Symfony/Component/Validator/Mapping/Loader/LoaderChain.php
  58. +2 −1 src/Symfony/Component/Validator/Mapping/Loader/XmlFileLoader.php
  59. +2 −1 src/Symfony/Component/Validator/Mapping/Loader/YamlFileLoader.php
@@ -127,7 +127,7 @@ public function updateFromResponse(Response $response, $uri = null)
/**
* Returns not yet expired cookies.
*
- * @return array An array of cookies
+ * @return Cookie[] An array of cookies
*/
public function all()
{
@@ -32,7 +32,7 @@ class Request
* Constructor.
*
* @param string $uri The request URI
- * @param array $method The HTTP method request
+ * @param string $method The HTTP method request
* @param array $parameters The request parameters
* @param array $files An array of uploaded files
* @param array $cookies An array of cookies
@@ -210,7 +210,7 @@ private static function writeCacheFile($file, $content)
*
* @param array $classes
*
- * @return array An array of sorted \ReflectionClass instances (dependencies added if needed)
+ * @return \ReflectionClass[] An array of sorted \ReflectionClass instances (dependencies added if needed)
*
* @throws \InvalidArgumentException When a class can't be loaded
*/
@@ -11,6 +11,8 @@
namespace Symfony\Component\Config;
+use Symfony\Component\Config\Resource\ResourceInterface;
+
/**
* ConfigCache manages PHP cache files.
*
@@ -83,8 +85,8 @@ public function isFresh()
/**
* Writes cache.
*
- * @param string $content The content to write in the cache
- * @param array $metadata An array of ResourceInterface instances
+ * @param string $content The content to write in the cache
+ * @param ResourceInterface[] $metadata An array of ResourceInterface instances
*
* @throws \RuntimeException When cache file can't be wrote
*/
@@ -158,7 +158,7 @@ public function setAllowOverwrite($allow)
/**
* Sets the closures used for normalization.
*
- * @param array $closures An array of Closures used for normalization
+ * @param \Closure[] $closures An array of Closures used for normalization
*/
public function setNormalizationClosures(array $closures)
{
@@ -168,7 +168,7 @@ public function setNormalizationClosures(array $closures)
/**
* Sets the closures used for final validation.
*
- * @param array $closures An array of Closures used for final validation
+ * @param \Closure[] $closures An array of Closures used for final validation
*/
public function setFinalValidationClosures(array $closures)
{
@@ -210,7 +210,7 @@ public function end()
/**
* Builds the expressions.
*
- * @param array $expressions An array of ExprBuilder instances to build
+ * @param ExprBuilder[] $expressions An array of ExprBuilder instances to build
*
* @return array
*/
@@ -619,7 +619,7 @@ public function find($name)
*
* @param string $namespace A namespace name
*
- * @return array An array of Command instances
+ * @return Command[] An array of Command instances
*
* @api
*/
@@ -933,7 +933,7 @@ protected function getDefaultInputDefinition()
/**
* Gets the default commands that should always be available.
*
- * @return array An array of default Command instances
+ * @return Command[] An array of default Command instances
*/
protected function getDefaultCommands()
{
@@ -44,8 +44,8 @@ public static function escape($text)
/**
* Initializes console output formatter.
*
- * @param Boolean $decorated Whether this formatter should actually decorate strings
- * @param array $styles Array of "name => FormatterStyle" instances
+ * @param Boolean $decorated Whether this formatter should actually decorate strings
+ * @param FormatterStyle[] $styles Array of "name => FormatterStyle" instances
*
* @api
*/
@@ -72,7 +72,7 @@ public function setDefinition(array $definition)
/**
* Sets the InputArgument objects.
*
- * @param array $arguments An array of InputArgument objects
+ * @param InputArgument[] $arguments An array of InputArgument objects
*
* @api
*/
@@ -178,7 +178,7 @@ public function hasArgument($name)
/**
* Gets the array of InputArgument objects.
*
- * @return array An array of InputArgument objects
+ * @return InputArgument[] An array of InputArgument objects
*
* @api
*/
@@ -225,7 +225,7 @@ public function getArgumentDefaults()
/**
* Sets the InputOption objects.
*
- * @param array $options An array of InputOption objects
+ * @param InputOption[] $options An array of InputOption objects
*
* @api
*/
@@ -310,7 +310,7 @@ public function hasOption($name)
/**
* Gets the array of InputOption objects.
*
- * @return array An array of InputOption objects
+ * @return InputOption[] An array of InputOption objects
*
* @api
*/
@@ -23,12 +23,15 @@
*/
class OrNode implements NodeInterface
{
+ /**
+ * @var NodeInterface[]
+ */
protected $items;
/**
* Constructor.
*
- * @param array $items An array of NodeInterface objects
+ * @param NodeInterface[] $items An array of NodeInterface objects
*/
public function __construct($items)
{
@@ -49,7 +49,7 @@ public function process(ContainerBuilder $container)
/**
* Checks for circular references.
*
- * @param array $edges An array of Nodes
+ * @param ServiceReferenceGraphEdge[] $edges An array of Edges
*
* @throws ServiceCircularReferenceException When a circular reference is found.
*/
@@ -21,13 +21,20 @@
*/
class RepeatedPass implements CompilerPassInterface
{
- private $repeat;
+ /**
+ * @var Boolean
+ */
+ private $repeat = false;
+
+ /**
+ * @var RepeatablePassInterface[]
+ */
private $passes;
/**
* Constructor.
*
- * @param array $passes An array of RepeatablePassInterface objects
+ * @param RepeatablePassInterface[] $passes An array of RepeatablePassInterface objects
*
* @throws InvalidArgumentException when the passes don't implement RepeatablePassInterface
*/
@@ -72,7 +79,7 @@ public function setRepeat()
/**
* Returns the passes
*
- * @return array An array of RepeatablePassInterface objects
+ * @return RepeatablePassInterface[] An array of RepeatablePassInterface objects
*/
public function getPasses()
{
@@ -23,6 +23,9 @@
*/
class ServiceReferenceGraph
{
+ /**
+ * @var ServiceReferenceGraphNode[]
+ */
private $nodes;
/**
@@ -66,7 +69,7 @@ public function getNode($id)
/**
* Returns all nodes.
*
- * @return array An array of all ServiceReferenceGraphNode objects
+ * @return ServiceReferenceGraphNode[] An array of all ServiceReferenceGraphNode objects
*/
public function getNodes()
{
@@ -61,7 +61,11 @@
*/
class Container implements IntrospectableContainerInterface
{
+ /**
+ * @var ParameterBagInterface
+ */
protected $parameterBag;
+
protected $services;
protected $scopes;
protected $scopeChildren;
@@ -31,12 +31,36 @@
*/
class ContainerBuilder extends Container implements TaggedContainerInterface
{
- private $extensions = array();
- private $extensionsByNs = array();
- private $definitions = array();
- private $aliases = array();
- private $resources = array();
+ /**
+ * @var ExtensionInterface[]
+ */
+ private $extensions = array();
+
+ /**
+ * @var ExtensionInterface[]
+ */
+ private $extensionsByNs = array();
+
+ /**
+ * @var Definition[]
+ */
+ private $definitions = array();
+
+ /**
+ * @var Alias[]
+ */
+ private $aliases = array();
+
+ /**
+ * @var ResourceInterface[]
+ */
+ private $resources = array();
+
private $extensionConfigs = array();
+
+ /**
+ * @var Compiler
+ */
private $compiler;
/**
@@ -82,7 +106,7 @@ public function getExtension($name)
/**
* Returns all registered extensions.
*
- * @return array An array of ExtensionInterface
+ * @return ExtensionInterface[] An array of ExtensionInterface
*
* @api
*/
@@ -133,6 +157,15 @@ public function addResource(ResourceInterface $resource)
return $this;
}
+ /**
+ * Sets the resources for this configuration.
+ *
+ * @param ResourceInterface[] $resources An array of resources
+ *
+ * @return ContainerBuilder The current instance
+ *
+ * @api
+ */
public function setResources(array $resources)
{
$this->resources = $resources;
@@ -484,7 +517,7 @@ public function addAliases(array $aliases)
/**
* Sets the service aliases.
*
- * @param array $aliases An array of service definitions
+ * @param array $aliases An array of aliases
*
* @api
*/
@@ -619,7 +652,7 @@ public function addDefinitions(array $definitions)
/**
* Sets the service definitions.
*
- * @param array $definitions An array of service definitions
+ * @param Definition[] $definitions An array of service definitions
*
* @api
*/
@@ -373,7 +373,7 @@ public function hasMethodCall($method)
/**
* Gets the methods to call after service initialization.
*
- * @return array An array of method calls
+ * @return array An array of method calls
*
* @api
*/
@@ -213,7 +213,7 @@ public function addNodeList(\DOMNodeList $nodes)
/**
* Adds an array of \DOMNode instances to the list of nodes.
*
- * @param array $nodes An array of \DOMNode instances
+ * @param \DOMNode[] $nodes An array of \DOMNode instances
*
* @api
*/
@@ -592,7 +592,7 @@ public function selectButton($value)
*
* @param string $method The method for the link (get by default)
*
- * @return Link A Link instance
+ * @return Link A Link instance
*
* @throws \InvalidArgumentException If the current node list is empty
*
@@ -612,7 +612,7 @@ public function link($method = 'get')
/**
* Returns an array of Link objects for the nodes in the list.
*
- * @return array An array of Link instances
+ * @return Link[] An array of Link instances
*
* @api
*/
@@ -632,7 +632,7 @@ public function links()
* @param array $values An array of values for the form fields
* @param string $method The method for the form
*
- * @return Form A Form instance
+ * @return Form A Form instance
*
* @throws \InvalidArgumentException If the current node list is empty
*
@@ -26,6 +26,7 @@ class Form extends Link implements \ArrayAccess
* @var \DOMNode
*/
private $button;
+
/**
* @var Field\FormField[]
*/
@@ -271,7 +272,7 @@ public function set(FormField $field)
/**
* Gets all fields.
*
- * @return array An array of fields
+ * @return FormField[] An array of fields
*
* @api
*/
@@ -329,6 +330,13 @@ public function offsetUnset($name)
$this->fields->remove($name);
}
+ /**
+ * Sets current \DOMNode instance.
+ *
+ * @param \DOMNode $node A \DOMNode instance
+ *
+ * @throws \LogicException If given node is not a button or input or does not have a form ancestor
+ */
protected function setNode(\DOMNode $node)
{
$this->button = $node;
Oops, something went wrong.

0 comments on commit 2379d86

Please sign in to comment.