@@ -78,7 +78,7 @@ |
||
| 78 | 78 | $pairs = null === $query ? [] : explode('&', $query); |
| 79 | 79 | sort($pairs, SORT_REGULAR); |
| 80 | 80 | |
| 81 | - $replace = static function (array $matches): string { |
|
| 81 | + $replace = static function(array $matches): string { |
|
| 82 | 82 | return rawurldecode($matches[0]); |
| 83 | 83 | }; |
| 84 | 84 | |
@@ -961,7 +961,7 @@ |
||
| 961 | 961 | return $path; |
| 962 | 962 | } |
| 963 | 963 | |
| 964 | - $replace = static function (array $matches): string { |
|
| 964 | + $replace = static function(array $matches): string { |
|
| 965 | 965 | return $matches['delim'].str_replace('|', ':', $matches['root']).$matches['rest']; |
| 966 | 966 | }; |
| 967 | 967 | |
@@ -87,8 +87,8 @@ discard block |
||
| 87 | 87 | * @link https://tools.ietf.org/html/rfc6570#appendix-A |
| 88 | 88 | */ |
| 89 | 89 | private const OPERATOR_HASH_LOOKUP = [ |
| 90 | - '' => ['prefix' => '', 'joiner' => ',', 'query' => false], |
|
| 91 | - '+' => ['prefix' => '', 'joiner' => ',', 'query' => false], |
|
| 90 | + '' => ['prefix' => '', 'joiner' => ',', 'query' => false], |
|
| 91 | + '+' => ['prefix' => '', 'joiner' => ',', 'query' => false], |
|
| 92 | 92 | '#' => ['prefix' => '#', 'joiner' => ',', 'query' => false], |
| 93 | 93 | '.' => ['prefix' => '.', 'joiner' => '.', 'query' => false], |
| 94 | 94 | '/' => ['prefix' => '/', 'joiner' => '/', 'query' => false], |
@@ -255,7 +255,7 @@ discard block |
||
| 255 | 255 | */ |
| 256 | 256 | private function filterVariables(array $variables): array |
| 257 | 257 | { |
| 258 | - $filter = function ($key): bool { |
|
| 258 | + $filter = function($key): bool { |
|
| 259 | 259 | return in_array($key, $this->variableNames, true); |
| 260 | 260 | }; |
| 261 | 261 | |
@@ -362,7 +362,7 @@ discard block |
||
| 362 | 362 | $parts[] = $this->expandVariable($variable, $expression['operator'], $joiner, $useQuery); |
| 363 | 363 | } |
| 364 | 364 | |
| 365 | - $nullFilter = static function ($value): bool { |
|
| 365 | + $nullFilter = static function($value): bool { |
|
| 366 | 366 | return null !== $value && '' !== $value; |
| 367 | 367 | }; |
| 368 | 368 | |