Code Duplication    Length = 9-9 lines in 2 locations

src/Helpers/MatcherTrait.php 2 locations

@@ 49-57 (lines=9) @@
46
        return true;
47
    }
48
49
    protected function matchesChannels(Message $message) : bool
50
    {
51
        if (!empty($this->channels) && !in_array($message->getChannelName(), $this->channels)) {
52
            $this->debug($this->name.': channels match failed '.json_encode($this->channels));
53
            return false;
54
        }
55
56
        return true;
57
    }
58
59
    protected function matchesUsers(Message $message) : bool
60
    {
@@ 59-67 (lines=9) @@
56
        return true;
57
    }
58
59
    protected function matchesUsers(Message $message) : bool
60
    {
61
        if (!empty($this->users) && !in_array($message->getUsername(), $this->users)) {
62
            $this->debug($this->name.': users match failed '.json_encode($this->users));
63
            return false;
64
        }
65
66
        return true;
67
    }
68
69
    protected function matchPatterns(Message $message): array
70
    {