@@ -53,7 +53,7 @@ discard block |
||
| 53 | 53 | /** code that does the actualy population of data from the given array in blueprint */ |
| 54 | 54 | private function populateEntity($instance, $parameters) |
| 55 | 55 | { |
| 56 | - foreach ((array)$parameters as $key => $value) { |
|
| 56 | + foreach ((array) $parameters as $key => $value) { |
|
| 57 | 57 | $method = 'set' . str_replace('_', '', $key); |
| 58 | 58 | if (method_exists($instance, $method)) { |
| 59 | 59 | $instance->{$method}($value); |
@@ -233,7 +233,7 @@ discard block |
||
| 233 | 233 | |
| 234 | 234 | public function offsetGet($offset) |
| 235 | 235 | { |
| 236 | - if (isset($this->indexed[$offset])){ |
|
| 236 | + if (isset($this->indexed[$offset])) { |
|
| 237 | 237 | return $this->indexed[$offset]; |
| 238 | 238 | } |
| 239 | 239 | |
@@ -13,7 +13,7 @@ |
||
| 13 | 13 | */ |
| 14 | 14 | public function applyValues($instance, array $parameters) |
| 15 | 15 | { |
| 16 | - foreach ((array)$parameters as $key => $value) { |
|
| 16 | + foreach ((array) $parameters as $key => $value) { |
|
| 17 | 17 | $method = 'set' . str_replace('_', '', $key); |
| 18 | 18 | if (method_exists($instance, $method)) { |
| 19 | 19 | $instance->{$method}($value); |
@@ -22,10 +22,10 @@ |
||
| 22 | 22 | const ACTION_RESET = 2; |
| 23 | 23 | |
| 24 | 24 | const STATUS_ANY = null; |
| 25 | - const STATUS_NEW = 1; // not veriefoed user |
|
| 26 | - const STATUS_ACTIVE = 2; // this is the "good" state |
|
| 25 | + const STATUS_NEW = 1; // not veriefoed user |
|
| 26 | + const STATUS_ACTIVE = 2; // this is the "good" state |
|
| 27 | 27 | const STATUS_DISCARDED = 3; // user logged out or changed password |
| 28 | - const STATUS_BLOCKED = 4; // someone tried to us an invalid auth cookie |
|
| 28 | + const STATUS_BLOCKED = 4; // someone tried to us an invalid auth cookie |
|
| 29 | 29 | const STATUS_EXPIRED = 5; |
| 30 | 30 | |
| 31 | 31 | const TYPE_ANY = null; |
@@ -137,7 +137,7 @@ |
||
| 137 | 137 | |
| 138 | 138 | $mapper = $this->mapperFactory->create(Mapper\CookieIdentity::class); |
| 139 | 139 | |
| 140 | - if ($identity->getExpiresOn() < time()) { |
|
| 140 | + if ($identity->getExpiresOn() < time()) { |
|
| 141 | 141 | $identity->setStatus(Entity\Identity::STATUS_EXPIRED); |
| 142 | 142 | $mapper->store($identity); |
| 143 | 143 | $this->logger->info('cookie expired', [ |