@@ -174,13 +174,13 @@ discard block |
||
174 | 174 | $activity . '_self', array($label, $this->userId, $revision_created), |
175 | 175 | '', array(), |
176 | 176 | $link, $this->userId, Activity::TYPE_ITEM_ACTION); |
177 | - } else if (($storedCredential->getDeleteTime() === 0) && (int)$delete_time > 0) { |
|
177 | + } else if (($storedCredential->getDeleteTime() === 0) && (int) $delete_time > 0) { |
|
178 | 178 | $activity = 'item_deleted'; |
179 | 179 | $this->activityService->add( |
180 | 180 | $activity . '_self', array($label, $this->userId), |
181 | 181 | '', array(), |
182 | 182 | $link, $this->userId, Activity::TYPE_ITEM_ACTION); |
183 | - } else if (($storedCredential->getDeleteTime() > 0) && (int)$delete_time === 0) { |
|
183 | + } else if (($storedCredential->getDeleteTime() > 0) && (int) $delete_time === 0) { |
|
184 | 184 | $activity = 'item_recovered'; |
185 | 185 | $this->activityService->add( |
186 | 186 | $activity . '_self', array($label, $this->userId), |
@@ -293,7 +293,7 @@ discard block |
||
293 | 293 | $this->sharingService->unshareCredential($credential->getGuid()); |
294 | 294 | foreach ($this->credentialRevisionService->getRevisions($credential->getId()) as $revision) { |
295 | 295 | $id = $revision->getId(); |
296 | - if(isset($id)){ |
|
296 | + if (isset($id)) { |
|
297 | 297 | $this->credentialRevisionService->deleteRevision($id, $this->userId); |
298 | 298 | } |
299 | 299 | } |
@@ -293,7 +293,7 @@ |
||
293 | 293 | $this->sharingService->unshareCredential($credential->getGuid()); |
294 | 294 | foreach ($this->credentialRevisionService->getRevisions($credential->getId()) as $revision) { |
295 | 295 | $id = $revision->getId(); |
296 | - if(isset($id)){ |
|
296 | + if(isset($id)) { |
|
297 | 297 | $this->credentialRevisionService->deleteRevision($id, $this->userId); |
298 | 298 | } |
299 | 299 | } |