Skip to content

Commit 615c047

Browse files
authored
Merge pull request #149 from PHPCSStandards/docs/various-tag-order-fixes
Docs: various tag order fixes
2 parents fdfc524 + 5448ece commit 615c047

File tree

2 files changed

+23
-23
lines changed

2 files changed

+23
-23
lines changed

PHPCSUtils/Tokens/Collections.php

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -63,11 +63,11 @@ class Collections
6363
/**
6464
* Tokens which are used to create arrays.
6565
*
66-
* @since 1.0.0
67-
*
6866
* @see \PHPCSUtils\Tokens\Collections::$shortArrayTokens Related property containing only tokens used
6967
* for short arrays.
7068
*
69+
* @since 1.0.0
70+
*
7171
* @var array <int|string> => <int|string>
7272
*/
7373
public static $arrayTokens = [
@@ -82,11 +82,11 @@ class Collections
8282
* List which is backward-compatible with PHPCS < 3.3.0.
8383
* Should only be used selectively.
8484
*
85-
* @since 1.0.0
86-
*
8785
* @see \PHPCSUtils\Tokens\Collections::$shortArrayTokensBC Related property containing only tokens used
8886
* for short arrays (cross-version).
8987
*
88+
* @since 1.0.0
89+
*
9090
* @var array <int|string> => <int|string>
9191
*/
9292
public static $arrayTokensBC = [
@@ -165,11 +165,11 @@ class Collections
165165
/**
166166
* Tokens which are used to create lists.
167167
*
168-
* @since 1.0.0
169-
*
170168
* @see \PHPCSUtils\Tokens\Collections::$shortListTokens Related property containing only tokens used
171169
* for short lists.
172170
*
171+
* @since 1.0.0
172+
*
173173
* @var array <int|string> => <int|string>
174174
*/
175175
public static $listTokens = [
@@ -184,11 +184,11 @@ class Collections
184184
* List which is backward-compatible with PHPCS < 3.3.0.
185185
* Should only be used selectively.
186186
*
187-
* @since 1.0.0
188-
*
189187
* @see \PHPCSUtils\Tokens\Collections::$shortListTokensBC Related property containing only tokens used
190188
* for short lists (cross-version).
191189
*
190+
* @since 1.0.0
191+
*
192192
* @var array <int|string> => <int|string>
193193
*/
194194
public static $listTokensBC = [
@@ -202,10 +202,10 @@ class Collections
202202
/**
203203
* Tokens for the PHP magic constants.
204204
*
205-
* @since 1.0.0
206-
*
207205
* @link https://www.php.net/language.constants.predefined
208206
*
207+
* @since 1.0.0
208+
*
209209
* @var array <int|string> => <int|string>
210210
*/
211211
public static $magicConstants = [
@@ -433,10 +433,10 @@ class Collections
433433
/**
434434
* Tokens which are used for short arrays.
435435
*
436-
* @since 1.0.0
437-
*
438436
* @see \PHPCSUtils\Tokens\Collections::$arrayTokens Related property containing all tokens used for arrays.
439437
*
438+
* @since 1.0.0
439+
*
440440
* @var array <int|string> => <int|string>
441441
*/
442442
public static $shortArrayTokens = [
@@ -450,11 +450,11 @@ class Collections
450450
* List which is backward-compatible with PHPCS < 3.3.0.
451451
* Should only be used selectively.
452452
*
453-
* @since 1.0.0
454-
*
455453
* @see \PHPCSUtils\Tokens\Collections::$arrayTokensBC Related property containing all tokens used for arrays
456454
* (cross-version).
457455
*
456+
* @since 1.0.0
457+
*
458458
* @var array <int|string> => <int|string>
459459
*/
460460
public static $shortArrayTokensBC = [
@@ -467,10 +467,10 @@ class Collections
467467
/**
468468
* Tokens which are used for short lists.
469469
*
470-
* @since 1.0.0
471-
*
472470
* @see \PHPCSUtils\Tokens\Collections::$listTokens Related property containing all tokens used for lists.
473471
*
472+
* @since 1.0.0
473+
*
474474
* @var array <int|string> => <int|string>
475475
*/
476476
public static $shortListTokens = [
@@ -484,11 +484,11 @@ class Collections
484484
* List which is backward-compatible with PHPCS < 3.3.0.
485485
* Should only be used selectively.
486486
*
487-
* @since 1.0.0
488-
*
489487
* @see \PHPCSUtils\Tokens\Collections::$listTokensBC Related property containing all tokens used for lists
490488
* (cross-version).
491489
*
490+
* @since 1.0.0
491+
*
492492
* @var array <int|string> => <int|string>
493493
*/
494494
public static $shortListTokensBC = [

PHPCSUtils/Utils/FunctionDeclarations.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -136,13 +136,13 @@ class FunctionDeclarations
136136
*
137137
* Alias for the {@see \PHPCSUtils\Utils\ObjectDeclarations::getName()} method.
138138
*
139-
* @codeCoverageIgnore
140-
*
141139
* @see \PHPCSUtils\BackCompat\BCFile::getDeclarationName() Original function.
142140
* @see \PHPCSUtils\Utils\ObjectDeclarations::getName() PHPCSUtils native improved version.
143141
*
144142
* @since 1.0.0
145143
*
144+
* @codeCoverageIgnore
145+
*
146146
* @param \PHP_CodeSniffer\Files\File $phpcsFile The file being scanned.
147147
* @param int $stackPtr The position of the function keyword token.
148148
*
@@ -974,15 +974,15 @@ public static function isPHPDoubleUnderscoreMethodName($name)
974974
/**
975975
* Checks if a given function is a magic method or a PHP native double underscore method.
976976
*
977+
* {@internal Not the most efficient way of checking this, but less efficient ways will get
978+
* less reliable results or introduce a lot of code duplication.}
979+
*
977980
* @see \PHPCSUtils\Utils\FunctionDeclaration::isSpecialMethodName() For when you already know the name of the
978981
* method and scope checking is done in the
979982
* sniff.
980983
*
981984
* @since 1.0.0
982985
*
983-
* {@internal Not the most efficient way of checking this, but less efficient ways will get
984-
* less reliable results or introduce a lot of code duplication.}
985-
*
986986
* @param \PHP_CodeSniffer\Files\File $phpcsFile The file where this token was found.
987987
* @param int $stackPtr The T_FUNCTION token to check.
988988
*

0 commit comments

Comments
 (0)