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

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