From 6eff659f2940131e4f445d9499e950bac5959cd1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20Kr=C3=A4mer?= Date: Tue, 24 Sep 2024 23:34:02 +0200 Subject: [PATCH] Fixing a bug in the visitor --- src/PhpParser/CognitiveMetricsVisitor.php | 16 +- test.json | 4046 +++++++++++++++++ tests/TestCode2/TestClassForCounts.php | 39 + .../CognitiveMetricsCollectorTest.php | 18 + .../PhpParser/CognitiveMetricsVisitorTest.php | 16 +- 5 files changed, 4119 insertions(+), 16 deletions(-) create mode 100644 test.json create mode 100644 tests/TestCode2/TestClassForCounts.php diff --git a/src/PhpParser/CognitiveMetricsVisitor.php b/src/PhpParser/CognitiveMetricsVisitor.php index c2c02e8..02aadd7 100644 --- a/src/PhpParser/CognitiveMetricsVisitor.php +++ b/src/PhpParser/CognitiveMetricsVisitor.php @@ -258,14 +258,14 @@ private function writeMetricsOnLeaveNode(Node $node): void { if ($node instanceof Node\Stmt\ClassMethod) { $method = "{$this->currentClassName}::{$this->currentMethod}"; - $this->methodMetrics[$method]['return_count'] = $this->currentReturnCount; - $this->methodMetrics[$method]['variable_count'] = count($this->currentVariables); - $this->methodMetrics[$method]['property_call_count'] = $this->propertyCalls; - $this->methodMetrics[$method]['if_count'] = $this->ifCount; - $this->methodMetrics[$method]['if_nesting_level'] = $this->maxIfNestingLevel; - $this->methodMetrics[$method]['else_count'] = $this->elseCount; - $this->methodMetrics[$method]['line_count'] = $node->getEndLine() - $node->getStartLine() + 1; - $this->methodMetrics[$method]['arg_count'] = count($node->getParams()); + $this->methodMetrics[$method]['returnCount'] = $this->currentReturnCount; + $this->methodMetrics[$method]['variableCount'] = count($this->currentVariables); + $this->methodMetrics[$method]['propertyCallCount'] = $this->propertyCalls; + $this->methodMetrics[$method]['ifCount'] = $this->ifCount; + $this->methodMetrics[$method]['ifNestingLevel'] = $this->maxIfNestingLevel; + $this->methodMetrics[$method]['elseCount'] = $this->elseCount; + $this->methodMetrics[$method]['lineCount'] = $node->getEndLine() - $node->getStartLine() + 1; + $this->methodMetrics[$method]['argCount'] = count($node->getParams()); $this->currentMethod = ''; } } diff --git a/test.json b/test.json new file mode 100644 index 0000000..4d4493b --- /dev/null +++ b/test.json @@ -0,0 +1,4046 @@ +{ + "Phauthentic\\CodeQualityMetrics\\Business\\Cognitive\\CognitiveMetricsCollector": { + "methods": { + "collect": { + "class": "Phauthentic\\CodeQualityMetrics\\Business\\Cognitive\\CognitiveMetricsCollector", + "method": "collect", + "lineCount": 6, + "lineCountWeight": 0, + "argCount": 2, + "argCountWeight": 0, + "returnCount": 0, + "returnCountWeight": 0, + "variableCount": 0, + "variableCountWeight": 0, + "propertyCallCount": 0, + "propertyCallCountWeight": 0, + "ifCount": 0, + "ifCountWeight": 0, + "ifNestingLevel": 0, + "ifNestingLevelWeight": 0, + "elseCount": 0, + "elseCountWeight": 0, + "score": 0 + }, + "findMetrics": { + "class": "Phauthentic\\CodeQualityMetrics\\Business\\Cognitive\\CognitiveMetricsCollector", + "method": "findMetrics", + "lineCount": 23, + "lineCountWeight": 0, + "argCount": 1, + "argCountWeight": 0, + "returnCount": 0, + "returnCountWeight": 0, + "variableCount": 0, + "variableCountWeight": 0, + "propertyCallCount": 0, + "propertyCallCountWeight": 0, + "ifCount": 0, + "ifCountWeight": 0, + "ifNestingLevel": 0, + "ifNestingLevelWeight": 0, + "elseCount": 0, + "elseCountWeight": 0, + "score": 0 + }, + "processMethodMetrics": { + "class": "Phauthentic\\CodeQualityMetrics\\Business\\Cognitive\\CognitiveMetricsCollector", + "method": "processMethodMetrics", + "lineCount": 19, + "lineCountWeight": 0, + "argCount": 2, + "argCountWeight": 0, + "returnCount": 0, + "returnCountWeight": 0, + "variableCount": 0, + "variableCountWeight": 0, + "propertyCallCount": 0, + "propertyCallCountWeight": 0, + "ifCount": 0, + "ifCountWeight": 0, + "ifNestingLevel": 0, + "ifNestingLevelWeight": 0, + "elseCount": 0, + "elseCountWeight": 0, + "score": 0 + } + } + }, + "Phauthentic\\CodeQualityMetrics\\Business\\Cognitive\\Delta": { + "methods": { + "__construct": { + "class": "Phauthentic\\CodeQualityMetrics\\Business\\Cognitive\\Delta", + "method": "__construct", + "lineCount": 11, + "lineCountWeight": 0, + "argCount": 2, + "argCountWeight": 0, + "returnCount": 0, + "returnCountWeight": 0, + "variableCount": 0, + "variableCountWeight": 0, + "propertyCallCount": 0, + "propertyCallCountWeight": 0, + "ifCount": 0, + "ifCountWeight": 0, + "ifNestingLevel": 0, + "ifNestingLevelWeight": 0, + "elseCount": 0, + "elseCountWeight": 0, + "score": 0 + }, + "getValue": { + "class": "Phauthentic\\CodeQualityMetrics\\Business\\Cognitive\\Delta", + "method": "getValue", + "lineCount": 4, + "lineCountWeight": 0, + "argCount": 0, + "argCountWeight": 0, + "returnCount": 0, + "returnCountWeight": 0, + "variableCount": 0, + "variableCountWeight": 0, + "propertyCallCount": 0, + "propertyCallCountWeight": 0, + "ifCount": 0, + "ifCountWeight": 0, + "ifNestingLevel": 0, + "ifNestingLevelWeight": 0, + "elseCount": 0, + "elseCountWeight": 0, + "score": 0 + }, + "hasIncreased": { + "class": "Phauthentic\\CodeQualityMetrics\\Business\\Cognitive\\Delta", + "method": "hasIncreased", + "lineCount": 4, + "lineCountWeight": 0, + "argCount": 0, + "argCountWeight": 0, + "returnCount": 0, + "returnCountWeight": 0, + "variableCount": 0, + "variableCountWeight": 0, + "propertyCallCount": 0, + "propertyCallCountWeight": 0, + "ifCount": 0, + "ifCountWeight": 0, + "ifNestingLevel": 0, + "ifNestingLevelWeight": 0, + "elseCount": 0, + "elseCountWeight": 0, + "score": 0 + }, + "__toString": { + "class": "Phauthentic\\CodeQualityMetrics\\Business\\Cognitive\\Delta", + "method": "__toString", + "lineCount": 4, + "lineCountWeight": 0, + "argCount": 0, + "argCountWeight": 0, + "returnCount": 0, + "returnCountWeight": 0, + "variableCount": 0, + "variableCountWeight": 0, + "propertyCallCount": 0, + "propertyCallCountWeight": 0, + "ifCount": 0, + "ifCountWeight": 0, + "ifNestingLevel": 0, + "ifNestingLevelWeight": 0, + "elseCount": 0, + "elseCountWeight": 0, + "score": 0 + } + } + }, + "Phauthentic\\CodeQualityMetrics\\Business\\Cognitive\\Exporter\\JsonExporter": { + "methods": { + "export": { + "class": "Phauthentic\\CodeQualityMetrics\\Business\\Cognitive\\Exporter\\JsonExporter", + "method": "export", + "lineCount": 38, + "lineCountWeight": 0, + "argCount": 2, + "argCountWeight": 0, + "returnCount": 0, + "returnCountWeight": 0, + "variableCount": 0, + "variableCountWeight": 0, + "propertyCallCount": 0, + "propertyCallCountWeight": 0, + "ifCount": 0, + "ifCountWeight": 0, + "ifNestingLevel": 0, + "ifNestingLevelWeight": 0, + "elseCount": 0, + "elseCountWeight": 0, + "score": 0 + } + } + }, + "Phauthentic\\CodeQualityMetrics\\Business\\Cognitive\\Exporter\\CsvExporter": { + "methods": { + "export": { + "class": "Phauthentic\\CodeQualityMetrics\\Business\\Cognitive\\Exporter\\CsvExporter", + "method": "export", + "lineCount": 35, + "lineCountWeight": 0, + "argCount": 2, + "argCountWeight": 0, + "returnCount": 0, + "returnCountWeight": 0, + "variableCount": 0, + "variableCountWeight": 0, + "propertyCallCount": 0, + "propertyCallCountWeight": 0, + "ifCount": 0, + "ifCountWeight": 0, + "ifNestingLevel": 0, + "ifNestingLevelWeight": 0, + "elseCount": 0, + "elseCountWeight": 0, + "score": 0 + } + } + }, + "Phauthentic\\CodeQualityMetrics\\Business\\Cognitive\\Exporter\\HtmlExporter": { + "methods": { + "export": { + "class": "Phauthentic\\CodeQualityMetrics\\Business\\Cognitive\\Exporter\\HtmlExporter", + "method": "export", + "lineCount": 8, + "lineCountWeight": 0, + "argCount": 2, + "argCountWeight": 0, + "returnCount": 0, + "returnCountWeight": 0, + "variableCount": 0, + "variableCountWeight": 0, + "propertyCallCount": 0, + "propertyCallCountWeight": 0, + "ifCount": 0, + "ifCountWeight": 0, + "ifNestingLevel": 0, + "ifNestingLevelWeight": 0, + "elseCount": 0, + "elseCountWeight": 0, + "score": 0 + }, + "generateHtml": { + "class": "Phauthentic\\CodeQualityMetrics\\Business\\Cognitive\\Exporter\\HtmlExporter", + "method": "generateHtml", + "lineCount": 57, + "lineCountWeight": 0, + "argCount": 1, + "argCountWeight": 0, + "returnCount": 0, + "returnCountWeight": 0, + "variableCount": 0, + "variableCountWeight": 0, + "propertyCallCount": 0, + "propertyCallCountWeight": 0, + "ifCount": 0, + "ifCountWeight": 0, + "ifNestingLevel": 0, + "ifNestingLevelWeight": 0, + "elseCount": 0, + "elseCountWeight": 0, + "score": 0 + } + } + }, + "Phauthentic\\CodeQualityMetrics\\Business\\Cognitive\\CognitiveMetrics": { + "methods": { + "__construct": { + "class": "Phauthentic\\CodeQualityMetrics\\Business\\Cognitive\\CognitiveMetrics", + "method": "__construct", + "lineCount": 24, + "lineCountWeight": 0, + "argCount": 1, + "argCountWeight": 0, + "returnCount": 0, + "returnCountWeight": 0, + "variableCount": 0, + "variableCountWeight": 0, + "propertyCallCount": 0, + "propertyCallCountWeight": 0, + "ifCount": 0, + "ifCountWeight": 0, + "ifNestingLevel": 0, + "ifNestingLevelWeight": 0, + "elseCount": 0, + "elseCountWeight": 0, + "score": 0 + }, + "assertSame": { + "class": "Phauthentic\\CodeQualityMetrics\\Business\\Cognitive\\CognitiveMetrics", + "method": "assertSame", + "lineCount": 15, + "lineCountWeight": 0, + "argCount": 1, + "argCountWeight": 0, + "returnCount": 0, + "returnCountWeight": 0, + "variableCount": 0, + "variableCountWeight": 0, + "propertyCallCount": 0, + "propertyCallCountWeight": 0, + "ifCount": 0, + "ifCountWeight": 0, + "ifNestingLevel": 0, + "ifNestingLevelWeight": 0, + "elseCount": 0, + "elseCountWeight": 0, + "score": 0 + }, + "calculateDeltas": { + "class": "Phauthentic\\CodeQualityMetrics\\Business\\Cognitive\\CognitiveMetrics", + "method": "calculateDeltas", + "lineCount": 13, + "lineCountWeight": 0, + "argCount": 1, + "argCountWeight": 0, + "returnCount": 0, + "returnCountWeight": 0, + "variableCount": 0, + "variableCountWeight": 0, + "propertyCallCount": 0, + "propertyCallCountWeight": 0, + "ifCount": 0, + "ifCountWeight": 0, + "ifNestingLevel": 0, + "ifNestingLevelWeight": 0, + "elseCount": 0, + "elseCountWeight": 0, + "score": 0 + }, + "fromArray": { + "class": "Phauthentic\\CodeQualityMetrics\\Business\\Cognitive\\CognitiveMetrics", + "method": "fromArray", + "lineCount": 4, + "lineCountWeight": 0, + "argCount": 1, + "argCountWeight": 0, + "returnCount": 0, + "returnCountWeight": 0, + "variableCount": 0, + "variableCountWeight": 0, + "propertyCallCount": 0, + "propertyCallCountWeight": 0, + "ifCount": 0, + "ifCountWeight": 0, + "ifNestingLevel": 0, + "ifNestingLevelWeight": 0, + "elseCount": 0, + "elseCountWeight": 0, + "score": 0 + }, + "assertArrayKeyIsPresent": { + "class": "Phauthentic\\CodeQualityMetrics\\Business\\Cognitive\\CognitiveMetrics", + "method": "assertArrayKeyIsPresent", + "lineCount": 6, + "lineCountWeight": 0, + "argCount": 2, + "argCountWeight": 0, + "returnCount": 0, + "returnCountWeight": 0, + "variableCount": 0, + "variableCountWeight": 0, + "propertyCallCount": 0, + "propertyCallCountWeight": 0, + "ifCount": 0, + "ifCountWeight": 0, + "ifNestingLevel": 0, + "ifNestingLevelWeight": 0, + "elseCount": 0, + "elseCountWeight": 0, + "score": 0 + }, + "getClass": { + "class": "Phauthentic\\CodeQualityMetrics\\Business\\Cognitive\\CognitiveMetrics", + "method": "getClass", + "lineCount": 4, + "lineCountWeight": 0, + "argCount": 0, + "argCountWeight": 0, + "returnCount": 0, + "returnCountWeight": 0, + "variableCount": 0, + "variableCountWeight": 0, + "propertyCallCount": 0, + "propertyCallCountWeight": 0, + "ifCount": 0, + "ifCountWeight": 0, + "ifNestingLevel": 0, + "ifNestingLevelWeight": 0, + "elseCount": 0, + "elseCountWeight": 0, + "score": 0 + }, + "getMethod": { + "class": "Phauthentic\\CodeQualityMetrics\\Business\\Cognitive\\CognitiveMetrics", + "method": "getMethod", + "lineCount": 4, + "lineCountWeight": 0, + "argCount": 0, + "argCountWeight": 0, + "returnCount": 0, + "returnCountWeight": 0, + "variableCount": 0, + "variableCountWeight": 0, + "propertyCallCount": 0, + "propertyCallCountWeight": 0, + "ifCount": 0, + "ifCountWeight": 0, + "ifNestingLevel": 0, + "ifNestingLevelWeight": 0, + "elseCount": 0, + "elseCountWeight": 0, + "score": 0 + }, + "getLineCount": { + "class": "Phauthentic\\CodeQualityMetrics\\Business\\Cognitive\\CognitiveMetrics", + "method": "getLineCount", + "lineCount": 4, + "lineCountWeight": 0, + "argCount": 0, + "argCountWeight": 0, + "returnCount": 0, + "returnCountWeight": 0, + "variableCount": 0, + "variableCountWeight": 0, + "propertyCallCount": 0, + "propertyCallCountWeight": 0, + "ifCount": 0, + "ifCountWeight": 0, + "ifNestingLevel": 0, + "ifNestingLevelWeight": 0, + "elseCount": 0, + "elseCountWeight": 0, + "score": 0 + }, + "getArgCount": { + "class": "Phauthentic\\CodeQualityMetrics\\Business\\Cognitive\\CognitiveMetrics", + "method": "getArgCount", + "lineCount": 4, + "lineCountWeight": 0, + "argCount": 0, + "argCountWeight": 0, + "returnCount": 0, + "returnCountWeight": 0, + "variableCount": 0, + "variableCountWeight": 0, + "propertyCallCount": 0, + "propertyCallCountWeight": 0, + "ifCount": 0, + "ifCountWeight": 0, + "ifNestingLevel": 0, + "ifNestingLevelWeight": 0, + "elseCount": 0, + "elseCountWeight": 0, + "score": 0 + }, + "getReturnCount": { + "class": "Phauthentic\\CodeQualityMetrics\\Business\\Cognitive\\CognitiveMetrics", + "method": "getReturnCount", + "lineCount": 4, + "lineCountWeight": 0, + "argCount": 0, + "argCountWeight": 0, + "returnCount": 0, + "returnCountWeight": 0, + "variableCount": 0, + "variableCountWeight": 0, + "propertyCallCount": 0, + "propertyCallCountWeight": 0, + "ifCount": 0, + "ifCountWeight": 0, + "ifNestingLevel": 0, + "ifNestingLevelWeight": 0, + "elseCount": 0, + "elseCountWeight": 0, + "score": 0 + }, + "getVariableCount": { + "class": "Phauthentic\\CodeQualityMetrics\\Business\\Cognitive\\CognitiveMetrics", + "method": "getVariableCount", + "lineCount": 4, + "lineCountWeight": 0, + "argCount": 0, + "argCountWeight": 0, + "returnCount": 0, + "returnCountWeight": 0, + "variableCount": 0, + "variableCountWeight": 0, + "propertyCallCount": 0, + "propertyCallCountWeight": 0, + "ifCount": 0, + "ifCountWeight": 0, + "ifNestingLevel": 0, + "ifNestingLevelWeight": 0, + "elseCount": 0, + "elseCountWeight": 0, + "score": 0 + }, + "getPropertyCallCount": { + "class": "Phauthentic\\CodeQualityMetrics\\Business\\Cognitive\\CognitiveMetrics", + "method": "getPropertyCallCount", + "lineCount": 4, + "lineCountWeight": 0, + "argCount": 0, + "argCountWeight": 0, + "returnCount": 0, + "returnCountWeight": 0, + "variableCount": 0, + "variableCountWeight": 0, + "propertyCallCount": 0, + "propertyCallCountWeight": 0, + "ifCount": 0, + "ifCountWeight": 0, + "ifNestingLevel": 0, + "ifNestingLevelWeight": 0, + "elseCount": 0, + "elseCountWeight": 0, + "score": 0 + }, + "getIfCount": { + "class": "Phauthentic\\CodeQualityMetrics\\Business\\Cognitive\\CognitiveMetrics", + "method": "getIfCount", + "lineCount": 4, + "lineCountWeight": 0, + "argCount": 0, + "argCountWeight": 0, + "returnCount": 0, + "returnCountWeight": 0, + "variableCount": 0, + "variableCountWeight": 0, + "propertyCallCount": 0, + "propertyCallCountWeight": 0, + "ifCount": 0, + "ifCountWeight": 0, + "ifNestingLevel": 0, + "ifNestingLevelWeight": 0, + "elseCount": 0, + "elseCountWeight": 0, + "score": 0 + }, + "getIfNestingLevel": { + "class": "Phauthentic\\CodeQualityMetrics\\Business\\Cognitive\\CognitiveMetrics", + "method": "getIfNestingLevel", + "lineCount": 4, + "lineCountWeight": 0, + "argCount": 0, + "argCountWeight": 0, + "returnCount": 0, + "returnCountWeight": 0, + "variableCount": 0, + "variableCountWeight": 0, + "propertyCallCount": 0, + "propertyCallCountWeight": 0, + "ifCount": 0, + "ifCountWeight": 0, + "ifNestingLevel": 0, + "ifNestingLevelWeight": 0, + "elseCount": 0, + "elseCountWeight": 0, + "score": 0 + }, + "getElseCount": { + "class": "Phauthentic\\CodeQualityMetrics\\Business\\Cognitive\\CognitiveMetrics", + "method": "getElseCount", + "lineCount": 4, + "lineCountWeight": 0, + "argCount": 0, + "argCountWeight": 0, + "returnCount": 0, + "returnCountWeight": 0, + "variableCount": 0, + "variableCountWeight": 0, + "propertyCallCount": 0, + "propertyCallCountWeight": 0, + "ifCount": 0, + "ifCountWeight": 0, + "ifNestingLevel": 0, + "ifNestingLevelWeight": 0, + "elseCount": 0, + "elseCountWeight": 0, + "score": 0 + }, + "getLineCountWeight": { + "class": "Phauthentic\\CodeQualityMetrics\\Business\\Cognitive\\CognitiveMetrics", + "method": "getLineCountWeight", + "lineCount": 4, + "lineCountWeight": 0, + "argCount": 0, + "argCountWeight": 0, + "returnCount": 0, + "returnCountWeight": 0, + "variableCount": 0, + "variableCountWeight": 0, + "propertyCallCount": 0, + "propertyCallCountWeight": 0, + "ifCount": 0, + "ifCountWeight": 0, + "ifNestingLevel": 0, + "ifNestingLevelWeight": 0, + "elseCount": 0, + "elseCountWeight": 0, + "score": 0 + }, + "setLineCountWeight": { + "class": "Phauthentic\\CodeQualityMetrics\\Business\\Cognitive\\CognitiveMetrics", + "method": "setLineCountWeight", + "lineCount": 4, + "lineCountWeight": 0, + "argCount": 1, + "argCountWeight": 0, + "returnCount": 0, + "returnCountWeight": 0, + "variableCount": 0, + "variableCountWeight": 0, + "propertyCallCount": 0, + "propertyCallCountWeight": 0, + "ifCount": 0, + "ifCountWeight": 0, + "ifNestingLevel": 0, + "ifNestingLevelWeight": 0, + "elseCount": 0, + "elseCountWeight": 0, + "score": 0 + }, + "getArgCountWeight": { + "class": "Phauthentic\\CodeQualityMetrics\\Business\\Cognitive\\CognitiveMetrics", + "method": "getArgCountWeight", + "lineCount": 4, + "lineCountWeight": 0, + "argCount": 0, + "argCountWeight": 0, + "returnCount": 0, + "returnCountWeight": 0, + "variableCount": 0, + "variableCountWeight": 0, + "propertyCallCount": 0, + "propertyCallCountWeight": 0, + "ifCount": 0, + "ifCountWeight": 0, + "ifNestingLevel": 0, + "ifNestingLevelWeight": 0, + "elseCount": 0, + "elseCountWeight": 0, + "score": 0 + }, + "setArgCountWeight": { + "class": "Phauthentic\\CodeQualityMetrics\\Business\\Cognitive\\CognitiveMetrics", + "method": "setArgCountWeight", + "lineCount": 4, + "lineCountWeight": 0, + "argCount": 1, + "argCountWeight": 0, + "returnCount": 0, + "returnCountWeight": 0, + "variableCount": 0, + "variableCountWeight": 0, + "propertyCallCount": 0, + "propertyCallCountWeight": 0, + "ifCount": 0, + "ifCountWeight": 0, + "ifNestingLevel": 0, + "ifNestingLevelWeight": 0, + "elseCount": 0, + "elseCountWeight": 0, + "score": 0 + }, + "getReturnCountWeight": { + "class": "Phauthentic\\CodeQualityMetrics\\Business\\Cognitive\\CognitiveMetrics", + "method": "getReturnCountWeight", + "lineCount": 4, + "lineCountWeight": 0, + "argCount": 0, + "argCountWeight": 0, + "returnCount": 0, + "returnCountWeight": 0, + "variableCount": 0, + "variableCountWeight": 0, + "propertyCallCount": 0, + "propertyCallCountWeight": 0, + "ifCount": 0, + "ifCountWeight": 0, + "ifNestingLevel": 0, + "ifNestingLevelWeight": 0, + "elseCount": 0, + "elseCountWeight": 0, + "score": 0 + }, + "setReturnCountWeight": { + "class": "Phauthentic\\CodeQualityMetrics\\Business\\Cognitive\\CognitiveMetrics", + "method": "setReturnCountWeight", + "lineCount": 4, + "lineCountWeight": 0, + "argCount": 1, + "argCountWeight": 0, + "returnCount": 0, + "returnCountWeight": 0, + "variableCount": 0, + "variableCountWeight": 0, + "propertyCallCount": 0, + "propertyCallCountWeight": 0, + "ifCount": 0, + "ifCountWeight": 0, + "ifNestingLevel": 0, + "ifNestingLevelWeight": 0, + "elseCount": 0, + "elseCountWeight": 0, + "score": 0 + }, + "getVariableCountWeight": { + "class": "Phauthentic\\CodeQualityMetrics\\Business\\Cognitive\\CognitiveMetrics", + "method": "getVariableCountWeight", + "lineCount": 4, + "lineCountWeight": 0, + "argCount": 0, + "argCountWeight": 0, + "returnCount": 0, + "returnCountWeight": 0, + "variableCount": 0, + "variableCountWeight": 0, + "propertyCallCount": 0, + "propertyCallCountWeight": 0, + "ifCount": 0, + "ifCountWeight": 0, + "ifNestingLevel": 0, + "ifNestingLevelWeight": 0, + "elseCount": 0, + "elseCountWeight": 0, + "score": 0 + }, + "setVariableCountWeight": { + "class": "Phauthentic\\CodeQualityMetrics\\Business\\Cognitive\\CognitiveMetrics", + "method": "setVariableCountWeight", + "lineCount": 4, + "lineCountWeight": 0, + "argCount": 1, + "argCountWeight": 0, + "returnCount": 0, + "returnCountWeight": 0, + "variableCount": 0, + "variableCountWeight": 0, + "propertyCallCount": 0, + "propertyCallCountWeight": 0, + "ifCount": 0, + "ifCountWeight": 0, + "ifNestingLevel": 0, + "ifNestingLevelWeight": 0, + "elseCount": 0, + "elseCountWeight": 0, + "score": 0 + }, + "getPropertyCallCountWeight": { + "class": "Phauthentic\\CodeQualityMetrics\\Business\\Cognitive\\CognitiveMetrics", + "method": "getPropertyCallCountWeight", + "lineCount": 4, + "lineCountWeight": 0, + "argCount": 0, + "argCountWeight": 0, + "returnCount": 0, + "returnCountWeight": 0, + "variableCount": 0, + "variableCountWeight": 0, + "propertyCallCount": 0, + "propertyCallCountWeight": 0, + "ifCount": 0, + "ifCountWeight": 0, + "ifNestingLevel": 0, + "ifNestingLevelWeight": 0, + "elseCount": 0, + "elseCountWeight": 0, + "score": 0 + }, + "setPropertyCallCountWeight": { + "class": "Phauthentic\\CodeQualityMetrics\\Business\\Cognitive\\CognitiveMetrics", + "method": "setPropertyCallCountWeight", + "lineCount": 4, + "lineCountWeight": 0, + "argCount": 1, + "argCountWeight": 0, + "returnCount": 0, + "returnCountWeight": 0, + "variableCount": 0, + "variableCountWeight": 0, + "propertyCallCount": 0, + "propertyCallCountWeight": 0, + "ifCount": 0, + "ifCountWeight": 0, + "ifNestingLevel": 0, + "ifNestingLevelWeight": 0, + "elseCount": 0, + "elseCountWeight": 0, + "score": 0 + }, + "getIfCountWeight": { + "class": "Phauthentic\\CodeQualityMetrics\\Business\\Cognitive\\CognitiveMetrics", + "method": "getIfCountWeight", + "lineCount": 4, + "lineCountWeight": 0, + "argCount": 0, + "argCountWeight": 0, + "returnCount": 0, + "returnCountWeight": 0, + "variableCount": 0, + "variableCountWeight": 0, + "propertyCallCount": 0, + "propertyCallCountWeight": 0, + "ifCount": 0, + "ifCountWeight": 0, + "ifNestingLevel": 0, + "ifNestingLevelWeight": 0, + "elseCount": 0, + "elseCountWeight": 0, + "score": 0 + }, + "setIfCountWeight": { + "class": "Phauthentic\\CodeQualityMetrics\\Business\\Cognitive\\CognitiveMetrics", + "method": "setIfCountWeight", + "lineCount": 4, + "lineCountWeight": 0, + "argCount": 1, + "argCountWeight": 0, + "returnCount": 0, + "returnCountWeight": 0, + "variableCount": 0, + "variableCountWeight": 0, + "propertyCallCount": 0, + "propertyCallCountWeight": 0, + "ifCount": 0, + "ifCountWeight": 0, + "ifNestingLevel": 0, + "ifNestingLevelWeight": 0, + "elseCount": 0, + "elseCountWeight": 0, + "score": 0 + }, + "getIfNestingLevelWeight": { + "class": "Phauthentic\\CodeQualityMetrics\\Business\\Cognitive\\CognitiveMetrics", + "method": "getIfNestingLevelWeight", + "lineCount": 4, + "lineCountWeight": 0, + "argCount": 0, + "argCountWeight": 0, + "returnCount": 0, + "returnCountWeight": 0, + "variableCount": 0, + "variableCountWeight": 0, + "propertyCallCount": 0, + "propertyCallCountWeight": 0, + "ifCount": 0, + "ifCountWeight": 0, + "ifNestingLevel": 0, + "ifNestingLevelWeight": 0, + "elseCount": 0, + "elseCountWeight": 0, + "score": 0 + }, + "setIfNestingLevelWeight": { + "class": "Phauthentic\\CodeQualityMetrics\\Business\\Cognitive\\CognitiveMetrics", + "method": "setIfNestingLevelWeight", + "lineCount": 4, + "lineCountWeight": 0, + "argCount": 1, + "argCountWeight": 0, + "returnCount": 0, + "returnCountWeight": 0, + "variableCount": 0, + "variableCountWeight": 0, + "propertyCallCount": 0, + "propertyCallCountWeight": 0, + "ifCount": 0, + "ifCountWeight": 0, + "ifNestingLevel": 0, + "ifNestingLevelWeight": 0, + "elseCount": 0, + "elseCountWeight": 0, + "score": 0 + }, + "getElseCountWeight": { + "class": "Phauthentic\\CodeQualityMetrics\\Business\\Cognitive\\CognitiveMetrics", + "method": "getElseCountWeight", + "lineCount": 4, + "lineCountWeight": 0, + "argCount": 0, + "argCountWeight": 0, + "returnCount": 0, + "returnCountWeight": 0, + "variableCount": 0, + "variableCountWeight": 0, + "propertyCallCount": 0, + "propertyCallCountWeight": 0, + "ifCount": 0, + "ifCountWeight": 0, + "ifNestingLevel": 0, + "ifNestingLevelWeight": 0, + "elseCount": 0, + "elseCountWeight": 0, + "score": 0 + }, + "setElseCountWeight": { + "class": "Phauthentic\\CodeQualityMetrics\\Business\\Cognitive\\CognitiveMetrics", + "method": "setElseCountWeight", + "lineCount": 4, + "lineCountWeight": 0, + "argCount": 1, + "argCountWeight": 0, + "returnCount": 0, + "returnCountWeight": 0, + "variableCount": 0, + "variableCountWeight": 0, + "propertyCallCount": 0, + "propertyCallCountWeight": 0, + "ifCount": 0, + "ifCountWeight": 0, + "ifNestingLevel": 0, + "ifNestingLevelWeight": 0, + "elseCount": 0, + "elseCountWeight": 0, + "score": 0 + }, + "setScore": { + "class": "Phauthentic\\CodeQualityMetrics\\Business\\Cognitive\\CognitiveMetrics", + "method": "setScore", + "lineCount": 4, + "lineCountWeight": 0, + "argCount": 1, + "argCountWeight": 0, + "returnCount": 0, + "returnCountWeight": 0, + "variableCount": 0, + "variableCountWeight": 0, + "propertyCallCount": 0, + "propertyCallCountWeight": 0, + "ifCount": 0, + "ifCountWeight": 0, + "ifNestingLevel": 0, + "ifNestingLevelWeight": 0, + "elseCount": 0, + "elseCountWeight": 0, + "score": 0 + }, + "getScore": { + "class": "Phauthentic\\CodeQualityMetrics\\Business\\Cognitive\\CognitiveMetrics", + "method": "getScore", + "lineCount": 4, + "lineCountWeight": 0, + "argCount": 0, + "argCountWeight": 0, + "returnCount": 0, + "returnCountWeight": 0, + "variableCount": 0, + "variableCountWeight": 0, + "propertyCallCount": 0, + "propertyCallCountWeight": 0, + "ifCount": 0, + "ifCountWeight": 0, + "ifNestingLevel": 0, + "ifNestingLevelWeight": 0, + "elseCount": 0, + "elseCountWeight": 0, + "score": 0 + }, + "getLineCountWeightDelta": { + "class": "Phauthentic\\CodeQualityMetrics\\Business\\Cognitive\\CognitiveMetrics", + "method": "getLineCountWeightDelta", + "lineCount": 4, + "lineCountWeight": 0, + "argCount": 0, + "argCountWeight": 0, + "returnCount": 0, + "returnCountWeight": 0, + "variableCount": 0, + "variableCountWeight": 0, + "propertyCallCount": 0, + "propertyCallCountWeight": 0, + "ifCount": 0, + "ifCountWeight": 0, + "ifNestingLevel": 0, + "ifNestingLevelWeight": 0, + "elseCount": 0, + "elseCountWeight": 0, + "score": 0 + }, + "getArgCountWeightDelta": { + "class": "Phauthentic\\CodeQualityMetrics\\Business\\Cognitive\\CognitiveMetrics", + "method": "getArgCountWeightDelta", + "lineCount": 4, + "lineCountWeight": 0, + "argCount": 0, + "argCountWeight": 0, + "returnCount": 0, + "returnCountWeight": 0, + "variableCount": 0, + "variableCountWeight": 0, + "propertyCallCount": 0, + "propertyCallCountWeight": 0, + "ifCount": 0, + "ifCountWeight": 0, + "ifNestingLevel": 0, + "ifNestingLevelWeight": 0, + "elseCount": 0, + "elseCountWeight": 0, + "score": 0 + }, + "getReturnCountWeightDelta": { + "class": "Phauthentic\\CodeQualityMetrics\\Business\\Cognitive\\CognitiveMetrics", + "method": "getReturnCountWeightDelta", + "lineCount": 4, + "lineCountWeight": 0, + "argCount": 0, + "argCountWeight": 0, + "returnCount": 0, + "returnCountWeight": 0, + "variableCount": 0, + "variableCountWeight": 0, + "propertyCallCount": 0, + "propertyCallCountWeight": 0, + "ifCount": 0, + "ifCountWeight": 0, + "ifNestingLevel": 0, + "ifNestingLevelWeight": 0, + "elseCount": 0, + "elseCountWeight": 0, + "score": 0 + }, + "getVariableCountWeightDelta": { + "class": "Phauthentic\\CodeQualityMetrics\\Business\\Cognitive\\CognitiveMetrics", + "method": "getVariableCountWeightDelta", + "lineCount": 4, + "lineCountWeight": 0, + "argCount": 0, + "argCountWeight": 0, + "returnCount": 0, + "returnCountWeight": 0, + "variableCount": 0, + "variableCountWeight": 0, + "propertyCallCount": 0, + "propertyCallCountWeight": 0, + "ifCount": 0, + "ifCountWeight": 0, + "ifNestingLevel": 0, + "ifNestingLevelWeight": 0, + "elseCount": 0, + "elseCountWeight": 0, + "score": 0 + }, + "getPropertyCallCountWeightDelta": { + "class": "Phauthentic\\CodeQualityMetrics\\Business\\Cognitive\\CognitiveMetrics", + "method": "getPropertyCallCountWeightDelta", + "lineCount": 4, + "lineCountWeight": 0, + "argCount": 0, + "argCountWeight": 0, + "returnCount": 0, + "returnCountWeight": 0, + "variableCount": 0, + "variableCountWeight": 0, + "propertyCallCount": 0, + "propertyCallCountWeight": 0, + "ifCount": 0, + "ifCountWeight": 0, + "ifNestingLevel": 0, + "ifNestingLevelWeight": 0, + "elseCount": 0, + "elseCountWeight": 0, + "score": 0 + }, + "getIfCountWeightDelta": { + "class": "Phauthentic\\CodeQualityMetrics\\Business\\Cognitive\\CognitiveMetrics", + "method": "getIfCountWeightDelta", + "lineCount": 4, + "lineCountWeight": 0, + "argCount": 0, + "argCountWeight": 0, + "returnCount": 0, + "returnCountWeight": 0, + "variableCount": 0, + "variableCountWeight": 0, + "propertyCallCount": 0, + "propertyCallCountWeight": 0, + "ifCount": 0, + "ifCountWeight": 0, + "ifNestingLevel": 0, + "ifNestingLevelWeight": 0, + "elseCount": 0, + "elseCountWeight": 0, + "score": 0 + }, + "getIfNestingLevelWeightDelta": { + "class": "Phauthentic\\CodeQualityMetrics\\Business\\Cognitive\\CognitiveMetrics", + "method": "getIfNestingLevelWeightDelta", + "lineCount": 4, + "lineCountWeight": 0, + "argCount": 0, + "argCountWeight": 0, + "returnCount": 0, + "returnCountWeight": 0, + "variableCount": 0, + "variableCountWeight": 0, + "propertyCallCount": 0, + "propertyCallCountWeight": 0, + "ifCount": 0, + "ifCountWeight": 0, + "ifNestingLevel": 0, + "ifNestingLevelWeight": 0, + "elseCount": 0, + "elseCountWeight": 0, + "score": 0 + }, + "getElseCountWeightDelta": { + "class": "Phauthentic\\CodeQualityMetrics\\Business\\Cognitive\\CognitiveMetrics", + "method": "getElseCountWeightDelta", + "lineCount": 4, + "lineCountWeight": 0, + "argCount": 0, + "argCountWeight": 0, + "returnCount": 0, + "returnCountWeight": 0, + "variableCount": 0, + "variableCountWeight": 0, + "propertyCallCount": 0, + "propertyCallCountWeight": 0, + "ifCount": 0, + "ifCountWeight": 0, + "ifNestingLevel": 0, + "ifNestingLevelWeight": 0, + "elseCount": 0, + "elseCountWeight": 0, + "score": 0 + }, + "equals": { + "class": "Phauthentic\\CodeQualityMetrics\\Business\\Cognitive\\CognitiveMetrics", + "method": "equals", + "lineCount": 5, + "lineCountWeight": 0, + "argCount": 1, + "argCountWeight": 0, + "returnCount": 0, + "returnCountWeight": 0, + "variableCount": 0, + "variableCountWeight": 0, + "propertyCallCount": 0, + "propertyCallCountWeight": 0, + "ifCount": 0, + "ifCountWeight": 0, + "ifNestingLevel": 0, + "ifNestingLevelWeight": 0, + "elseCount": 0, + "elseCountWeight": 0, + "score": 0 + }, + "toArray": { + "class": "Phauthentic\\CodeQualityMetrics\\Business\\Cognitive\\CognitiveMetrics", + "method": "toArray", + "lineCount": 31, + "lineCountWeight": 0, + "argCount": 0, + "argCountWeight": 0, + "returnCount": 0, + "returnCountWeight": 0, + "variableCount": 0, + "variableCountWeight": 0, + "propertyCallCount": 0, + "propertyCallCountWeight": 0, + "ifCount": 0, + "ifCountWeight": 0, + "ifNestingLevel": 0, + "ifNestingLevelWeight": 0, + "elseCount": 0, + "elseCountWeight": 0, + "score": 0 + }, + "jsonSerialize": { + "class": "Phauthentic\\CodeQualityMetrics\\Business\\Cognitive\\CognitiveMetrics", + "method": "jsonSerialize", + "lineCount": 4, + "lineCountWeight": 0, + "argCount": 0, + "argCountWeight": 0, + "returnCount": 0, + "returnCountWeight": 0, + "variableCount": 0, + "variableCountWeight": 0, + "propertyCallCount": 0, + "propertyCallCountWeight": 0, + "ifCount": 0, + "ifCountWeight": 0, + "ifNestingLevel": 0, + "ifNestingLevelWeight": 0, + "elseCount": 0, + "elseCountWeight": 0, + "score": 0 + } + } + }, + "Phauthentic\\CodeQualityMetrics\\Business\\Cognitive\\CognitiveMetricsCollection": { + "methods": { + "add": { + "class": "Phauthentic\\CodeQualityMetrics\\Business\\Cognitive\\CognitiveMetricsCollection", + "method": "add", + "lineCount": 4, + "lineCountWeight": 0, + "argCount": 1, + "argCountWeight": 0, + "returnCount": 0, + "returnCountWeight": 0, + "variableCount": 0, + "variableCountWeight": 0, + "propertyCallCount": 0, + "propertyCallCountWeight": 0, + "ifCount": 0, + "ifCountWeight": 0, + "ifNestingLevel": 0, + "ifNestingLevelWeight": 0, + "elseCount": 0, + "elseCountWeight": 0, + "score": 0 + }, + "filter": { + "class": "Phauthentic\\CodeQualityMetrics\\Business\\Cognitive\\CognitiveMetricsCollection", + "method": "filter", + "lineCount": 11, + "lineCountWeight": 0, + "argCount": 1, + "argCountWeight": 0, + "returnCount": 0, + "returnCountWeight": 0, + "variableCount": 0, + "variableCountWeight": 0, + "propertyCallCount": 0, + "propertyCallCountWeight": 0, + "ifCount": 0, + "ifCountWeight": 0, + "ifNestingLevel": 0, + "ifNestingLevelWeight": 0, + "elseCount": 0, + "elseCountWeight": 0, + "score": 0 + }, + "getIterator": { + "class": "Phauthentic\\CodeQualityMetrics\\Business\\Cognitive\\CognitiveMetricsCollection", + "method": "getIterator", + "lineCount": 4, + "lineCountWeight": 0, + "argCount": 0, + "argCountWeight": 0, + "returnCount": 0, + "returnCountWeight": 0, + "variableCount": 0, + "variableCountWeight": 0, + "propertyCallCount": 0, + "propertyCallCountWeight": 0, + "ifCount": 0, + "ifCountWeight": 0, + "ifNestingLevel": 0, + "ifNestingLevelWeight": 0, + "elseCount": 0, + "elseCountWeight": 0, + "score": 0 + }, + "count": { + "class": "Phauthentic\\CodeQualityMetrics\\Business\\Cognitive\\CognitiveMetricsCollection", + "method": "count", + "lineCount": 4, + "lineCountWeight": 0, + "argCount": 0, + "argCountWeight": 0, + "returnCount": 0, + "returnCountWeight": 0, + "variableCount": 0, + "variableCountWeight": 0, + "propertyCallCount": 0, + "propertyCallCountWeight": 0, + "ifCount": 0, + "ifCountWeight": 0, + "ifNestingLevel": 0, + "ifNestingLevelWeight": 0, + "elseCount": 0, + "elseCountWeight": 0, + "score": 0 + }, + "filterWithScoreGreaterThan": { + "class": "Phauthentic\\CodeQualityMetrics\\Business\\Cognitive\\CognitiveMetricsCollection", + "method": "filterWithScoreGreaterThan", + "lineCount": 6, + "lineCountWeight": 0, + "argCount": 1, + "argCountWeight": 0, + "returnCount": 0, + "returnCountWeight": 0, + "variableCount": 0, + "variableCountWeight": 0, + "propertyCallCount": 0, + "propertyCallCountWeight": 0, + "ifCount": 0, + "ifCountWeight": 0, + "ifNestingLevel": 0, + "ifNestingLevelWeight": 0, + "elseCount": 0, + "elseCountWeight": 0, + "score": 0 + }, + "contains": { + "class": "Phauthentic\\CodeQualityMetrics\\Business\\Cognitive\\CognitiveMetricsCollection", + "method": "contains", + "lineCount": 10, + "lineCountWeight": 0, + "argCount": 1, + "argCountWeight": 0, + "returnCount": 0, + "returnCountWeight": 0, + "variableCount": 0, + "variableCountWeight": 0, + "propertyCallCount": 0, + "propertyCallCountWeight": 0, + "ifCount": 0, + "ifCountWeight": 0, + "ifNestingLevel": 0, + "ifNestingLevelWeight": 0, + "elseCount": 0, + "elseCountWeight": 0, + "score": 0 + }, + "getClassWithMethod": { + "class": "Phauthentic\\CodeQualityMetrics\\Business\\Cognitive\\CognitiveMetricsCollection", + "method": "getClassWithMethod", + "lineCount": 10, + "lineCountWeight": 0, + "argCount": 2, + "argCountWeight": 0, + "returnCount": 0, + "returnCountWeight": 0, + "variableCount": 0, + "variableCountWeight": 0, + "propertyCallCount": 0, + "propertyCallCountWeight": 0, + "ifCount": 0, + "ifCountWeight": 0, + "ifNestingLevel": 0, + "ifNestingLevelWeight": 0, + "elseCount": 0, + "elseCountWeight": 0, + "score": 0 + }, + "filterByClassName": { + "class": "Phauthentic\\CodeQualityMetrics\\Business\\Cognitive\\CognitiveMetricsCollection", + "method": "filterByClassName", + "lineCount": 6, + "lineCountWeight": 0, + "argCount": 1, + "argCountWeight": 0, + "returnCount": 0, + "returnCountWeight": 0, + "variableCount": 0, + "variableCountWeight": 0, + "propertyCallCount": 0, + "propertyCallCountWeight": 0, + "ifCount": 0, + "ifCountWeight": 0, + "ifNestingLevel": 0, + "ifNestingLevelWeight": 0, + "elseCount": 0, + "elseCountWeight": 0, + "score": 0 + }, + "groupBy": { + "class": "Phauthentic\\CodeQualityMetrics\\Business\\Cognitive\\CognitiveMetricsCollection", + "method": "groupBy", + "lineCount": 21, + "lineCountWeight": 0, + "argCount": 1, + "argCountWeight": 0, + "returnCount": 0, + "returnCountWeight": 0, + "variableCount": 0, + "variableCountWeight": 0, + "propertyCallCount": 0, + "propertyCallCountWeight": 0, + "ifCount": 0, + "ifCountWeight": 0, + "ifNestingLevel": 0, + "ifNestingLevelWeight": 0, + "elseCount": 0, + "elseCountWeight": 0, + "score": 0 + }, + "jsonSerialize": { + "class": "Phauthentic\\CodeQualityMetrics\\Business\\Cognitive\\CognitiveMetricsCollection", + "method": "jsonSerialize", + "lineCount": 4, + "lineCountWeight": 0, + "argCount": 0, + "argCountWeight": 0, + "returnCount": 0, + "returnCountWeight": 0, + "variableCount": 0, + "variableCountWeight": 0, + "propertyCallCount": 0, + "propertyCallCountWeight": 0, + "ifCount": 0, + "ifCountWeight": 0, + "ifNestingLevel": 0, + "ifNestingLevelWeight": 0, + "elseCount": 0, + "elseCountWeight": 0, + "score": 0 + } + } + }, + "Phauthentic\\CodeQualityMetrics\\Business\\Cognitive\\ScoreCalculator": { + "methods": { + "calculate": { + "class": "Phauthentic\\CodeQualityMetrics\\Business\\Cognitive\\ScoreCalculator", + "method": "calculate", + "lineCount": 22, + "lineCountWeight": 0, + "argCount": 2, + "argCountWeight": 0, + "returnCount": 0, + "returnCountWeight": 0, + "variableCount": 0, + "variableCountWeight": 0, + "propertyCallCount": 0, + "propertyCallCountWeight": 0, + "ifCount": 0, + "ifCountWeight": 0, + "ifNestingLevel": 0, + "ifNestingLevelWeight": 0, + "elseCount": 0, + "elseCountWeight": 0, + "score": 0 + }, + "calculateScore": { + "class": "Phauthentic\\CodeQualityMetrics\\Business\\Cognitive\\ScoreCalculator", + "method": "calculateScore", + "lineCount": 10, + "lineCountWeight": 0, + "argCount": 1, + "argCountWeight": 0, + "returnCount": 0, + "returnCountWeight": 0, + "variableCount": 0, + "variableCountWeight": 0, + "propertyCallCount": 0, + "propertyCallCountWeight": 0, + "ifCount": 0, + "ifCountWeight": 0, + "ifNestingLevel": 0, + "ifNestingLevelWeight": 0, + "elseCount": 0, + "elseCountWeight": 0, + "score": 0 + }, + "calculateMetricWeights": { + "class": "Phauthentic\\CodeQualityMetrics\\Business\\Cognitive\\ScoreCalculator", + "method": "calculateMetricWeights", + "lineCount": 15, + "lineCountWeight": 0, + "argCount": 3, + "argCountWeight": 0, + "returnCount": 0, + "returnCountWeight": 0, + "variableCount": 0, + "variableCountWeight": 0, + "propertyCallCount": 0, + "propertyCallCountWeight": 0, + "ifCount": 0, + "ifCountWeight": 0, + "ifNestingLevel": 0, + "ifNestingLevelWeight": 0, + "elseCount": 0, + "elseCountWeight": 0, + "score": 0 + }, + "calculateLogWeight": { + "class": "Phauthentic\\CodeQualityMetrics\\Business\\Cognitive\\ScoreCalculator", + "method": "calculateLogWeight", + "lineCount": 8, + "lineCountWeight": 0, + "argCount": 3, + "argCountWeight": 0, + "returnCount": 0, + "returnCountWeight": 0, + "variableCount": 0, + "variableCountWeight": 0, + "propertyCallCount": 0, + "propertyCallCountWeight": 0, + "ifCount": 0, + "ifCountWeight": 0, + "ifNestingLevel": 0, + "ifNestingLevelWeight": 0, + "elseCount": 0, + "elseCountWeight": 0, + "score": 0 + } + } + }, + "Phauthentic\\CodeQualityMetrics\\Business\\AbstractMetricCollector": { + "methods": { + "getExcludePatternsFromConfig": { + "class": "Phauthentic\\CodeQualityMetrics\\Business\\AbstractMetricCollector", + "method": "getExcludePatternsFromConfig", + "lineCount": 8, + "lineCountWeight": 0, + "argCount": 1, + "argCountWeight": 0, + "returnCount": 0, + "returnCountWeight": 0, + "variableCount": 0, + "variableCountWeight": 0, + "propertyCallCount": 0, + "propertyCallCountWeight": 0, + "ifCount": 0, + "ifCountWeight": 0, + "ifNestingLevel": 0, + "ifNestingLevelWeight": 0, + "elseCount": 0, + "elseCountWeight": 0, + "score": 0 + }, + "__construct": { + "class": "Phauthentic\\CodeQualityMetrics\\Business\\AbstractMetricCollector", + "method": "__construct", + "lineCount": 6, + "lineCountWeight": 0, + "argCount": 0, + "argCountWeight": 0, + "returnCount": 0, + "returnCountWeight": 0, + "variableCount": 0, + "variableCountWeight": 0, + "propertyCallCount": 0, + "propertyCallCountWeight": 0, + "ifCount": 0, + "ifCountWeight": 0, + "ifNestingLevel": 0, + "ifNestingLevelWeight": 0, + "elseCount": 0, + "elseCountWeight": 0, + "score": 0 + }, + "findSourceFiles": { + "class": "Phauthentic\\CodeQualityMetrics\\Business\\AbstractMetricCollector", + "method": "findSourceFiles", + "lineCount": 4, + "lineCountWeight": 0, + "argCount": 2, + "argCountWeight": 0, + "returnCount": 0, + "returnCountWeight": 0, + "variableCount": 0, + "variableCountWeight": 0, + "propertyCallCount": 0, + "propertyCallCountWeight": 0, + "ifCount": 0, + "ifCountWeight": 0, + "ifNestingLevel": 0, + "ifNestingLevelWeight": 0, + "elseCount": 0, + "elseCountWeight": 0, + "score": 0 + }, + "traverseAbstractSyntaxTree": { + "class": "Phauthentic\\CodeQualityMetrics\\Business\\AbstractMetricCollector", + "method": "traverseAbstractSyntaxTree", + "lineCount": 14, + "lineCountWeight": 0, + "argCount": 1, + "argCountWeight": 0, + "returnCount": 0, + "returnCountWeight": 0, + "variableCount": 0, + "variableCountWeight": 0, + "propertyCallCount": 0, + "propertyCallCountWeight": 0, + "ifCount": 0, + "ifCountWeight": 0, + "ifNestingLevel": 0, + "ifNestingLevelWeight": 0, + "elseCount": 0, + "elseCountWeight": 0, + "score": 0 + } + } + }, + "Phauthentic\\CodeQualityMetrics\\Business\\MetricsFacade": { + "methods": { + "__construct": { + "class": "Phauthentic\\CodeQualityMetrics\\Business\\MetricsFacade", + "method": "__construct", + "lineCount": 9, + "lineCountWeight": 0, + "argCount": 0, + "argCountWeight": 0, + "returnCount": 0, + "returnCountWeight": 0, + "variableCount": 0, + "variableCountWeight": 0, + "propertyCallCount": 0, + "propertyCallCountWeight": 0, + "ifCount": 0, + "ifCountWeight": 0, + "ifNestingLevel": 0, + "ifNestingLevelWeight": 0, + "elseCount": 0, + "elseCountWeight": 0, + "score": 0 + }, + "getHalsteadMetrics": { + "class": "Phauthentic\\CodeQualityMetrics\\Business\\MetricsFacade", + "method": "getHalsteadMetrics", + "lineCount": 4, + "lineCountWeight": 0, + "argCount": 1, + "argCountWeight": 0, + "returnCount": 0, + "returnCountWeight": 0, + "variableCount": 0, + "variableCountWeight": 0, + "propertyCallCount": 0, + "propertyCallCountWeight": 0, + "ifCount": 0, + "ifCountWeight": 0, + "ifNestingLevel": 0, + "ifNestingLevelWeight": 0, + "elseCount": 0, + "elseCountWeight": 0, + "score": 0 + }, + "getCognitiveMetrics": { + "class": "Phauthentic\\CodeQualityMetrics\\Business\\MetricsFacade", + "method": "getCognitiveMetrics", + "lineCount": 10, + "lineCountWeight": 0, + "argCount": 1, + "argCountWeight": 0, + "returnCount": 0, + "returnCountWeight": 0, + "variableCount": 0, + "variableCountWeight": 0, + "propertyCallCount": 0, + "propertyCallCountWeight": 0, + "ifCount": 0, + "ifCountWeight": 0, + "ifNestingLevel": 0, + "ifNestingLevelWeight": 0, + "elseCount": 0, + "elseCountWeight": 0, + "score": 0 + }, + "loadConfig": { + "class": "Phauthentic\\CodeQualityMetrics\\Business\\MetricsFacade", + "method": "loadConfig", + "lineCount": 4, + "lineCountWeight": 0, + "argCount": 1, + "argCountWeight": 0, + "returnCount": 0, + "returnCountWeight": 0, + "variableCount": 0, + "variableCountWeight": 0, + "propertyCallCount": 0, + "propertyCallCountWeight": 0, + "ifCount": 0, + "ifCountWeight": 0, + "ifNestingLevel": 0, + "ifNestingLevelWeight": 0, + "elseCount": 0, + "elseCountWeight": 0, + "score": 0 + }, + "metricsCollectionToCsv": { + "class": "Phauthentic\\CodeQualityMetrics\\Business\\MetricsFacade", + "method": "metricsCollectionToCsv", + "lineCount": 4, + "lineCountWeight": 0, + "argCount": 2, + "argCountWeight": 0, + "returnCount": 0, + "returnCountWeight": 0, + "variableCount": 0, + "variableCountWeight": 0, + "propertyCallCount": 0, + "propertyCallCountWeight": 0, + "ifCount": 0, + "ifCountWeight": 0, + "ifNestingLevel": 0, + "ifNestingLevelWeight": 0, + "elseCount": 0, + "elseCountWeight": 0, + "score": 0 + }, + "metricsCollectionToJson": { + "class": "Phauthentic\\CodeQualityMetrics\\Business\\MetricsFacade", + "method": "metricsCollectionToJson", + "lineCount": 4, + "lineCountWeight": 0, + "argCount": 2, + "argCountWeight": 0, + "returnCount": 0, + "returnCountWeight": 0, + "variableCount": 0, + "variableCountWeight": 0, + "propertyCallCount": 0, + "propertyCallCountWeight": 0, + "ifCount": 0, + "ifCountWeight": 0, + "ifNestingLevel": 0, + "ifNestingLevelWeight": 0, + "elseCount": 0, + "elseCountWeight": 0, + "score": 0 + }, + "metricsCollectionToHtml": { + "class": "Phauthentic\\CodeQualityMetrics\\Business\\MetricsFacade", + "method": "metricsCollectionToHtml", + "lineCount": 4, + "lineCountWeight": 0, + "argCount": 2, + "argCountWeight": 0, + "returnCount": 0, + "returnCountWeight": 0, + "variableCount": 0, + "variableCountWeight": 0, + "propertyCallCount": 0, + "propertyCallCountWeight": 0, + "ifCount": 0, + "ifCountWeight": 0, + "ifNestingLevel": 0, + "ifNestingLevelWeight": 0, + "elseCount": 0, + "elseCountWeight": 0, + "score": 0 + } + } + }, + "Phauthentic\\CodeQualityMetrics\\Business\\Halstead\\HalsteadMetricsCollection": { + "methods": { + "add": { + "class": "Phauthentic\\CodeQualityMetrics\\Business\\Halstead\\HalsteadMetricsCollection", + "method": "add", + "lineCount": 4, + "lineCountWeight": 0, + "argCount": 1, + "argCountWeight": 0, + "returnCount": 0, + "returnCountWeight": 0, + "variableCount": 0, + "variableCountWeight": 0, + "propertyCallCount": 0, + "propertyCallCountWeight": 0, + "ifCount": 0, + "ifCountWeight": 0, + "ifNestingLevel": 0, + "ifNestingLevelWeight": 0, + "elseCount": 0, + "elseCountWeight": 0, + "score": 0 + }, + "filter": { + "class": "Phauthentic\\CodeQualityMetrics\\Business\\Halstead\\HalsteadMetricsCollection", + "method": "filter", + "lineCount": 11, + "lineCountWeight": 0, + "argCount": 1, + "argCountWeight": 0, + "returnCount": 0, + "returnCountWeight": 0, + "variableCount": 0, + "variableCountWeight": 0, + "propertyCallCount": 0, + "propertyCallCountWeight": 0, + "ifCount": 0, + "ifCountWeight": 0, + "ifNestingLevel": 0, + "ifNestingLevelWeight": 0, + "elseCount": 0, + "elseCountWeight": 0, + "score": 0 + }, + "getIterator": { + "class": "Phauthentic\\CodeQualityMetrics\\Business\\Halstead\\HalsteadMetricsCollection", + "method": "getIterator", + "lineCount": 4, + "lineCountWeight": 0, + "argCount": 0, + "argCountWeight": 0, + "returnCount": 0, + "returnCountWeight": 0, + "variableCount": 0, + "variableCountWeight": 0, + "propertyCallCount": 0, + "propertyCallCountWeight": 0, + "ifCount": 0, + "ifCountWeight": 0, + "ifNestingLevel": 0, + "ifNestingLevelWeight": 0, + "elseCount": 0, + "elseCountWeight": 0, + "score": 0 + }, + "count": { + "class": "Phauthentic\\CodeQualityMetrics\\Business\\Halstead\\HalsteadMetricsCollection", + "method": "count", + "lineCount": 4, + "lineCountWeight": 0, + "argCount": 0, + "argCountWeight": 0, + "returnCount": 0, + "returnCountWeight": 0, + "variableCount": 0, + "variableCountWeight": 0, + "propertyCallCount": 0, + "propertyCallCountWeight": 0, + "ifCount": 0, + "ifCountWeight": 0, + "ifNestingLevel": 0, + "ifNestingLevelWeight": 0, + "elseCount": 0, + "elseCountWeight": 0, + "score": 0 + }, + "contains": { + "class": "Phauthentic\\CodeQualityMetrics\\Business\\Halstead\\HalsteadMetricsCollection", + "method": "contains", + "lineCount": 10, + "lineCountWeight": 0, + "argCount": 1, + "argCountWeight": 0, + "returnCount": 0, + "returnCountWeight": 0, + "variableCount": 0, + "variableCountWeight": 0, + "propertyCallCount": 0, + "propertyCallCountWeight": 0, + "ifCount": 0, + "ifCountWeight": 0, + "ifNestingLevel": 0, + "ifNestingLevelWeight": 0, + "elseCount": 0, + "elseCountWeight": 0, + "score": 0 + }, + "jsonSerialize": { + "class": "Phauthentic\\CodeQualityMetrics\\Business\\Halstead\\HalsteadMetricsCollection", + "method": "jsonSerialize", + "lineCount": 4, + "lineCountWeight": 0, + "argCount": 0, + "argCountWeight": 0, + "returnCount": 0, + "returnCountWeight": 0, + "variableCount": 0, + "variableCountWeight": 0, + "propertyCallCount": 0, + "propertyCallCountWeight": 0, + "ifCount": 0, + "ifCountWeight": 0, + "ifNestingLevel": 0, + "ifNestingLevelWeight": 0, + "elseCount": 0, + "elseCountWeight": 0, + "score": 0 + } + } + }, + "Phauthentic\\CodeQualityMetrics\\Business\\Halstead\\HalsteadMetrics": { + "methods": { + "__construct": { + "class": "Phauthentic\\CodeQualityMetrics\\Business\\Halstead\\HalsteadMetrics", + "method": "__construct", + "lineCount": 22, + "lineCountWeight": 0, + "argCount": 1, + "argCountWeight": 0, + "returnCount": 0, + "returnCountWeight": 0, + "variableCount": 0, + "variableCountWeight": 0, + "propertyCallCount": 0, + "propertyCallCountWeight": 0, + "ifCount": 0, + "ifCountWeight": 0, + "ifNestingLevel": 0, + "ifNestingLevelWeight": 0, + "elseCount": 0, + "elseCountWeight": 0, + "score": 0 + }, + "fromArray": { + "class": "Phauthentic\\CodeQualityMetrics\\Business\\Halstead\\HalsteadMetrics", + "method": "fromArray", + "lineCount": 4, + "lineCountWeight": 0, + "argCount": 1, + "argCountWeight": 0, + "returnCount": 0, + "returnCountWeight": 0, + "variableCount": 0, + "variableCountWeight": 0, + "propertyCallCount": 0, + "propertyCallCountWeight": 0, + "ifCount": 0, + "ifCountWeight": 0, + "ifNestingLevel": 0, + "ifNestingLevelWeight": 0, + "elseCount": 0, + "elseCountWeight": 0, + "score": 0 + }, + "calculateDerivedMetrics": { + "class": "Phauthentic\\CodeQualityMetrics\\Business\\Halstead\\HalsteadMetrics", + "method": "calculateDerivedMetrics", + "lineCount": 20, + "lineCountWeight": 0, + "argCount": 0, + "argCountWeight": 0, + "returnCount": 0, + "returnCountWeight": 0, + "variableCount": 0, + "variableCountWeight": 0, + "propertyCallCount": 0, + "propertyCallCountWeight": 0, + "ifCount": 0, + "ifCountWeight": 0, + "ifNestingLevel": 0, + "ifNestingLevelWeight": 0, + "elseCount": 0, + "elseCountWeight": 0, + "score": 0 + }, + "assertArrayKeyIsPresent": { + "class": "Phauthentic\\CodeQualityMetrics\\Business\\Halstead\\HalsteadMetrics", + "method": "assertArrayKeyIsPresent", + "lineCount": 6, + "lineCountWeight": 0, + "argCount": 2, + "argCountWeight": 0, + "returnCount": 0, + "returnCountWeight": 0, + "variableCount": 0, + "variableCountWeight": 0, + "propertyCallCount": 0, + "propertyCallCountWeight": 0, + "ifCount": 0, + "ifCountWeight": 0, + "ifNestingLevel": 0, + "ifNestingLevelWeight": 0, + "elseCount": 0, + "elseCountWeight": 0, + "score": 0 + }, + "getN1": { + "class": "Phauthentic\\CodeQualityMetrics\\Business\\Halstead\\HalsteadMetrics", + "method": "getN1", + "lineCount": 4, + "lineCountWeight": 0, + "argCount": 0, + "argCountWeight": 0, + "returnCount": 0, + "returnCountWeight": 0, + "variableCount": 0, + "variableCountWeight": 0, + "propertyCallCount": 0, + "propertyCallCountWeight": 0, + "ifCount": 0, + "ifCountWeight": 0, + "ifNestingLevel": 0, + "ifNestingLevelWeight": 0, + "elseCount": 0, + "elseCountWeight": 0, + "score": 0 + }, + "getN2": { + "class": "Phauthentic\\CodeQualityMetrics\\Business\\Halstead\\HalsteadMetrics", + "method": "getN2", + "lineCount": 4, + "lineCountWeight": 0, + "argCount": 0, + "argCountWeight": 0, + "returnCount": 0, + "returnCountWeight": 0, + "variableCount": 0, + "variableCountWeight": 0, + "propertyCallCount": 0, + "propertyCallCountWeight": 0, + "ifCount": 0, + "ifCountWeight": 0, + "ifNestingLevel": 0, + "ifNestingLevelWeight": 0, + "elseCount": 0, + "elseCountWeight": 0, + "score": 0 + }, + "getTotalOperators": { + "class": "Phauthentic\\CodeQualityMetrics\\Business\\Halstead\\HalsteadMetrics", + "method": "getTotalOperators", + "lineCount": 4, + "lineCountWeight": 0, + "argCount": 0, + "argCountWeight": 0, + "returnCount": 0, + "returnCountWeight": 0, + "variableCount": 0, + "variableCountWeight": 0, + "propertyCallCount": 0, + "propertyCallCountWeight": 0, + "ifCount": 0, + "ifCountWeight": 0, + "ifNestingLevel": 0, + "ifNestingLevelWeight": 0, + "elseCount": 0, + "elseCountWeight": 0, + "score": 0 + }, + "getTotalOperands": { + "class": "Phauthentic\\CodeQualityMetrics\\Business\\Halstead\\HalsteadMetrics", + "method": "getTotalOperands", + "lineCount": 4, + "lineCountWeight": 0, + "argCount": 0, + "argCountWeight": 0, + "returnCount": 0, + "returnCountWeight": 0, + "variableCount": 0, + "variableCountWeight": 0, + "propertyCallCount": 0, + "propertyCallCountWeight": 0, + "ifCount": 0, + "ifCountWeight": 0, + "ifNestingLevel": 0, + "ifNestingLevelWeight": 0, + "elseCount": 0, + "elseCountWeight": 0, + "score": 0 + }, + "getProgramLength": { + "class": "Phauthentic\\CodeQualityMetrics\\Business\\Halstead\\HalsteadMetrics", + "method": "getProgramLength", + "lineCount": 4, + "lineCountWeight": 0, + "argCount": 0, + "argCountWeight": 0, + "returnCount": 0, + "returnCountWeight": 0, + "variableCount": 0, + "variableCountWeight": 0, + "propertyCallCount": 0, + "propertyCallCountWeight": 0, + "ifCount": 0, + "ifCountWeight": 0, + "ifNestingLevel": 0, + "ifNestingLevelWeight": 0, + "elseCount": 0, + "elseCountWeight": 0, + "score": 0 + }, + "getProgramVocabulary": { + "class": "Phauthentic\\CodeQualityMetrics\\Business\\Halstead\\HalsteadMetrics", + "method": "getProgramVocabulary", + "lineCount": 4, + "lineCountWeight": 0, + "argCount": 0, + "argCountWeight": 0, + "returnCount": 0, + "returnCountWeight": 0, + "variableCount": 0, + "variableCountWeight": 0, + "propertyCallCount": 0, + "propertyCallCountWeight": 0, + "ifCount": 0, + "ifCountWeight": 0, + "ifNestingLevel": 0, + "ifNestingLevelWeight": 0, + "elseCount": 0, + "elseCountWeight": 0, + "score": 0 + }, + "getVolume": { + "class": "Phauthentic\\CodeQualityMetrics\\Business\\Halstead\\HalsteadMetrics", + "method": "getVolume", + "lineCount": 4, + "lineCountWeight": 0, + "argCount": 0, + "argCountWeight": 0, + "returnCount": 0, + "returnCountWeight": 0, + "variableCount": 0, + "variableCountWeight": 0, + "propertyCallCount": 0, + "propertyCallCountWeight": 0, + "ifCount": 0, + "ifCountWeight": 0, + "ifNestingLevel": 0, + "ifNestingLevelWeight": 0, + "elseCount": 0, + "elseCountWeight": 0, + "score": 0 + }, + "getDifficulty": { + "class": "Phauthentic\\CodeQualityMetrics\\Business\\Halstead\\HalsteadMetrics", + "method": "getDifficulty", + "lineCount": 4, + "lineCountWeight": 0, + "argCount": 0, + "argCountWeight": 0, + "returnCount": 0, + "returnCountWeight": 0, + "variableCount": 0, + "variableCountWeight": 0, + "propertyCallCount": 0, + "propertyCallCountWeight": 0, + "ifCount": 0, + "ifCountWeight": 0, + "ifNestingLevel": 0, + "ifNestingLevelWeight": 0, + "elseCount": 0, + "elseCountWeight": 0, + "score": 0 + }, + "getEffort": { + "class": "Phauthentic\\CodeQualityMetrics\\Business\\Halstead\\HalsteadMetrics", + "method": "getEffort", + "lineCount": 4, + "lineCountWeight": 0, + "argCount": 0, + "argCountWeight": 0, + "returnCount": 0, + "returnCountWeight": 0, + "variableCount": 0, + "variableCountWeight": 0, + "propertyCallCount": 0, + "propertyCallCountWeight": 0, + "ifCount": 0, + "ifCountWeight": 0, + "ifNestingLevel": 0, + "ifNestingLevelWeight": 0, + "elseCount": 0, + "elseCountWeight": 0, + "score": 0 + }, + "getPossibleBugs": { + "class": "Phauthentic\\CodeQualityMetrics\\Business\\Halstead\\HalsteadMetrics", + "method": "getPossibleBugs", + "lineCount": 4, + "lineCountWeight": 0, + "argCount": 0, + "argCountWeight": 0, + "returnCount": 0, + "returnCountWeight": 0, + "variableCount": 0, + "variableCountWeight": 0, + "propertyCallCount": 0, + "propertyCallCountWeight": 0, + "ifCount": 0, + "ifCountWeight": 0, + "ifNestingLevel": 0, + "ifNestingLevelWeight": 0, + "elseCount": 0, + "elseCountWeight": 0, + "score": 0 + }, + "getClass": { + "class": "Phauthentic\\CodeQualityMetrics\\Business\\Halstead\\HalsteadMetrics", + "method": "getClass", + "lineCount": 4, + "lineCountWeight": 0, + "argCount": 0, + "argCountWeight": 0, + "returnCount": 0, + "returnCountWeight": 0, + "variableCount": 0, + "variableCountWeight": 0, + "propertyCallCount": 0, + "propertyCallCountWeight": 0, + "ifCount": 0, + "ifCountWeight": 0, + "ifNestingLevel": 0, + "ifNestingLevelWeight": 0, + "elseCount": 0, + "elseCountWeight": 0, + "score": 0 + }, + "getFile": { + "class": "Phauthentic\\CodeQualityMetrics\\Business\\Halstead\\HalsteadMetrics", + "method": "getFile", + "lineCount": 4, + "lineCountWeight": 0, + "argCount": 0, + "argCountWeight": 0, + "returnCount": 0, + "returnCountWeight": 0, + "variableCount": 0, + "variableCountWeight": 0, + "propertyCallCount": 0, + "propertyCallCountWeight": 0, + "ifCount": 0, + "ifCountWeight": 0, + "ifNestingLevel": 0, + "ifNestingLevelWeight": 0, + "elseCount": 0, + "elseCountWeight": 0, + "score": 0 + }, + "toArray": { + "class": "Phauthentic\\CodeQualityMetrics\\Business\\Halstead\\HalsteadMetrics", + "method": "toArray", + "lineCount": 17, + "lineCountWeight": 0, + "argCount": 0, + "argCountWeight": 0, + "returnCount": 0, + "returnCountWeight": 0, + "variableCount": 0, + "variableCountWeight": 0, + "propertyCallCount": 0, + "propertyCallCountWeight": 0, + "ifCount": 0, + "ifCountWeight": 0, + "ifNestingLevel": 0, + "ifNestingLevelWeight": 0, + "elseCount": 0, + "elseCountWeight": 0, + "score": 0 + }, + "jsonSerialize": { + "class": "Phauthentic\\CodeQualityMetrics\\Business\\Halstead\\HalsteadMetrics", + "method": "jsonSerialize", + "lineCount": 4, + "lineCountWeight": 0, + "argCount": 0, + "argCountWeight": 0, + "returnCount": 0, + "returnCountWeight": 0, + "variableCount": 0, + "variableCountWeight": 0, + "propertyCallCount": 0, + "propertyCallCountWeight": 0, + "ifCount": 0, + "ifCountWeight": 0, + "ifNestingLevel": 0, + "ifNestingLevelWeight": 0, + "elseCount": 0, + "elseCountWeight": 0, + "score": 0 + }, + "equals": { + "class": "Phauthentic\\CodeQualityMetrics\\Business\\Halstead\\HalsteadMetrics", + "method": "equals", + "lineCount": 9, + "lineCountWeight": 0, + "argCount": 1, + "argCountWeight": 0, + "returnCount": 0, + "returnCountWeight": 0, + "variableCount": 0, + "variableCountWeight": 0, + "propertyCallCount": 0, + "propertyCallCountWeight": 0, + "ifCount": 0, + "ifCountWeight": 0, + "ifNestingLevel": 0, + "ifNestingLevelWeight": 0, + "elseCount": 0, + "elseCountWeight": 0, + "score": 0 + } + } + }, + "Phauthentic\\CodeQualityMetrics\\Business\\Halstead\\Exporter\\JsonExporter": { + "methods": { + "export": { + "class": "Phauthentic\\CodeQualityMetrics\\Business\\Halstead\\Exporter\\JsonExporter", + "method": "export", + "lineCount": 6, + "lineCountWeight": 0, + "argCount": 2, + "argCountWeight": 0, + "returnCount": 0, + "returnCountWeight": 0, + "variableCount": 0, + "variableCountWeight": 0, + "propertyCallCount": 0, + "propertyCallCountWeight": 0, + "ifCount": 0, + "ifCountWeight": 0, + "ifNestingLevel": 0, + "ifNestingLevelWeight": 0, + "elseCount": 0, + "elseCountWeight": 0, + "score": 0 + } + } + }, + "Phauthentic\\CodeQualityMetrics\\Business\\Halstead\\Exporter\\CsvExporter": { + "methods": { + "assertTargetDirectoryExists": { + "class": "Phauthentic\\CodeQualityMetrics\\Business\\Halstead\\Exporter\\CsvExporter", + "method": "assertTargetDirectoryExists", + "lineCount": 7, + "lineCountWeight": 0, + "argCount": 1, + "argCountWeight": 0, + "returnCount": 0, + "returnCountWeight": 0, + "variableCount": 0, + "variableCountWeight": 0, + "propertyCallCount": 0, + "propertyCallCountWeight": 0, + "ifCount": 0, + "ifCountWeight": 0, + "ifNestingLevel": 0, + "ifNestingLevelWeight": 0, + "elseCount": 0, + "elseCountWeight": 0, + "score": 0 + }, + "assertIsResource": { + "class": "Phauthentic\\CodeQualityMetrics\\Business\\Halstead\\Exporter\\CsvExporter", + "method": "assertIsResource", + "lineCount": 8, + "lineCountWeight": 0, + "argCount": 2, + "argCountWeight": 0, + "returnCount": 0, + "returnCountWeight": 0, + "variableCount": 0, + "variableCountWeight": 0, + "propertyCallCount": 0, + "propertyCallCountWeight": 0, + "ifCount": 0, + "ifCountWeight": 0, + "ifNestingLevel": 0, + "ifNestingLevelWeight": 0, + "elseCount": 0, + "elseCountWeight": 0, + "score": 0 + }, + "assertIsWriteablePath": { + "class": "Phauthentic\\CodeQualityMetrics\\Business\\Halstead\\Exporter\\CsvExporter", + "method": "assertIsWriteablePath", + "lineCount": 6, + "lineCountWeight": 0, + "argCount": 1, + "argCountWeight": 0, + "returnCount": 0, + "returnCountWeight": 0, + "variableCount": 0, + "variableCountWeight": 0, + "propertyCallCount": 0, + "propertyCallCountWeight": 0, + "ifCount": 0, + "ifCountWeight": 0, + "ifNestingLevel": 0, + "ifNestingLevelWeight": 0, + "elseCount": 0, + "elseCountWeight": 0, + "score": 0 + }, + "export": { + "class": "Phauthentic\\CodeQualityMetrics\\Business\\Halstead\\Exporter\\CsvExporter", + "method": "export", + "lineCount": 29, + "lineCountWeight": 0, + "argCount": 2, + "argCountWeight": 0, + "returnCount": 0, + "returnCountWeight": 0, + "variableCount": 0, + "variableCountWeight": 0, + "propertyCallCount": 0, + "propertyCallCountWeight": 0, + "ifCount": 0, + "ifCountWeight": 0, + "ifNestingLevel": 0, + "ifNestingLevelWeight": 0, + "elseCount": 0, + "elseCountWeight": 0, + "score": 0 + } + } + }, + "Phauthentic\\CodeQualityMetrics\\Business\\Halstead\\HalsteadMetricsCollector": { + "methods": { + "collect": { + "class": "Phauthentic\\CodeQualityMetrics\\Business\\Halstead\\HalsteadMetricsCollector", + "method": "collect", + "lineCount": 6, + "lineCountWeight": 0, + "argCount": 2, + "argCountWeight": 0, + "returnCount": 0, + "returnCountWeight": 0, + "variableCount": 0, + "variableCountWeight": 0, + "propertyCallCount": 0, + "propertyCallCountWeight": 0, + "ifCount": 0, + "ifCountWeight": 0, + "ifNestingLevel": 0, + "ifNestingLevelWeight": 0, + "elseCount": 0, + "elseCountWeight": 0, + "score": 0 + }, + "findMetrics": { + "class": "Phauthentic\\CodeQualityMetrics\\Business\\Halstead\\HalsteadMetricsCollector", + "method": "findMetrics", + "lineCount": 32, + "lineCountWeight": 0, + "argCount": 1, + "argCountWeight": 0, + "returnCount": 0, + "returnCountWeight": 0, + "variableCount": 0, + "variableCountWeight": 0, + "propertyCallCount": 0, + "propertyCallCountWeight": 0, + "ifCount": 0, + "ifCountWeight": 0, + "ifNestingLevel": 0, + "ifNestingLevelWeight": 0, + "elseCount": 0, + "elseCountWeight": 0, + "score": 0 + } + } + }, + "Phauthentic\\CodeQualityMetrics\\Business\\DirectoryScanner": { + "methods": { + "scan": { + "class": "Phauthentic\\CodeQualityMetrics\\Business\\DirectoryScanner", + "method": "scan", + "lineCount": 12, + "lineCountWeight": 0, + "argCount": 2, + "argCountWeight": 0, + "returnCount": 0, + "returnCountWeight": 0, + "variableCount": 0, + "variableCountWeight": 0, + "propertyCallCount": 0, + "propertyCallCountWeight": 0, + "ifCount": 0, + "ifCountWeight": 0, + "ifNestingLevel": 0, + "ifNestingLevelWeight": 0, + "elseCount": 0, + "elseCountWeight": 0, + "score": 0 + }, + "assertValidPath": { + "class": "Phauthentic\\CodeQualityMetrics\\Business\\DirectoryScanner", + "method": "assertValidPath", + "lineCount": 6, + "lineCountWeight": 0, + "argCount": 1, + "argCountWeight": 0, + "returnCount": 0, + "returnCountWeight": 0, + "variableCount": 0, + "variableCountWeight": 0, + "propertyCallCount": 0, + "propertyCallCountWeight": 0, + "ifCount": 0, + "ifCountWeight": 0, + "ifNestingLevel": 0, + "ifNestingLevelWeight": 0, + "elseCount": 0, + "elseCountWeight": 0, + "score": 0 + }, + "yieldFileIfNotExcluded": { + "class": "Phauthentic\\CodeQualityMetrics\\Business\\DirectoryScanner", + "method": "yieldFileIfNotExcluded", + "lineCount": 8, + "lineCountWeight": 0, + "argCount": 2, + "argCountWeight": 0, + "returnCount": 0, + "returnCountWeight": 0, + "variableCount": 0, + "variableCountWeight": 0, + "propertyCallCount": 0, + "propertyCallCountWeight": 0, + "ifCount": 0, + "ifCountWeight": 0, + "ifNestingLevel": 0, + "ifNestingLevelWeight": 0, + "elseCount": 0, + "elseCountWeight": 0, + "score": 0 + }, + "traverseDirectory": { + "class": "Phauthentic\\CodeQualityMetrics\\Business\\DirectoryScanner", + "method": "traverseDirectory", + "lineCount": 13, + "lineCountWeight": 0, + "argCount": 2, + "argCountWeight": 0, + "returnCount": 0, + "returnCountWeight": 0, + "variableCount": 0, + "variableCountWeight": 0, + "propertyCallCount": 0, + "propertyCallCountWeight": 0, + "ifCount": 0, + "ifCountWeight": 0, + "ifNestingLevel": 0, + "ifNestingLevelWeight": 0, + "elseCount": 0, + "elseCountWeight": 0, + "score": 0 + }, + "isExcluded": { + "class": "Phauthentic\\CodeQualityMetrics\\Business\\DirectoryScanner", + "method": "isExcluded", + "lineCount": 11, + "lineCountWeight": 0, + "argCount": 2, + "argCountWeight": 0, + "returnCount": 0, + "returnCountWeight": 0, + "variableCount": 0, + "variableCountWeight": 0, + "propertyCallCount": 0, + "propertyCallCountWeight": 0, + "ifCount": 0, + "ifCountWeight": 0, + "ifNestingLevel": 0, + "ifNestingLevelWeight": 0, + "elseCount": 0, + "elseCountWeight": 0, + "score": 0 + } + } + }, + "Phauthentic\\CodeQualityMetrics\\Command\\CognitiveMetricsCommand": { + "methods": { + "__construct": { + "class": "Phauthentic\\CodeQualityMetrics\\Command\\CognitiveMetricsCommand", + "method": "__construct", + "lineCount": 6, + "lineCountWeight": 0, + "argCount": 0, + "argCountWeight": 0, + "returnCount": 0, + "returnCountWeight": 0, + "variableCount": 0, + "variableCountWeight": 0, + "propertyCallCount": 0, + "propertyCallCountWeight": 0, + "ifCount": 0, + "ifCountWeight": 0, + "ifNestingLevel": 0, + "ifNestingLevelWeight": 0, + "elseCount": 0, + "elseCountWeight": 0, + "score": 0 + }, + "configure": { + "class": "Phauthentic\\CodeQualityMetrics\\Command\\CognitiveMetricsCommand", + "method": "configure", + "lineCount": 9, + "lineCountWeight": 0, + "argCount": 0, + "argCountWeight": 0, + "returnCount": 0, + "returnCountWeight": 0, + "variableCount": 0, + "variableCountWeight": 0, + "propertyCallCount": 0, + "propertyCallCountWeight": 0, + "ifCount": 0, + "ifCountWeight": 0, + "ifNestingLevel": 0, + "ifNestingLevelWeight": 0, + "elseCount": 0, + "elseCountWeight": 0, + "score": 0 + }, + "execute": { + "class": "Phauthentic\\CodeQualityMetrics\\Command\\CognitiveMetricsCommand", + "method": "execute", + "lineCount": 27, + "lineCountWeight": 0, + "argCount": 2, + "argCountWeight": 0, + "returnCount": 0, + "returnCountWeight": 0, + "variableCount": 0, + "variableCountWeight": 0, + "propertyCallCount": 0, + "propertyCallCountWeight": 0, + "ifCount": 0, + "ifCountWeight": 0, + "ifNestingLevel": 0, + "ifNestingLevelWeight": 0, + "elseCount": 0, + "elseCountWeight": 0, + "score": 0 + }, + "handleBaseLine": { + "class": "Phauthentic\\CodeQualityMetrics\\Command\\CognitiveMetricsCommand", + "method": "handleBaseLine", + "lineCount": 10, + "lineCountWeight": 0, + "argCount": 1, + "argCountWeight": 0, + "returnCount": 0, + "returnCountWeight": 0, + "variableCount": 0, + "variableCountWeight": 0, + "propertyCallCount": 0, + "propertyCallCountWeight": 0, + "ifCount": 0, + "ifCountWeight": 0, + "ifNestingLevel": 0, + "ifNestingLevelWeight": 0, + "elseCount": 0, + "elseCountWeight": 0, + "score": 0 + }, + "loadBaseline": { + "class": "Phauthentic\\CodeQualityMetrics\\Command\\CognitiveMetricsCommand", + "method": "loadBaseline", + "lineCount": 13, + "lineCountWeight": 0, + "argCount": 1, + "argCountWeight": 0, + "returnCount": 0, + "returnCountWeight": 0, + "variableCount": 0, + "variableCountWeight": 0, + "propertyCallCount": 0, + "propertyCallCountWeight": 0, + "ifCount": 0, + "ifCountWeight": 0, + "ifNestingLevel": 0, + "ifNestingLevelWeight": 0, + "elseCount": 0, + "elseCountWeight": 0, + "score": 0 + }, + "loadConfiguration": { + "class": "Phauthentic\\CodeQualityMetrics\\Command\\CognitiveMetricsCommand", + "method": "loadConfiguration", + "lineCount": 10, + "lineCountWeight": 0, + "argCount": 2, + "argCountWeight": 0, + "returnCount": 0, + "returnCountWeight": 0, + "variableCount": 0, + "variableCountWeight": 0, + "propertyCallCount": 0, + "propertyCallCountWeight": 0, + "ifCount": 0, + "ifCountWeight": 0, + "ifNestingLevel": 0, + "ifNestingLevelWeight": 0, + "elseCount": 0, + "elseCountWeight": 0, + "score": 0 + }, + "handleExportOptions": { + "class": "Phauthentic\\CodeQualityMetrics\\Command\\CognitiveMetricsCommand", + "method": "handleExportOptions", + "lineCount": 33, + "lineCountWeight": 0, + "argCount": 3, + "argCountWeight": 0, + "returnCount": 0, + "returnCountWeight": 0, + "variableCount": 0, + "variableCountWeight": 0, + "propertyCallCount": 0, + "propertyCallCountWeight": 0, + "ifCount": 0, + "ifCountWeight": 0, + "ifNestingLevel": 0, + "ifNestingLevelWeight": 0, + "elseCount": 0, + "elseCountWeight": 0, + "score": 0 + } + } + }, + "Phauthentic\\CodeQualityMetrics\\Command\\Presentation\\CognitiveMetricTextRenderer": { + "methods": { + "calculateDeltas": { + "class": "Phauthentic\\CodeQualityMetrics\\Command\\Presentation\\CognitiveMetricTextRenderer", + "method": "calculateDeltas", + "lineCount": 14, + "lineCountWeight": 0, + "argCount": 2, + "argCountWeight": 0, + "returnCount": 0, + "returnCountWeight": 0, + "variableCount": 0, + "variableCountWeight": 0, + "propertyCallCount": 0, + "propertyCallCountWeight": 0, + "ifCount": 0, + "ifCountWeight": 0, + "ifNestingLevel": 0, + "ifNestingLevelWeight": 0, + "elseCount": 0, + "elseCountWeight": 0, + "score": 0 + }, + "render": { + "class": "Phauthentic\\CodeQualityMetrics\\Command\\Presentation\\CognitiveMetricTextRenderer", + "method": "render", + "lineCount": 24, + "lineCountWeight": 0, + "argCount": 3, + "argCountWeight": 0, + "returnCount": 0, + "returnCountWeight": 0, + "variableCount": 0, + "variableCountWeight": 0, + "propertyCallCount": 0, + "propertyCallCountWeight": 0, + "ifCount": 0, + "ifCountWeight": 0, + "ifNestingLevel": 0, + "ifNestingLevelWeight": 0, + "elseCount": 0, + "elseCountWeight": 0, + "score": 0 + }, + "getTableHeaders": { + "class": "Phauthentic\\CodeQualityMetrics\\Command\\Presentation\\CognitiveMetricTextRenderer", + "method": "getTableHeaders", + "lineCount": 15, + "lineCountWeight": 0, + "argCount": 0, + "argCountWeight": 0, + "returnCount": 0, + "returnCountWeight": 0, + "variableCount": 0, + "variableCountWeight": 0, + "propertyCallCount": 0, + "propertyCallCountWeight": 0, + "ifCount": 0, + "ifCountWeight": 0, + "ifNestingLevel": 0, + "ifNestingLevelWeight": 0, + "elseCount": 0, + "elseCountWeight": 0, + "score": 0 + }, + "prepareTableRow": { + "class": "Phauthentic\\CodeQualityMetrics\\Command\\Presentation\\CognitiveMetricTextRenderer", + "method": "prepareTableRow", + "lineCount": 36, + "lineCountWeight": 0, + "argCount": 2, + "argCountWeight": 0, + "returnCount": 0, + "returnCountWeight": 0, + "variableCount": 0, + "variableCountWeight": 0, + "propertyCallCount": 0, + "propertyCallCountWeight": 0, + "ifCount": 0, + "ifCountWeight": 0, + "ifNestingLevel": 0, + "ifNestingLevelWeight": 0, + "elseCount": 0, + "elseCountWeight": 0, + "score": 0 + }, + "addDelta": { + "class": "Phauthentic\\CodeQualityMetrics\\Command\\Presentation\\CognitiveMetricTextRenderer", + "method": "addDelta", + "lineCount": 37, + "lineCountWeight": 0, + "argCount": 5, + "argCountWeight": 0.6931471805599453, + "returnCount": 0, + "returnCountWeight": 0, + "variableCount": 0, + "variableCountWeight": 0, + "propertyCallCount": 0, + "propertyCallCountWeight": 0, + "ifCount": 0, + "ifCountWeight": 0, + "ifNestingLevel": 0, + "ifNestingLevelWeight": 0, + "elseCount": 0, + "elseCountWeight": 0, + "score": 0.693 + } + } + }, + "Phauthentic\\CodeQualityMetrics\\Command\\Presentation\\HalsteadMetricTextRenderer": { + "methods": { + "render": { + "class": "Phauthentic\\CodeQualityMetrics\\Command\\Presentation\\HalsteadMetricTextRenderer", + "method": "render", + "lineCount": 20, + "lineCountWeight": 0, + "argCount": 2, + "argCountWeight": 0, + "returnCount": 0, + "returnCountWeight": 0, + "variableCount": 0, + "variableCountWeight": 0, + "propertyCallCount": 0, + "propertyCallCountWeight": 0, + "ifCount": 0, + "ifCountWeight": 0, + "ifNestingLevel": 0, + "ifNestingLevelWeight": 0, + "elseCount": 0, + "elseCountWeight": 0, + "score": 0 + }, + "getTableHeaders": { + "class": "Phauthentic\\CodeQualityMetrics\\Command\\Presentation\\HalsteadMetricTextRenderer", + "method": "getTableHeaders", + "lineCount": 15, + "lineCountWeight": 0, + "argCount": 0, + "argCountWeight": 0, + "returnCount": 0, + "returnCountWeight": 0, + "variableCount": 0, + "variableCountWeight": 0, + "propertyCallCount": 0, + "propertyCallCountWeight": 0, + "ifCount": 0, + "ifCountWeight": 0, + "ifNestingLevel": 0, + "ifNestingLevelWeight": 0, + "elseCount": 0, + "elseCountWeight": 0, + "score": 0 + }, + "prepareTableRow": { + "class": "Phauthentic\\CodeQualityMetrics\\Command\\Presentation\\HalsteadMetricTextRenderer", + "method": "prepareTableRow", + "lineCount": 15, + "lineCountWeight": 0, + "argCount": 1, + "argCountWeight": 0, + "returnCount": 0, + "returnCountWeight": 0, + "variableCount": 0, + "variableCountWeight": 0, + "propertyCallCount": 0, + "propertyCallCountWeight": 0, + "ifCount": 0, + "ifCountWeight": 0, + "ifNestingLevel": 0, + "ifNestingLevelWeight": 0, + "elseCount": 0, + "elseCountWeight": 0, + "score": 0 + } + } + }, + "Phauthentic\\CodeQualityMetrics\\Command\\HalsteadMetricsCommand": { + "methods": { + "__construct": { + "class": "Phauthentic\\CodeQualityMetrics\\Command\\HalsteadMetricsCommand", + "method": "__construct", + "lineCount": 6, + "lineCountWeight": 0, + "argCount": 0, + "argCountWeight": 0, + "returnCount": 0, + "returnCountWeight": 0, + "variableCount": 0, + "variableCountWeight": 0, + "propertyCallCount": 0, + "propertyCallCountWeight": 0, + "ifCount": 0, + "ifCountWeight": 0, + "ifNestingLevel": 0, + "ifNestingLevelWeight": 0, + "elseCount": 0, + "elseCountWeight": 0, + "score": 0 + }, + "configure": { + "class": "Phauthentic\\CodeQualityMetrics\\Command\\HalsteadMetricsCommand", + "method": "configure", + "lineCount": 9, + "lineCountWeight": 0, + "argCount": 0, + "argCountWeight": 0, + "returnCount": 0, + "returnCountWeight": 0, + "variableCount": 0, + "variableCountWeight": 0, + "propertyCallCount": 0, + "propertyCallCountWeight": 0, + "ifCount": 0, + "ifCountWeight": 0, + "ifNestingLevel": 0, + "ifNestingLevelWeight": 0, + "elseCount": 0, + "elseCountWeight": 0, + "score": 0 + }, + "execute": { + "class": "Phauthentic\\CodeQualityMetrics\\Command\\HalsteadMetricsCommand", + "method": "execute", + "lineCount": 22, + "lineCountWeight": 0, + "argCount": 2, + "argCountWeight": 0, + "returnCount": 0, + "returnCountWeight": 0, + "variableCount": 0, + "variableCountWeight": 0, + "propertyCallCount": 0, + "propertyCallCountWeight": 0, + "ifCount": 0, + "ifCountWeight": 0, + "ifNestingLevel": 0, + "ifNestingLevelWeight": 0, + "elseCount": 0, + "elseCountWeight": 0, + "score": 0 + }, + "loadConfiguration": { + "class": "Phauthentic\\CodeQualityMetrics\\Command\\HalsteadMetricsCommand", + "method": "loadConfiguration", + "lineCount": 10, + "lineCountWeight": 0, + "argCount": 2, + "argCountWeight": 0, + "returnCount": 0, + "returnCountWeight": 0, + "variableCount": 0, + "variableCountWeight": 0, + "propertyCallCount": 0, + "propertyCallCountWeight": 0, + "ifCount": 0, + "ifCountWeight": 0, + "ifNestingLevel": 0, + "ifNestingLevelWeight": 0, + "elseCount": 0, + "elseCountWeight": 0, + "score": 0 + }, + "handleExportOptions": { + "class": "Phauthentic\\CodeQualityMetrics\\Command\\HalsteadMetricsCommand", + "method": "handleExportOptions", + "lineCount": 12, + "lineCountWeight": 0, + "argCount": 2, + "argCountWeight": 0, + "returnCount": 0, + "returnCountWeight": 0, + "variableCount": 0, + "variableCountWeight": 0, + "propertyCallCount": 0, + "propertyCallCountWeight": 0, + "ifCount": 0, + "ifCountWeight": 0, + "ifNestingLevel": 0, + "ifNestingLevelWeight": 0, + "elseCount": 0, + "elseCountWeight": 0, + "score": 0 + } + } + }, + "Phauthentic\\CodeQualityMetrics\\Config\\ConfigLoader": { + "methods": { + "getCognitiveMetricDefaults": { + "class": "Phauthentic\\CodeQualityMetrics\\Config\\ConfigLoader", + "method": "getCognitiveMetricDefaults", + "lineCount": 45, + "lineCountWeight": 0, + "argCount": 0, + "argCountWeight": 0, + "returnCount": 0, + "returnCountWeight": 0, + "variableCount": 0, + "variableCountWeight": 0, + "propertyCallCount": 0, + "propertyCallCountWeight": 0, + "ifCount": 0, + "ifCountWeight": 0, + "ifNestingLevel": 0, + "ifNestingLevelWeight": 0, + "elseCount": 0, + "elseCountWeight": 0, + "score": 0 + }, + "getConfigTreeBuilder": { + "class": "Phauthentic\\CodeQualityMetrics\\Config\\ConfigLoader", + "method": "getConfigTreeBuilder", + "lineCount": 74, + "lineCountWeight": 0.44468582126144574, + "argCount": 0, + "argCountWeight": 0, + "returnCount": 0, + "returnCountWeight": 0, + "variableCount": 0, + "variableCountWeight": 0, + "propertyCallCount": 0, + "propertyCallCountWeight": 0, + "ifCount": 0, + "ifCountWeight": 0, + "ifNestingLevel": 0, + "ifNestingLevelWeight": 0, + "elseCount": 0, + "elseCountWeight": 0, + "score": 0.445 + } + } + }, + "Phauthentic\\CodeQualityMetrics\\Config\\ConfigService": { + "methods": { + "__construct": { + "class": "Phauthentic\\CodeQualityMetrics\\Config\\ConfigService", + "method": "__construct", + "lineCount": 9, + "lineCountWeight": 0, + "argCount": 0, + "argCountWeight": 0, + "returnCount": 0, + "returnCountWeight": 0, + "variableCount": 0, + "variableCountWeight": 0, + "propertyCallCount": 0, + "propertyCallCountWeight": 0, + "ifCount": 0, + "ifCountWeight": 0, + "ifNestingLevel": 0, + "ifNestingLevelWeight": 0, + "elseCount": 0, + "elseCountWeight": 0, + "score": 0 + }, + "loadConfig": { + "class": "Phauthentic\\CodeQualityMetrics\\Config\\ConfigService", + "method": "loadConfig", + "lineCount": 7, + "lineCountWeight": 0, + "argCount": 1, + "argCountWeight": 0, + "returnCount": 0, + "returnCountWeight": 0, + "variableCount": 0, + "variableCountWeight": 0, + "propertyCallCount": 0, + "propertyCallCountWeight": 0, + "ifCount": 0, + "ifCountWeight": 0, + "ifNestingLevel": 0, + "ifNestingLevelWeight": 0, + "elseCount": 0, + "elseCountWeight": 0, + "score": 0 + }, + "getConfig": { + "class": "Phauthentic\\CodeQualityMetrics\\Config\\ConfigService", + "method": "getConfig", + "lineCount": 4, + "lineCountWeight": 0, + "argCount": 0, + "argCountWeight": 0, + "returnCount": 0, + "returnCountWeight": 0, + "variableCount": 0, + "variableCountWeight": 0, + "propertyCallCount": 0, + "propertyCallCountWeight": 0, + "ifCount": 0, + "ifCountWeight": 0, + "ifNestingLevel": 0, + "ifNestingLevelWeight": 0, + "elseCount": 0, + "elseCountWeight": 0, + "score": 0 + } + } + }, + "Phauthentic\\CodeQualityMetrics\\PhpParser\\CognitiveMetricsVisitor": { + "methods": { + "resetValues": { + "class": "Phauthentic\\CodeQualityMetrics\\PhpParser\\CognitiveMetricsVisitor", + "method": "resetValues", + "lineCount": 12, + "lineCountWeight": 0, + "argCount": 0, + "argCountWeight": 0, + "returnCount": 0, + "returnCountWeight": 0, + "variableCount": 0, + "variableCountWeight": 0, + "propertyCallCount": 0, + "propertyCallCountWeight": 0, + "ifCount": 0, + "ifCountWeight": 0, + "ifNestingLevel": 0, + "ifNestingLevelWeight": 0, + "elseCount": 0, + "elseCountWeight": 0, + "score": 0 + }, + "classMethodOnEnterNode": { + "class": "Phauthentic\\CodeQualityMetrics\\PhpParser\\CognitiveMetricsVisitor", + "method": "classMethodOnEnterNode", + "lineCount": 11, + "lineCountWeight": 0, + "argCount": 1, + "argCountWeight": 0, + "returnCount": 0, + "returnCountWeight": 0, + "variableCount": 0, + "variableCountWeight": 0, + "propertyCallCount": 0, + "propertyCallCountWeight": 0, + "ifCount": 0, + "ifCountWeight": 0, + "ifNestingLevel": 0, + "ifNestingLevelWeight": 0, + "elseCount": 0, + "elseCountWeight": 0, + "score": 0 + }, + "isClassMethodNode": { + "class": "Phauthentic\\CodeQualityMetrics\\PhpParser\\CognitiveMetricsVisitor", + "method": "isClassMethodNode", + "lineCount": 4, + "lineCountWeight": 0, + "argCount": 1, + "argCountWeight": 0, + "returnCount": 0, + "returnCountWeight": 0, + "variableCount": 0, + "variableCountWeight": 0, + "propertyCallCount": 0, + "propertyCallCountWeight": 0, + "ifCount": 0, + "ifCountWeight": 0, + "ifNestingLevel": 0, + "ifNestingLevelWeight": 0, + "elseCount": 0, + "elseCountWeight": 0, + "score": 0 + }, + "initializeMethodContext": { + "class": "Phauthentic\\CodeQualityMetrics\\PhpParser\\CognitiveMetricsVisitor", + "method": "initializeMethodContext", + "lineCount": 4, + "lineCountWeight": 0, + "argCount": 1, + "argCountWeight": 0, + "returnCount": 0, + "returnCountWeight": 0, + "variableCount": 0, + "variableCountWeight": 0, + "propertyCallCount": 0, + "propertyCallCountWeight": 0, + "ifCount": 0, + "ifCountWeight": 0, + "ifNestingLevel": 0, + "ifNestingLevelWeight": 0, + "elseCount": 0, + "elseCountWeight": 0, + "score": 0 + }, + "recordMethodMetrics": { + "class": "Phauthentic\\CodeQualityMetrics\\PhpParser\\CognitiveMetricsVisitor", + "method": "recordMethodMetrics", + "lineCount": 13, + "lineCountWeight": 0, + "argCount": 1, + "argCountWeight": 0, + "returnCount": 0, + "returnCountWeight": 0, + "variableCount": 0, + "variableCountWeight": 0, + "propertyCallCount": 0, + "propertyCallCountWeight": 0, + "ifCount": 0, + "ifCountWeight": 0, + "ifNestingLevel": 0, + "ifNestingLevelWeight": 0, + "elseCount": 0, + "elseCountWeight": 0, + "score": 0 + }, + "trackMethodArguments": { + "class": "Phauthentic\\CodeQualityMetrics\\PhpParser\\CognitiveMetricsVisitor", + "method": "trackMethodArguments", + "lineCount": 8, + "lineCountWeight": 0, + "argCount": 1, + "argCountWeight": 0, + "returnCount": 0, + "returnCountWeight": 0, + "variableCount": 0, + "variableCountWeight": 0, + "propertyCallCount": 0, + "propertyCallCountWeight": 0, + "ifCount": 0, + "ifCountWeight": 0, + "ifNestingLevel": 0, + "ifNestingLevelWeight": 0, + "elseCount": 0, + "elseCountWeight": 0, + "score": 0 + }, + "isVariable": { + "class": "Phauthentic\\CodeQualityMetrics\\PhpParser\\CognitiveMetricsVisitor", + "method": "isVariable", + "lineCount": 4, + "lineCountWeight": 0, + "argCount": 1, + "argCountWeight": 0, + "returnCount": 0, + "returnCountWeight": 0, + "variableCount": 0, + "variableCountWeight": 0, + "propertyCallCount": 0, + "propertyCallCountWeight": 0, + "ifCount": 0, + "ifCountWeight": 0, + "ifNestingLevel": 0, + "ifNestingLevelWeight": 0, + "elseCount": 0, + "elseCountWeight": 0, + "score": 0 + }, + "calculateLineCount": { + "class": "Phauthentic\\CodeQualityMetrics\\PhpParser\\CognitiveMetricsVisitor", + "method": "calculateLineCount", + "lineCount": 4, + "lineCountWeight": 0, + "argCount": 1, + "argCountWeight": 0, + "returnCount": 0, + "returnCountWeight": 0, + "variableCount": 0, + "variableCountWeight": 0, + "propertyCallCount": 0, + "propertyCallCountWeight": 0, + "ifCount": 0, + "ifCountWeight": 0, + "ifNestingLevel": 0, + "ifNestingLevelWeight": 0, + "elseCount": 0, + "elseCountWeight": 0, + "score": 0 + }, + "countMethodArguments": { + "class": "Phauthentic\\CodeQualityMetrics\\PhpParser\\CognitiveMetricsVisitor", + "method": "countMethodArguments", + "lineCount": 4, + "lineCountWeight": 0, + "argCount": 1, + "argCountWeight": 0, + "returnCount": 0, + "returnCountWeight": 0, + "variableCount": 0, + "variableCountWeight": 0, + "propertyCallCount": 0, + "propertyCallCountWeight": 0, + "ifCount": 0, + "ifCountWeight": 0, + "ifNestingLevel": 0, + "ifNestingLevelWeight": 0, + "elseCount": 0, + "elseCountWeight": 0, + "score": 0 + }, + "setCurrentNamespaceOnEnterNode": { + "class": "Phauthentic\\CodeQualityMetrics\\PhpParser\\CognitiveMetricsVisitor", + "method": "setCurrentNamespaceOnEnterNode", + "lineCount": 6, + "lineCountWeight": 0, + "argCount": 1, + "argCountWeight": 0, + "returnCount": 0, + "returnCountWeight": 0, + "variableCount": 0, + "variableCountWeight": 0, + "propertyCallCount": 0, + "propertyCallCountWeight": 0, + "ifCount": 0, + "ifCountWeight": 0, + "ifNestingLevel": 0, + "ifNestingLevelWeight": 0, + "elseCount": 0, + "elseCountWeight": 0, + "score": 0 + }, + "setCurrentClassOnEnterNode": { + "class": "Phauthentic\\CodeQualityMetrics\\PhpParser\\CognitiveMetricsVisitor", + "method": "setCurrentClassOnEnterNode", + "lineCount": 12, + "lineCountWeight": 0, + "argCount": 1, + "argCountWeight": 0, + "returnCount": 0, + "returnCountWeight": 0, + "variableCount": 0, + "variableCountWeight": 0, + "propertyCallCount": 0, + "propertyCallCountWeight": 0, + "ifCount": 0, + "ifCountWeight": 0, + "ifNestingLevel": 0, + "ifNestingLevelWeight": 0, + "elseCount": 0, + "elseCountWeight": 0, + "score": 0 + }, + "enterNode": { + "class": "Phauthentic\\CodeQualityMetrics\\PhpParser\\CognitiveMetricsVisitor", + "method": "enterNode", + "lineCount": 13, + "lineCountWeight": 0, + "argCount": 1, + "argCountWeight": 0, + "returnCount": 0, + "returnCountWeight": 0, + "variableCount": 0, + "variableCountWeight": 0, + "propertyCallCount": 0, + "propertyCallCountWeight": 0, + "ifCount": 0, + "ifCountWeight": 0, + "ifNestingLevel": 0, + "ifNestingLevelWeight": 0, + "elseCount": 0, + "elseCountWeight": 0, + "score": 0 + }, + "gatherMetrics": { + "class": "Phauthentic\\CodeQualityMetrics\\PhpParser\\CognitiveMetricsVisitor", + "method": "gatherMetrics", + "lineCount": 12, + "lineCountWeight": 0, + "argCount": 1, + "argCountWeight": 0, + "returnCount": 0, + "returnCountWeight": 0, + "variableCount": 0, + "variableCountWeight": 0, + "propertyCallCount": 0, + "propertyCallCountWeight": 0, + "ifCount": 0, + "ifCountWeight": 0, + "ifNestingLevel": 0, + "ifNestingLevelWeight": 0, + "elseCount": 0, + "elseCountWeight": 0, + "score": 0 + }, + "incrementReturnCount": { + "class": "Phauthentic\\CodeQualityMetrics\\PhpParser\\CognitiveMetricsVisitor", + "method": "incrementReturnCount", + "lineCount": 4, + "lineCountWeight": 0, + "argCount": 0, + "argCountWeight": 0, + "returnCount": 0, + "returnCountWeight": 0, + "variableCount": 0, + "variableCountWeight": 0, + "propertyCallCount": 0, + "propertyCallCountWeight": 0, + "ifCount": 0, + "ifCountWeight": 0, + "ifNestingLevel": 0, + "ifNestingLevelWeight": 0, + "elseCount": 0, + "elseCountWeight": 0, + "score": 0 + }, + "trackVariable": { + "class": "Phauthentic\\CodeQualityMetrics\\PhpParser\\CognitiveMetricsVisitor", + "method": "trackVariable", + "lineCount": 7, + "lineCountWeight": 0, + "argCount": 1, + "argCountWeight": 0, + "returnCount": 0, + "returnCountWeight": 0, + "variableCount": 0, + "variableCountWeight": 0, + "propertyCallCount": 0, + "propertyCallCountWeight": 0, + "ifCount": 0, + "ifCountWeight": 0, + "ifNestingLevel": 0, + "ifNestingLevelWeight": 0, + "elseCount": 0, + "elseCountWeight": 0, + "score": 0 + }, + "trackPropertyFetch": { + "class": "Phauthentic\\CodeQualityMetrics\\PhpParser\\CognitiveMetricsVisitor", + "method": "trackPropertyFetch", + "lineCount": 15, + "lineCountWeight": 0, + "argCount": 1, + "argCountWeight": 0, + "returnCount": 0, + "returnCountWeight": 0, + "variableCount": 0, + "variableCountWeight": 0, + "propertyCallCount": 0, + "propertyCallCountWeight": 0, + "ifCount": 0, + "ifCountWeight": 0, + "ifNestingLevel": 0, + "ifNestingLevelWeight": 0, + "elseCount": 0, + "elseCountWeight": 0, + "score": 0 + }, + "trackIfStatement": { + "class": "Phauthentic\\CodeQualityMetrics\\PhpParser\\CognitiveMetricsVisitor", + "method": "trackIfStatement", + "lineCount": 9, + "lineCountWeight": 0, + "argCount": 0, + "argCountWeight": 0, + "returnCount": 0, + "returnCountWeight": 0, + "variableCount": 0, + "variableCountWeight": 0, + "propertyCallCount": 0, + "propertyCallCountWeight": 0, + "ifCount": 0, + "ifCountWeight": 0, + "ifNestingLevel": 0, + "ifNestingLevelWeight": 0, + "elseCount": 0, + "elseCountWeight": 0, + "score": 0 + }, + "incrementElseCount": { + "class": "Phauthentic\\CodeQualityMetrics\\PhpParser\\CognitiveMetricsVisitor", + "method": "incrementElseCount", + "lineCount": 4, + "lineCountWeight": 0, + "argCount": 0, + "argCountWeight": 0, + "returnCount": 0, + "returnCountWeight": 0, + "variableCount": 0, + "variableCountWeight": 0, + "propertyCallCount": 0, + "propertyCallCountWeight": 0, + "ifCount": 0, + "ifCountWeight": 0, + "ifNestingLevel": 0, + "ifNestingLevelWeight": 0, + "elseCount": 0, + "elseCountWeight": 0, + "score": 0 + }, + "checkNestingLevelOnLeaveNode": { + "class": "Phauthentic\\CodeQualityMetrics\\PhpParser\\CognitiveMetricsVisitor", + "method": "checkNestingLevelOnLeaveNode", + "lineCount": 6, + "lineCountWeight": 0, + "argCount": 1, + "argCountWeight": 0, + "returnCount": 0, + "returnCountWeight": 0, + "variableCount": 0, + "variableCountWeight": 0, + "propertyCallCount": 0, + "propertyCallCountWeight": 0, + "ifCount": 0, + "ifCountWeight": 0, + "ifNestingLevel": 0, + "ifNestingLevelWeight": 0, + "elseCount": 0, + "elseCountWeight": 0, + "score": 0 + }, + "writeMetricsOnLeaveNode": { + "class": "Phauthentic\\CodeQualityMetrics\\PhpParser\\CognitiveMetricsVisitor", + "method": "writeMetricsOnLeaveNode", + "lineCount": 15, + "lineCountWeight": 0, + "argCount": 1, + "argCountWeight": 0, + "returnCount": 0, + "returnCountWeight": 0, + "variableCount": 0, + "variableCountWeight": 0, + "propertyCallCount": 0, + "propertyCallCountWeight": 0, + "ifCount": 0, + "ifCountWeight": 0, + "ifNestingLevel": 0, + "ifNestingLevelWeight": 0, + "elseCount": 0, + "elseCountWeight": 0, + "score": 0 + }, + "checkNameSpaceOnLeaveNode": { + "class": "Phauthentic\\CodeQualityMetrics\\PhpParser\\CognitiveMetricsVisitor", + "method": "checkNameSpaceOnLeaveNode", + "lineCount": 6, + "lineCountWeight": 0, + "argCount": 1, + "argCountWeight": 0, + "returnCount": 0, + "returnCountWeight": 0, + "variableCount": 0, + "variableCountWeight": 0, + "propertyCallCount": 0, + "propertyCallCountWeight": 0, + "ifCount": 0, + "ifCountWeight": 0, + "ifNestingLevel": 0, + "ifNestingLevelWeight": 0, + "elseCount": 0, + "elseCountWeight": 0, + "score": 0 + }, + "checkClassOnLeaveNode": { + "class": "Phauthentic\\CodeQualityMetrics\\PhpParser\\CognitiveMetricsVisitor", + "method": "checkClassOnLeaveNode", + "lineCount": 6, + "lineCountWeight": 0, + "argCount": 1, + "argCountWeight": 0, + "returnCount": 0, + "returnCountWeight": 0, + "variableCount": 0, + "variableCountWeight": 0, + "propertyCallCount": 0, + "propertyCallCountWeight": 0, + "ifCount": 0, + "ifCountWeight": 0, + "ifNestingLevel": 0, + "ifNestingLevelWeight": 0, + "elseCount": 0, + "elseCountWeight": 0, + "score": 0 + }, + "leaveNode": { + "class": "Phauthentic\\CodeQualityMetrics\\PhpParser\\CognitiveMetricsVisitor", + "method": "leaveNode", + "lineCount": 7, + "lineCountWeight": 0, + "argCount": 1, + "argCountWeight": 0, + "returnCount": 0, + "returnCountWeight": 0, + "variableCount": 0, + "variableCountWeight": 0, + "propertyCallCount": 0, + "propertyCallCountWeight": 0, + "ifCount": 0, + "ifCountWeight": 0, + "ifNestingLevel": 0, + "ifNestingLevelWeight": 0, + "elseCount": 0, + "elseCountWeight": 0, + "score": 0 + }, + "getMethodMetrics": { + "class": "Phauthentic\\CodeQualityMetrics\\PhpParser\\CognitiveMetricsVisitor", + "method": "getMethodMetrics", + "lineCount": 4, + "lineCountWeight": 0, + "argCount": 0, + "argCountWeight": 0, + "returnCount": 0, + "returnCountWeight": 0, + "variableCount": 0, + "variableCountWeight": 0, + "propertyCallCount": 0, + "propertyCallCountWeight": 0, + "ifCount": 0, + "ifCountWeight": 0, + "ifNestingLevel": 0, + "ifNestingLevelWeight": 0, + "elseCount": 0, + "elseCountWeight": 0, + "score": 0 + } + } + }, + "Phauthentic\\CodeQualityMetrics\\PhpParser\\HalsteadMetricsVisitor": { + "methods": { + "enterNode": { + "class": "Phauthentic\\CodeQualityMetrics\\PhpParser\\HalsteadMetricsVisitor", + "method": "enterNode", + "lineCount": 123, + "lineCountWeight": 235, + "argCount": 12, + "argCountWeight": 235, + "returnCount": 0, + "returnCountWeight": 235, + "variableCount": 0, + "variableCountWeight": 0, + "propertyCallCount": 12, + "propertyCallCountWeight": 235, + "ifCount": 0, + "ifCountWeight": 0, + "ifNestingLevel": 0, + "ifNestingLevelWeight": 0, + "elseCount": 0, + "elseCountWeight": 0, + "score": 0 + }, + "setCurrentNamespace": { + "class": "Phauthentic\\CodeQualityMetrics\\PhpParser\\HalsteadMetricsVisitor", + "method": "setCurrentNamespace", + "lineCount": 4, + "lineCountWeight": 0, + "argCount": 1, + "argCountWeight": 0, + "returnCount": 0, + "returnCountWeight": 0, + "variableCount": 0, + "variableCountWeight": 0, + "propertyCallCount": 0, + "propertyCallCountWeight": 0, + "ifCount": 0, + "ifCountWeight": 0, + "ifNestingLevel": 0, + "ifNestingLevelWeight": 0, + "elseCount": 0, + "elseCountWeight": 0, + "score": 0 + }, + "setCurrentClassName": { + "class": "Phauthentic\\CodeQualityMetrics\\PhpParser\\HalsteadMetricsVisitor", + "method": "setCurrentClassName", + "lineCount": 7, + "lineCountWeight": 0, + "argCount": 1, + "argCountWeight": 0, + "returnCount": 0, + "returnCountWeight": 0, + "variableCount": 0, + "variableCountWeight": 0, + "propertyCallCount": 0, + "propertyCallCountWeight": 0, + "ifCount": 0, + "ifCountWeight": 0, + "ifNestingLevel": 0, + "ifNestingLevelWeight": 0, + "elseCount": 0, + "elseCountWeight": 0, + "score": 0 + }, + "addOperator": { + "class": "Phauthentic\\CodeQualityMetrics\\PhpParser\\HalsteadMetricsVisitor", + "method": "addOperator", + "lineCount": 4, + "lineCountWeight": 0, + "argCount": 1, + "argCountWeight": 0, + "returnCount": 0, + "returnCountWeight": 0, + "variableCount": 0, + "variableCountWeight": 0, + "propertyCallCount": 0, + "propertyCallCountWeight": 0, + "ifCount": 0, + "ifCountWeight": 0, + "ifNestingLevel": 0, + "ifNestingLevelWeight": 0, + "elseCount": 0, + "elseCountWeight": 0, + "score": 0 + }, + "addOperand": { + "class": "Phauthentic\\CodeQualityMetrics\\PhpParser\\HalsteadMetricsVisitor", + "method": "addOperand", + "lineCount": 4, + "lineCountWeight": 0, + "argCount": 1, + "argCountWeight": 0, + "returnCount": 0, + "returnCountWeight": 0, + "variableCount": 0, + "variableCountWeight": 0, + "propertyCallCount": 0, + "propertyCallCountWeight": 0, + "ifCount": 0, + "ifCountWeight": 0, + "ifNestingLevel": 0, + "ifNestingLevelWeight": 0, + "elseCount": 0, + "elseCountWeight": 0, + "score": 0 + }, + "leaveNode": { + "class": "Phauthentic\\CodeQualityMetrics\\PhpParser\\HalsteadMetricsVisitor", + "method": "leaveNode", + "lineCount": 8, + "lineCountWeight": 0, + "argCount": 1, + "argCountWeight": 0, + "returnCount": 0, + "returnCountWeight": 0, + "variableCount": 0, + "variableCountWeight": 0, + "propertyCallCount": 0, + "propertyCallCountWeight": 0, + "ifCount": 0, + "ifCountWeight": 0, + "ifNestingLevel": 0, + "ifNestingLevelWeight": 0, + "elseCount": 0, + "elseCountWeight": 0, + "score": 0 + }, + "isOperator": { + "class": "Phauthentic\\CodeQualityMetrics\\PhpParser\\HalsteadMetricsVisitor", + "method": "isOperator", + "lineCount": 7, + "lineCountWeight": 0, + "argCount": 1, + "argCountWeight": 0, + "returnCount": 0, + "returnCountWeight": 0, + "variableCount": 0, + "variableCountWeight": 0, + "propertyCallCount": 0, + "propertyCallCountWeight": 0, + "ifCount": 0, + "ifCountWeight": 0, + "ifNestingLevel": 0, + "ifNestingLevelWeight": 0, + "elseCount": 0, + "elseCountWeight": 0, + "score": 0 + }, + "isOperand": { + "class": "Phauthentic\\CodeQualityMetrics\\PhpParser\\HalsteadMetricsVisitor", + "method": "isOperand", + "lineCount": 7, + "lineCountWeight": 0, + "argCount": 1, + "argCountWeight": 0, + "returnCount": 0, + "returnCountWeight": 0, + "variableCount": 0, + "variableCountWeight": 0, + "propertyCallCount": 0, + "propertyCallCountWeight": 0, + "ifCount": 0, + "ifCountWeight": 0, + "ifNestingLevel": 0, + "ifNestingLevelWeight": 0, + "elseCount": 0, + "elseCountWeight": 0, + "score": 0 + }, + "getOperandValue": { + "class": "Phauthentic\\CodeQualityMetrics\\PhpParser\\HalsteadMetricsVisitor", + "method": "getOperandValue", + "lineCount": 16, + "lineCountWeight": 0, + "argCount": 1, + "argCountWeight": 0, + "returnCount": 0, + "returnCountWeight": 0, + "variableCount": 0, + "variableCountWeight": 0, + "propertyCallCount": 0, + "propertyCallCountWeight": 0, + "ifCount": 0, + "ifCountWeight": 0, + "ifNestingLevel": 0, + "ifNestingLevelWeight": 0, + "elseCount": 0, + "elseCountWeight": 0, + "score": 0 + }, + "storeClassMetrics": { + "class": "Phauthentic\\CodeQualityMetrics\\PhpParser\\HalsteadMetricsVisitor", + "method": "storeClassMetrics", + "lineCount": 6, + "lineCountWeight": 0, + "argCount": 0, + "argCountWeight": 0, + "returnCount": 0, + "returnCountWeight": 0, + "variableCount": 0, + "variableCountWeight": 0, + "propertyCallCount": 0, + "propertyCallCountWeight": 0, + "ifCount": 0, + "ifCountWeight": 0, + "ifNestingLevel": 0, + "ifNestingLevelWeight": 0, + "elseCount": 0, + "elseCountWeight": 0, + "score": 0 + }, + "resetMetrics": { + "class": "Phauthentic\\CodeQualityMetrics\\PhpParser\\HalsteadMetricsVisitor", + "method": "resetMetrics", + "lineCount": 6, + "lineCountWeight": 0, + "argCount": 0, + "argCountWeight": 0, + "returnCount": 0, + "returnCountWeight": 0, + "variableCount": 0, + "variableCountWeight": 0, + "propertyCallCount": 0, + "propertyCallCountWeight": 0, + "ifCount": 0, + "ifCountWeight": 0, + "ifNestingLevel": 0, + "ifNestingLevelWeight": 0, + "elseCount": 0, + "elseCountWeight": 0, + "score": 0 + }, + "calculateMetrics": { + "class": "Phauthentic\\CodeQualityMetrics\\PhpParser\\HalsteadMetricsVisitor", + "method": "calculateMetrics", + "lineCount": 31, + "lineCountWeight": 0, + "argCount": 0, + "argCountWeight": 0, + "returnCount": 0, + "returnCountWeight": 0, + "variableCount": 0, + "variableCountWeight": 0, + "propertyCallCount": 0, + "propertyCallCountWeight": 0, + "ifCount": 0, + "ifCountWeight": 0, + "ifNestingLevel": 0, + "ifNestingLevelWeight": 0, + "elseCount": 0, + "elseCountWeight": 0, + "score": 0 + }, + "calculateProgramLength": { + "class": "Phauthentic\\CodeQualityMetrics\\PhpParser\\HalsteadMetricsVisitor", + "method": "calculateProgramLength", + "lineCount": 4, + "lineCountWeight": 0, + "argCount": 2, + "argCountWeight": 0, + "returnCount": 0, + "returnCountWeight": 0, + "variableCount": 0, + "variableCountWeight": 0, + "propertyCallCount": 0, + "propertyCallCountWeight": 0, + "ifCount": 0, + "ifCountWeight": 0, + "ifNestingLevel": 0, + "ifNestingLevelWeight": 0, + "elseCount": 0, + "elseCountWeight": 0, + "score": 0 + }, + "calculateProgramVocabulary": { + "class": "Phauthentic\\CodeQualityMetrics\\PhpParser\\HalsteadMetricsVisitor", + "method": "calculateProgramVocabulary", + "lineCount": 4, + "lineCountWeight": 0, + "argCount": 2, + "argCountWeight": 0, + "returnCount": 0, + "returnCountWeight": 0, + "variableCount": 0, + "variableCountWeight": 0, + "propertyCallCount": 0, + "propertyCallCountWeight": 0, + "ifCount": 0, + "ifCountWeight": 0, + "ifNestingLevel": 0, + "ifNestingLevelWeight": 0, + "elseCount": 0, + "elseCountWeight": 0, + "score": 0 + }, + "calculateVolume": { + "class": "Phauthentic\\CodeQualityMetrics\\PhpParser\\HalsteadMetricsVisitor", + "method": "calculateVolume", + "lineCount": 4, + "lineCountWeight": 0, + "argCount": 2, + "argCountWeight": 0, + "returnCount": 0, + "returnCountWeight": 0, + "variableCount": 0, + "variableCountWeight": 0, + "propertyCallCount": 0, + "propertyCallCountWeight": 0, + "ifCount": 0, + "ifCountWeight": 0, + "ifNestingLevel": 0, + "ifNestingLevelWeight": 0, + "elseCount": 0, + "elseCountWeight": 0, + "score": 0 + }, + "calculateDifficulty": { + "class": "Phauthentic\\CodeQualityMetrics\\PhpParser\\HalsteadMetricsVisitor", + "method": "calculateDifficulty", + "lineCount": 4, + "lineCountWeight": 0, + "argCount": 3, + "argCountWeight": 0, + "returnCount": 0, + "returnCountWeight": 0, + "variableCount": 0, + "variableCountWeight": 0, + "propertyCallCount": 0, + "propertyCallCountWeight": 0, + "ifCount": 0, + "ifCountWeight": 0, + "ifNestingLevel": 0, + "ifNestingLevelWeight": 0, + "elseCount": 0, + "elseCountWeight": 0, + "score": 0 + }, + "calculateEffort": { + "class": "Phauthentic\\CodeQualityMetrics\\PhpParser\\HalsteadMetricsVisitor", + "method": "calculateEffort", + "lineCount": 4, + "lineCountWeight": 0, + "argCount": 2, + "argCountWeight": 0, + "returnCount": 0, + "returnCountWeight": 0, + "variableCount": 0, + "variableCountWeight": 0, + "propertyCallCount": 0, + "propertyCallCountWeight": 0, + "ifCount": 0, + "ifCountWeight": 0, + "ifNestingLevel": 0, + "ifNestingLevelWeight": 0, + "elseCount": 0, + "elseCountWeight": 0, + "score": 0 + }, + "countDistinctOperators": { + "class": "Phauthentic\\CodeQualityMetrics\\PhpParser\\HalsteadMetricsVisitor", + "method": "countDistinctOperators", + "lineCount": 4, + "lineCountWeight": 0, + "argCount": 0, + "argCountWeight": 0, + "returnCount": 0, + "returnCountWeight": 0, + "variableCount": 0, + "variableCountWeight": 0, + "propertyCallCount": 0, + "propertyCallCountWeight": 0, + "ifCount": 0, + "ifCountWeight": 0, + "ifNestingLevel": 0, + "ifNestingLevelWeight": 0, + "elseCount": 0, + "elseCountWeight": 0, + "score": 0 + }, + "countDistinctOperands": { + "class": "Phauthentic\\CodeQualityMetrics\\PhpParser\\HalsteadMetricsVisitor", + "method": "countDistinctOperands", + "lineCount": 4, + "lineCountWeight": 0, + "argCount": 0, + "argCountWeight": 0, + "returnCount": 0, + "returnCountWeight": 0, + "variableCount": 0, + "variableCountWeight": 0, + "propertyCallCount": 0, + "propertyCallCountWeight": 0, + "ifCount": 0, + "ifCountWeight": 0, + "ifNestingLevel": 0, + "ifNestingLevelWeight": 0, + "elseCount": 0, + "elseCountWeight": 0, + "score": 0 + }, + "countTotalOperators": { + "class": "Phauthentic\\CodeQualityMetrics\\PhpParser\\HalsteadMetricsVisitor", + "method": "countTotalOperators", + "lineCount": 4, + "lineCountWeight": 0, + "argCount": 0, + "argCountWeight": 0, + "returnCount": 0, + "returnCountWeight": 0, + "variableCount": 0, + "variableCountWeight": 0, + "propertyCallCount": 0, + "propertyCallCountWeight": 0, + "ifCount": 0, + "ifCountWeight": 0, + "ifNestingLevel": 0, + "ifNestingLevelWeight": 0, + "elseCount": 0, + "elseCountWeight": 0, + "score": 0 + }, + "countTotalOperands": { + "class": "Phauthentic\\CodeQualityMetrics\\PhpParser\\HalsteadMetricsVisitor", + "method": "countTotalOperands", + "lineCount": 4, + "lineCountWeight": 0, + "argCount": 0, + "argCountWeight": 0, + "returnCount": 0, + "returnCountWeight": 0, + "variableCount": 0, + "variableCountWeight": 0, + "propertyCallCount": 0, + "propertyCallCountWeight": 0, + "ifCount": 0, + "ifCountWeight": 0, + "ifNestingLevel": 0, + "ifNestingLevelWeight": 0, + "elseCount": 0, + "elseCountWeight": 0, + "score": 0 + }, + "getMetrics": { + "class": "Phauthentic\\CodeQualityMetrics\\PhpParser\\HalsteadMetricsVisitor", + "method": "getMetrics", + "lineCount": 9, + "lineCountWeight": 12, + "argCount": 0, + "argCountWeight": 12, + "returnCount": 0, + "returnCountWeight": 12, + "variableCount": 0, + "variableCountWeight": 0, + "propertyCallCount": 0, + "propertyCallCountWeight": 0, + "ifCount": 0, + "ifCountWeight": 0, + "ifNestingLevel": 0, + "ifNestingLevelWeight": 0, + "elseCount": 0, + "elseCountWeight": 0, + "score": 0 + } + } + } +} diff --git a/tests/TestCode2/TestClassForCounts.php b/tests/TestCode2/TestClassForCounts.php new file mode 100644 index 0000000..52648ac --- /dev/null +++ b/tests/TestCode2/TestClassForCounts.php @@ -0,0 +1,39 @@ + 0) { + $this->property = 'foo'; + $this->property2 = 'bar'; + } else { + return 'foo'; + } + + if (2 === 3) { + if ('this' !== 'that') { + return 'this'; + } + } + + return ''; + } +} diff --git a/tests/Unit/Business/Cognitive/CognitiveMetricsCollectorTest.php b/tests/Unit/Business/Cognitive/CognitiveMetricsCollectorTest.php index 7c41c4b..b9b6794 100644 --- a/tests/Unit/Business/Cognitive/CognitiveMetricsCollectorTest.php +++ b/tests/Unit/Business/Cognitive/CognitiveMetricsCollectorTest.php @@ -56,4 +56,22 @@ public function testCollectWithUnreadableFile(): void $this->expectException(RuntimeException::class); $this->metricsCollector->collect($path); } + + /** + * Test the collected metrics to match the expected findings. + */ + public function testCollectedMetrics(): void + { + $metricsCollection = $this->metricsCollector->collect('./tests/TestCode2'); + $metrics = $metricsCollection->getClassWithMethod('\TestClassForCounts', 'test'); + + $this->assertNotNull($metrics); + $this->assertSame(5, $metrics->getArgCount()); + $this->assertSame(3, $metrics->getIfCount()); + $this->assertSame(2, $metrics->getIfNestingLevel()); + $this->assertSame(3, $metrics->getReturnCount()); + $this->assertSame(1, $metrics->getElseCount()); + $this->assertSame(3, $metrics->getVariableCount()); + $this->assertSame(2, $metrics->getPropertyCallCount()); + } } diff --git a/tests/Unit/PhpParser/CognitiveMetricsVisitorTest.php b/tests/Unit/PhpParser/CognitiveMetricsVisitorTest.php index 0ae0cce..2d7c311 100644 --- a/tests/Unit/PhpParser/CognitiveMetricsVisitorTest.php +++ b/tests/Unit/PhpParser/CognitiveMetricsVisitorTest.php @@ -55,13 +55,13 @@ public function testMethodMetricsCalculation(): void $this->assertArrayHasKey('MyNamespace\\MyClass::myMethod', $methodMetrics); $metrics = $methodMetrics['MyNamespace\\MyClass::myMethod']; - $this->assertEquals(12, $metrics['line_count']); - $this->assertEquals(2, $metrics['arg_count']); - $this->assertEquals(3, $metrics['return_count']); - $this->assertEquals(2, $metrics['variable_count']); - $this->assertEquals(0, $metrics['property_call_count']); - $this->assertEquals(1, $metrics['if_count']); - $this->assertEquals(1, $metrics['if_nesting_level']); - $this->assertEquals(2, $metrics['else_count']); + $this->assertEquals(12, $metrics['lineCount']); + $this->assertEquals(2, $metrics['argCount']); + $this->assertEquals(3, $metrics['returnCount']); + $this->assertEquals(2, $metrics['variableCount']); + $this->assertEquals(0, $metrics['propertyCallCount']); + $this->assertEquals(1, $metrics['ifCount']); + $this->assertEquals(1, $metrics['ifNestingLevel']); + $this->assertEquals(2, $metrics['elseCount']); } }