Conditions | 1 |
Paths | 1 |
Total Lines | 13 |
Code Lines | 9 |
Lines | 13 |
Ratio | 100 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
40 | View Code Duplication | public function testVersionsSchemaAction() |
|
41 | { |
||
42 | $client = static::createRestClient(); |
||
43 | $client->request('GET', '/schema/person/whoami'); |
||
44 | $response = $client->getResponse(); |
||
45 | |||
46 | $this->assertEquals( |
||
47 | '{"username":{"title":"The username of the logged in consultant","description":"your username",'. |
||
48 | '"type":"string"},"additionalProperties":true}', |
||
49 | $response->getContent() |
||
50 | ); |
||
51 | $this->assertInternalType('string', $response->getContent()); |
||
52 | } |
||
53 | } |
||
54 |
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.