Sfoglia il codice sorgente

[Yaml] fix some php documentation

Hugo Hamon 14 anni fa
parent
commit
b5972f3447

+ 1 - 1
src/Symfony/Component/Yaml/Dumper.php

@@ -23,7 +23,7 @@ class Dumper
      *
      * @param  mixed   $input  The PHP value
      * @param  integer $inline The level where you switch to inline YAML
-     * @param  integer $indent The level o indentation indentation (used internally)
+     * @param  integer $indent The level of indentation (used internally)
      *
      * @return string  The YAML representation of the PHP value
      */

+ 2 - 2
src/Symfony/Component/Yaml/Inline.php

@@ -20,7 +20,7 @@ class Inline
     const REGEX_QUOTED_STRING = '(?:"([^"\\\\]*(?:\\\\.[^"\\\\]*)*)"|\'([^\']*(?:\'\'[^\']*)*)\')';
 
     /**
-     * Convert a YAML string to a PHP array.
+     * Converts a YAML string to a PHP array.
      *
      * @param string $value A YAML string
      *
@@ -380,7 +380,7 @@ class Inline
     }
 
     /**
-     * Get a regex that match a unix timestamp
+     * Gets a regex that matches an unix timestamp
      *
      * @return string The regular expression
      */

+ 3 - 1
src/Symfony/Component/Yaml/Parser.php

@@ -293,6 +293,8 @@ class Parser
 
     /**
      * Moves the parser to the next line.
+     *
+     * @return Boolean
      */
     protected function moveToNextLine()
     {
@@ -320,7 +322,7 @@ class Parser
      *
      * @return mixed  A PHP value
      *
-     * @throws ParserException When reference doesn't not exist
+     * @throws ParserException When reference does not exist
      */
     protected function parseValue($value)
     {

+ 1 - 1
src/Symfony/Component/Yaml/Yaml.php

@@ -58,7 +58,7 @@ class Yaml
      *   print_r($array);
      *  </code>
      *
-     * @param string $input Path of YAML file or string containing YAML
+     * @param string $input Path to a YAML file or a string containing YAML
      *
      * @return array The YAML converted to a PHP array
      *