@@ -77,7 +77,7 @@ |
||
| 77 | 77 | if (is_array($inputLabel)){ |
| 78 | 78 | $priority = isset($inputLabel[1])?$inputLabel[1]:0; |
| 79 | 79 | $inputLabel = $inputLabel[0]; |
| 80 | - }else{ |
|
| 80 | + } else{ |
|
| 81 | 81 | $priority = 0; |
| 82 | 82 | } |
| 83 | 83 | |
@@ -83,7 +83,7 @@ |
||
| 83 | 83 | $this->auth()->isAdmin() |
| 84 | 84 | ) { |
| 85 | 85 | $applicationViewModel->setTemplate('iframe/iFrameInjection'); |
| 86 | - }elseif(Status::EXPIRED == $job->getStatus() or Status::INACTIVE == $job->getStatus()) { |
|
| 86 | + } elseif(Status::EXPIRED == $job->getStatus() or Status::INACTIVE == $job->getStatus()) { |
|
| 87 | 87 | $response->setStatusCode(Response::STATUS_CODE_410); |
| 88 | 88 | $model->setTemplate('jobs/error/expired'); |
| 89 | 89 | $model->setVariables( |
@@ -111,7 +111,7 @@ |
||
| 111 | 111 | if($options['absolute']) { |
| 112 | 112 | $result = $serverUrlHelper($url); |
| 113 | 113 | } |
| 114 | - }else{ |
|
| 114 | + } else{ |
|
| 115 | 115 | $translate = $this->translateHelper; |
| 116 | 116 | $result = sprintf('<a href="%s" rel="nofollow">%s</a>', $url, $translate('Apply')); |
| 117 | 117 | } |
@@ -75,7 +75,7 @@ |
||
| 75 | 75 | if ($value){ |
| 76 | 76 | $data = $this->geoClient->queryOne($value); |
| 77 | 77 | return $data['id']; |
| 78 | - }else{ |
|
| 78 | + } else{ |
|
| 79 | 79 | return; |
| 80 | 80 | } |
| 81 | 81 | } |
@@ -239,7 +239,7 @@ |
||
| 239 | 239 | |
| 240 | 240 | if ($resolver->resolve($this->getTemplate() . '.' . $lang)) { |
| 241 | 241 | $viewModel->setTemplate($this->getTemplate() . '.' . $lang); |
| 242 | - }else{ |
|
| 242 | + } else{ |
|
| 243 | 243 | $viewModel->setTemplate($this->getTemplate()); |
| 244 | 244 | } |
| 245 | 245 | |
@@ -35,7 +35,7 @@ |
||
| 35 | 35 | /** @var \Tracy\Logger $logger */ |
| 36 | 36 | $logger = Debugger::getLogger(); |
| 37 | 37 | $logger->emailSnooze = $config['email_snooze']; |
| 38 | - }catch (\Exception $e){ |
|
| 38 | + } catch (\Exception $e){ |
|
| 39 | 39 | throw $e; |
| 40 | 40 | } |
| 41 | 41 | |
@@ -54,16 +54,15 @@ |
||
| 54 | 54 | |
| 55 | 55 | try { |
| 56 | 56 | $parameter_instances[] = $parentLocator->get($cn); |
| 57 | - } |
|
| 58 | - catch (\Exception $x) { |
|
| 57 | + } catch (\Exception $x) { |
|
| 59 | 58 | echo __CLASS__ |
| 60 | 59 | . " couldn't create an instance of $cn to satisfy the constructor for $requestedName."; |
| 61 | 60 | exit; |
| 62 | 61 | } |
| 63 | - } |
|
| 64 | - else{ |
|
| 65 | - if( $p->isArray() && $p->getName() == 'config' ) |
|
| 66 | - $parameter_instances[] = $parentLocator->get('config'); |
|
| 62 | + } else{ |
|
| 63 | + if( $p->isArray() && $p->getName() == 'config' ) { |
|
| 64 | + $parameter_instances[] = $parentLocator->get('config'); |
|
| 65 | + } |
|
| 67 | 66 | } |
| 68 | 67 | |
| 69 | 68 | } |
@@ -179,7 +179,7 @@ discard block |
||
| 179 | 179 | $element = $page->find('css',$mapMultiple[$field]); |
| 180 | 180 | if(!is_null($element) && $element->getAttribute('multiple')=='multiple'){ |
| 181 | 181 | $this->minkContext->selectOption($value,$multipleField); |
| 182 | - }else{ |
|
| 182 | + } else{ |
|
| 183 | 183 | $locator = $mapSelect2[$field]; |
| 184 | 184 | $this->select2Context->iFillInSelect2Field($locator,$value); |
| 185 | 185 | } |
@@ -230,14 +230,14 @@ discard block |
||
| 230 | 230 | if($user instanceof User){ |
| 231 | 231 | $job->setUser($user); |
| 232 | 232 | $job->setOrganization($user->getOrganization()->getOrganization()); |
| 233 | - }else{ |
|
| 233 | + } else{ |
|
| 234 | 234 | throw new \Exception('There is no user with this login:"'.$normalizedField['user'.'"']); |
| 235 | 235 | } |
| 236 | 236 | } |
| 237 | 237 | |
| 238 | 238 | if($status == 'draft'){ |
| 239 | 239 | $job->setIsDraft(true); |
| 240 | - }elseif($status == 'published'){ |
|
| 240 | + } elseif($status == 'published'){ |
|
| 241 | 241 | $job->setIsDraft(false); |
| 242 | 242 | $job->setDatePublishStart(new \DateTime()); |
| 243 | 243 | } |
@@ -94,7 +94,7 @@ |
||
| 94 | 94 | try{ |
| 95 | 95 | JobContext::removeJobByUser($user); |
| 96 | 96 | $repo->remove($user,true); |
| 97 | - }catch (\Exception $e){ |
|
| 97 | + } catch (\Exception $e){ |
|
| 98 | 98 | |
| 99 | 99 | } |
| 100 | 100 | } |