We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 81785c5 commit 14e399dCopy full SHA for 14e399d
app/Presenter/Analyze/Summary/Calculators/AbstractnessCalculator.php
@@ -8,11 +8,13 @@ class AbstractnessCalculator implements Calculator
8
{
9
public static function calculate(array $metric): string
10
11
- if ($metric['abstractness'] > 0.7) {
+ $ratio = $metric['abstractness']['ratio'];
12
+
13
+ if ($ratio > 0.7) {
14
return 'abstract';
15
}
16
- if ($metric['abstractness'] < 0.3) {
17
+ if ($ratio < 0.3) {
18
return 'concrete';
19
20
0 commit comments