Conditions | 1 |
Paths | 1 |
Total Lines | 8 |
Code Lines | 5 |
Lines | 8 |
Ratio | 100 % |
Tests | 6 |
CRAP Score | 1 |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
34 | 1 | View Code Duplication | public function test302Redirect() |
1 ignored issue
–
show
|
|||
35 | { |
||
36 | 1 | $stream = Psr7\stream_for('{"data" : "test"}'); |
|
37 | 1 | $response = new Response(302, ['Location' => 'https://comododecodecsr.tk'], $stream); |
|
38 | |||
39 | 1 | $test = $this->ComodoDecodeCSR->checkDVC($response); |
|
40 | 1 | $this->assertFalse($test, "Failed to check 302 redirect"); |
|
41 | 1 | } |
|
42 | } |
||
43 |
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.