Ver código fonte

[Various] Phpdoc & typos

Pascal Borreli 14 anos atrás
pai
commit
404c452c0b

+ 1 - 1
src/Symfony/Bridge/Doctrine/Form/ChoiceList/EntityChoiceList.php

@@ -221,7 +221,7 @@ class EntityChoiceList extends ArrayChoiceList
      * Returns the entity for the given key
      *
      * If the underlying entities have composite identifiers, the choices
-     * are intialized. The key is expected to be the index in the choices
+     * are initialized. The key is expected to be the index in the choices
      * array in this case.
      *
      * If they have single identifiers, they are either fetched from the

+ 1 - 1
src/Symfony/Bridge/Twig/Extension/FormExtension.php

@@ -184,7 +184,7 @@ class FormExtension extends \Twig_Extension
      * 1. This function first looks for a block named "_<view id>_<section>",
      * 2. if such a block is not found the function will look for a block named
      *    "<type name>_<section>",
-     * 3. the type name is recusrively replaced by the parent type name until a
+     * 3. the type name is recursively replaced by the parent type name until a
      *    corresponding block is found
      *
      * @param FormView  $view       The form view

+ 1 - 1
src/Symfony/Component/BrowserKit/CookieJar.php

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

+ 1 - 1
src/Symfony/Component/Config/Definition/ArrayNode.php

@@ -277,7 +277,7 @@ class ArrayNode extends BaseNode implements PrototypeNodeInterface
      * Remap multiple singular values to a single plural value
      *
      * @param array $value The source values
-     * @return array The remaped values
+     * @return array The remapped values
      */
     protected function remapXml($value)
     {

+ 1 - 1
src/Symfony/Component/DependencyInjection/Compiler/ServiceReferenceGraphNode.php

@@ -85,7 +85,7 @@ class ServiceReferenceGraphNode
     /**
      * Returns the identifier.
      *
-     * @return void
+     * @return string
      */
     public function getId()
     {

+ 1 - 1
src/Symfony/Component/DependencyInjection/Dumper/GraphvizDumper.php

@@ -199,7 +199,7 @@ class GraphvizDumper extends Dumper
     /**
      * Returns the end dot.
      *
-     * @return void
+     * @return string
      */
     private function endDot()
     {

+ 1 - 1
src/Symfony/Component/DependencyInjection/Dumper/PhpDumper.php

@@ -798,7 +798,7 @@ EOF;
     /**
      * Ends the class definition.
      *
-     * @return void
+     * @return string
      */
     private function endClass()
     {

+ 1 - 1
src/Symfony/Component/DependencyInjection/Dumper/YamlDumper.php

@@ -113,7 +113,7 @@ class YamlDumper extends Dumper
      *
      * @param string $alias
      * @param string $id
-     * @return void
+     * @return string
      */
     private function addServiceAlias($alias, $id)
     {

+ 1 - 1
src/Symfony/Component/DependencyInjection/Loader/YamlFileLoader.php

@@ -267,7 +267,7 @@ class YamlFileLoader extends FileLoader
      * Resolves services.
      *
      * @param string $value
-     * @return void
+     * @return Reference
      */
     private function resolveServices($value)
     {

+ 1 - 1
src/Symfony/Component/Serializer/Encoder/XmlEncoder.php

@@ -269,7 +269,7 @@ class XmlEncoder extends SerializerAwareEncoder implements DecoderInterface, Nor
      * @param array|object $data
      * @param string       $nodename
      * @param string       $key
-     * @return void
+     * @return Boolean
      */
     private function appendNode($parentNode, $data, $nodeName, $key = null)
     {