for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace BestIt\Sniffs;
use PHP_CodeSniffer\Util\Tokens;
/**
* Helps you with the registration of the class sniffs.
*
* @author blange <[email protected]>
* @package BestIt\Sniffs
*/
trait ClassRegistrationTrait
{
* Registers the tokens that this sniff wants to listen for.
* An example return value for a sniff that wants to listen for whitespace
* and any comments would be:
* <code>
* return array(
* T_WHITESPACE,
* T_DOC_COMMENT,
* T_COMMENT,
* );
* </code>
* @return int[]
public function register(): array
return Tokens::$ooScopeTokens;
}