Code Duplication    Length = 9-11 lines in 15 locations

module/Applications/src/Applications/Controller/CommentController.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->serviceLocator;
34
        $defaultServices = $serviceLocator->get('DefaultListeners');
35
        $events          = $this->getEventManager();
36
        $events->attach($defaultServices);
37
        return $this;
38
    }
39
    
40
    /**
41
     * (non-PHPdoc)

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

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->serviceLocator;
28
        $defaultServices = $serviceLocator->get('DefaultListeners');
29
        $events          = $this->getEventManager();
30
        $events->attach($defaultServices);
31
        return $this;
32
    }
33
34
    public function fetchAction()
35
    {

module/Core/src/Core/Controller/IndexController.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->serviceLocator;
33
        $defaultServices = $serviceLocator->get('DefaultListeners');
34
        $events          = $this->getEventManager();
35
        $events->attach($defaultServices);
36
        return $this;
37
    }
38
39
    /**
40
     * Home site

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

@@ 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->serviceLocator;
40
        $defaultServices = $serviceLocator->get('DefaultListeners');
41
        $events          = $this->getEventManager();
42
        $events->attach($defaultServices);
43
        return $this;
44
    }
45
46
    /**
47
     * api-interface for transferring jobs

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

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

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

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

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

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

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

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

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

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

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

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