Skip to content

Commit dff45ba

Browse files
authored
chore: update Complexity.php
1 parent 9c6984c commit dff45ba

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

plugins/wpgraphql-debug-extensions/src/Analysis/Rules/Complexity.php

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@
2121
use WPGraphQL\Debug\Analysis\Interfaces\AnalyzerItemInterface;
2222

2323
class Complexity implements AnalyzerItemInterface {
24-
2524
protected ?string $internalNote = null;
2625

2726
/**
@@ -42,7 +41,6 @@ public function analyze( string $query, array $variables = [], ?Schema $schema =
4241
}
4342

4443
$complexity = 0;
45-
4644
Visitor::visit(
4745
$ast,
4846
[
@@ -95,8 +93,6 @@ public function analyze( string $query, array $variables = [], ?Schema $schema =
9593
);
9694

9795
$value = $complexity;
98-
99-
// Use the new method to determine the note
10096
$this->internalNote = $this->getComplexityNote( $value );
10197

10298
return [
@@ -133,4 +129,4 @@ private function getComplexityNote( ?int $complexityValue ): string {
133129
public function getKey(): string {
134130
return 'complexity';
135131
}
136-
}
132+
}

0 commit comments

Comments
 (0)