Skip to content

Commit

Permalink
Merge branch 'return-false' of https://github.com/glen-84/PHP_CodeSni…
Browse files Browse the repository at this point in the history
  • Loading branch information
gsherwood committed Jan 5, 2020
2 parents 65e88a3 + fcf8680 commit eae1b6e
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions src/Files/File.php
Original file line number Diff line number Diff line change
Expand Up @@ -2115,7 +2115,7 @@ public function getTokensAsString($start, $length, $origContent=false)
* will not be checked. IE. checking will stop
* at the previous semi-colon found.
*
* @return int|bool
* @return int|false
* @see findNext()
*/
public function findPrevious(
Expand Down Expand Up @@ -2196,7 +2196,7 @@ public function findPrevious(
* will not be checked. i.e., checking will stop
* at the next semi-colon found.
*
* @return int|bool
* @return int|false
* @see findPrevious()
*/
public function findNext(
Expand Down Expand Up @@ -2404,7 +2404,7 @@ public function findEndOfStatement($start, $ignore=null)
* If value is omitted, tokens with any value will
* be returned.
*
* @return int|bool
* @return int|false
*/
public function findFirstOnLine($types, $start, $exclude=false, $value=null)
{
Expand Down Expand Up @@ -2491,7 +2491,7 @@ public function hasCondition($stackPtr, $types)
* @param int $stackPtr The position of the token we are checking.
* @param int|string $type The type of token to search for.
*
* @return int
* @return int|false
*/
public function getCondition($stackPtr, $type)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ public function process(File $phpcsFile, $stackPtr)
* @param int $stackPtr The position to start looking at.
* @param int $end The position to stop looking at.
*
* @return int|bool
* @return int|false
*/
private function findNextCase($phpcsFile, $stackPtr, $end)
{
Expand Down
2 changes: 1 addition & 1 deletion src/Util/Tokens.php
Original file line number Diff line number Diff line change
Expand Up @@ -626,7 +626,7 @@ public static function tokenName($token)
* @param array<int|string> $tokens The token types to get the highest weighted
* type for.
*
* @return int The highest weighted token.
* @return int|false The highest weighted token.
*/
public static function getHighestWeightedToken(array $tokens)
{
Expand Down

0 comments on commit eae1b6e

Please sign in to comment.