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 = 73-73 lines in 2 locations

src/Api/Api.php 1 location

@@ 22-94 (lines=73) @@
19
 *
20
 * @author VEBER Arnaud <https://github.com/VEBERArnaud>
21
 */
22
class Api extends AbstractApi
23
{
24
    /**
25
     * add api
26
     *
27
     * @param array $params
28
     *
29
     * @return \Psr\Http\Message\ResponseInterface
30
     */
31
    public function addApi(array $params)
32
    {
33
        return $this->post('/apis/', $params);
34
    }
35
36
    /**
37
     * retrieve api
38
     *
39
     * @param string $nameOrId
40
     *
41
     * @return \Psr\Http\Message\ResponseInterface
42
     */
43
    public function retrieveApi($nameOrId)
44
    {
45
        return $this->get(sprintf('/apis/%1$s', $nameOrId));
46
    }
47
48
    /**
49
     * list apis
50
     *
51
     * @return \Psr\Http\Message\ResponseInterface
52
     */
53
    public function listApis()
54
    {
55
        return $this->get('/apis/');
56
    }
57
58
    /**
59
     * update api
60
     *
61
     * @param string $nameOrId
62
     * @param array $params
63
     *
64
     * @return \Psr\Http\Message\ResponseInterface
65
     */
66
    public function updateApi($nameOrId, array $params)
67
    {
68
        return $this->patch(sprintf('/apis/%1$s', $nameOrId), $params);
69
    }
70
71
    /**
72
     * update or create api
73
     *
74
     * @param array $params
75
     *
76
     * @return \Psr\Http\Message\ResponseInterface
77
     */
78
    public function updateOrCreateApi(array $params)
79
    {
80
        return $this->put('/apis/', $params);
81
    }
82
83
    /**
84
     * delete api
85
     *
86
     * @param string $nameOrId
87
     *
88
     * @return \Psr\Http\Message\ResponseInterface
89
     */
90
    public function deleteApi($nameOrId)
91
    {
92
        return $this->delete(sprintf('/apis/%1$s', $nameOrId));
93
    }
94
}
95

src/Api/Consumer.php 1 location

@@ 21-93 (lines=73) @@
18
 *
19
 * @author VEBER Arnaud <https://github.com/VEBERArnaud>
20
 */
21
class Consumer extends AbstractApi
22
{
23
    /**
24
     * create consumer
25
     *
26
     * @param array $params
27
     *
28
     * @return \Psr\Http\Message\ResponseInterface
29
     */
30
    public function createConsumer(array $params)
31
    {
32
        $this->post('/consumers/', $params);
33
    }
34
35
    /**
36
     * retrieve consumer
37
     *
38
     * @param string $usernameOrId
39
     *
40
     * @return \Psr\Http\Message\ResponseInterface
41
     */
42
    public function retrieveConsumer($usernameOrId)
43
    {
44
        return $this->get(sprintf('/consumers/%1$s', $usernameOrId));
45
    }
46
47
    /**
48
     * list consumers
49
     *
50
     * @return \Psr\Http\Message\ResponseInterface
51
     */
52
    public function listConsumers()
53
    {
54
        return $this->get('/consumers/');
55
    }
56
57
    /**
58
     * update consumer
59
     *
60
     * @param string $usernameOrId
61
     * @param array $params
62
     *
63
     * @return \Psr\Http\Message\ResponseInterface
64
     */
65
    public function updateConsumer($usernameOrId, array $params)
66
    {
67
        return $this->patch(sprintf('/consumers/%1$s', $usernameOrId), $params);
68
    }
69
70
    /**
71
     * update or create consumer
72
     *
73
     * @param array $params
74
     *
75
     * @return \Psr\Http\Message\ResponseInterface
76
     */
77
    public function updateOrCreateConsumer(array $params)
78
    {
79
        return $this->put('/consumers/', $params);
80
    }
81
82
    /**
83
     * delete consumer
84
     *
85
     * @param string $usernameOrId
86
     *
87
     * @return \Psr\Http\Message\ResponseInterface
88
     */
89
    public function deleteConsumer($usernameOrId)
90
    {
91
        return $this->delete(sprintf('/consumers/%1$s', $usernameOrId));
92
    }
93
}
94