@@ -70,7 +70,7 @@ |
||
70 | 70 | Event::on( |
71 | 71 | CraftVariable::class, |
72 | 72 | CraftVariable::EVENT_INIT, |
73 | - function (Event $event) { |
|
73 | + function(Event $event) { |
|
74 | 74 | $variable = $event->sender; |
75 | 75 | $variable->set('lever', LeverVariable::class); |
76 | 76 | } |
@@ -210,7 +210,7 @@ discard block |
||
210 | 210 | */ |
211 | 211 | public function getJobById($jobId) |
212 | 212 | { |
213 | - try |
|
213 | + try |
|
214 | 214 | { |
215 | 215 | $response = $this->getClient()->get(sprintf( |
216 | 216 | 'postings/%s/%s', |
@@ -222,7 +222,7 @@ discard block |
||
222 | 222 | |
223 | 223 | return new LeverJob($responseData); |
224 | 224 | } |
225 | - catch(\GuzzleHttp\Exception\RequestException $e) |
|
225 | + catch(\GuzzleHttp\Exception\RequestException $e) |
|
226 | 226 | { |
227 | 227 | if ($e->getCode() === 404) |
228 | 228 | { |
@@ -216,7 +216,7 @@ discard block |
||
216 | 216 | |
217 | 217 | return new LeverJob($responseData); |
218 | 218 | } |
219 | - catch(\GuzzleHttp\Exception\RequestException $e) |
|
219 | + catch (\GuzzleHttp\Exception\RequestException $e) |
|
220 | 220 | { |
221 | 221 | if ($e->getCode() === 404) |
222 | 222 | { |
@@ -264,7 +264,7 @@ discard block |
||
264 | 264 | $postUrl = UrlHelper::actionUrl('lever/apply/test'); |
265 | 265 | } |
266 | 266 | |
267 | - $event = new ApplyEvent([ 'application' => $jobApplication ]); |
|
267 | + $event = new ApplyEvent(['application' => $jobApplication]); |
|
268 | 268 | |
269 | 269 | if ($this->hasEventHandlers(self::EVENT_BEFORE_VALIDATE_APPLICATION)) |
270 | 270 | { |
@@ -293,7 +293,7 @@ discard block |
||
293 | 293 | |
294 | 294 | if ($response = $this->getClient()->post( |
295 | 295 | $postUrl, |
296 | - [ 'multipart' => $jobApplication->toMultiPartPostData() ] |
|
296 | + ['multipart' => $jobApplication->toMultiPartPostData()] |
|
297 | 297 | )) |
298 | 298 | { |
299 | 299 | /** |