Page MenuHomeWickedGov Phorge

EmptyRemovalVersionSniff.php
No OneTemporary

Size
728 B
Referenced Files
None
Subscribers
None

EmptyRemovalVersionSniff.php

<?php
/**
* Test fixture.
*
* @see \PHP_CodeSniffer\Tests\Core\Ruleset\SniffDeprecationTest
*/
namespace Fixtures\Sniffs\DeprecatedInvalid;
use PHP_CodeSniffer\Files\File;
use PHP_CodeSniffer\Sniffs\DeprecatedSniff;
use PHP_CodeSniffer\Sniffs\Sniff;
class EmptyRemovalVersionSniff implements Sniff,DeprecatedSniff
{
public function getDeprecationVersion()
{
return 'dummy';
}
public function getRemovalVersion()
{
return '';
}
public function getDeprecationMessage()
{
return 'dummy';
}
public function register()
{
return [T_WHITESPACE];
}
public function process(File $phpcsFile, $stackPtr)
{
// Do something.
}
}

File Metadata

Mime Type
text/x-php
Expires
Sat, Nov 21, 23:17 (1 d, 22 h)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
99/78/6f4c3a59884708676f61d8e15638
Default Alt Text
EmptyRemovalVersionSniff.php (728 B)

Event Timeline