summaryrefslogtreecommitdiffstats
path: root/lib/private/Comments
diff options
context:
space:
mode:
Diffstat (limited to 'lib/private/Comments')
-rw-r--r--lib/private/Comments/Comment.php32
1 files changed, 16 insertions, 16 deletions
diff --git a/lib/private/Comments/Comment.php b/lib/private/Comments/Comment.php
index 7c553c25a1c..7368425174a 100644
--- a/lib/private/Comments/Comment.php
+++ b/lib/private/Comments/Comment.php
@@ -32,19 +32,19 @@ use OCP\Comments\MessageTooLongException;
class Comment implements IComment {
protected $data = [
- 'id' => '',
- 'parentId' => '0',
+ 'id' => '',
+ 'parentId' => '0',
'topmostParentId' => '0',
- 'childrenCount' => '0',
- 'message' => '',
- 'verb' => '',
- 'actorType' => '',
- 'actorId' => '',
- 'objectType' => '',
- 'objectId' => '',
- 'referenceId' => null,
- 'creationDT' => null,
- 'latestChildDT' => null,
+ 'childrenCount' => '0',
+ 'message' => '',
+ 'verb' => '',
+ 'actorType' => '',
+ 'actorId' => '',
+ 'objectType' => '',
+ 'objectId' => '',
+ 'referenceId' => null,
+ 'creationDT' => null,
+ 'latestChildDT' => null,
];
/**
@@ -301,12 +301,12 @@ class Comment implements IComment {
public function setActor($actorType, $actorId) {
if (
!is_string($actorType) || !trim($actorType)
- || !is_string($actorId) || $actorId === ''
+ || !is_string($actorId) || $actorId === ''
) {
throw new \InvalidArgumentException('String expected.');
}
$this->data['actorType'] = trim($actorType);
- $this->data['actorId'] = $actorId;
+ $this->data['actorId'] = $actorId;
return $this;
}
@@ -387,12 +387,12 @@ class Comment implements IComment {
public function setObject($objectType, $objectId) {
if (
!is_string($objectType) || !trim($objectType)
- || !is_string($objectId) || trim($objectId) === ''
+ || !is_string($objectId) || trim($objectId) === ''
) {
throw new \InvalidArgumentException('String expected.');
}
$this->data['objectType'] = trim($objectType);
- $this->data['objectId'] = trim($objectId);
+ $this->data['objectId'] = trim($objectId);
return $this;
}