Passed
Push — main ( 92de25...9fb01f )
by Guillaume
02:18
created

JsUtils::cleanJSONFunctions()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 7
Code Lines 6

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

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 0
cts 2
cp 0
crap 2
rs 10
1
<?php
2
namespace PHPMV\utils;
3
4
class JsUtils
5
{
6
    public static function cleanJSONFunctions(string $json):string {
7
        return \str_replace([
8
            '"!!%',
9
            '%!!"',
10
            '%!!',
11
            '!!%'
12
        ], '', $json);
13
    }
14
}
15
16