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 = 9-9 lines in 6 locations

src/CallbackEventFactory.php 6 locations

@@ 73-81 (lines=9) @@
70
     *
71
     * @return MessageEvent
72
     */
73
    public static function createMessageEvent(array $payload)
74
    {
75
        $message = Message::create($payload['message']);
76
        $senderId = $payload['sender']['id'];
77
        $recipientId = $payload['recipient']['id'];
78
        $timestamp = $payload['timestamp'];
79
80
        return new MessageEvent($senderId, $recipientId, $timestamp, $message);
81
    }
82
83
    /**
84
     * @param array $payload
@@ 88-96 (lines=9) @@
85
     *
86
     * @return MessageEchoEvent
87
     */
88
    public static function createMessageEchoEvent(array $payload)
89
    {
90
        $message = MessageEcho::create($payload['message']);
91
        $senderId = $payload['sender']['id'];
92
        $recipientId = $payload['recipient']['id'];
93
        $timestamp = $payload['timestamp'];
94
95
        return new MessageEchoEvent($senderId, $recipientId, $timestamp, $message);
96
    }
97
98
    /**
99
     * @param array $payload
@@ 103-111 (lines=9) @@
100
     *
101
     * @return PostbackEvent
102
     */
103
    public static function createPostbackEvent(array $payload)
104
    {
105
        $postback = Postback::create($payload['postback']);
106
        $senderId = $payload['sender']['id'];
107
        $recipientId = $payload['recipient']['id'];
108
        $timestamp = $payload['timestamp'];
109
110
        return new PostbackEvent($senderId, $recipientId, $timestamp, $postback);
111
    }
112
113
    /**
114
     * @param array $payload
@@ 118-126 (lines=9) @@
115
     *
116
     * @return AuthenticationEvent
117
     */
118
    public static function createAuthenticationEvent(array $payload)
119
    {
120
        $optin = Optin::create($payload['optin']);
121
        $senderId = $payload['sender']['id'];
122
        $recipientId = $payload['recipient']['id'];
123
        $timestamp = $payload['timestamp'];
124
125
        return new AuthenticationEvent($senderId, $recipientId, $timestamp, $optin);
126
    }
127
128
    /**
129
     * @param array $payload
@@ 133-141 (lines=9) @@
130
     *
131
     * @return AccountLinkingEvent
132
     */
133
    public static function createAccountLinkingEvent(array $payload)
134
    {
135
        $accountLinking = AccountLinking::create($payload['account_linking']);
136
        $senderId = $payload['sender']['id'];
137
        $recipientId = $payload['recipient']['id'];
138
        $timestamp = $payload['timestamp'];
139
140
        return new AccountLinkingEvent($senderId, $recipientId, $timestamp, $accountLinking);
141
    }
142
143
    /**
144
     * @param array $payload
@@ 162-170 (lines=9) @@
159
     * 
160
     * @return MessageReadEvent
161
     */
162
    public static function createMessageReadEvent(array $payload)
163
    {
164
        $read = Read::create($payload['read']);
165
        $senderId = $payload['sender']['id'];
166
        $recipientId = $payload['recipient']['id'];
167
        $timestamp = $payload['timestamp'];
168
169
        return new MessageReadEvent($senderId, $recipientId, $timestamp, $read);
170
    }
171
}
172