Code Duplication    Length = 9-11 lines in 17 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->getServiceLocator();
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

@@ 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/IndexController.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
    /**

module/Applications/src/Applications/Controller/ManageController.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
     * (non-PHPdoc)

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/Auth/src/Auth/Controller/SocialProfilesController.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
    public function fetchAction()
38
    {

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/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->getServiceLocator();
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/JobboardController.php 1 location

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

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/Settings/src/Settings/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->getServiceLocator();
33
        $defaultServices = $serviceLocator->get('DefaultListeners');
34
        $events          = $this->getEventManager();
35
        $events->attach($defaultServices);
36
        return $this;
37
    }
38
39
    public function indexAction()
40
    {

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->getServiceLocator();
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->getServiceLocator();
69
        $defaultServices = $serviceLocator->get('DefaultListeners');
70
        $events          = $this->getEventManager();
71
        $events->attach($defaultServices);
72
73
        return $this;
74
    }
75
76
    /**
77
     * List jobs.