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 = 7-14 lines in 4 locations

src/Compute/v2/Models/Server.php 2 locations

@@ 345-353 (lines=9) @@
342
     * @param string $portId The unique ID of the port.
343
     * @return InterfaceAttachment
344
     */
345
    public function getInterfaceAttachment(string $portId): InterfaceAttachment
346
    {
347
        $response = $this->execute($this->api->getInterfaceAttachment(), [
348
            'id'     => $this->id,
349
            'portId' => $portId
350
        ]);
351
352
        return $this->model(InterfaceAttachment::class)->populateFromResponse($response);
353
    }
354
355
    /**
356
     * Creates an interface attachment.
@@ 459-466 (lines=8) @@
456
     *
457
     * @return SecurityGroup
458
     */
459
    public function addSecurityGroup(array $options) : SecurityGroup
460
    {
461
        $options['id'] = $this->id;
462
463
        $response = $this->execute($this->api->postSecurityGroup(), $options);
464
465
        return $this->model(SecurityGroup::class)->populateFromResponse($response);
466
    }
467
468
    /**
469
     * Add security group to a server (addSecurityGroup action)

src/Metric/v1/Gnocchi/Models/Resource.php 1 location

@@ 108-121 (lines=14) @@
105
     *
106
     * @return Metric
107
     */
108
    public function getMetric(string $metric): Metric
109
    {
110
        $response = $this->execute(
111
            $this->api->getResourceMetric(),
112
            [
113
                'resourceId' => $this->id,
114
                'metric'     => $metric,
115
                'type'       => $this->type,
116
            ]
117
        );
118
        $metric = $this->model(Metric::class)->populateFromResponse($response);
119
120
        return $metric;
121
    }
122
123
    /**
124
     * @param array $options {@see \OpenStack\Metric\v1\Gnocchi\Api::getResourceMetricMeasures}

src/Networking/v2/Service.php 1 location

@@ 207-213 (lines=7) @@
204
     *
205
     * @return Quota
206
     */
207
    public function getDefaultQuota(string $tenantId): Quota
208
    {
209
        $quota = $this->model(Quota::class, ['tenantId' => $tenantId]);
210
        $quota->populateFromResponse($this->execute($this->api->getQuotaDefault(), ['tenantId' => $tenantId]));
211
212
        return $quota;
213
    }
214
215
    /**
216
     * Lists loadbalancers for projects