Passed
Branch master (3009ce)
by Rafael Damasceno
10:05
created
Category
example/cookie.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -145,13 +145,13 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/Cookie.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -59,7 +59,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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;
Please login to merge, or discard this patch.