Code Duplication    Length = 6-6 lines in 2 locations

src/Dev/DocumentFixer/Fixers/SwaggerBundleResponseFixer.php 2 locations

@@ 28-33 (lines=6) @@
25
        if (!isset($definition->responses)) {
26
            $definition->responses = [];
27
        }
28
        if (!isset($definition->responses['ServerError'])) {
29
            $definition->responses['ServerError'] = [
30
                'description' => 'Server Error',
31
                'schema'      => ['$ref' => '#/definitions/VndError']
32
            ];
33
        }
34
        if (!isset($definition->responses['InputError'])) {
35
            $definition->responses['InputError'] = [
36
                'description' => 'Input Error',
@@ 34-39 (lines=6) @@
31
                'schema'      => ['$ref' => '#/definitions/VndError']
32
            ];
33
        }
34
        if (!isset($definition->responses['InputError'])) {
35
            $definition->responses['InputError'] = [
36
                'description' => 'Input Error',
37
                'schema'      => ['$ref' => '#/definitions/VndError']
38
            ];
39
        }
40
        if (!isset($definition->definitions)) {
41
            $definition->definitions = [];
42
        }