cvs: pear /PHP_CodeSniffer/CodeSniffer/CommentParser AbstractParser.php ClassCommentParser.php FunctionCommentParser.php SingleElement.php
| From: | Greg Sherwood | Date: | Wed, 28 Feb 2007 05:18:11 +0000 |
| Subject: | cvs: pear /PHP_CodeSniffer/CodeSniffer/CommentParser AbstractParser.php ClassCommentParser.php FunctionCommentParser.php SingleElement.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-44907@lists.php.net to get a copy of this message | ||
squiz Wed Feb 28 05:18:11 2007 UTC
Modified files:
/pear/PHP_CodeSniffer/CodeSniffer/CommentParser AbstractParser.php
ClassCommentParser.php
FunctionCommentParser.php
SingleElement.php
Log:
Fixed coding standard errors
http://cvs.php.net/viewvc.cgi/pear/PHP_CodeSniffer/CodeSniffer/CommentParser/AbstractParser.php?r1=1.10&r2=1.11&diff_format=u
Index: pear/PHP_CodeSniffer/CodeSniffer/CommentParser/AbstractParser.php
diff -u pear/PHP_CodeSniffer/CodeSniffer/CommentParser/AbstractParser.php:1.10
pear/PHP_CodeSniffer/CodeSniffer/CommentParser/AbstractParser.php:1.11
--- pear/PHP_CodeSniffer/CodeSniffer/CommentParser/AbstractParser.php:1.10 Wed Jan 10 03:14:42 2007
+++ pear/PHP_CodeSniffer/CodeSniffer/CommentParser/AbstractParser.php Wed Feb 28 05:18:11 2007
@@ -10,7 +10,7 @@
* @author Marc McIntyre <mmcintyre@squiz.net>
* @copyright 2006 Squiz Pty Ltd (ABN 77 084 670 600)
* @license http://matrix.squiz.net/developer/tools/php_cs/licence
BSD Licence
- * @version CVS: $Id: AbstractParser.php,v 1.10 2007/01/10 03:14:42 squiz Exp $
+ * @version CVS: $Id: AbstractParser.php,v 1.11 2007/02/28 05:18:11 squiz Exp $
* @link http://pear.php.net/package/PHP_CodeSniffer
*/
@@ -203,8 +203,8 @@
// Add the words to the stack, preserving newlines. Other parsers
// might be interested in the spaces between words, so tokenize
// spaces as well as separate tokens.
- $flags = (PREG_SPLIT_DELIM_CAPTURE | PREG_SPLIT_NO_EMPTY);
- $words = preg_split('|(\s+)|', $line."\n", -1, $flags);
+ $flags = (PREG_SPLIT_DELIM_CAPTURE | PREG_SPLIT_NO_EMPTY);
+ $words = preg_split('|(\s+)|', $line."\n", -1, $flags);
$this->words = array_merge($this->words, $words);
}
}
@@ -349,7 +349,7 @@
*/
protected function parseSee($tokens)
{
- $see = new PHP_CodeSniffer_CommentParser_SingleElement($this->previousElement, $tokens,
'see');
+ $see = new PHP_CodeSniffer_CommentParser_SingleElement($this->previousElement,
$tokens, 'see');
$this->sees[] = $see;
return $see;
@@ -410,7 +410,7 @@
*/
protected function parseLink($tokens)
{
- $link = new PHP_CodeSniffer_CommentParser_SingleElement($this->previousElement, $tokens,
'link');
+ $link = new PHP_CodeSniffer_CommentParser_SingleElement($this->previousElement,
$tokens, 'link');
$this->links[] = $link;
return $link;
@@ -507,7 +507,7 @@
}
$this->previousElement = $this->$method($tokens);
- $this->orders[] = $tag;
+ $this->orders[] = $tag;
if ($this->previousElement === null || ($this->previousElement instanceof
PHP_CodeSniffer_CommentParser_DocElement) === false) {
throw new Exception('Parse method must return a DocElement');
http://cvs.php.net/viewvc.cgi/pear/PHP_CodeSniffer/CodeSniffer/CommentParser/ClassCommentParser.php?r1=1.5&r2=1.6&diff_format=u
Index: pear/PHP_CodeSniffer/CodeSniffer/CommentParser/ClassCommentParser.php
diff -u pear/PHP_CodeSniffer/CodeSniffer/CommentParser/ClassCommentParser.php:1.5
pear/PHP_CodeSniffer/CodeSniffer/CommentParser/ClassCommentParser.php:1.6
--- pear/PHP_CodeSniffer/CodeSniffer/CommentParser/ClassCommentParser.php:1.5 Wed Jan 10 03:14:42
2007
+++ pear/PHP_CodeSniffer/CodeSniffer/CommentParser/ClassCommentParser.php Wed Feb 28 05:18:11 2007
@@ -10,7 +10,7 @@
* @author Marc McIntyre <mmcintyre@squiz.net>
* @copyright 2006 Squiz Pty Ltd (ABN 77 084 670 600)
* @license http://matrix.squiz.net/developer/tools/php_cs/licence
BSD Licence
- * @version CVS: $Id: ClassCommentParser.php,v 1.5 2007/01/10 03:14:42 squiz Exp $
+ * @version CVS: $Id: ClassCommentParser.php,v 1.6 2007/02/28 05:18:11 squiz Exp $
* @link http://pear.php.net/package/PHP_CodeSniffer
*/
@@ -155,7 +155,7 @@
*/
protected function parseAuthor($tokens)
{
- $author = new PHP_CodeSniffer_CommentParser_SingleElement($this->previousElement,
$tokens, 'author');
+ $author = new
PHP_CodeSniffer_CommentParser_SingleElement($this->previousElement, $tokens, 'author');
$this->_authors[] = $author;
return $author;
http://cvs.php.net/viewvc.cgi/pear/PHP_CodeSniffer/CodeSniffer/CommentParser/FunctionCommentParser.php?r1=1.2&r2=1.3&diff_format=u
Index: pear/PHP_CodeSniffer/CodeSniffer/CommentParser/FunctionCommentParser.php
diff -u pear/PHP_CodeSniffer/CodeSniffer/CommentParser/FunctionCommentParser.php:1.2
pear/PHP_CodeSniffer/CodeSniffer/CommentParser/FunctionCommentParser.php:1.3
--- pear/PHP_CodeSniffer/CodeSniffer/CommentParser/FunctionCommentParser.php:1.2 Mon Dec 11 23:59:35
2006
+++ pear/PHP_CodeSniffer/CodeSniffer/CommentParser/FunctionCommentParser.php Wed Feb 28 05:18:11
2007
@@ -10,7 +10,7 @@
* @author Marc McIntyre <mmcintyre@squiz.net>
* @copyright 2006 Squiz Pty Ltd (ABN 77 084 670 600)
* @license http://matrix.squiz.net/developer/tools/php_cs/licence
BSD Licence
- * @version CVS: $Id: FunctionCommentParser.php,v 1.2 2006/12/11 23:59:35 squiz Exp $
+ * @version CVS: $Id: FunctionCommentParser.php,v 1.3 2007/02/28 05:18:11 squiz Exp $
* @link http://pear.php.net/package/PHP_CodeSniffer
*/
@@ -78,9 +78,8 @@
*/
protected function parseParam($tokens)
{
- $param = new PHP_CodeSniffer_CommentParser_ParameterElement($this->previousElement,
$tokens);
+ $param = new
PHP_CodeSniffer_CommentParser_ParameterElement($this->previousElement, $tokens);
$this->_params[] = $param;
-
return $param;
}//end parseParam()
@@ -95,9 +94,8 @@
*/
protected function parseReturn($tokens)
{
- $return = new PHP_CodeSniffer_CommentParser_PairElement($this->previousElement, $tokens,
'return');
+ $return = new PHP_CodeSniffer_CommentParser_PairElement($this->previousElement,
$tokens, 'return');
$this->_return = $return;
-
return $return;
}//end parseReturn()
@@ -112,9 +110,8 @@
*/
protected function parseThrows($tokens)
{
- $throws = new PHP_CodeSniffer_CommentParser_PairElement($this->previousElement, $tokens,
'throws');
+ $throws = new PHP_CodeSniffer_CommentParser_PairElement($this->previousElement,
$tokens, 'throws');
$this->_throws[] = $throws;
-
return $throws;
}//end parseThrows()
http://cvs.php.net/viewvc.cgi/pear/PHP_CodeSniffer/CodeSniffer/CommentParser/SingleElement.php?r1=1.6&r2=1.7&diff_format=u
Index: pear/PHP_CodeSniffer/CodeSniffer/CommentParser/SingleElement.php
diff -u pear/PHP_CodeSniffer/CodeSniffer/CommentParser/SingleElement.php:1.6
pear/PHP_CodeSniffer/CodeSniffer/CommentParser/SingleElement.php:1.7
--- pear/PHP_CodeSniffer/CodeSniffer/CommentParser/SingleElement.php:1.6 Mon Jan 8 05:07:29 2007
+++ pear/PHP_CodeSniffer/CodeSniffer/CommentParser/SingleElement.php Wed Feb 28 05:18:11 2007
@@ -10,7 +10,7 @@
* @author Marc McIntyre <mmcintyre@squiz.net>
* @copyright 2006 Squiz Pty Ltd (ABN 77 084 670 600)
* @license http://matrix.squiz.net/developer/tools/php_cs/licence
BSD Licence
- * @version CVS: $Id: SingleElement.php,v 1.6 2007/01/08 05:07:29 squiz Exp $
+ * @version CVS: $Id: SingleElement.php,v 1.7 2007/02/28 05:18:11 squiz Exp $
* @link http://pear.php.net/package/PHP_CodeSniffer
*/
@@ -94,7 +94,7 @@
*/
protected function processSubElement($name, $content, $whitespaceBefore)
{
- $this->content = $content;
+ $this->content = $content;
$this->contentWhitespace = $whitespaceBefore;
}//end processSubElement()