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

@@ 261-272 (lines=12) @@
258
                $sub->description = $v->description;
259
                $schema->properties[$k] = $sub;
260
            } elseif ($v instanceof ParamMeta) {
261
                if ($v->container instanceof ArrayContainer) {
262
                    $sub = $this->getArraySchema($app, $controller, $action, $route, $v->container);
263
                    //TODO array for validation
264
                } elseif ($v->container instanceof EntityContainer) {
265
                    $sub = $this->getRefSchema($app, $controller, $action, $route, $v->container);
266
                    //TODO array for validation
267
                } else {
268
                    $sub = new PrimitiveSchemaObject();
269
                    $sub->type = self::mapType($v->type);
270
                    self::mapValidation($v->validation, $sub);
271
                    unset($sub->required);
272
                }
273
                $sub->description = $v->description;
274
                $sub->default = $v->default;
275
                if (!$v->isOptional) {
@@ 369-384 (lines=16) @@
366
                }
367
            }
368
            if ($in != 'body') {
369
                if ($param->container instanceof ArrayContainer) {
370
                    $paramSchema = $this->getArraySchema($app, $controller, $action, $route, $param->container);
371
                    //TODO array for validation
372
                } elseif ($param->container instanceof EntityContainer) {
373
                    $paramSchema = $this->getRefSchema($app, $controller, $action, $route, $param->container);
374
                    //TODO array for validation
375
                } else {
376
                    $paramSchema = new PrimitiveSchemaObject();
377
                    if($isFile){
378
                        $paramSchema->type = 'file';
379
                    }else{
380
                        $paramSchema->type = self::mapType($param->type);
381
                        self::mapValidation($param->validation, $paramSchema);
382
                    }
383
384
                }
385
                $paramSchema->in = $in;
386
                $paramSchema->name = $name;
387
                $paramSchema->description = $param->description;