Skip to content

Commit

Permalink
Removed explicit boolean conversion using ternary operator and unnece…
Browse files Browse the repository at this point in the history
…ssary encapsulation
  • Loading branch information
mishak87 committed Jan 30, 2012
1 parent 4ee64b9 commit 8c7ab65
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions library/Zend/Http/Client.php
Expand Up @@ -799,7 +799,7 @@ public function send(Request $request = null)
}
// If we have no ports, set the defaults
if (!$uri->getPort()) {
$uri->setPort(($uri->getScheme() == 'https' ? 443 : 80));
$uri->setPort($uri->getScheme() == 'https' ? 443 : 80);
}

// method
Expand All @@ -811,7 +811,7 @@ public function send(Request $request = null)
// headers
$headers = $this->prepareHeaders($body,$uri);

$secure = ($uri->getScheme() == 'https') ? true : false;
$secure = $uri->getScheme() == 'https';

// cookies
$cookie = $this->prepareCookies($uri->getHost(), $uri->getPath(), $secure);
Expand Down

0 comments on commit 8c7ab65

Please sign in to comment.