@@ -188,7 +188,7 @@ discard block |
||
188 | 188 | |
189 | 189 | return new LeverJob($responseData); |
190 | 190 | } |
191 | - catch(\GuzzleHttp\Exception\RequestException $e) |
|
191 | + catch (\GuzzleHttp\Exception\RequestException $e) |
|
192 | 192 | { |
193 | 193 | if ($e->getCode() === 404) |
194 | 194 | { |
@@ -267,7 +267,7 @@ discard block |
||
267 | 267 | return false; |
268 | 268 | } |
269 | 269 | |
270 | - $event = new ApplyEvent([ 'application' => $application ]); |
|
270 | + $event = new ApplyEvent(['application' => $application]); |
|
271 | 271 | |
272 | 272 | if ($this->hasEventHandlers(self::EVENT_BEFORE_SEND_APPLICATION)) |
273 | 273 | { |
@@ -282,7 +282,7 @@ discard block |
||
282 | 282 | return true; |
283 | 283 | } |
284 | 284 | |
285 | - if ($response = $this->client->post($postUrl, [ 'multipart' => $application->toMultiPartPostData() ])) |
|
285 | + if ($response = $this->client->post($postUrl, ['multipart' => $application->toMultiPartPostData()])) |
|
286 | 286 | { |
287 | 287 | if ($response->getStatusCode() === 200 && isset($response->getBody()->applicationId)) |
288 | 288 | { |
@@ -181,14 +181,14 @@ |
||
181 | 181 | |
182 | 182 | public function getJobById($jobId) |
183 | 183 | { |
184 | - try |
|
184 | + try |
|
185 | 185 | { |
186 | 186 | $response = $this->client->get(sprintf('postings/%s/%s', $this->settings->site, $jobId)); |
187 | 187 | $responseData = json_decode($response->getBody()); |
188 | 188 | |
189 | 189 | return new LeverJob($responseData); |
190 | 190 | } |
191 | - catch(\GuzzleHttp\Exception\RequestException $e) |
|
191 | + catch(\GuzzleHttp\Exception\RequestException $e) |
|
192 | 192 | { |
193 | 193 | if ($e->getCode() === 404) |
194 | 194 | { |
@@ -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 | } |