Permalink
Browse files

fixed phpdoc @param alignment

  • Loading branch information...
1 parent 64e87a3 commit 9eef83883576eac0621bba756ecfcca4612b3c14 @fabpot fabpot committed May 15, 2012
View
2 Alias.php
@@ -22,7 +22,7 @@ class Alias
/**
* Constructor.
*
- * @param string $id Alias identifier
+ * @param string $id Alias identifier
* @param Boolean $public If this alias is public
*
* @api
View
2 Compiler/PassConfig.php
@@ -94,7 +94,7 @@ public function getPasses()
* Adds a pass.
*
* @param CompilerPassInterface $pass A Compiler pass
- * @param string $type The pass type
+ * @param string $type The pass type
*
* @throws \InvalidArgumentException when a pass type doesn't exist
*
View
8 Compiler/ReplaceAliasByActualDefinitionPass.php
@@ -63,8 +63,8 @@ public function process(ContainerBuilder $container)
* Updates references to remove aliases.
*
* @param ContainerBuilder $container The container
- * @param string $currentId The alias identifier being replaced
- * @param string $newId The id of the service the alias points to
+ * @param string $currentId The alias identifier being replaced
+ * @param string $newId The id of the service the alias points to
*/
private function updateReferences($container, $currentId, $newId)
{
@@ -94,9 +94,9 @@ private function updateReferences($container, $currentId, $newId)
/**
* Updates argument references.
*
- * @param array $arguments An array of Arguments
+ * @param array $arguments An array of Arguments
* @param string $currentId The alias identifier
- * @param string $newId The identifier the alias points to
+ * @param string $newId The identifier the alias points to
*/
private function updateArgumentReferences(array $arguments, $currentId, $newId)
{
View
2 Compiler/ResolveDefinitionTemplatesPass.php
@@ -53,7 +53,7 @@ public function process(ContainerBuilder $container)
/**
* Resolves the definition
*
- * @param string $id The definition identifier
+ * @param string $id The definition identifier
* @param DefinitionDecorator $definition
*
* @return Definition
View
2 Compiler/ResolveInvalidReferencesPass.php
@@ -68,7 +68,7 @@ public function process(ContainerBuilder $container)
/**
* Processes arguments to determine invalid references.
*
- * @param array $arguments An array of Reference objects
+ * @param array $arguments An array of Reference objects
* @param Boolean $inMethodCall
*/
private function processArguments(array $arguments, $inMethodCall = false)
View
4 Compiler/ServiceReferenceGraphNode.php
@@ -31,8 +31,8 @@ class ServiceReferenceGraphNode
/**
* Constructor.
*
- * @param string $id The node identifier
- * @param mixed $value The node value
+ * @param string $id The node identifier
+ * @param mixed $value The node value
*/
public function __construct($id, $value)
{
View
10 Container.php
@@ -131,7 +131,7 @@ public function getParameterBag()
/**
* Gets a parameter.
*
- * @param string $name The parameter name
+ * @param string $name The parameter name
*
* @return mixed The parameter value
*
@@ -147,7 +147,7 @@ public function getParameter($name)
/**
* Checks if a parameter exists.
*
- * @param string $name The parameter name
+ * @param string $name The parameter name
*
* @return Boolean The presence of parameter in container
*
@@ -202,7 +202,7 @@ public function set($id, $service, $scope = self::SCOPE_CONTAINER)
/**
* Returns true if the given service is defined.
*
- * @param string $id The service identifier
+ * @param string $id The service identifier
*
* @return Boolean true if the service is defined, false otherwise
*
@@ -221,8 +221,8 @@ public function has($id)
* If a service is both defined through a set() method and
* with a set*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 string $id The service identifier
+ * @param integer $invalidBehavior The behavior when the service does not exist
*
* @return object The associated service
*
View
30 ContainerBuilder.php
@@ -280,7 +280,7 @@ public function removeDefinition($id)
/**
* Returns true if the given service is defined.
*
- * @param string $id The service identifier
+ * @param string $id The service identifier
*
* @return Boolean true if the service is defined, false otherwise
*
@@ -296,8 +296,8 @@ public function has($id)
/**
* Gets a service.
*
- * @param string $id The service identifier
- * @param integer $invalidBehavior The behavior when the service does not exist
+ * @param string $id The service identifier
+ * @param integer $invalidBehavior The behavior when the service does not exist
*
* @return object The associated service
*
@@ -520,7 +520,7 @@ public function removeAlias($alias)
/**
* Returns true if an alias exists under the given identifier.
*
- * @param string $id The service identifier
+ * @param string $id The service identifier
*
* @return Boolean true if the alias exists, false otherwise
*
@@ -546,7 +546,7 @@ public function getAliases()
/**
* Gets an alias.
*
- * @param string $id The service identifier
+ * @param string $id The service identifier
*
* @return string The aliased service identifier
*
@@ -571,8 +571,8 @@ public function getAlias($id)
* This methods allows for simple registration of service definition
* with a fluid interface.
*
- * @param string $id The service identifier
- * @param string $class The service class
+ * @param string $id The service identifier
+ * @param string $class The service class
*
* @return Definition A Definition instance
*
@@ -625,8 +625,8 @@ public function getDefinitions()
/**
* Sets a service definition.
*
- * @param string $id The service identifier
- * @param Definition $definition A Definition instance
+ * @param string $id The service identifier
+ * @param Definition $definition A Definition instance
*
* @throws BadMethodCallException
*
@@ -648,7 +648,7 @@ public function setDefinition($id, Definition $definition)
/**
* Returns true if a service definition exists under the given identifier.
*
- * @param string $id The service identifier
+ * @param string $id The service identifier
*
* @return Boolean true if the service definition exists, false otherwise
*
@@ -662,7 +662,7 @@ public function hasDefinition($id)
/**
* Gets a service definition.
*
- * @param string $id The service identifier
+ * @param string $id The service identifier
*
* @return Definition A Definition instance
*
@@ -686,7 +686,7 @@ public function getDefinition($id)
*
* The method "unaliases" recursively to return a Definition instance.
*
- * @param string $id The service identifier or alias
+ * @param string $id The service identifier or alias
*
* @return Definition A Definition instance
*
@@ -706,8 +706,8 @@ public function findDefinition($id)
/**
* Creates a service for a service definition.
*
- * @param Definition $definition A service definition instance
- * @param string $id The service identifier
+ * @param Definition $definition A service definition instance
+ * @param string $id The service identifier
*
* @return object The service described by the service definition
*
@@ -790,7 +790,7 @@ private function createService(Definition $definition, $id)
/**
* Replaces service references by the real service instance.
*
- * @param mixed $value A value
+ * @param mixed $value A value
*
* @return mixed The same value with all service references replaced by the real service instances
*/
View
10 ContainerInterface.php
@@ -41,8 +41,8 @@ function set($id, $service, $scope = self::SCOPE_CONTAINER);
/**
* Gets a service.
*
- * @param string $id The service identifier
- * @param int $invalidBehavior The behavior when the service does not exist
+ * @param string $id The service identifier
+ * @param int $invalidBehavior The behavior when the service does not exist
*
* @return object The associated service
*
@@ -57,7 +57,7 @@ function get($id, $invalidBehavior = self::EXCEPTION_ON_INVALID_REFERENCE);
/**
* Returns true if the given service is defined.
*
- * @param string $id The service identifier
+ * @param string $id The service identifier
*
* @return Boolean true if the service is defined, false otherwise
*
@@ -68,7 +68,7 @@ function has($id);
/**
* Gets a parameter.
*
- * @param string $name The parameter name
+ * @param string $name The parameter name
*
* @return mixed The parameter value
*
@@ -81,7 +81,7 @@ function getParameter($name);
/**
* Checks if a parameter exists.
*
- * @param string $name The parameter name
+ * @param string $name The parameter name
*
* @return Boolean The presence of parameter in container
*
View
32 Definition.php
@@ -63,7 +63,7 @@ public function __construct($class = null, array $arguments = array())
* Sets the name of the class that acts as a factory using the factory method,
* which will be invoked statically.
*
- * @param string $factoryClass The factory class name
+ * @param string $factoryClass The factory class name
*
* @return Definition The current instance
*
@@ -91,7 +91,7 @@ public function getFactoryClass()
/**
* Sets the factory method able to create an instance of this class.
*
- * @param string $factoryMethod The factory method name
+ * @param string $factoryMethod The factory method name
*
* @return Definition The current instance
*
@@ -147,7 +147,7 @@ public function getFactoryService()
/**
* Sets the service class.
*
- * @param string $class The service class
+ * @param string $class The service class
*
* @return Definition The current instance
*
@@ -175,7 +175,7 @@ public function getClass()
/**
* Sets the arguments to pass to the service constructor/factory method.
*
- * @param array $arguments An array of arguments
+ * @param array $arguments An array of arguments
*
* @return Definition The current instance
*
@@ -219,7 +219,7 @@ public function setProperty($name, $value)
/**
* Adds an argument to pass to the service constructor/factory method.
*
- * @param mixed $argument An argument
+ * @param mixed $argument An argument
*
* @return Definition The current instance
*
@@ -286,7 +286,7 @@ public function getArgument($index)
/**
* Sets the methods to call after service initialization.
*
- * @param array $calls An array of method calls
+ * @param array $calls An array of method calls
*
* @return Definition The current instance
*
@@ -305,8 +305,8 @@ public function setMethodCalls(array $calls = array())
/**
* Adds a method to call after service initialization.
*
- * @param string $method The method name to call
- * @param array $arguments An array of arguments to pass to the method call
+ * @param string $method The method name to call
+ * @param array $arguments An array of arguments to pass to the method call
*
* @return Definition The current instance
*
@@ -327,7 +327,7 @@ public function addMethodCall($method, array $arguments = array())
/**
* Removes a method to call after service initialization.
*
- * @param string $method The method name to remove
+ * @param string $method The method name to remove
*
* @return Definition The current instance
*
@@ -348,7 +348,7 @@ public function removeMethodCall($method)
/**
* Check if the current definition has a given method to call after service initialization.
*
- * @param string $method The method name to search for
+ * @param string $method The method name to search for
*
* @return Boolean
*
@@ -408,7 +408,7 @@ public function getTags()
/**
* Gets a tag by name.
*
- * @param string $name The tag name
+ * @param string $name The tag name
*
* @return array An array of attributes
*
@@ -422,8 +422,8 @@ public function getTag($name)
/**
* Adds a tag for this definition.
*
- * @param string $name The tag name
- * @param array $attributes An array of attributes
+ * @param string $name The tag name
+ * @param array $attributes An array of attributes
*
* @return Definition The current instance
*
@@ -467,7 +467,7 @@ public function clearTags()
/**
* Sets a file to require before creating the service.
*
- * @param string $file A full pathname to include
+ * @param string $file A full pathname to include
*
* @return Definition The current instance
*
@@ -495,7 +495,7 @@ public function getFile()
/**
* Sets the scope of the service
*
- * @param string $scope Whether the service must be shared or not
+ * @param string $scope Whether the service must be shared or not
*
* @return Definition The current instance
*
@@ -611,7 +611,7 @@ public function isAbstract()
/**
* Sets a configurator to call after the service is fully initialized.
*
- * @param mixed $callable A PHP callable
+ * @param mixed $callable A PHP callable
*
* @return Definition The current instance
*
View
2 Dumper/DumperInterface.php
@@ -23,7 +23,7 @@
/**
* Dumps the service container.
*
- * @param array $options An array of options
+ * @param array $options An array of options
*
* @return string The representation of the service container
*
View
6 Dumper/GraphvizDumper.php
@@ -50,7 +50,7 @@ class GraphvizDumper extends Dumper
* * node.definition: The default options for services that are defined via service definition instances
* * node.missing: The default options for missing services
*
- * @param array $options An array of options
+ * @param array $options An array of options
*
* @return string The dot representation of the service container
*/
@@ -119,8 +119,8 @@ private function addEdges()
/**
* Finds all edges belonging to a specific service id.
*
- * @param string $id The service id used to find edges
- * @param array $arguments An array of arguments
+ * @param string $id The service id used to find edges
+ * @param array $arguments An array of arguments
* @param Boolean $required
* @param string $name
*
View
4 Dumper/PhpDumper.php
@@ -68,7 +68,7 @@ public function __construct(ContainerBuilder $container)
* * class: The class name
* * base_class: The base class name
*
- * @param array $options An array of options
+ * @param array $options An array of options
*
* @return string A PHP class representing of the service container
*
@@ -611,7 +611,7 @@ private function addServices()
/**
* Adds the class headers.
*
- * @param string $class Class name
+ * @param string $class Class name
* @param string $baseClass The name of the base class
*
* @return string
View
2 Dumper/XmlDumper.php
@@ -34,7 +34,7 @@ class XmlDumper extends Dumper
/**
* Dumps the service container as an XML string.
*
- * @param array $options An array of options
+ * @param array $options An array of options
*
* @return string An xml string representing of the service container
*
View
2 Dumper/YamlDumper.php
@@ -28,7 +28,7 @@ class YamlDumper extends Dumper
/**
* Dumps the service container as an YAML string.
*
- * @param array $options An array of options
+ * @param array $options An array of options
*
* @return string A YAML string representing of the service container
*
View
4 Loader/ClosureLoader.php
@@ -49,8 +49,8 @@ public function load($closure, $type = null)
/**
* Returns true if this class supports the given resource.
*
- * @param mixed $resource A resource
- * @param string $type The resource type
+ * @param mixed $resource A resource
+ * @param string $type The resource type
*
* @return Boolean true if this class supports the given resource, false otherwise
*/
View
4 Loader/IniFileLoader.php
@@ -23,8 +23,8 @@ class IniFileLoader extends FileLoader
/**
* Loads a resource.
*
- * @param mixed $file The resource
- * @param string $type The resource type
+ * @param mixed $file The resource
+ * @param string $type The resource type
*
* @throws \InvalidArgumentException When ini file is not valid
*/
View
4 ParameterBag/ParameterBag.php
@@ -115,7 +115,7 @@ public function set($name, $value)
/**
* Returns true if a parameter name is defined.
*
- * @param string $name The parameter name
+ * @param string $name The parameter name
*
* @return Boolean true if the parameter name is defined, false otherwise
*
@@ -154,7 +154,7 @@ public function resolve()
/**
* Replaces parameter placeholders (%name%) by their values.
*
- * @param mixed $value A value
+ * @param mixed $value A value
* @param array $resolving An array of keys that are being resolved (used internally to detect circular references)
*
* @return mixed The resolved value
View
4 ParameterBag/ParameterBagInterface.php
@@ -73,7 +73,7 @@ function set($name, $value);
/**
* Returns true if a parameter name is defined.
*
- * @param string $name The parameter name
+ * @param string $name The parameter name
*
* @return Boolean true if the parameter name is defined, false otherwise
*
@@ -89,7 +89,7 @@ function resolve();
/**
* Replaces parameter placeholders (%name%) by their values.
*
- * @param mixed $value A value
+ * @param mixed $value A value
*
* @throws ParameterNotFoundException if a placeholder references a parameter that does not exist
*/

0 comments on commit 9eef838

Please sign in to comment.