Code Duplication    Length = 7-9 lines in 3 locations

src/Service/PrizeCategory.php 1 location

@@ 45-51 (lines=7) @@
42
        $this->serviceLocator = $locator;
43
    }
44
45
    public function getEventManager()
46
    {
47
        if (null === $this->event) {
48
            $this->event = new EventManager($this->serviceLocator->get('SharedEventManager'), [get_class($this)]);
49
        }
50
51
        return $this->event;
52
    }
53
54
    /**

src/Form/Admin/Game.php 1 location

@@ 850-858 (lines=9) @@
847
        return $categories;
848
    }
849
850
    public function getEventManager()
851
    {
852
        if ($this->event === null) {
853
            $this->event = new EventManager(
854
                $this->getServiceManager()->get('SharedEventManager'),
855
                [get_class($this)]
856
            );
857
        }
858
859
        return $this->event;
860
    }
861

src/Service/Game.php 1 location

@@ 71-77 (lines=7) @@
68
        $this->serviceLocator = $locator;
69
    }
70
71
    public function getEventManager()
72
    {
73
        if (null === $this->event) {
74
            $this->event = new EventManager($this->serviceLocator->get('SharedEventManager'), [get_class($this)]);
75
        }
76
77
        return $this->event;
78
    }
79
80
    public function getGameUserPath($game, $user)