From 7c9b8237a0674a7c6bb9965d1cf40a84e3bfde5d Mon Sep 17 00:00:00 2001 From: Joshua Spence Date: Tue, 10 Feb 2015 06:53:53 +1100 Subject: [PATCH] Change a method name Summary: Ref T5655. Test Plan: `arc unit` Reviewers: epriestley, #blessed_reviewers Reviewed By: epriestley, #blessed_reviewers Subscribers: Korvin, epriestley Maniphest Tasks: T5655 Differential Revision: https://secure.phabricator.com/D11713 --- src/lint/linter/ArcanistXHPASTLinter.php | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/lint/linter/ArcanistXHPASTLinter.php b/src/lint/linter/ArcanistXHPASTLinter.php index b36e990b..90b6081d 100644 --- a/src/lint/linter/ArcanistXHPASTLinter.php +++ b/src/lint/linter/ArcanistXHPASTLinter.php @@ -270,7 +270,7 @@ final class ArcanistXHPASTLinter extends ArcanistBaseXHPASTLinter { 'lintPregQuote' => self::LINT_PREG_QUOTE_MISUSE, 'lintExitExpressions' => self::LINT_EXIT_EXPRESSION, 'lintArrayIndexWhitespace' => self::LINT_ARRAY_INDEX_SPACING, - 'lintTODOComments' => self::LINT_TODO_COMMENT, + 'lintTodoComments' => self::LINT_TODO_COMMENT, 'lintPrimaryDeclarationFilenameMatch' => self::LINT_CLASS_FILENAME_MISMATCH, 'lintPlusOperatorOnStrings' => self::LINT_PLUS_OPERATOR_ON_STRINGS, @@ -2461,9 +2461,11 @@ final class ArcanistXHPASTLinter extends ArcanistBaseXHPASTLinter { } } - private function lintTODOComments(XHPASTNode $root) { - $comments = $root->selectTokensOfType('T_COMMENT') + - $root->selectTokensOfType('T_DOC_COMMENT'); + private function lintTodoComments(XHPASTNode $root) { + $comments = $root->selectTokensOfTypes(array( + 'T_COMMENT', + 'T_DOC_COMMENT', + )); foreach ($comments as $token) { $value = $token->getValue();