Skip to content
This repository was archived by the owner on Jan 30, 2020. It is now read-only.

Commit bd15e5e

Browse files
committed
bracket and === fix
1 parent 9a0bcb7 commit bd15e5e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Client.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -327,13 +327,13 @@ public function setUri($uri)
327327
$uri = $this->getUri();
328328

329329
// Set auth if username and password has been specified in the uri
330-
if ($user = $uri->getUser() && $password = $uri->getPassword()) {
330+
if (($user = $uri->getUser()) && ($password = $uri->getPassword())) {
331331
$this->setAuth($user, $password);
332332
}
333333

334334
// We have no ports, set the defaults
335335
if (! $uri->getPort() && $uri->isAbsolute()) {
336-
$uri->setPort(($uri->getScheme() == 'https' ? 443 : 80));
336+
$uri->setPort($uri->getScheme() === 'https' ? 443 : 80);
337337
}
338338
}
339339
return $this;
@@ -904,7 +904,7 @@ public function send(Request $request = null)
904904
}
905905
// If we have no ports, set the defaults
906906
if (! $uri->getPort() && $uri->isAbsolute()) {
907-
$uri->setPort($uri->getScheme() == 'https' ? 443 : 80);
907+
$uri->setPort($uri->getScheme() === 'https' ? 443 : 80);
908908
}
909909

910910
// method

0 commit comments

Comments
 (0)