@@ -38,7 +38,7 @@ discard block |
||
38 | 38 | * @return array |
39 | 39 | */ |
40 | 40 | public static function cleanParams(iterable $params, int $bool_cast = null, bool $remove_empty = null):array{ |
41 | - $bool_cast ??= self::BOOLEANS_AS_BOOL; |
|
41 | + $bool_cast ??= self::BOOLEANS_AS_BOOL; |
|
42 | 42 | $remove_empty ??= true; |
43 | 43 | |
44 | 44 | $cleaned = []; |
@@ -102,7 +102,7 @@ discard block |
||
102 | 102 | return ''; |
103 | 103 | } |
104 | 104 | |
105 | - $encoding ??= PHP_QUERY_RFC3986; |
|
105 | + $encoding ??= PHP_QUERY_RFC3986; |
|
106 | 106 | $enclosure ??= ''; |
107 | 107 | $delimiter ??= '&'; |
108 | 108 |
@@ -276,7 +276,7 @@ discard block |
||
276 | 276 | * @return int|null |
277 | 277 | * @throws \InvalidArgumentException |
278 | 278 | */ |
279 | - private function filterPort($port):?int{ |
|
279 | + private function filterPort($port): ?int{ |
|
280 | 280 | |
281 | 281 | if($port === null){ |
282 | 282 | return null; |
@@ -294,7 +294,7 @@ discard block |
||
294 | 294 | /** |
295 | 295 | * @inheritDoc |
296 | 296 | */ |
297 | - public function getPort():?int{ |
|
297 | + public function getPort(): ?int{ |
|
298 | 298 | return $this->port; |
299 | 299 | } |
300 | 300 | |
@@ -472,7 +472,7 @@ discard block |
||
472 | 472 | /** @noinspection RegExpRedundantEscape, RegExpUnnecessaryNonCapturingGroup */ |
473 | 473 | return preg_replace_callback( |
474 | 474 | '/(?:[^a-z\d_\-\.~!\$&\'\(\)\*\+,;=%:@\/'.($query ? '\?' : '').']++|%(?![a-f\d]{2}))/i', |
475 | - fn(array $match):string => rawurlencode($match[0]), |
|
475 | + fn(array $match) : string => rawurlencode($match[0]), |
|
476 | 476 | $str |
477 | 477 | ); |
478 | 478 |
@@ -270,7 +270,7 @@ |
||
270 | 270 | * |
271 | 271 | * @link https://github.com/guzzle/psr7/blob/c0dcda9f54d145bd4d062a6d15f54931a67732f9/src/Uri.php#L89-L130 |
272 | 272 | */ |
273 | -function parseUrl(string $url):?array{ |
|
273 | +function parseUrl(string $url): ?array{ |
|
274 | 274 | // If IPv6 |
275 | 275 | $prefix = ''; |
276 | 276 | /** @noinspection RegExpRedundantEscape */ |