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

JsUtils   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 9
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A cleanJSONFunctions() 0 7 1
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