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/Auth/src/Auth/Controller/SocialProfilesController.php 1 location

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

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

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

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/Applications/src/Applications/Controller/CommentController.php 1 location

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

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/Applications/src/Applications/Controller/IndexController.php 1 location

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