@@ -87,7 +87,7 @@ public function isFollowingRedirects(): bool
8787 public function setMaxRedirects (int $ maxRedirects )
8888 {
8989 $ this ->maxRedirects = $ maxRedirects < 0 ? -1 : $ maxRedirects ;
90- $ this ->followRedirects = -1 != $ this ->maxRedirects ;
90+ $ this ->followRedirects = -1 !== $ this ->maxRedirects ;
9191 }
9292
9393 /**
@@ -354,7 +354,7 @@ public function request(string $method, string $uri, array $parameters = [], arr
354354 $ server ['HTTP_HOST ' ] = $ this ->extractHost ($ uri );
355355 }
356356
357- $ server ['HTTPS ' ] = 'https ' == parse_url ($ uri , \PHP_URL_SCHEME );
357+ $ server ['HTTPS ' ] = 'https ' === parse_url ($ uri , \PHP_URL_SCHEME );
358358
359359 $ this ->internalRequest = new Request ($ uri , $ method , $ parameters , $ files , $ this ->cookieJar ->allValues ($ uri ), $ server , $ content );
360360
@@ -623,7 +623,7 @@ protected function getAbsoluteUri(string $uri): string
623623 }
624624
625625 // anchor or query string parameters?
626- if (!$ uri || '# ' == $ uri [0 ] || '? ' == $ uri [0 ]) {
626+ if (!$ uri || '# ' === $ uri [0 ] || '? ' = == $ uri [0 ]) {
627627 return preg_replace ('/[#?].*?$/ ' , '' , $ currentUri ).$ uri ;
628628 }
629629
@@ -654,7 +654,7 @@ private function updateServerFromUri(array $server, string $uri): array
654654 {
655655 $ server ['HTTP_HOST ' ] = $ this ->extractHost ($ uri );
656656 $ scheme = parse_url ($ uri , \PHP_URL_SCHEME );
657- $ server ['HTTPS ' ] = null === $ scheme ? $ server ['HTTPS ' ] : 'https ' == $ scheme ;
657+ $ server ['HTTPS ' ] = null === $ scheme ? $ server ['HTTPS ' ] : 'https ' === $ scheme ;
658658 unset($ server ['HTTP_IF_NONE_MATCH ' ], $ server ['HTTP_IF_MODIFIED_SINCE ' ]);
659659
660660 return $ server ;
0 commit comments