summaryrefslogtreecommitdiffstats
path: root/apps/workflowengine/lib/Helper/LogContext.php
diff options
context:
space:
mode:
Diffstat (limited to 'apps/workflowengine/lib/Helper/LogContext.php')
-rw-r--r--apps/workflowengine/lib/Helper/LogContext.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/apps/workflowengine/lib/Helper/LogContext.php b/apps/workflowengine/lib/Helper/LogContext.php
index 231294d8c74..405d8ceb4ee 100644
--- a/apps/workflowengine/lib/Helper/LogContext.php
+++ b/apps/workflowengine/lib/Helper/LogContext.php
@@ -41,8 +41,8 @@ class LogContext {
public function setScopes(array $scopes): LogContext {
$this->details['scopes'] = [];
foreach ($scopes as $scope) {
- if($scope instanceof ScopeContext) {
- switch($scope->getScope()) {
+ if ($scope instanceof ScopeContext) {
+ switch ($scope->getScope()) {
case IManager::SCOPE_ADMIN:
$this->details['scopes'][] = ['scope' => 'admin'];
break;
@@ -61,7 +61,7 @@ class LogContext {
}
public function setOperation(?IOperation $operation): LogContext {
- if($operation instanceof IOperation) {
+ if ($operation instanceof IOperation) {
$this->details['operation'] = [
'class' => get_class($operation),
'name' => $operation->getDisplayName(),
@@ -71,7 +71,7 @@ class LogContext {
}
public function setEntity(?IEntity $entity): LogContext {
- if($entity instanceof IEntity) {
+ if ($entity instanceof IEntity) {
$this->details['entity'] = [
'class' => get_class($entity),
'name' => $entity->getName(),