File tree Expand file tree Collapse file tree 4 files changed +25
-1
lines changed Expand file tree Collapse file tree 4 files changed +25
-1
lines changed Original file line number Diff line number Diff line change @@ -137,9 +137,10 @@ public function process(File $phpcsFile, $stackPtr)
137
137
}
138
138
} else if ($ tokens [($ i + 2 )]['code ' ] === T_DOC_COMMENT_TAG
139
139
&& $ tokens [($ i + 1 )]['content ' ] !== ' '
140
- // Special @code/@endcode tags can have more than 1 space.
140
+ // Special @code/@endcode/@see tags can have more than 1 space.
141
141
&& $ tokens [($ i + 2 )]['content ' ] !== '@code '
142
142
&& $ tokens [($ i + 2 )]['content ' ] !== '@endcode '
143
+ && $ tokens [($ i + 2 )]['content ' ] !== '@see '
143
144
) {
144
145
$ error = 'Expected 1 space after asterisk; %s found ' ;
145
146
$ data = [strlen ($ tokens [($ i + 1 )]['content ' ])];
Original file line number Diff line number Diff line change @@ -378,6 +378,7 @@ public function process(File $phpcsFile, $stackPtr)
378
378
$ ignoreTags = [
379
379
'@code ' ,
380
380
'@endcode ' ,
381
+ '@see ' ,
381
382
];
382
383
foreach ($ tokens [$ commentStart ]['comment_tags ' ] as $ pos => $ tag ) {
383
384
if ($ pos > 0 ) {
Original file line number Diff line number Diff line change @@ -16,3 +16,14 @@ class Test {
16
16
var $ varStyle ;
17
17
18
18
}
19
+
20
+ /**
21
+ * Short description.
22
+ *
23
+ * @param string $a
24
+ * The following reference is allowed to be indented.
25
+ * @see my_function()
26
+ */
27
+ function test31 ($ a ) {
28
+
29
+ }
Original file line number Diff line number Diff line change @@ -16,3 +16,14 @@ class Test {
16
16
public $varStyle;
17
17
18
18
}
19
+
20
+ /**
21
+ * Short description.
22
+ *
23
+ * @param string $a
24
+ * The following reference is allowed to be indented.
25
+ * @see my_function()
26
+ */
27
+ function test31($a) {
28
+
29
+ }
You can’t perform that action at this time.
0 commit comments