@@ -239,7 +239,7 @@ discard block |
||
| 239 | 239 | ->getHybridAuth(); |
| 240 | 240 | /* @var $authProfile \Hybrid_User_Profile */ |
| 241 | 241 | $authProfile = $hybridAuth->authenticate($network) |
| 242 | - ->getUserProfile(); |
|
| 242 | + ->getUserProfile(); |
|
| 243 | 243 | |
| 244 | 244 | /* @var \Auth\Entity\SocialProfiles\AbstractProfile $profile */ |
| 245 | 245 | $profile = $this->plugin('Auth/SocialProfiles')->fetch($network); |
@@ -292,7 +292,7 @@ discard block |
||
| 292 | 292 | } |
| 293 | 293 | |
| 294 | 294 | return $this->redirect() |
| 295 | - ->toRoute('lang/apply', ['applyId' => $job->getApplyId()], $urlOptions); |
|
| 295 | + ->toRoute('lang/apply', ['applyId' => $job->getApplyId()], $urlOptions); |
|
| 296 | 296 | } |
| 297 | 297 | |
| 298 | 298 | public function processPreviewAction() |
@@ -168,41 +168,41 @@ |
||
| 168 | 168 | { |
| 169 | 169 | return $this->email; |
| 170 | 170 | } |
| 171 | - /** |
|
| 172 | - * @return bool |
|
| 173 | - */ |
|
| 174 | - public function getOneClickApply() |
|
| 175 | - { |
|
| 176 | - return $this->oneClickApply; |
|
| 177 | - } |
|
| 178 | - |
|
| 179 | - /** |
|
| 180 | - * @param bool $oneClickApply |
|
| 181 | - * @return AtsMode |
|
| 182 | - */ |
|
| 183 | - public function setOneClickApply($oneClickApply) |
|
| 184 | - { |
|
| 185 | - $this->oneClickApply = (bool)$oneClickApply; |
|
| 171 | + /** |
|
| 172 | + * @return bool |
|
| 173 | + */ |
|
| 174 | + public function getOneClickApply() |
|
| 175 | + { |
|
| 176 | + return $this->oneClickApply; |
|
| 177 | + } |
|
| 178 | + |
|
| 179 | + /** |
|
| 180 | + * @param bool $oneClickApply |
|
| 181 | + * @return AtsMode |
|
| 182 | + */ |
|
| 183 | + public function setOneClickApply($oneClickApply) |
|
| 184 | + { |
|
| 185 | + $this->oneClickApply = (bool)$oneClickApply; |
|
| 186 | 186 | |
| 187 | - return $this; |
|
| 188 | - } |
|
| 189 | - |
|
| 190 | - /** |
|
| 191 | - * @return array |
|
| 192 | - */ |
|
| 193 | - public function getOneClickApplyProfiles() |
|
| 194 | - { |
|
| 195 | - return $this->oneClickApplyProfiles; |
|
| 196 | - } |
|
| 197 | - |
|
| 198 | - /** |
|
| 199 | - * @param array $oneClickApplyProfiles |
|
| 200 | - * @return AtsMode |
|
| 201 | - */ |
|
| 202 | - public function setOneClickApplyProfiles(array $oneClickApplyProfiles) |
|
| 203 | - { |
|
| 204 | - $this->oneClickApplyProfiles = $oneClickApplyProfiles; |
|
| 187 | + return $this; |
|
| 188 | + } |
|
| 189 | + |
|
| 190 | + /** |
|
| 191 | + * @return array |
|
| 192 | + */ |
|
| 193 | + public function getOneClickApplyProfiles() |
|
| 194 | + { |
|
| 195 | + return $this->oneClickApplyProfiles; |
|
| 196 | + } |
|
| 197 | + |
|
| 198 | + /** |
|
| 199 | + * @param array $oneClickApplyProfiles |
|
| 200 | + * @return AtsMode |
|
| 201 | + */ |
|
| 202 | + public function setOneClickApplyProfiles(array $oneClickApplyProfiles) |
|
| 203 | + { |
|
| 204 | + $this->oneClickApplyProfiles = $oneClickApplyProfiles; |
|
| 205 | 205 | |
| 206 | - return $this; |
|
| 207 | - } |
|
| 206 | + return $this; |
|
| 207 | + } |
|
| 208 | 208 | } |
@@ -182,7 +182,7 @@ |
||
| 182 | 182 | */ |
| 183 | 183 | public function setOneClickApply($oneClickApply) |
| 184 | 184 | { |
| 185 | - $this->oneClickApply = (bool)$oneClickApply; |
|
| 185 | + $this->oneClickApply = (bool) $oneClickApply; |
|
| 186 | 186 | |
| 187 | 187 | return $this; |
| 188 | 188 | } |
@@ -101,7 +101,7 @@ |
||
| 101 | 101 | return; |
| 102 | 102 | } |
| 103 | 103 | |
| 104 | - /** |
|
| 104 | + /** |
|
| 105 | 105 | * @return mixed |
| 106 | 106 | */ |
| 107 | 107 | public function getServerUrlHelper() |
@@ -71,7 +71,7 @@ discard block |
||
| 71 | 71 | 'sendImmediately' => false |
| 72 | 72 | ], $options); |
| 73 | 73 | $view = $this->view; |
| 74 | - $currentTemplate = $view->viewModel() |
|
| 74 | + $currentTemplate = $view->viewModel() |
|
| 75 | 75 | ->getCurrent() |
| 76 | 76 | ->getTemplate(); |
| 77 | 77 | $partial = dirname($currentTemplate) . '/' . $options['partial']; |
@@ -87,10 +87,10 @@ discard block |
||
| 87 | 87 | $label = $options['oneClickLabel'] ?: $view->translate('Apply with %s'); |
| 88 | 88 | |
| 89 | 89 | foreach ($data['oneClickProfiles'] as $network) { |
| 90 | - $variables['oneClick'][] = [ |
|
| 90 | + $variables['oneClick'][] = [ |
|
| 91 | 91 | 'label' => sprintf($label, $network), |
| 92 | 92 | 'url' => $view->url('lang/apply-one-click', ['applyId' => $data['applyId'], 'network' => $network, 'immediately' => $options['sendImmediately'] ?: null], ['force_canonical' => true]), |
| 93 | - 'network' => $network |
|
| 93 | + 'network' => $network |
|
| 94 | 94 | ]; |
| 95 | 95 | } |
| 96 | 96 | } |
@@ -98,22 +98,22 @@ discard block |
||
| 98 | 98 | return $view->partial($partial, $variables); |
| 99 | 99 | } |
| 100 | 100 | |
| 101 | - /** |
|
| 102 | - * @return string |
|
| 103 | - */ |
|
| 104 | - public function getPartial() |
|
| 105 | - { |
|
| 106 | - return $this->partial; |
|
| 107 | - } |
|
| 101 | + /** |
|
| 102 | + * @return string |
|
| 103 | + */ |
|
| 104 | + public function getPartial() |
|
| 105 | + { |
|
| 106 | + return $this->partial; |
|
| 107 | + } |
|
| 108 | 108 | |
| 109 | - /** |
|
| 110 | - * @param string $partial |
|
| 111 | - * @return ApplyButtons |
|
| 112 | - */ |
|
| 113 | - public function setPartial($partial) |
|
| 114 | - { |
|
| 115 | - $this->partial = $partial; |
|
| 109 | + /** |
|
| 110 | + * @param string $partial |
|
| 111 | + * @return ApplyButtons |
|
| 112 | + */ |
|
| 113 | + public function setPartial($partial) |
|
| 114 | + { |
|
| 115 | + $this->partial = $partial; |
|
| 116 | 116 | |
| 117 | - return $this; |
|
| 118 | - } |
|
| 117 | + return $this; |
|
| 118 | + } |
|
| 119 | 119 | } |
@@ -74,7 +74,7 @@ |
||
| 74 | 74 | $currentTemplate = $view->viewModel() |
| 75 | 75 | ->getCurrent() |
| 76 | 76 | ->getTemplate(); |
| 77 | - $partial = dirname($currentTemplate) . '/' . $options['partial']; |
|
| 77 | + $partial = dirname($currentTemplate).'/'.$options['partial']; |
|
| 78 | 78 | |
| 79 | 79 | if (!$options['oneClickOnly'] && $data['uri']) { |
| 80 | 80 | $variables['default'] = [ |