Code Duplication    Length = 9-11 lines in 15 locations

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

@@ 33-41 (lines=9) @@
30
     * attaches further Listeners for generating / processing the output
31
     * @return $this
32
     */
33
    public function attachDefaultListeners()
34
    {
35
        parent::attachDefaultListeners();
36
        $serviceLocator  = $this->getServiceLocator();
37
        $defaultServices = $serviceLocator->get('DefaultListeners');
38
        $events          = $this->getEventManager();
39
        $events->attach($defaultServices);
40
        return $this;
41
    }
42
43
    /**
44
     * regenerate keywords for applications

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

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

module/Auth/src/Auth/Controller/HybridAuthController.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->getServiceLocator();
31
        $defaultServices = $serviceLocator->get('DefaultListeners');
32
        $events          = $this->getEventManager();
33
        $events->attach($defaultServices);
34
        return $this;
35
    }
36
37
    /**
38
     * HybridAuth endpoint.

module/Auth/src/Auth/Controller/ManageController.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->getServiceLocator();
31
        $defaultServices = $serviceLocator->get('DefaultListeners');
32
        $events          = $this->getEventManager();
33
        $events->attach($defaultServices);
34
        return $this;
35
    }
36
37
    /**
38
     * @return array|JsonModel

module/Core/src/Core/Controller/IndexController.php 1 location

@@ 30-38 (lines=9) @@
27
     * attaches further Listeners for generating / processing the output
28
     * @return $this
29
     */
30
    public function attachDefaultListeners()
31
    {
32
        parent::attachDefaultListeners();
33
        $serviceLocator  = $this->getServiceLocator();
34
        $defaultServices = $serviceLocator->get('DefaultListeners');
35
        $events          = $this->getEventManager();
36
        $events->attach($defaultServices);
37
        return $this;
38
    }
39
40
    /**
41
     * Home site

module/Cv/src/Cv/Controller/IndexController.php 1 location

@@ 28-36 (lines=9) @@
25
     * attaches further Listeners for generating / processing the output
26
     * @return $this
27
     */
28
    public function attachDefaultListeners()
29
    {
30
        parent::attachDefaultListeners();
31
        $serviceLocator  = $this->getServiceLocator();
32
        $defaultServices = $serviceLocator->get('DefaultListeners');
33
        $events          = $this->getEventManager();
34
        $events->attach($defaultServices);
35
        return $this;
36
    }
37
38
    /**
39
     * Home site

module/Cv/src/Cv/Controller/ManageController.php 1 location

@@ 28-36 (lines=9) @@
25
     * attaches further Listeners for generating / processing the output
26
     * @return $this
27
     */
28
    public function attachDefaultListeners()
29
    {
30
        parent::attachDefaultListeners();
31
        $serviceLocator  = $this->getServiceLocator();
32
        $defaultServices = $serviceLocator->get('DefaultListeners');
33
        $events          = $this->getEventManager();
34
        $events->attach($defaultServices);
35
        return $this;
36
    }
37
38
    /**
39
     * Home site

module/Organizations/src/Organizations/Controller/IndexController.php 1 location

@@ 71-81 (lines=11) @@
68
     *
69
     * @return $this
70
     */
71
    public function attachDefaultListeners()
72
    {
73
        parent::attachDefaultListeners();
74
75
        $serviceLocator  = $this->getServiceLocator();
76
        $defaultServices = $serviceLocator->get('DefaultListeners');
77
        $events          = $this->getEventManager();
78
79
        $events->attach($defaultServices);
80
        return $this;
81
    }
82
83
    /**
84
     * Generates a list of organizations

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

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

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

@@ 35-43 (lines=9) @@
32
     *
33
     * @return $this
34
     */
35
    public function attachDefaultListeners()
36
    {
37
        parent::attachDefaultListeners();
38
        $serviceLocator  = $this->getServiceLocator();
39
        $defaultServices = $serviceLocator->get('DefaultListeners');
40
        $events          = $this->getEventManager();
41
        $events->attach($defaultServices);
42
        return $this;
43
    }
44
45
    /**
46
     * (non-PHPdoc)

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

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

module/Settings/src/Settings/Controller/IndexController.php 1 location

@@ 30-38 (lines=9) @@
27
     *
28
     * @return $this
29
     */
30
    public function attachDefaultListeners()
31
    {
32
        parent::attachDefaultListeners();
33
        $serviceLocator  = $this->getServiceLocator();
34
        $defaultServices = $serviceLocator->get('DefaultListeners');
35
        $events          = $this->getEventManager();
36
        $events->attach($defaultServices);
37
        return $this;
38
    }
39
40
    public function indexAction()
41
    {

module/Auth/src/Auth/Controller/SocialProfilesController.php 1 location

@@ 24-32 (lines=9) @@
21
     * attaches further Listeners for generating / processing the output
22
     * @return $this
23
     */
24
    public function attachDefaultListeners()
25
    {
26
        parent::attachDefaultListeners();
27
        $serviceLocator  = $this->getServiceLocator();
28
        $defaultServices = $serviceLocator->get('DefaultListeners');
29
        $events          = $this->getEventManager();
30
        $events->attach($defaultServices);
31
        return $this;
32
    }
33
34
    public function fetchAction()
35
    {

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

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

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

@@ 37-45 (lines=9) @@
34
     * attaches further Listeners for generating / processing the output
35
     * @return $this
36
     */
37
    public function attachDefaultListeners()
38
    {
39
        parent::attachDefaultListeners();
40
        $serviceLocator  = $this->getServiceLocator();
41
        $defaultServices = $serviceLocator->get('DefaultListeners');
42
        $events          = $this->getEventManager();
43
        $events->attach($defaultServices);
44
        return $this;
45
    }
46
47
    /**
48
     * api-interface for transferring jobs