Menu

Commit [r155]  Maximize  Restore  History

Issue 1: Big Refactoring of the code

tchule@hotmail.com 2012-12-26

changed /trunk/PhpCheckstyle/src/PHPCheckstyle.php
/trunk/PhpCheckstyle/src/PHPCheckstyle.php Diff Switch to side-by-side view
--- a/trunk/PhpCheckstyle/src/PHPCheckstyle.php
+++ b/trunk/PhpCheckstyle/src/PHPCheckstyle.php
@@ -1375,7 +1375,7 @@
 		}
 
 		// Now we expect the '{' token
-		if (!$this->tokenizer->checkNextValidToken(T_BRACES_OPEN, null, $startPos)) {
+		if (!$this->tokenizer->checkNextValidToken(T_BRACES_OPEN, null, $startPos + 1)) {
 
 			// If not the case, we store the control statement in the stack
 			$stackitem = new StatementItem();
@@ -1575,14 +1575,6 @@
 			// If the function is not private and we check the doc
 			$isPrivateExcluded = $this->_config->getTestProperty('docBlocks', 'excludePrivateMembers');
 			if (!($isPrivateExcluded && $this->_functionVisibility == 'PRIVATE')) {
-				
-				echo "this->_currentFunctionName : ".$this->_currentFunctionName.PHP_EOL;
-				echo "this->_nbFunctionParameters : ".$this->_nbFunctionParameters.PHP_EOL;
-				echo "this->_functionReturns : ".$this->_functionReturns.PHP_EOL;
-				echo "this->_functionThrows : ".$this->_functionThrows.PHP_EOL;
-				echo "this->_docblocNbParams : ".$this->_docblocNbParams.PHP_EOL;
-				echo "this->_docblocNbReturns : ".$this->_docblocNbReturns.PHP_EOL;
-				echo "this->_docblocNbThrows : ".$this->_docblocNbThrows.PHP_EOL;
 
 				// Check the docblock @return
 				if (($this->_config->getTestProperty('docBlocks', 'testReturn') != 'false')) {
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.