process() public method

Processes this test, when one of its tokens is encountered.
public process ( PHP_CodeSniffer_File $phpcsFile, integer $stackPtr ) : integer
$phpcsFile PHP_CodeSniffer_File The file being scanned.
$stackPtr integer The position of the current token in the stack passed in $tokens.
return integer
Ejemplo n.º 1
0
 /**
  * Processes this test, when one of its tokens is encountered. Overrides to relax some
  * requirements.
  *
  * @param PHP_CodeSniffer_File $phpcsFile The file being scanned.
  * @param int                  $stackPtr  The position of the current token
  *                                        in the stack passed in $tokens.
  *
  * @return void
  */
 public function process(PHP_CodeSniffer_File $phpcsFile, $stackPtr)
 {
     // Changes for joind.in
     $this->tags['author']['required'] = false;
     $this->tags['link']['required'] = false;
     $this->tags['version']['required'] = false;
     return parent::process($phpcsFile, $stackPtr);
 }