Passed
Push — master ( 580f55...117038 )
by Enjoys
02:13
created
src/Expires.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -35,7 +35,7 @@  discard block
 block discarded – undo
35 35
     {
36 36
         //Срок действия cookie истечет с окончанием сессии (при закрытии браузера).
37 37
         if ($ttl === 0 || $ttl === false || strtolower((string)$ttl) === 'session') {
38
-            $this->expires =  0;
38
+            $this->expires = 0;
39 39
             return;
40 40
         }
41 41
 
@@ -47,13 +47,13 @@  discard block
 block discarded – undo
47 47
         // Если число то прибавляем значение к метке времени timestamp
48 48
         // Для установки сессионной куки надо использовать FALSE
49 49
         if (is_numeric($ttl)) {
50
-            $this->expires =  $this->currentTimestamp + (int)$ttl;
50
+            $this->expires = $this->currentTimestamp + (int)$ttl;
51 51
             return;
52 52
         }
53 53
 
54 54
         if (is_string($ttl)) {
55 55
             if (false !== $returnTtl = strtotime($ttl, $this->currentTimestamp)) {
56
-                $this->expires =  $returnTtl;
56
+                $this->expires = $returnTtl;
57 57
                 return;
58 58
             }
59 59
             throw new Exception(sprintf('strtotime() failed to convert string "%s" to timestamp', $ttl));
Please login to merge, or discard this patch.