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/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/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->serviceLocator;
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/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/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/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->serviceLocator;
58
        $defaultServices = $serviceLocator->get('DefaultListeners');
59
        $events          = $this->getEventManager();
60
        $events->attach($defaultServices);
61
        return $this;
62
    }
63
64
    /**
65
     * List jobs

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

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

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

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

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->serviceLocator;
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

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

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