We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
Conditions | 1 |
Paths | 1 |
Total Lines | 12 |
Code Lines | 5 |
Lines | 12 |
Ratio | 100 % |
Changes | 0 |
1 | <?php |
||
59 | public function testComplexityReachLimitationEnv() |
||
60 | { |
||
61 | $expected = [ |
||
62 | 'errors' => [ |
||
63 | [ |
||
64 | 'message' => 'Max query complexity should be 10 but got 54.', |
||
65 | ], |
||
66 | ], |
||
67 | ]; |
||
68 | |||
69 | $this->assertResponse($this->userFriendsWithoutLimitQuery, $expected, self::ANONYMOUS_USER, 'queryComplexityEnv'); |
||
70 | } |
||
71 | |||
89 |
Duplicated code is one of the most pungent code smells. If you need to duplicate the same code in three or more different places, we strongly encourage you to look into extracting the code into a single class or operation.
You can also find more detailed suggestions in the “Code” section of your repository.