Passed
Push — master ( 9253d7...e42fcd )
by Sebastian
03:09
created

Mailcode_Parser_Statement_Tokenizer_Process_NormalizeQuotes   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 5
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 2
c 1
b 0
f 0
dl 0
loc 5
rs 10
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A _process() 0 3 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Mailcode;
6
7
/**
8
 * Some WYSIWYG editors like using pretty quotes instead
9
 * of the usual double quotes. This simply replaces all
10
 * occurrences with the regular variant.
11
 *
12
 */
13
class Mailcode_Parser_Statement_Tokenizer_Process_NormalizeQuotes extends Mailcode_Parser_Statement_Tokenizer_Process
14
{
15
    protected function _process() : void
16
    {
17
        $this->tokenized = str_replace(array('“', '”'), '"', $this->tokenized);
18
    }
19
}