Code Duplication    Length = 7-7 lines in 2 locations

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

@@ 86-92 (lines=7) @@
83
	}
84
	
85
	
86
	public function attachDefaultListeners()
87
	{
88
		parent::attachDefaultListeners();
89
		$events = $this->getEventManager();
90
		$events->attach(MvcEvent::EVENT_DISPATCH, array($this, 'preDispatch'), 10);
91
		return $this;
92
	}
93
	
94
    public function preDispatch(MvcEvent $e)
95
    {

module/Install/src/Controller/Index.php 1 location

@@ 138-144 (lines=7) @@
135
    /**
136
     * Attaches default listeners to the event manager.
137
     */
138
    protected function attachDefaultListeners()
139
    {
140
	    parent::attachDefaultListeners();
141
	
142
	    $events = $this->getEventManager();
143
	    $events->attach( MvcEvent::EVENT_DISPATCH, array( $this, 'preDispatch' ), 100 );
144
    }
145
146
    /**
147
     * Creates a view model