@@ -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 | } |
@@ -330,7 +330,7 @@ |
||
| 330 | 330 | // @TODO: [ZF3] which one is correct? $form[options][label] or $form[options] |
| 331 | 331 | if(isset($form['label'])){ |
| 332 | 332 | $formLabel = $form['label']; |
| 333 | - }elseif(isset($form['options']['label'])){ |
|
| 333 | + } elseif(isset($form['options']['label'])){ |
|
| 334 | 334 | $formLabel = $form['options']['label']; |
| 335 | 335 | } |
| 336 | 336 | |
@@ -161,7 +161,7 @@ |
||
| 161 | 161 | { |
| 162 | 162 | if(is_array($email)){ |
| 163 | 163 | $this->from = [$email['email'] => $email['name']]; |
| 164 | - }else{ |
|
| 164 | + } else{ |
|
| 165 | 165 | $this->from = is_object($email) || null === $name |
| 166 | 166 | |
| 167 | 167 | : array($email => $name); |