line numbers for each token. * * @param array $tokens The array of tokens to process. * @param object $tokenizer The tokenizer being used to process this file. * @param string $eolChar The EOL character to use for splitting strings. * * @return void */ public function foo(&$tokens, $tokenizer, $eolChar) { }//end foo() /** * Gettext. * */ public function _() { return $foo; } class Baz { /** * The PHP5 constructor * * No return tag */ public function __construct() { } } /** * Complete a step. * * @param string $status Status of step to complete. * @param array $array Array. * @param string $note Optional note. * * @return void */ public function completeStep($status, array $array = [Class1::class, 'test'], $note = '') { echo 'foo'; } /** * Variadic function. * * @param string $name1 Comment. * @param string ...$name2 Comment. * * @return void */ public function myFunction(string $name1, string ...$name2) { } /** * Variadic function. * * @param string $name1 Comment. * @param string $name2 Comment. * * @return void */ public function myFunction(string $name1, string ...$name2) { } /** * Completely invalid format, but should not cause PHP notices. * * @param $bar * Comment here. * @param ... * Additional arguments here. * * @return * Return value * */ function foo($bar) { } /** * Processes the test. * * @param PHP_CodeSniffer\Files\File $phpcsFile The PHP_CodeSniffer file where the * token occurred. * @param int $stackPtr The position in the tokens stack * where the listening token type * was found. * * @return void * @see register() */ function process(File $phpcsFile, $stackPtr) { }//end process() /** * Processes the test. * * @param int $phpcsFile The PHP_CodeSniffer * file where the * token occurred. * @param int $stackPtr The position in the tokens stack * where the listening token type * was found. * * @return void * @see register() */ function process(File $phpcsFile, $stackPtr) { }//end process()