Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F7420050
DummyTokenizer.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
DummyTokenizer.php
View Options
<?php
/**
* PHPCSExtra, a collection of sniffs and standards for use with PHP_CodeSniffer.
*
* @package PHPCSExtra
* @copyright 2020 PHPCSExtra Contributors
* @license https://opensource.org/licenses/LGPL-3.0 LGPL3
* @link https://github.com/PHPCSStandards/PHPCSExtra
*/
namespace
PHPCSExtra\Universal\Helpers
;
use
PHP_CodeSniffer\Tokenizers\Tokenizer
;
/**
* Dummy tokenizer class to allow for accessing the replaceTabsInToken() method.
*
* @codeCoverageIgnore
*
* @since 1.0.0
*/
final
class
DummyTokenizer
extends
Tokenizer
{
/**
* Initialise and (don't) run the tokenizer.
*
* @param string $content The content to tokenize,
* @param \PHP_CodeSniffer\Config | null $config The config data for the run.
* @param string $eolChar The EOL char used in the content.
*
* @return void
*/
public
function
__construct
(
$content
,
$config
,
$eolChar
=
'
\n
'
)
{
$this
->
eolChar
=
$eolChar
;
$this
->
config
=
$config
;
}
/**
* Creates an array of tokens when given some content.
*
* @param string $string The string to tokenize.
*
* @return array<int, array<string, mixed>>
*/
protected
function
tokenize
(
$string
)
{
return
[];
}
/**
* Performs additional processing after main tokenizing.
*
* @return void
*/
protected
function
processAdditional
()
{
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Sun, Nov 22, 04:48 (1 d, 4 h)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
4f/35/84537f9ab660cf861e8b84ac7e22
Default Alt Text
DummyTokenizer.php (1 KB)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment