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.
Completed
Pull Request — master (#157)
by
unknown
01:44
created

JobConfig::retrieve()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 5
Ratio 100 %

Importance

Changes 0
Metric Value
c 0
b 0
f 0
dl 5
loc 5
rs 9.4285
cc 1
eloc 3
nc 1
nop 0
1
<?php
2
3
namespace OpenStack\DataProcessing\v1\Models;
4
5
use OpenStack\Common\Resource\Listable;
6
use OpenStack\Common\Resource\OperatorResource;
7
8 View Code Duplication
class JobConfig extends OperatorResource implements Listable
0 ignored issues
show
Duplication introduced by
This class seems to be duplicated in your project.

Duplicated code is one of the most pungent code smells. If you need to duplicate the same code in three or more different places, we strongly encourage you to look into extracting the code into a single class or operation.

You can also find more detailed suggestions in the “Code” section of your repository.

Loading history...
9
{
10
    public $id; //id of jobs
11
    public $jobConfigs;
12
13
    protected $resourceKey = 'job_execution';
14
    protected $resourcesKey = 'job_executions';
15
16
    protected $aliases = [
17
        'job_configs' => 'jobConfigs',
18
    ];
19
20
    public function retrieve()
21
    {
22
        $response = $this->execute($this->api->getJobConfig(), $this->getAttrs(['id']));
0 ignored issues
show
Bug introduced by
The method getJobConfig() does not seem to exist on object<OpenStack\Common\Api\ApiInterface>.

This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.

This is most likely a typographical error or the method has been renamed.

Loading history...
23
        $this->populateFromResponse($response);
24
    }
25
}
26