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 ( e08f00...7f3a7c )
by Marco
01:47
created
src/Basic/Errors.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@
 block discarded – undo
26 26
              * @psalm-param T $data
27 27
              * @return false
28 28
              */
29
-            function ($data): bool {
29
+            function($data): bool {
30 30
                 return false;
31 31
             };
32 32
 
Please login to merge, or discard this patch.
src/Basic/InArray.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->values = $values;
30 30
         $this->errorFormatter = is_callable($errorFormatter) ?
31
-            $errorFormatter :
32
-            /**
31
+            $errorFormatter : /**
33 32
              * @template T
34 33
              * @param array $values
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 (array $values, $data): array {
39
+            function(array $values, $data): array {
41 40
                 return [self::NOT_IN_ARRAY];
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 (array $values, $data) use ($translator): array {
66
+            function(array $values, $data) use ($translator): array {
68 67
                 return [$translator->translate(self::NOT_IN_ARRAY)];
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 (! in_array($data, $this->values, true)) {
74
+        if (!in_array($data, $this->values, true)) {
76 75
             return ValidationResult::errors(($this->errorFormatter)($this->values, $data));
77 76
         }
78 77
 
Please login to merge, or discard this patch.
src/Basic/Compare.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -50,7 +50,7 @@  discard block
 block discarded – undo
50 50
              * @return string[]
51 51
              * @psalm-return array{0:mixed}
52 52
              */
53
-            function ($comparisonBasis, $data): array {
53
+            function($comparisonBasis, $data): array {
54 54
 
55 55
                 return [static::MESSAGE];
56 56
             }
@@ -86,7 +86,7 @@  discard block
 block discarded – undo
86 86
              * @return string[]
87 87
              * @psalm-return array{0:mixed}
88 88
              */
89
-            function ($comparisonBasis, $data) use ($translator): array {
89
+            function($comparisonBasis, $data) use ($translator): array {
90 90
                 return [$translator->translate(static::MESSAGE)];
91 91
             }
92 92
         );
@@ -117,14 +117,14 @@  discard block
 block discarded – undo
117 117
              * @param mixed $data
118 118
              * @psalm-param B $data
119 119
              */
120
-            function ($data) use ($comparisonBasis, $assertion): bool {
120
+            function($data) use ($comparisonBasis, $assertion): bool {
121 121
                 return $assertion($comparisonBasis, $data);
122 122
             },
123 123
             /**
124 124
              * @param mixed $data
125 125
              * @psalm-param B $data
126 126
              */
127
-            function ($data) use ($comparisonBasis, $errorFormatter): array {
127
+            function($data) use ($comparisonBasis, $errorFormatter): array {
128 128
                 return $errorFormatter($comparisonBasis, $data);
129 129
             }
130 130
         )->validate($data, $context);
Please login to merge, or discard this patch.
src/Basic/IsGreaterThan.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@
 block discarded – undo
27 27
              * @psalm-param T $bound
28 28
              * @psalm-param T $data
29 29
              */
30
-            function ($bound, $data): bool {
30
+            function($bound, $data): bool {
31 31
                 return $data > $bound;
32 32
             },
33 33
             $data,
Please login to merge, or discard this patch.
src/Combinator/Associative.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -48,7 +48,7 @@  discard block
 block discarded – undo
48 48
                  * @param Validation $validation
49 49
                  * @return Validation
50 50
                  */
51
-                static function ($key, Validation $validation) {
51
+                static function($key, Validation $validation) {
52 52
                     return MapErrors::to(
53 53
                         Sequence::validations([
54 54
                             HasKey::withKey($key),
@@ -57,7 +57,7 @@  discard block
 block discarded – undo
57 57
                                  * @param array $wholeData
58 58
                                  * @return mixed
59 59
                                  */
60
-                                static function (array $wholeData) use ($key) {
60
+                                static function(array $wholeData) use ($key) {
61 61
                                     return $wholeData[$key];
62 62
                                 },
63 63
                                 $validation
@@ -67,7 +67,7 @@  discard block
 block discarded – undo
67 67
                          * @param array $messages
68 68
                          * @return array
69 69
                          */
70
-                        static function (array $messages) use ($key) {
70
+                        static function(array $messages) use ($key) {
71 71
                             return [$key => $messages];
72 72
                         }
73 73
                     );
Please login to merge, or discard this patch.
src/functions.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@  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 = []
@@ -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
 
@@ -63,7 +63,7 @@  discard block
 block discarded – undo
63 63
      * @psalm-suppress MissingClosureParamType
64 64
      * @psalm-suppress MissingClosureReturnType
65 65
      */
66
-    return static function (...$params) use ($f) {
66
+    return static function(...$params) use ($f) {
67 67
         if ([] === $params) {
68 68
             return $f();
69 69
         }
@@ -72,7 +72,7 @@  discard block
 block discarded – undo
72 72
 
73 73
         $firstApplication = $f($firstParam);
74 74
 
75
-        if (! is_callable($firstApplication)) {
75
+        if (!is_callable($firstApplication)) {
76 76
             return $firstApplication;
77 77
         }
78 78
 
Please login to merge, or discard this patch.