Completed
Push — master ( 28256c...92a7d3 )
by Peter
20:38
created

DefencerDecorator   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 9
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 100%

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A decorate() 0 4 1
1
<?php
2
3
/**
4
 * This software package is licensed under AGPL, Commercial license.
5
 *
6
 * @package maslosoft/addendum
7
 * @licence AGPL, Commercial
8
 * @copyright Copyright (c) Piotr Masełkowski <[email protected]> (Meta container, further improvements, bugfixes)
9
 * @copyright Copyright (c) Maslosoft (Meta container, further improvements, bugfixes)
10
 * @copyright Copyright (c) Jan Suchal (Original version, builder, parser)
11
 * @link http://maslosoft.com/addendum/ - maslosoft addendum
12
 * @link https://code.google.com/p/addendum/ - original addendum project
13
 */
14
15
namespace Maslosoft\Addendum\Plugins\Matcher;
16
17
use Maslosoft\Addendum\Helpers\Fence;
18
use Maslosoft\Addendum\Interfaces\Matcher\MatcherInterface;
19
use Maslosoft\Addendum\Interfaces\Plugins\Matcher\MatcherDecoratorInterface;
20
21
/**
22
 * Remove fenced comments from annotations.
23
 * This allows to write php doc with annotations - these documentation annotations will not get parsed.
24
 *
25
 * @author Piotr Maselkowski <pmaselkowski at gmail.com>
26
 */
27
class DefencerDecorator implements MatcherDecoratorInterface
28
{
29
30 35
	public function decorate(MatcherInterface $matcher, &$value)
31
	{
32 35
		Fence::out($value);
33 35
	}
34
35
}
36