unify null checks - avoid method call in favor of strict check

This commit is contained in:
euromark 2013-08-16 20:12:49 +02:00
parent 8428928fd6
commit 6cf147e8c8
35 changed files with 62 additions and 62 deletions

View file

@ -536,7 +536,7 @@ class HttpSocket extends CakeSocket {
* @return mixed Either false on failure or a string containing the composed URL.
*/
public function url($url = null, $uriTemplate = null) {
if (is_null($url)) {
if ($url === null) {
$url = '/';
}
if (is_string($url)) {