Passed
Push — master ( b6a6e1 )
by Matt
04:06
created
src/Lever.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -70,7 +70,7 @@
 block discarded – undo
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
             }
Please login to merge, or discard this patch.
src/services/LeverService.php 2 patches
Braces   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -210,7 +210,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
             {
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -216,7 +216,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
             /**
Please login to merge, or discard this patch.