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

src/Messenger.php 2 locations

@@ 93-100 (lines=8) @@
90
     *
91
     * @return array
92
     */
93
    public function setWelcomeMessage($message, $pageId)
94
    {
95
        $options = [
96
            RequestOptions::JSON => $this->buildWelcomeData($message),
97
        ];
98
99
        return $this->send('POST', sprintf('/%s/thread_settings', $pageId), $options);
100
    }
101
102
    /**
103
     * Subscribe the app to the page
@@ 119-126 (lines=8) @@
116
     *
117
     * @return array
118
     */
119
    public function deleteWelcomeMessage($pageId)
120
    {
121
        $options = [
122
            RequestOptions::JSON => $this->buildWelcomeData(),
123
        ];
124
125
        return $this->send('POST', sprintf('/%s/thread_settings', $pageId), $options);
126
    }
127
128
    /**
129
     * @param $method