Passed
Push — main ( 314a8b...a7256a )
by Guillaume
02:23
created

JsUtils::cleanJSONFunctions()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 7
Code Lines 6

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 4
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 6
c 1
b 0
f 0
nc 1
nop 1
dl 0
loc 7
ccs 4
cts 4
cp 1
crap 1
rs 10
1
<?php
2
namespace PHPMV\utils;
3
4
class JsUtils
5
{
6 2
    public static function cleanJSONFunctions(string $json):string {
7 2
        return \str_replace([
8 2
            '"!!%',
9
            '%!!"',
10
            '%!!',
11
            '!!%'
12 2
        ], '', $json);
13
    }
14
}
15
16