|
@@ -167,13 +167,13 @@ discard block |
|
|
block discarded – undo |
|
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 |
|
|
block discarded – undo |
|
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
|
|
|
@@ -267,7 +267,7 @@ discard block |
|
|
block discarded – undo |
|
267
|
267
|
'', array(), |
|
268
|
268
|
'', $this->userId, Activity::TYPE_ITEM_ACTION); |
|
269
|
269
|
$this->sharingService->unshareCredential($credential->getGuid()); |
|
270
|
|
- foreach($this->credentialRevisionService->getRevisions($credential->getId()) as $revision){ |
|
|
270
|
+ foreach ($this->credentialRevisionService->getRevisions($credential->getId()) as $revision) { |
|
271
|
271
|
$this->credentialRevisionService->deleteRevision($revision->getId(), $this->userId); |
|
272
|
272
|
} |
|
273
|
273
|
} else { |