@@ -129,21 +129,21 @@ |
||
129 | 129 | public function expiresAt($expiration) |
130 | 130 | { |
131 | 131 | $_php_ver = (float) PHP_VERSION; |
132 | - if ($_php_ver >= 5.5) { |
|
132 | + if ($_php_ver >= 5.5) { |
|
133 | 133 | |
134 | 134 | if ($expiration instanceof \DateTimeInterface) { |
135 | - $this->expirationDate = $expiration; |
|
136 | - } else { |
|
135 | + $this->expirationDate = $expiration; |
|
136 | + } else { |
|
137 | 137 | throw new \InvalidArgumentException('$expiration must be an object implementing the DateTimeInterface'); |
138 | - } |
|
138 | + } |
|
139 | 139 | |
140 | - } else if ($_php_ver <= 5.4) { |
|
141 | - if ($expiration instanceof \DateTime) { |
|
142 | - $this->expirationDate = $expiration; |
|
143 | - } else { |
|
140 | + } else if ($_php_ver <= 5.4) { |
|
141 | + if ($expiration instanceof \DateTime) { |
|
142 | + $this->expirationDate = $expiration; |
|
143 | + } else { |
|
144 | 144 | throw new \InvalidArgumentException('$expiration must be an object implementing the DateTime'); |
145 | - } |
|
146 | - } |
|
145 | + } |
|
146 | + } |
|
147 | 147 | |
148 | 148 | |
149 | 149 |