Code Duplication    Length = 9-11 lines in 3 locations

module/Applications/src/Applications/Controller/MultimanageController.php 1 location

@@ 27-35 (lines=9) @@
24
     * attaches further Listeners for generating / processing the output
25
     * @return $this
26
     */
27
    public function attachDefaultListeners()
28
    {
29
        parent::attachDefaultListeners();
30
        $serviceLocator  = $this->serviceLocator;
31
        $defaultServices = $serviceLocator->get('DefaultListeners');
32
        $events          = $this->getEventManager();
33
        $events->attach($defaultServices);
34
        return $this;
35
    }
36
37
    /**
38
     * some Action on a set of applications,

module/Jobs/src/Jobs/Controller/ApprovalController.php 1 location

@@ 65-75 (lines=11) @@
62
     *
63
     * @return $this
64
     */
65
    public function attachDefaultListeners()
66
    {
67
        parent::attachDefaultListeners();
68
69
        $serviceLocator  = $this->serviceLocator;
70
        $defaultServices = $serviceLocator->get('DefaultListeners');
71
        $events          = $this->getEventManager();
72
        $events->attach($defaultServices);
73
74
        return $this;
75
    }
76
77
    /**
78
     * @return ViewModel

module/Jobs/src/Jobs/Controller/ImportController.php 1 location

@@ 52-60 (lines=9) @@
49
     * attaches further Listeners for generating / processing the output
50
     * @return $this
51
     */
52
    public function attachDefaultListeners()
53
    {
54
        parent::attachDefaultListeners();
55
        $serviceLocator  = $this->serviceLocator;
56
        $defaultServices = $serviceLocator->get('DefaultListeners');
57
        $events          = $this->getEventManager();
58
        $events->attach($defaultServices);
59
        return $this;
60
    }
61
62
    /**
63
     * api-interface for transferring jobs