Code Duplication    Length = 7-7 lines in 2 locations

src/Description/Builder/OpenApiBuilder.php 1 location

@@ 202-208 (lines=7) @@
199
     *
200
     * @return Response
201
     */
202
    protected function createResponse(int $code, \stdClass $definition)
203
    {
204
        return new Response(
205
            $code,
206
            $this->schemaFactory->create(isset($definition->schema) ? $definition->schema : null)
207
        );
208
    }
209
210
    /**
211
     * @param \stdClass $definition

src/Description/Builder/RamlBuilder.php 1 location

@@ 150-156 (lines=7) @@
147
        return new Parameter($name, $required, $schema, $in);
148
    }
149
150
    protected function createResponse(int $code, \stdClass $definition)
151
    {
152
        return new Response(
153
            $code,
154
            $this->schemaFactory->create(isset($definition->schema) ? $definition->schema : null)
155
        );
156
    }
157
158
    /**
159
     * @param \stdClass $definition