TASK: Add suffix to trait and @var

* Add @var to processed annotations.
* Add suffix to trait.
This commit is contained in:
Daniel Siepmann 2017-03-07 15:14:53 +01:00
parent 9e0106c83f
commit 10ee6295ac
Signed by: Daniel Siepmann
GPG key ID: 33D6629915560EF4
3 changed files with 4 additions and 4 deletions

View file

@ -25,7 +25,7 @@ use PHP_CodeSniffer_File as PhpcsFile;
/**
* Provide common uses for all sniffs.
*/
trait ClassnameChecker
trait ClassnameCheckerTrait
{
/**
* Contains mapping from old -> new class names.

View file

@ -26,13 +26,13 @@
*/
class Typo3Update_Sniffs_LegacyClassnames_DocCommentSniff implements PHP_CodeSniffer_Sniff
{
use \Typo3Update\Sniffs\LegacyClassnames\ClassnameChecker;
use \Typo3Update\Sniffs\LegacyClassnames\ClassnameCheckerTrait;
/**
* The configured tags will be processed.
* @var array<string>
*/
protected $allowedTags = ['@param', '@return'];
protected $allowedTags = ['@param', '@return', '@var'];
/**
* Original token for reuse accross methods.

View file

@ -24,7 +24,7 @@
*/
class Typo3Update_Sniffs_LegacyClassnames_InheritanceSniff implements PHP_CodeSniffer_Sniff
{
use \Typo3Update\Sniffs\LegacyClassnames\ClassnameChecker;
use \Typo3Update\Sniffs\LegacyClassnames\ClassnameCheckerTrait;
/**
* Returns the token types that this sniff is interested in.