We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 04f2aad commit 7be34eeCopy full SHA for 7be34ee
CodeSniffer/Sniff.php
@@ -83,7 +83,10 @@ public function register();
83
* file's token stack where the token
84
* was found.
85
*
86
- * @return void
+ * @return void|int Optionally returns a stack pointer. The sniff will not be
87
+ * called again on the current file until the returned stack
88
+ * pointer is reached. Return (count($tokens) + 1) to skip
89
+ * the rest of the file.
90
*/
91
public function process(PHP_CodeSniffer_File $phpcsFile, $stackPtr);
92
0 commit comments