@@ -57,7 +57,7 @@ discard block |
||
57 | 57 | */ |
58 | 58 | public function getItems(array $keys = array()) |
59 | 59 | { |
60 | - return array_combine($keys, array_map(function ($key) { |
|
60 | + return array_combine($keys, array_map(function($key) { |
|
61 | 61 | return $this->getItem($key); |
62 | 62 | }, $keys)); |
63 | 63 | } |
@@ -72,7 +72,7 @@ discard block |
||
72 | 72 | if (isset($this->deferred[$key])) { |
73 | 73 | $item = $this->deferred[$key]; |
74 | 74 | |
75 | - if (! $item->getExpiresAt()) { |
|
75 | + if (!$item->getExpiresAt()) { |
|
76 | 76 | return true; |
77 | 77 | } |
78 | 78 | |
@@ -108,7 +108,7 @@ discard block |
||
108 | 108 | |
109 | 109 | unset($this->deferred[$key]); |
110 | 110 | |
111 | - if (! $this->hasItem($key)) { |
|
111 | + if (!$this->hasItem($key)) { |
|
112 | 112 | return true; |
113 | 113 | } |
114 | 114 | |
@@ -142,7 +142,7 @@ discard block |
||
142 | 142 | $expiresAt = $item->getExpiresAt(); |
143 | 143 | |
144 | 144 | try { |
145 | - if (! $expiresAt) { |
|
145 | + if (!$expiresAt) { |
|
146 | 146 | $this->repository->forever($item->getKey(), serialize($item->get())); |
147 | 147 | } else { |
148 | 148 | $now = new DateTimeImmutable('now', $expiresAt->getTimezone()); |
@@ -81,7 +81,7 @@ discard block |
||
81 | 81 | */ |
82 | 82 | public function expiresAt($expires) |
83 | 83 | { |
84 | - if ($expires instanceof DateTimeInterface && ! $expires instanceof DateTimeImmutable) { |
|
84 | + if ($expires instanceof DateTimeInterface && !$expires instanceof DateTimeImmutable) { |
|
85 | 85 | $expires = DateTimeImmutable::createFromMutable($expires); |
86 | 86 | } |
87 | 87 | |
@@ -97,7 +97,7 @@ discard block |
||
97 | 97 | { |
98 | 98 | $this->expires = new DateTimeImmutable(); |
99 | 99 | |
100 | - if (! $time instanceof DateInterval) { |
|
100 | + if (!$time instanceof DateInterval) { |
|
101 | 101 | $time = new DateInterval(sprintf('PT%sS', $time)); |
102 | 102 | } |
103 | 103 |