Code Duplication    Length = 12-12 lines in 2 locations

src/Admin/presenters/DeployPresenter.php 1 location

@@ 222-233 (lines=12) @@
219
     * 
220
     * @return void
221
     */
222
    public function actionDeleteApplication($id)
223
    {
224
        $this->application = $this->repository->find($id);
225
226
        $this->em->remove($this->application);
227
        $this->em->flush();
228
229
        $this->flashMessage('Application has been removed', 'success');
230
        $this->forward('default', array(
231
                'idPage' => $this->actualPage->getId()
232
            ));
233
    }
234
235
    /**
236
     * 

src/Admin/presenters/ServersPresenter.php 1 location

@@ 165-176 (lines=12) @@
162
     * 
163
     * @return void
164
     */
165
    public function actionDeleteServer($id)
166
    {
167
        $this->server = $this->repository->find($id);
168
169
        $this->em->remove($this->server);
170
        $this->em->flush();
171
172
        $this->flashMessage('Server has been removed.', 'success');
173
        $this->forward('default', array(
174
                'idPage' => $this->actualPage->getId()
175
            ));
176
    }
177
}
178