GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.
Passed
Push — master ( ce666c...ad933a )
by Cals
07:14
created
src/AjaxValidator.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@  discard block
 block discarded – undo
21 21
      * @param array $messages
22 22
      * @param bool $sometimes
23 23
      */
24
-    public function validate(array $values = [], $resource, array $messages = [], $sometimes = false)
24
+    public function validate(array $values = [ ], $resource, array $messages = [ ], $sometimes = false)
25 25
     {
26 26
         $rules = $this->rules($resource);
27 27
         $messages = $this->messages($messages);
@@ -29,7 +29,7 @@  discard block
 block discarded – undo
29 29
         $validator = Validator::make($values, $rules, $messages, $attributes);
30 30
         if ($sometimes) {
31 31
             $extraRules = $this->rules('sometimes' . $resource);
32
-            $validator->sometimes(array_keys($extraRules), $extraRules, function () use ($sometimes) {
32
+            $validator->sometimes(array_keys($extraRules), $extraRules, function() use ($sometimes) {
33 33
                 return $sometimes;
34 34
             });
35 35
         }
@@ -37,7 +37,7 @@  discard block
 block discarded – undo
37 37
             (new JsonResponse(null, 422))
38 38
                 ->header('Access-Control-Allow-Origin', '*')
39 39
                 ->header('Access-Control-Allow-Methods', '*')
40
-                ->setData(['errors' => $validator->errors()])
40
+                ->setData([ 'errors' => $validator->errors() ])
41 41
                 ->send();
42 42
             exit(0);
43 43
         }
Please login to merge, or discard this patch.
src/ValidatorServiceProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@
 block discarded – undo
28 28
         $this->mergeConfigFrom(
29 29
             __DIR__ . '/config/default.php', 'validator'
30 30
         );
31
-        $this->app->singleton('Cals\Validator\AjaxValidator', function () {
31
+        $this->app->singleton('Cals\Validator\AjaxValidator', function() {
32 32
             return new AjaxValidator();
33 33
         });
34 34
     }
Please login to merge, or discard this patch.