Просмотр исходного кода

[CssSelector] fix phpdoc to match coding standards (int -> integer, bool -> Boolean).

hhamon 14 лет назад
Родитель
Сommit
9a89b4628f

+ 7 - 7
src/Symfony/Component/CssSelector/Token.php

@@ -28,9 +28,9 @@ class Token
     /**
      * Constructor.
      *
-     * @param string $type     The type of this token.
-     * @param mixed  $value    The value of this token.
-     * @param int    $position The order of this token.
+     * @param string  $type     The type of this token.
+     * @param mixed   $value    The value of this token.
+     * @param integer $position The order of this token.
      */
     public function __construct($type, $value, $position)
     {
@@ -40,7 +40,7 @@ class Token
     }
 
     /**
-     * Get a string representation of this token.
+     * Gets a string representation of this token.
      *
      * @return string
      */
@@ -54,7 +54,7 @@ class Token
      *
      * @param  string $type The type to test against this token's one.
      *
-     * @return bool
+     * @return Boolean
      */
     public function isType($type)
     {
@@ -62,9 +62,9 @@ class Token
     }
 
     /**
-     * Get the position of this token.
+     * Gets the position of this token.
      *
-     * @return int
+     * @return integer
      */
     public function getPosition()
     {

+ 2 - 2
src/Symfony/Component/CssSelector/TokenStream.php

@@ -43,7 +43,7 @@ class TokenStream
     }
 
     /**
-     * Get the tokens that have already been visited in this stream.
+     * Gets the tokens that have already been visited in this stream.
      *
      * @return array
      */
@@ -53,7 +53,7 @@ class TokenStream
     }
 
     /**
-     * Get the next token in the stream or null if there is none.
+     * Gets the next token in the stream or null if there is none.
      * Note that if this stream was set to be peeking its behavior
      * will be restored to not peeking after this operation.
      *

+ 4 - 4
src/Symfony/Component/CssSelector/Tokenizer.php

@@ -109,8 +109,8 @@ class Tokenizer
      *
      * @throws SyntaxError When expected closing is not found
      *
-     * @param  string $s   The selector string containing the quoted string.
-     * @param  int    $pos The starting position for the quoted string.
+     * @param  string  $s   The selector string containing the quoted string.
+     * @param  integer $pos The starting position for the quoted string.
      *
      * @return array
      */
@@ -172,8 +172,8 @@ class Tokenizer
      *
      * @throws SyntaxError When Unexpected symbol is found
      *
-     * @param  string $s   The selector string.
-     * @param  int    $pos The position in $s at which the symbol starts.
+     * @param  string  $s   The selector string.
+     * @param  integer $pos The position in $s at which the symbol starts.
      *
      * @return array
      */

+ 12 - 12
src/Symfony/Component/CssSelector/XPathExpr.php

@@ -30,11 +30,11 @@ class XPathExpr
     /**
      * Constructor.
      *
-     * @param string $prefix     Prefix for the XPath expression.
-     * @param string $path       Actual path of the expression.
-     * @param string $element    The element in the expression.
-     * @param string $condition  A condition for the expression.
-     * @param bool   $starPrefix Indicates whether to use a star prefix.
+     * @param string  $prefix     Prefix for the XPath expression.
+     * @param string  $path       Actual path of the expression.
+     * @param string  $element    The element in the expression.
+     * @param string  $condition  A condition for the expression.
+     * @param Boolean $starPrefix Indicates whether to use a star prefix.
      */
     public function __construct($prefix = null, $path = null, $element = '*', $condition = null, $starPrefix = false)
     {
@@ -46,7 +46,7 @@ class XPathExpr
     }
 
     /**
-     * Get the prefix of this XPath expression.
+     * Gets the prefix of this XPath expression.
      *
      * @return string
      */
@@ -56,7 +56,7 @@ class XPathExpr
     }
 
     /**
-     * Get the path of this XPath expression.
+     * Gets the path of this XPath expression.
      *
      * @return string
      */
@@ -68,7 +68,7 @@ class XPathExpr
     /**
      * Answers whether this XPath expression has a star prefix.
      *
-     * @return bool
+     * @return Boolean
      */
     public function hasStarPrefix()
     {
@@ -76,7 +76,7 @@ class XPathExpr
     }
 
     /**
-     * Get the element of this XPath expression.
+     * Gets the element of this XPath expression.
      *
      * @return string
      */
@@ -86,7 +86,7 @@ class XPathExpr
     }
 
     /**
-     * Get the condition of this XPath expression.
+     * Gets the condition of this XPath expression.
      *
      * @return string
      */
@@ -96,7 +96,7 @@ class XPathExpr
     }
 
     /**
-     * Get a string representation for this XPath expression.
+     * Gets a string representation for this XPath expression.
      *
      * @return string
      */
@@ -213,7 +213,7 @@ class XPathExpr
     }
 
     /**
-     * Get an XPath literal for $s.
+     * Gets an XPath literal for $s.
      *
      * @param  mixed $s Can either be a Node\ElementNode or a string.
      *

+ 1 - 1
src/Symfony/Component/CssSelector/XPathExprOr.php

@@ -36,7 +36,7 @@ class XPathExprOr extends XPathExpr
     }
 
     /**
-     * Get a string representation of this |'d expression.
+     * Gets a string representation of this |'d expression.
      *
      * @return string
      */