Completed
Push — master ( 8243fd...e02a77 )
by Adam
07:58
created
src/IPub/MobileDetect/Helpers/Cookie.php 1 patch
Upper-Lower-Casing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -41,7 +41,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/IPub/MobileDetect/Events/OnRequestHandler.php 1 patch
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -411,7 +411,7 @@
 block discarded – undo
411 411
 			return $option;
412 412
 		}
413 413
 
414
-		return null;
414
+		return NULL;
415 415
 	}
416 416
 
417 417
 	/**
Please login to merge, or discard this patch.