Code Duplication    Length = 10-10 lines in 2 locations

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

@@ 83-92 (lines=10) @@
80
             : $services->get('repositories')->get('Jobs/Job')->findOneBy(array("applyId"=>(0 == $applyId)?$this->params('jobId'):$applyId));
81
        
82
        
83
        if (!$job) {
84
            $this->response->setStatusCode(410);
85
            $model = new ViewModel(
86
                array(
87
                'content' => /*@translate*/ 'Invalid apply id'
88
                )
89
            );
90
            $model->setTemplate('auth/index/job-not-found.phtml');
91
            return $model;
92
        }
93
94
        /* @var $form \Zend\Form\Form */
95
        $form = $services->get('FormElementManager')->get('Application/Create');

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

@@ 128-137 (lines=10) @@
125
        /* @var Application $application */
126
        $application = $repository->find($this->params('id'));
127
        
128
        if (!$application) {
129
            $this->response->setStatusCode(410);
130
            $model = new ViewModel(
131
                array(
132
                'content' => /*@translate*/ 'Invalid apply id'
133
                )
134
            );
135
            $model->setTemplate('applications/error/not-found');
136
            return $model;
137
        }
138
        
139
        $this->acl($application, 'read');
140