Skip to content

Commit 9b2be15

Browse files
committed
Docs: various minor fixes
1 parent 1229916 commit 9b2be15

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/Util/Tokens.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -752,13 +752,13 @@ final class Tokens
752752

753753

754754
/**
755-
* Given a token, returns the name of the token.
755+
* Given a token constant, returns the name of the token.
756756
*
757757
* If passed an integer, the token name is sourced from PHP's token_name()
758758
* function. If passed a string, it is assumed to be a PHPCS-supplied token
759759
* that begins with PHPCS_T_, so the name is sourced from the token value itself.
760760
*
761-
* @param int|string $token The token to get the name for.
761+
* @param int|string $token The token constant to get the name for.
762762
*
763763
* @return string
764764
*/

tests/Core/AbstractMethodUnitTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -190,8 +190,8 @@ public function getTargetToken($commentString, $tokenType, $tokenContent=null)
190190
*
191191
* @return int
192192
*
193-
* @throws Exception When the test delimiter comment is not found.
194-
* @throws Exception When the test target token is not found.
193+
* @throws \Exception When the test delimiter comment is not found.
194+
* @throws \Exception When the test target token is not found.
195195
*/
196196
public static function getTargetTokenFromFile(File $phpcsFile, $commentString, $tokenType, $tokenContent=null)
197197
{

0 commit comments

Comments
 (0)