@@ -145,13 +145,13 @@ discard block |
||
145 | 145 | /** |
146 | 146 | * get path |
147 | 147 | */ |
148 | -echo "Path: " . $cookie->getPath(); |
|
148 | +echo "Path: " . $cookie->getPath(); |
|
149 | 149 | echo "<br><br>"; |
150 | 150 | |
151 | 151 | /** |
152 | 152 | * get domain |
153 | 153 | */ |
154 | -echo "Domain: " . $cookie->getDomain(); |
|
154 | +echo "Domain: " . $cookie->getDomain(); |
|
155 | 155 | echo "<br><br>"; |
156 | 156 | |
157 | 157 | /** |
@@ -176,7 +176,7 @@ discard block |
||
176 | 176 | /* |
177 | 177 | * check if exists cookie and delete cookie |
178 | 178 | */ |
179 | -if($cookie->hasCookie()){ |
|
179 | +if ($cookie->hasCookie()) { |
|
180 | 180 | var_dump($cookie); |
181 | 181 | } |
182 | 182 |
@@ -59,7 +59,7 @@ discard block |
||
59 | 59 | * Return the values of the cookie |
60 | 60 | * @return string|null the value of the cookie that will be stored on the client's machine |
61 | 61 | */ |
62 | - public function getValue(): null|string |
|
62 | + public function getValue(): null | string |
|
63 | 63 | { |
64 | 64 | return $this->value; |
65 | 65 | } |
@@ -239,7 +239,7 @@ discard block |
||
239 | 239 | */ |
240 | 240 | public function hasCookie(): bool |
241 | 241 | { |
242 | - if(self::has($this->name, $this->value)){ |
|
242 | + if (self::has($this->name, $this->value)) { |
|
243 | 243 | return true; |
244 | 244 | } |
245 | 245 | return false; |