aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/Activity/Event.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/private/Activity/Event.php')
-rw-r--r--lib/private/Activity/Event.php15
1 files changed, 5 insertions, 10 deletions
diff --git a/lib/private/Activity/Event.php b/lib/private/Activity/Event.php
index 54274acea6b..39cdc12b3fb 100644
--- a/lib/private/Activity/Event.php
+++ b/lib/private/Activity/Event.php
@@ -415,8 +415,7 @@ class Event implements IEvent {
public function isValid(): bool {
return
$this->isValidCommon()
- &&
- $this->getSubject() !== ''
+ && $this->getSubject() !== ''
;
}
@@ -443,20 +442,16 @@ class Event implements IEvent {
return
$this->isValidCommon()
- &&
- $this->getParsedSubject() !== ''
+ && $this->getParsedSubject() !== ''
;
}
protected function isValidCommon(): bool {
return
$this->getApp() !== ''
- &&
- $this->getType() !== ''
- &&
- $this->getAffectedUser() !== ''
- &&
- $this->getTimestamp() !== 0
+ && $this->getType() !== ''
+ && $this->getAffectedUser() !== ''
+ && $this->getTimestamp() !== 0
/**
* Disabled for BC with old activities
* &&