Code Duplication    Length = 7-7 lines in 2 locations

src/Comodojo/Dispatcher/Events/EventsManager.php 2 locations

@@ 30-36 (lines=7) @@
27
28
class EventsManager extends Emitter {
29
30
    public function subscribe($event, $class, $method = null, $priority = 0) {
31
32
        $callable = ( is_null($method) ) ? $class : array($class, $method);
33
34
        return $this->addListener($event, $callable, $priority);
35
36
    }
37
38
    public function subscribeOnce($event, $class, $method = null, $priority = 0) {
39
@@ 38-44 (lines=7) @@
35
36
    }
37
38
    public function subscribeOnce($event, $class, $method = null, $priority = 0) {
39
40
        $callable = ( is_null($method) ) ? $class : array($class, $method);
41
42
        return $this->addOneTimeListener($event, $callable, $priority);
43
44
    }
45
46
    public function loadPlugins($plugins) {
47