Skip to content

Commit

Permalink
# Code style issue fixed.
Browse files Browse the repository at this point in the history
git-svn-id: svn://xplib.de/PHP_PMD/trunk@197 0bc4ca42-642f-4eb8-9a60-dc4da71a2dd1
  • Loading branch information
manuelpichler committed Feb 28, 2010
1 parent 975f6a8 commit 6fb6c62
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 8 deletions.
6 changes: 3 additions & 3 deletions source/PHP/PMD/Rule/UnusedPrivateField.php
Original file line number Diff line number Diff line change
Expand Up @@ -182,8 +182,8 @@ private function _removeUsedField(PHP_PMD_Node_ASTNode $postfix)
* This method checks that the given property postfix is accessed on an
* instance or static reference to the given class.
*
* @param PHP_PMD_Node_CodeClass $class The context class node instance.
* @param PHP_PMD_Node_ASTNode $postfix The context property postfix node.
* @param PHP_PMD_Node_CodeClass $class The context class node instance.
* @param PHP_PMD_Node_ASTNode $postfix The context property postfix node.
*
* @return boolean
*/
Expand All @@ -201,4 +201,4 @@ private function _isClassScope(
strcasecmp($prefix->getImage(), $class->getImage()) === 0
);
}
}
}
12 changes: 7 additions & 5 deletions source/PHP/PMD/Rule/UnusedPrivateMethod.php
Original file line number Diff line number Diff line change
Expand Up @@ -121,8 +121,10 @@ private function _collectPrivateMethods(PHP_PMD_Node_CodeClass $class)
*
* @return array(PHP_PMD_AbstractNode)
*/
private function _removeUsedMethods(PHP_PMD_Node_CodeClass $class, array $methods)
{
private function _removeUsedMethods(
PHP_PMD_Node_CodeClass $class,
array $methods
) {
foreach ($class->findChildrenOfType('MethodPostfix') as $postfix) {
if ($this->_isClassScope($class, $postfix)) {
unset($methods[strtolower($postfix->getImage())]);
Expand Down Expand Up @@ -157,8 +159,8 @@ private function _acceptMethod(
* This method checks that the given method postfix is accessed on an
* instance or static reference to the given class.
*
* @param PHP_PMD_Node_CodeClass $class The context class node instance.
* @param PHP_PMD_Node_ASTNode $postfix The context method postfix node.
* @param PHP_PMD_Node_CodeClass $class The context class node instance.
* @param PHP_PMD_Node_ASTNode $postfix The context method postfix node.
*
* @return boolean
*/
Expand All @@ -176,4 +178,4 @@ private function _isClassScope(
strcasecmp($prefix->getImage(), $class->getImage()) === 0
);
}
}
}

0 comments on commit 6fb6c62

Please sign in to comment.