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/Document/Api.php 1 location

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

src/Document/Consumer.php 1 location

@@ 21-93 (lines=73) @@
18
 *
19
 * @author VEBER Arnaud <https://github.com/VEBERArnaud>
20
 */
21
class Consumer extends AbstractDocument
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