GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.

Code Duplication    Length = 12-16 lines in 2 locations

src/Docgen/Swagger/Swagger.php 2 locations

@@ 267-278 (lines=12) @@
264
                }
265
                $schema->properties[$k] = $sub;
266
            } elseif ($v instanceof ParamMeta) {
267
                if ($v->container instanceof ArrayContainer) {
268
                    $sub = $this->getArraySchema($app, $controller, $action, $route, $v->container);
269
                    //TODO array for validation
270
                } elseif ($v->container instanceof EntityContainer) {
271
                    $sub = $this->getRefSchema($app, $controller, $action, $route, $v->container);
272
                    //TODO array for validation
273
                } else {
274
                    $sub = new PrimitiveSchemaObject();
275
                    $sub->type = self::mapType($v->type);
276
                    self::mapValidation($v->validation, $sub);
277
                    unset($sub->required);
278
                }
279
                if($sub){
280
                    $sub->description = $v->description;
281
                    $sub->default = $v->default;
@@ 377-392 (lines=16) @@
374
                }
375
            }
376
            if ($in != 'body') {
377
                if ($param->container instanceof ArrayContainer) {
378
                    $paramSchema = $this->getArraySchema($app, $controller, $action, $route, $param->container);
379
                    //TODO array for validation
380
                } elseif ($param->container instanceof EntityContainer) {
381
                    $paramSchema = $this->getRefSchema($app, $controller, $action, $route, $param->container);
382
                    //TODO array for validation
383
                } else {
384
                    $paramSchema = new PrimitiveSchemaObject();
385
                    if($isFile){
386
                        $paramSchema->type = 'file';
387
                    }else{
388
                        $paramSchema->type = self::mapType($param->type);
389
                        self::mapValidation($param->validation, $paramSchema);
390
                    }
391
392
                }
393
                $paramSchema->in = $in;
394
                $paramSchema->name = $name;
395
                $paramSchema->description = $param->description;