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

src/AsyncClient.php 2 locations

@@ 84-95 (lines=12) @@
81
    /**
82
     * @return ObservableInterface
83
     */
84
    public function queues(): ObservableInterface
85
    {
86
        return Promise::toObservable($this->client->handle(
87
            new SimpleRequestCommand('queues')
88
        ))->flatMap(function (ResponseInterface $response) {
89
            return Observable::fromArray($response->getBody()->getJson());
90
        })->flatMap(function ($queue) {
91
            return Promise::toObservable($this->client->handle(
92
                new HydrateCommand('Queue', $queue)
93
            ));
94
        });
95
    }
96
97
    /**
98
     * @return ObservableInterface
@@ 100-111 (lines=12) @@
97
    /**
98
     * @return ObservableInterface
99
     */
100
    public function connections(): ObservableInterface
101
    {
102
        return Promise::toObservable($this->client->handle(
103
            new SimpleRequestCommand('connections')
104
        ))->flatMap(function (ResponseInterface $response) {
105
            return Observable::fromArray($response->getBody()->getJson());
106
        })->flatMap(function ($connection) {
107
            return Promise::toObservable($this->client->handle(
108
                new HydrateCommand('Connection', $connection)
109
            ));
110
        });
111
    }
112
}
113