diff options
author | Christoph Wurst <christoph@winzerhof-wurst.at> | 2020-10-05 15:12:57 +0200 |
---|---|---|
committer | Morris Jobke <hey@morrisjobke.de> | 2020-10-05 20:25:24 +0200 |
commit | d9015a8c94bfd71fe484618a06d276701d3bf9ff (patch) | |
tree | 3f7a1cd6ec2fd982dd02de71b76076f7f01cef70 /lib/private/Comments/Comment.php | |
parent | d357f4b10fe1b59e1e07bb90641d647522c7bfe2 (diff) | |
download | nextcloud-server-d9015a8c94bfd71fe484618a06d276701d3bf9ff.tar.gz nextcloud-server-d9015a8c94bfd71fe484618a06d276701d3bf9ff.zip |
Format code to a single space around binary operators
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Diffstat (limited to 'lib/private/Comments/Comment.php')
-rw-r--r-- | lib/private/Comments/Comment.php | 32 |
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; } |