@@ -41,7 +41,7 @@ discard block |
||
41 | 41 | * |
42 | 42 | * @api |
43 | 43 | */ |
44 | - public function __construct($name, $value = null, $expire = 0, $path = '/', $domain = null, $secure = false, $httpOnly = true) |
|
44 | + public function __construct($name, $value = NULL, $expire = 0, $path = '/', $domain = NULL, $secure = FALSE, $httpOnly = TRUE) |
|
45 | 45 | { |
46 | 46 | // from PHP source code |
47 | 47 | if (preg_match("/[=,; \t\r\n\013\014]/", $name)) { |
@@ -59,7 +59,7 @@ discard block |
||
59 | 59 | } elseif (!is_numeric($expire)) { |
60 | 60 | $expire = strtotime($expire); |
61 | 61 | |
62 | - if (false === $expire || -1 === $expire) { |
|
62 | + if (FALSE === $expire || -1 === $expire) { |
|
63 | 63 | throw new Nette\InvalidArgumentException('The cookie expiration time is not valid.'); |
64 | 64 | } |
65 | 65 | } |
@@ -101,11 +101,11 @@ discard block |
||
101 | 101 | $str .= '; domain='.$this->getDomain(); |
102 | 102 | } |
103 | 103 | |
104 | - if (true === $this->isSecure()) { |
|
104 | + if (TRUE === $this->isSecure()) { |
|
105 | 105 | $str .= '; secure'; |
106 | 106 | } |
107 | 107 | |
108 | - if (true === $this->isHttpOnly()) { |
|
108 | + if (TRUE === $this->isHttpOnly()) { |
|
109 | 109 | $str .= '; httponly'; |
110 | 110 | } |
111 | 111 |
@@ -411,7 +411,7 @@ |
||
411 | 411 | return $option; |
412 | 412 | } |
413 | 413 | |
414 | - return null; |
|
414 | + return NULL; |
|
415 | 415 | } |
416 | 416 | |
417 | 417 | /** |