Genese complexity report

<- php-to-json-ast.service.ts
Methods : 1
Complexity index : 2.4
Cyclomatic complexity : 1
Cognitive complexity
100 % Correct 1/1
0 % Warning 0/1 (threshold : 10)
0 % Error 0/1 (threshold : 20)
Cyclomatic complexity
100 % Correct 1/1
0 % Warning 0/1 (threshold : 5)
0 % Error 0/1 (threshold : 10)
Methods of php-to-json-ast.service.ts
convert Complexity Index 2.4 Cyclomatic complexity 1
                            
                                
            
            
                static convert(path: string): JsonAst { // ------------- +0.4 Complexity index (+0.4 atomic)
                    const jsonAst = new JsonAst(); // ------------------ +0.4 Complexity index (+0.4 atomic)
                    console.log('PHP TO JSON AST path', path) // ------- +1.4 Complexity index (+0.4 atomic, +1 structural)
                    return jsonAst; // --------------------------------- +0.2 Complexity index (+0.2 atomic)
                }