Code Duplication    Length = 9-9 lines in 2 locations

src/Channel/ChannelComposite.php 1 location

@@ 105-113 (lines=9) @@
102
     * @override
103
     * @inheritDoc
104
     */
105
    public function getBus($name)
106
    {
107
        if (!isset($this->buses[$name]))
108
        {
109
            throw new ResourceUndefinedException(sprintf("Channel [%s] has no registered bus [$name].", $this->getName()));
110
        }
111
112
        return $this->buses[$name];
113
    }
114
115
    /**
116
     * @override

src/Channel/Router/RouterComposite.php 1 location

@@ 49-57 (lines=9) @@
46
     * @override
47
     * @inheritDoc
48
     */
49
    public function getBus($name)
50
    {
51
        if (!isset($this->bus[$name]))
52
        {
53
            throw new ResourceUndefinedException(__CLASS__ . " has no registered bus $name.");
54
        }
55
56
        return $this->bus[$name];
57
    }
58
59
    /**
60
     * @override