Code Duplication    Length = 7-7 lines in 2 locations

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

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