Code Duplication    Length = 9-9 lines in 2 locations

src/Helpers/MatcherTrait.php 2 locations

@@ 63-71 (lines=9) @@
60
        return true;
61
    }
62
63
    protected function matchesChannels(Message $message) : bool
64
    {
65
        if (!empty($this->channels) && !in_array($message->getChannelName(), $this->channels)) {
66
            $this->debug($this->name.': channels match failed '.json_encode($this->channels));
67
            return false;
68
        }
69
70
        return true;
71
    }
72
73
    protected function matchesUsers(Message $message) : bool
74
    {
@@ 73-81 (lines=9) @@
70
        return true;
71
    }
72
73
    protected function matchesUsers(Message $message) : bool
74
    {
75
        if (!empty($this->users) && !in_array($message->getUsername(), $this->users)) {
76
            $this->debug($this->name.': users match failed '.json_encode($this->users));
77
            return false;
78
        }
79
80
        return true;
81
    }
82
83
    protected function matchPatterns(Message $message): array
84
    {