@@ -48,7 +48,7 @@ |
||
| 48 | 48 | 'lang/jobs/view', |
| 49 | 49 | [], |
| 50 | 50 | [ |
| 51 | - 'query' => [ 'id' => $job->getId() ], |
|
| 51 | + 'query' => ['id' => $job->getId()], |
|
| 52 | 52 | 'force_canonical' => true |
| 53 | 53 | ] |
| 54 | 54 | ); |
@@ -5,7 +5,7 @@ |
||
| 5 | 5 | * @filesource |
| 6 | 6 | * @copyright (c) 2013 - 2016 Cross Solution (http://cross-solution.de) |
| 7 | 7 | * @license MIT |
| 8 | - */ |
|
| 8 | + */ |
|
| 9 | 9 | |
| 10 | 10 | namespace Jobs\Factory\Form\Hydrator; |
| 11 | 11 | |
@@ -28,7 +28,7 @@ |
||
| 28 | 28 | * |
| 29 | 29 | * @var string |
| 30 | 30 | */ |
| 31 | - protected $options="Jobs/Options"; |
|
| 31 | + protected $options = "Jobs/Options"; |
|
| 32 | 32 | |
| 33 | 33 | /** |
| 34 | 34 | * Configure the Form width Options |
@@ -107,23 +107,23 @@ |
||
| 107 | 107 | |
| 108 | 108 | |
| 109 | 109 | /** |
| 110 | - * Sets the name of the organization |
|
| 111 | - * |
|
| 112 | - * @param OrganizationName organizationName |
|
| 113 | - * @return OrganizationInterface |
|
| 114 | - */ |
|
| 110 | + * Sets the name of the organization |
|
| 111 | + * |
|
| 112 | + * @param OrganizationName organizationName |
|
| 113 | + * @return OrganizationInterface |
|
| 114 | + */ |
|
| 115 | 115 | public function setOrganizationName(OrganizationName $organizationNames); |
| 116 | 116 | |
| 117 | - /** |
|
| 118 | - * Gets the name of the organization |
|
| 119 | - * |
|
| 120 | - * @return OrganizationName |
|
| 121 | - */ |
|
| 117 | + /** |
|
| 118 | + * Gets the name of the organization |
|
| 119 | + * |
|
| 120 | + * @return OrganizationName |
|
| 121 | + */ |
|
| 122 | 122 | public function getOrganizationName(); |
| 123 | 123 | |
| 124 | - /** |
|
| 125 | - * @return string |
|
| 126 | - */ |
|
| 124 | + /** |
|
| 125 | + * @return string |
|
| 126 | + */ |
|
| 127 | 127 | public function getDescription(); |
| 128 | 128 | |
| 129 | 129 | /** |
@@ -71,7 +71,7 @@ discard block |
||
| 71 | 71 | */ |
| 72 | 72 | public function setHouseNumber($houseNumber = "") |
| 73 | 73 | { |
| 74 | - $this->houseNumber=$houseNumber; |
|
| 74 | + $this->houseNumber = $houseNumber; |
|
| 75 | 75 | return $this; |
| 76 | 76 | } |
| 77 | 77 | |
@@ -137,7 +137,7 @@ discard block |
||
| 137 | 137 | */ |
| 138 | 138 | public function setStreet($street = "") |
| 139 | 139 | { |
| 140 | - $this->street=$street; |
|
| 140 | + $this->street = $street; |
|
| 141 | 141 | return $this; |
| 142 | 142 | } |
| 143 | 143 | |
@@ -160,7 +160,7 @@ discard block |
||
| 160 | 160 | */ |
| 161 | 161 | public function setPhone($phone = "") |
| 162 | 162 | { |
| 163 | - $this->phone=$phone; |
|
| 163 | + $this->phone = $phone; |
|
| 164 | 164 | return $this; |
| 165 | 165 | } |
| 166 | 166 | |
@@ -183,7 +183,7 @@ discard block |
||
| 183 | 183 | */ |
| 184 | 184 | public function setFax($fax = "") |
| 185 | 185 | { |
| 186 | - $this->fax=$fax; |
|
| 186 | + $this->fax = $fax; |
|
| 187 | 187 | return $this; |
| 188 | 188 | } |
| 189 | 189 | |
@@ -56,7 +56,7 @@ discard block |
||
| 56 | 56 | |
| 57 | 57 | $query = $this->params()->fromQuery(); |
| 58 | 58 | |
| 59 | - switch($this->plugin){ |
|
| 59 | + switch ($this->plugin) { |
|
| 60 | 60 | case 'photon': |
| 61 | 61 | /* @var Plugin\Photon $geoApi */ |
| 62 | 62 | $geoApi = $this->getPluginManager()->get('geo/photon'); |
@@ -70,19 +70,19 @@ discard block |
||
| 70 | 70 | } |
| 71 | 71 | $result = array(); |
| 72 | 72 | if (!empty($query['q'])) { |
| 73 | - $result = $geoApi($query['q'], $this->geoCoderUrl, $this->params('lang','de')); |
|
| 73 | + $result = $geoApi($query['q'], $this->geoCoderUrl, $this->params('lang', 'de')); |
|
| 74 | 74 | } |
| 75 | 75 | $viewModel = new JsonModel($result); |
| 76 | 76 | /* @var \Zend\Http\Response $response */ |
| 77 | 77 | $response = $this->getResponse(); |
| 78 | 78 | |
| 79 | 79 | $date = new \DateTime(); |
| 80 | - $expires=$date->modify('+100 day'); |
|
| 80 | + $expires = $date->modify('+100 day'); |
|
| 81 | 81 | |
| 82 | 82 | $response->getHeaders() |
| 83 | - ->addHeaderLine('Pragma','cache') |
|
| 84 | - ->addHeaderLine('Cache-Control',"max-age=290304000, public") |
|
| 85 | - ->addHeaderLine('Expires',$expires->format(\DateTime::RFC1036)); |
|
| 83 | + ->addHeaderLine('Pragma', 'cache') |
|
| 84 | + ->addHeaderLine('Cache-Control', "max-age=290304000, public") |
|
| 85 | + ->addHeaderLine('Expires', $expires->format(\DateTime::RFC1036)); |
|
| 86 | 86 | |
| 87 | 87 | return $viewModel; |
| 88 | 88 | } |
@@ -26,7 +26,7 @@ |
||
| 26 | 26 | { |
| 27 | 27 | $this->add([ |
| 28 | 28 | 'name' => 'endDate', |
| 29 | - 'required' => ! $data['currentIndicator'] |
|
| 29 | + 'required' => !$data['currentIndicator'] |
|
| 30 | 30 | ]); |
| 31 | 31 | |
| 32 | 32 | return parent::setData($data); |
@@ -86,7 +86,7 @@ discard block |
||
| 86 | 86 | |
| 87 | 87 | public function setDesiredJob($desiredJob) |
| 88 | 88 | { |
| 89 | - $this->desiredJob=$desiredJob; |
|
| 89 | + $this->desiredJob = $desiredJob; |
|
| 90 | 90 | return $this; |
| 91 | 91 | } |
| 92 | 92 | |
@@ -105,7 +105,7 @@ discard block |
||
| 105 | 105 | */ |
| 106 | 106 | public function setDesiredLocation($desiredLocation) |
| 107 | 107 | { |
| 108 | - $this->desiredLocation=$desiredLocation; |
|
| 108 | + $this->desiredLocation = $desiredLocation; |
|
| 109 | 109 | return $this; |
| 110 | 110 | } |
| 111 | 111 | |
@@ -143,7 +143,7 @@ discard block |
||
| 143 | 143 | */ |
| 144 | 144 | public function setWillingnessToTravel($willingnessToTravel) |
| 145 | 145 | { |
| 146 | - $this->willingnessToTravel=$willingnessToTravel; |
|
| 146 | + $this->willingnessToTravel = $willingnessToTravel; |
|
| 147 | 147 | return $this; |
| 148 | 148 | } |
| 149 | 149 | |
@@ -162,7 +162,7 @@ discard block |
||
| 162 | 162 | */ |
| 163 | 163 | public function setExpectedSalary($expectedSalary) |
| 164 | 164 | { |
| 165 | - $this->expectedSalary=$expectedSalary; |
|
| 165 | + $this->expectedSalary = $expectedSalary; |
|
| 166 | 166 | return $this; |
| 167 | 167 | } |
| 168 | 168 | |
@@ -145,7 +145,7 @@ discard block |
||
| 145 | 145 | $application->changeStatus( |
| 146 | 146 | $application->getStatus(), |
| 147 | 147 | sprintf(/*@translate*/ 'Application was read by %s', |
| 148 | - $this->auth()->getUser()->getInfo()->getDisplayName())); |
|
| 148 | + $this->auth()->getUser()->getInfo()->getDisplayName())); |
|
| 149 | 149 | } |
| 150 | 150 | |
| 151 | 151 | |
@@ -172,9 +172,9 @@ discard block |
||
| 172 | 172 | $viewModel->setVariables( |
| 173 | 173 | /*array( |
| 174 | 174 | 'application' => */$this->serviceLocator |
| 175 | - ->get('builders') |
|
| 176 | - ->get('JsonApplication') |
|
| 177 | - ->unbuild($application) |
|
| 175 | + ->get('builders') |
|
| 176 | + ->get('JsonApplication') |
|
| 177 | + ->unbuild($application) |
|
| 178 | 178 | ); |
| 179 | 179 | $viewModel->setVariable('isUnread', $applicationIsUnread); |
| 180 | 180 | $return = $viewModel; |
@@ -337,12 +337,12 @@ discard block |
||
| 337 | 337 | |
| 338 | 338 | /* @var ApplicationEvent $event */ |
| 339 | 339 | $event = $events->getEvent(ApplicationEvent::EVENT_APPLICATION_STATUS_CHANGE, |
| 340 | - $this, |
|
| 341 | - [ |
|
| 342 | - 'application' => $application, |
|
| 343 | - 'status' => $status, |
|
| 344 | - 'user' => $this->auth()->getUser(), |
|
| 345 | - ] |
|
| 340 | + $this, |
|
| 341 | + [ |
|
| 342 | + 'application' => $application, |
|
| 343 | + 'status' => $status, |
|
| 344 | + 'user' => $this->auth()->getUser(), |
|
| 345 | + ] |
|
| 346 | 346 | ); |
| 347 | 347 | |
| 348 | 348 | $event->setIsPostRequest($request->isPost()); |
@@ -393,7 +393,7 @@ discard block |
||
| 393 | 393 | $emailAddress = $this->params()->fromQuery('email'); |
| 394 | 394 | /* @var \Applications\Entity\Application $application */ |
| 395 | 395 | $application = $services->get('repositories')->get('Applications/Application') |
| 396 | - ->find($this->params('id')); |
|
| 396 | + ->find($this->params('id')); |
|
| 397 | 397 | |
| 398 | 398 | $this->acl($application, 'forward'); |
| 399 | 399 | |
@@ -84,11 +84,11 @@ discard block |
||
| 84 | 84 | } |
| 85 | 85 | $statusElement->setValueOptions($statesForSelections); |
| 86 | 86 | |
| 87 | - $job = $params->job ? $jobRepository->find($params->job) : null; |
|
| 87 | + $job = $params->job ? $jobRepository->find($params->job) : null; |
|
| 88 | 88 | $paginator = $this->paginator('Applications'); |
| 89 | 89 | |
| 90 | 90 | if ($job) { |
| 91 | - $params['job_title'] = '[' . $job->getApplyId() . '] ' . $job->getTitle(); |
|
| 91 | + $params['job_title'] = '['.$job->getApplyId().'] '.$job->getTitle(); |
|
| 92 | 92 | } |
| 93 | 93 | |
| 94 | 94 | $form->bind($params); |
@@ -150,7 +150,7 @@ discard block |
||
| 150 | 150 | |
| 151 | 151 | |
| 152 | 152 | |
| 153 | - $format=$this->params()->fromQuery('format'); |
|
| 153 | + $format = $this->params()->fromQuery('format'); |
|
| 154 | 154 | |
| 155 | 155 | if ($application->isDraft()) { |
| 156 | 156 | $list = false; |
@@ -278,7 +278,7 @@ discard block |
||
| 278 | 278 | && ($network = $this->params()->fromQuery('network')) |
| 279 | 279 | && ($data = $this->params()->fromPost('data')) |
| 280 | 280 | ) { |
| 281 | - $profileClass = '\\Auth\\Entity\\SocialProfiles\\' . $network; |
|
| 281 | + $profileClass = '\\Auth\\Entity\\SocialProfiles\\'.$network; |
|
| 282 | 282 | $profile = new $profileClass(); |
| 283 | 283 | $profile->setData(\Zend\Json\Json::decode($data, \Zend\Json\Json::TYPE_ARRAY)); |
| 284 | 284 | } else { |
@@ -397,7 +397,7 @@ discard block |
||
| 397 | 397 | |
| 398 | 398 | $this->acl($application, 'forward'); |
| 399 | 399 | |
| 400 | - $translator = $services->get('translator'); |
|
| 400 | + $translator = $services->get('translator'); |
|
| 401 | 401 | |
| 402 | 402 | if (!$emailAddress) { |
| 403 | 403 | throw new \InvalidArgumentException('An email address must be supplied.'); |
@@ -438,7 +438,7 @@ discard block |
||
| 438 | 438 | { |
| 439 | 439 | $id = $this->params('id'); |
| 440 | 440 | $services = $this->serviceLocator; |
| 441 | - $repositories= $services->get('repositories'); |
|
| 441 | + $repositories = $services->get('repositories'); |
|
| 442 | 442 | $repository = $repositories->get('Applications/Application'); |
| 443 | 443 | $application = $repository->find($id); |
| 444 | 444 | |
@@ -448,8 +448,8 @@ discard block |
||
| 448 | 448 | |
| 449 | 449 | $this->acl($application, 'delete'); |
| 450 | 450 | |
| 451 | - $events = $services->get('Applications/Events'); |
|
| 452 | - $events->trigger(ApplicationEvent::EVENT_APPLICATION_PRE_DELETE, $this, [ 'application' => $application ]); |
|
| 451 | + $events = $services->get('Applications/Events'); |
|
| 452 | + $events->trigger(ApplicationEvent::EVENT_APPLICATION_PRE_DELETE, $this, ['application' => $application]); |
|
| 453 | 453 | |
| 454 | 454 | $repositories->remove($application); |
| 455 | 455 | |