Completed
Branch Scrutinizer (3da711)
by Josh
03:32
created

InlineSpoiler   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 9
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 1
Metric Value
wmc 1
eloc 3
dl 0
loc 9
ccs 3
cts 3
cp 1
rs 10
c 1
b 0
f 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A parse() 0 4 1
1
<?php
2
3
/**
4
* @package   s9e\TextFormatter
5
* @copyright Copyright (c) 2010-2019 The s9e Authors
6
* @license   http://www.opensource.org/licenses/mit-license.php The MIT License
7
*/
8
namespace s9e\TextFormatter\Plugins\Litedown\Parser\Passes;
9
10
class InlineSpoiler extends AbstractInlineMarkup
11
{
12
	/**
13
	* {@inheritdoc}
14
	*/
15 8
	public function parse()
16
	{
17 8
		$this->parseInlineMarkup('>!', '/>![^\\x17]+?!</',         'ISPOILER');
18 8
		$this->parseInlineMarkup('||', '/\\|\\|[^\\x17]+?\\|\\|/', 'ISPOILER');
19
	}
20
}