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/Model/Callback/Message.php 1 location

@@ 141-148 (lines=8) @@
138
     *
139
     * @return static
140
     */
141
    public static function create(array $payload)
142
    {
143
        $text = isset($payload['text']) ? $payload['text'] : null;
144
        $attachments = isset($payload['attachments']) ? $payload['attachments'] : [];
145
        $quickReply = isset($payload['quick_reply']) ? $payload['quick_reply']['payload'] : null;
146
147
        return new static($payload['mid'], $payload['seq'], $text, $attachments, $quickReply);
148
    }
149
}
150

src/Model/Callback/MessageEcho.php 1 location

@@ 70-77 (lines=8) @@
67
     *
68
     * @return static
69
     */
70
    public static function create(array $payload)
71
    {
72
        $metadata = isset($payload['metadata']) ? $payload['metadata'] : null;
73
        $text = isset($payload['text']) ? $payload['text'] : null;
74
        $attachments = isset($payload['attachments']) ? $payload['attachments'] : [];
75
76
        return new static(true, $payload['app_id'], $payload['mid'], $payload['seq'], $metadata, $text, $attachments);
77
    }
78
}
79