@@ -40,7 +40,7 @@ discard block |
||
| 40 | 40 | */ |
| 41 | 41 | public function remind($credential_id) { |
| 42 | 42 | $credential = $this->credentialService->getCredentialById($credential_id, $this->userId); |
| 43 | - if($credential) { |
|
| 43 | + if ($credential) { |
|
| 44 | 44 | $credential->setExpireTime(time() + (24 * 60 * 60)); |
| 45 | 45 | $this->credentialService->upd($credential); |
| 46 | 46 | |
@@ -59,7 +59,7 @@ discard block |
||
| 59 | 59 | public function read($credential_id) { |
| 60 | 60 | |
| 61 | 61 | $credential = $this->credentialService->getCredentialById($credential_id, $this->userId); |
| 62 | - if($credential) { |
|
| 62 | + if ($credential) { |
|
| 63 | 63 | $credential->setExpireTime(0); |
| 64 | 64 | $this->credentialService->upd($credential); |
| 65 | 65 | |
@@ -167,13 +167,13 @@ discard block |
||
| 167 | 167 | $activity . '_self', array($label, $this->userId, $revision_created), |
| 168 | 168 | '', array(), |
| 169 | 169 | $link, $this->userId, Activity::TYPE_ITEM_ACTION); |
| 170 | - } else if (($storedCredential->getDeleteTime() === 0) && (int)$delete_time > 0) { |
|
| 170 | + } else if (($storedCredential->getDeleteTime() === 0) && (int) $delete_time > 0) { |
|
| 171 | 171 | $activity = 'item_deleted'; |
| 172 | 172 | $this->activityService->add( |
| 173 | 173 | $activity . '_self', array($label, $this->userId), |
| 174 | 174 | '', array(), |
| 175 | 175 | $link, $this->userId, Activity::TYPE_ITEM_ACTION); |
| 176 | - } else if (($storedCredential->getDeleteTime() > 0) && (int)$delete_time === 0) { |
|
| 176 | + } else if (($storedCredential->getDeleteTime() > 0) && (int) $delete_time === 0) { |
|
| 177 | 177 | $activity = 'item_recovered'; |
| 178 | 178 | $this->activityService->add( |
| 179 | 179 | $activity . '_self', array($label, $this->userId), |
@@ -241,7 +241,7 @@ discard block |
||
| 241 | 241 | $credential['shared_key'] = ''; |
| 242 | 242 | } |
| 243 | 243 | |
| 244 | - if(!isset($credential['shared_key'])){ |
|
| 244 | + if (!isset($credential['shared_key'])) { |
|
| 245 | 245 | $credential['shared_key'] = $storedCredential->getSharedKey(); |
| 246 | 246 | } |
| 247 | 247 | |