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.
Completed
Push — master ( dc9597...e55f0d )
by Marco
03:36
created
src/functions.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -23,11 +23,11 @@  discard block
 block discarded – undo
23 23
          *
24 24
          * @psalm-return Closure(): callable
25 25
          */
26
-        static function (
26
+        static function(
27 27
             callable $f,
28 28
             ?int $numberOfParameters = null,
29 29
             array $parameters = []
30
-        ) use (&$innerCurry): Closure {
30
+        ) use (&$innerCurry) : Closure {
31 31
             if (null === $numberOfParameters) {
32 32
                 // retrieve number of parameters from reflection
33 33
                 $fClosure = Closure::fromCallable($f);
@@ -36,7 +36,7 @@  discard block
 block discarded – undo
36 36
             }
37 37
 
38 38
             /** @psalm-suppress MissingClosureReturnType */
39
-            return static function () use ($f, $numberOfParameters, $parameters, $innerCurry) {
39
+            return static function() use ($f, $numberOfParameters, $parameters, $innerCurry) {
40 40
                 /** @var array<int, mixed> $newParameters */
41 41
                 $newParameters = array_merge($parameters, func_get_args());
42 42
 
@@ -60,7 +60,7 @@  discard block
 block discarded – undo
60 60
 function uncurry(callable $f): Closure
61 61
 {
62 62
     /** @psalm-suppress MissingClosureReturnType */
63
-    return static function (...$params) use ($f) {
63
+    return static function(...$params) use ($f) {
64 64
         if ([] === $params) {
65 65
             return $f();
66 66
         }
@@ -69,7 +69,7 @@  discard block
 block discarded – undo
69 69
 
70 70
         $firstApplication = $f($firstParam);
71 71
 
72
-        if (! is_callable($firstApplication)) {
72
+        if (!is_callable($firstApplication)) {
73 73
             return $firstApplication;
74 74
         }
75 75
 
Please login to merge, or discard this patch.
src/Basic/IsNull.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@
 block discarded – undo
24 24
             /**
25 25
              * @psalm-param T $data
26 26
              */
27
-            function ($data): bool {
27
+            function($data): bool {
28 28
                 return null === $data;
29 29
             },
30 30
             $data,
Please login to merge, or discard this patch.
src/Basic/ComposingAssertion.php 1 patch
Spacing   +3 added lines, -4 removed lines patch added patch discarded remove patch
@@ -39,7 +39,7 @@  discard block
 block discarded – undo
39 39
              * @return string[]
40 40
              * @psalm-return array{0:mixed}
41 41
              */
42
-            function ($data) use ($translator): array {
42
+            function($data) use ($translator): array {
43 43
                 return [$translator->translate(static::MESSAGE)];
44 44
             }
45 45
         );
@@ -65,14 +65,13 @@  discard block
 block discarded – undo
65 65
         return IsAsAsserted::withAssertionAndErrorFormatter(
66 66
             $assertion,
67 67
             is_callable($this->errorFormatter) ?
68
-                $this->errorFormatter :
69
-                /**
68
+                $this->errorFormatter : /**
70 69
                  * @param mixed $data
71 70
                  * @psalm-param T $data
72 71
                  * @return string[]
73 72
                  * @psalm-return array{0:mixed}
74 73
                  */
75
-                function ($data): array {
74
+                function($data): array {
76 75
                     return [static::MESSAGE];
77 76
                 }
78 77
         )->validate($data, $context);
Please login to merge, or discard this patch.
src/Basic/IsNotNull.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@
 block discarded – undo
24 24
             /**
25 25
              * @psalm-param T $data
26 26
              */
27
-            function ($data): bool {
27
+            function($data): bool {
28 28
                 return null !== $data;
29 29
             },
30 30
             $data,
Please login to merge, or discard this patch.
src/Basic/HasKey.php 1 patch
Spacing   +4 added lines, -5 removed lines patch added patch discarded remove patch
@@ -28,8 +28,7 @@  discard block
 block discarded – undo
28 28
     {
29 29
         $this->key = $key;
30 30
         $this->errorFormatter = is_callable($errorFormatter) ?
31
-            $errorFormatter :
32
-            /**
31
+            $errorFormatter : /**
33 32
              * @template T
34 33
              * @param string $key
35 34
              * @param mixed $data
@@ -37,7 +36,7 @@  discard block
 block discarded – undo
37 36
              * @return string[]
38 37
              * @psalm-return array{0:string}
39 38
              */
40
-            function (string $key, $data): array {
39
+            function(string $key, $data): array {
41 40
                 return [self::MISSING_KEY];
42 41
             };
43 42
     }
@@ -64,7 +63,7 @@  discard block
 block discarded – undo
64 63
              * @return string[]
65 64
              * @psalm-return array{0:string}
66 65
              */
67
-            function (string $key, $data) use ($translator): array {
66
+            function(string $key, $data) use ($translator): array {
68 67
                 return [$translator->translate(self::MISSING_KEY)];
69 68
             }
70 69
         );
@@ -72,7 +71,7 @@  discard block
 block discarded – undo
72 71
 
73 72
     public function validate($data, array $context = []): ValidationResult
74 73
     {
75
-        if (! array_key_exists($this->key, $data)) {
74
+        if (!array_key_exists($this->key, $data)) {
76 75
             return ValidationResult::errors(($this->errorFormatter)($this->key, $data));
77 76
         }
78 77
 
Please login to merge, or discard this patch.
src/Basic/Regex.php 1 patch
Spacing   +3 added lines, -4 removed lines patch added patch discarded remove patch
@@ -28,8 +28,7 @@  discard block
 block discarded – undo
28 28
     {
29 29
         $this->pattern = $pattern;
30 30
         $this->errorFormatter = is_callable($errorFormatter) ?
31
-            $errorFormatter :
32
-            /**
31
+            $errorFormatter : /**
33 32
              * @template T
34 33
              * @param string $pattern
35 34
              * @param mixed $data
@@ -37,7 +36,7 @@  discard block
 block discarded – undo
37 36
              * @return string[]
38 37
              * @psalm-return array{0:string}
39 38
              */
40
-            function (string $pattern, $data): array {
39
+            function(string $pattern, $data): array {
41 40
                 return [self::MESSAGE];
42 41
             };
43 42
     }
@@ -64,7 +63,7 @@  discard block
 block discarded – undo
64 63
              * @return string[]
65 64
              * @psalm-return array{0:string}
66 65
              */
67
-            function (string $pattern, $data) use ($translator): array {
66
+            function(string $pattern, $data) use ($translator): array {
68 67
                 return [$translator->translate(self::MESSAGE)];
69 68
             }
70 69
         );
Please login to merge, or discard this patch.
src/Basic/IsAsAsserted.php 1 patch
Spacing   +4 added lines, -5 removed lines patch added patch discarded remove patch
@@ -27,15 +27,14 @@  discard block
 block discarded – undo
27 27
     {
28 28
         $this->assertion = $assertion;
29 29
         $this->errorFormatter = is_callable($errorFormatter) ?
30
-            $errorFormatter :
31
-            /**
30
+            $errorFormatter : /**
32 31
              * @template T
33 32
              * @param mixed $data
34 33
              * @psalm-param T $data
35 34
              * @return string[]
36 35
              * @psalm-return array{0:string}
37 36
              */
38
-            function ($data): array {
37
+            function($data): array {
39 38
                 return [self::NOT_AS_ASSERTED];
40 39
             };
41 40
     }
@@ -61,7 +60,7 @@  discard block
 block discarded – undo
61 60
              * @return string[]
62 61
              * @psalm-return array{0:string}
63 62
              */
64
-            function ($data) use ($translator): array {
63
+            function($data) use ($translator): array {
65 64
                 return [$translator->translate(self::NOT_AS_ASSERTED)];
66 65
             }
67 66
         );
@@ -69,7 +68,7 @@  discard block
 block discarded – undo
69 68
 
70 69
     public function validate($data, array $context = []): ValidationResult
71 70
     {
72
-        if (! ($this->assertion)($data)) {
71
+        if (!($this->assertion)($data)) {
73 72
             return ValidationResult::errors(($this->errorFormatter)($data));
74 73
         }
75 74
 
Please login to merge, or discard this patch.
src/Basic/HasNotKey.php 1 patch
Spacing   +3 added lines, -4 removed lines patch added patch discarded remove patch
@@ -27,8 +27,7 @@  discard block
 block discarded – undo
27 27
     {
28 28
         $this->key = $key;
29 29
         $this->errorFormatter = is_callable($errorFormatter) ?
30
-            $errorFormatter :
31
-            /**
30
+            $errorFormatter : /**
32 31
              * @template T
33 32
              * @param string $key
34 33
              * @param mixed $data
@@ -36,7 +35,7 @@  discard block
 block discarded – undo
36 35
              * @return string[]
37 36
              * @psalm-return array{0:string}
38 37
              */
39
-            function (string $key, $data): array {
38
+            function(string $key, $data): array {
40 39
                 return [self::PRESENT_KEY];
41 40
             };
42 41
     }
@@ -63,7 +62,7 @@  discard block
 block discarded – undo
63 62
              * @return string[]
64 63
              * @psalm-return array{0:string}
65 64
              */
66
-            function (string $key, $data) use ($translator): array {
65
+            function(string $key, $data) use ($translator): array {
67 66
                 return [$translator->translate(self::PRESENT_KEY)];
68 67
             }
69 68
         );
Please login to merge, or discard this patch.
src/Basic/NonEmpty.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@
 block discarded – undo
24 24
             /**
25 25
              * @psalm-param T $data
26 26
              */
27
-            function ($data): bool {
27
+            function($data): bool {
28 28
                 return !empty($data);
29 29
             },
30 30
             $data,
Please login to merge, or discard this patch.