RemoveGenerator   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 3
Bugs 0 Features 0
Metric Value
wmc 1
c 3
b 0
f 0
lcom 0
cbo 0
dl 0
loc 15
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A process() 0 4 1
1
<?php
2
/**
3
 * Remove generator
4
 *
5
 * @author  Tim Lochmüller
6
 */
7
8
namespace FRUIT\Ink\Postprocessing;
9
10
/**
11
 * Remove generator
12
 */
13
class RemoveGenerator implements PostprocessingInterface
14
{
15
16
    /**
17
     * Remove the generator tag
18
     *
19
     * @param string $content
20
     *
21
     * @return string
22
     */
23
    public function process($content)
24
    {
25
        return preg_replace('/<meta name="?generator"?.+?>/is', '', $content);
26
    }
27
}
28