Passed
Push — main ( f5e4ab...1e3ad4 )
by smiley
01:55
created
src/Psr7/Uri.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -277,7 +277,7 @@  discard block
 block discarded – undo
277 277
 	 * @return int|null
278 278
 	 * @throws \InvalidArgumentException
279 279
 	 */
280
-	protected function filterPort($port):?int{
280
+	protected function filterPort($port): ?int{
281 281
 
282 282
 		if($port === null){
283 283
 			return null;
@@ -295,7 +295,7 @@  discard block
 block discarded – undo
295 295
 	/**
296 296
 	 * @inheritDoc
297 297
 	 */
298
-	public function getPort():?int{
298
+	public function getPort(): ?int{
299 299
 		return $this->port;
300 300
 	}
301 301
 
@@ -473,7 +473,7 @@  discard block
 block discarded – undo
473 473
 		/** @noinspection RegExpRedundantEscape, RegExpUnnecessaryNonCapturingGroup */
474 474
 		return preg_replace_callback(
475 475
 			'/(?:[^a-z\d_\-\.~!\$&\'\(\)\*\+,;=%:@\/'.($query ? '\?' : '').']++|%(?![a-f\d]{2}))/i',
476
-			fn(array $match):string => rawurlencode($match[0]),
476
+			fn(array $match) : string => rawurlencode($match[0]),
477 477
 			$str
478 478
 		);
479 479
 
Please login to merge, or discard this patch.