Code Duplication    Length = 4-4 lines in 2 locations

bot_triggers.php 2 locations

@@ 18-21 (lines=4) @@
15
if (array_key_exists('text', $update['message'])) {
16
    // Event: text
17
    Event::trigger('text', [$update['message']['text'], $bot, $update]);
18
} elseif (array_key_exists('sticker', $update['message'])) {
19
    // Event: sticker
20
    Event::trigger('sticker', [$update['message']['sticker'], $bot, $update]);
21
} elseif (array_key_exists('photo', $update['message'])) {
22
    // Event: photo
23
    Event::trigger('photo', [$update['message']['photo'], $bot, $update]);
24
} elseif (array_key_exists('new_chat_member', $update['message'])) {
@@ 24-27 (lines=4) @@
21
} elseif (array_key_exists('photo', $update['message'])) {
22
    // Event: photo
23
    Event::trigger('photo', [$update['message']['photo'], $bot, $update]);
24
} elseif (array_key_exists('new_chat_member', $update['message'])) {
25
    // Event: new_chat_member
26
    Event::trigger('new_chat_member', [$update['message']['new_chat_member'], $bot, $update]);
27
}
28