aboutsummaryrefslogtreecommitdiffstats
path: root/apps/workflowengine
diff options
context:
space:
mode:
Diffstat (limited to 'apps/workflowengine')
-rw-r--r--apps/workflowengine/lib/Check/AbstractStringCheck.php2
-rw-r--r--apps/workflowengine/lib/Check/RequestURL.php2
-rw-r--r--apps/workflowengine/lib/Settings/ASettings.php6
-rw-r--r--apps/workflowengine/tests/Check/AbstractStringCheckTest.php2
-rw-r--r--apps/workflowengine/tests/Check/RequestUserAgentTest.php2
-rw-r--r--apps/workflowengine/tests/ManagerTest.php4
6 files changed, 9 insertions, 9 deletions
diff --git a/apps/workflowengine/lib/Check/AbstractStringCheck.php b/apps/workflowengine/lib/Check/AbstractStringCheck.php
index 4b294678fbd..e0de77a852b 100644
--- a/apps/workflowengine/lib/Check/AbstractStringCheck.php
+++ b/apps/workflowengine/lib/Check/AbstractStringCheck.php
@@ -50,7 +50,7 @@ abstract class AbstractStringCheck implements ICheck {
* @param string $value
* @return bool
*/
- public function executeCheck($operator, $value) {
+ public function executeCheck($operator, $value) {
$actualValue = $this->getActualValue();
return $this->executeStringCheck($operator, $value, $actualValue);
}
diff --git a/apps/workflowengine/lib/Check/RequestURL.php b/apps/workflowengine/lib/Check/RequestURL.php
index 4c933c19ace..30424a1ee47 100644
--- a/apps/workflowengine/lib/Check/RequestURL.php
+++ b/apps/workflowengine/lib/Check/RequestURL.php
@@ -46,7 +46,7 @@ class RequestURL extends AbstractStringCheck {
* @param string $value
* @return bool
*/
- public function executeCheck($operator, $value) {
+ public function executeCheck($operator, $value) {
$actualValue = $this->getActualValue();
if (in_array($operator, ['is', '!is'])) {
switch ($value) {
diff --git a/apps/workflowengine/lib/Settings/ASettings.php b/apps/workflowengine/lib/Settings/ASettings.php
index 2bf7dd0218e..b2db7d12364 100644
--- a/apps/workflowengine/lib/Settings/ASettings.php
+++ b/apps/workflowengine/lib/Settings/ASettings.php
@@ -147,7 +147,7 @@ abstract class ASettings implements ISettings {
private function entitiesToArray(array $entities) {
return array_map(function (IEntity $entity) {
- $events = array_map(function(IEntityEvent $entityEvent) {
+ $events = array_map(function (IEntityEvent $entityEvent) {
return [
'eventName' => $entityEvent->getEventName(),
'displayName' => $entityEvent->getDisplayName()
@@ -164,7 +164,7 @@ abstract class ASettings implements ISettings {
}
private function operatorsToArray(array $operators) {
- $operators = array_filter($operators, function(IOperation $operator) {
+ $operators = array_filter($operators, function (IOperation $operator) {
return $operator->isAvailableForScope($this->getScope());
});
@@ -182,7 +182,7 @@ abstract class ASettings implements ISettings {
}
private function checksToArray(array $checks) {
- $checks = array_filter($checks, function(ICheck $check) {
+ $checks = array_filter($checks, function (ICheck $check) {
return $check->isAvailableForScope($this->getScope());
});
diff --git a/apps/workflowengine/tests/Check/AbstractStringCheckTest.php b/apps/workflowengine/tests/Check/AbstractStringCheckTest.php
index 70f8f79146a..f9fc57a5331 100644
--- a/apps/workflowengine/tests/Check/AbstractStringCheckTest.php
+++ b/apps/workflowengine/tests/Check/AbstractStringCheckTest.php
@@ -31,7 +31,7 @@ class AbstractStringCheckTest extends \Test\TestCase {
->getMock();
$l->expects($this->any())
->method('t')
- ->willReturnCallback(function($string, $args) {
+ ->willReturnCallback(function ($string, $args) {
return sprintf($string, $args);
});
diff --git a/apps/workflowengine/tests/Check/RequestUserAgentTest.php b/apps/workflowengine/tests/Check/RequestUserAgentTest.php
index 7003441053d..7ea5aad2a6e 100644
--- a/apps/workflowengine/tests/Check/RequestUserAgentTest.php
+++ b/apps/workflowengine/tests/Check/RequestUserAgentTest.php
@@ -44,7 +44,7 @@ class RequestUserAgentTest extends TestCase {
->getMock();
$l->expects($this->any())
->method('t')
- ->willReturnCallback(function($string, $args) {
+ ->willReturnCallback(function ($string, $args) {
return sprintf($string, $args);
});
diff --git a/apps/workflowengine/tests/ManagerTest.php b/apps/workflowengine/tests/ManagerTest.php
index 2a5128f76b6..cad4be174cf 100644
--- a/apps/workflowengine/tests/ManagerTest.php
+++ b/apps/workflowengine/tests/ManagerTest.php
@@ -78,7 +78,7 @@ class ManagerTest extends TestCase {
/** @var IL10N|MockObject $l */
$this->l = $this->createMock(IL10N::class);
$this->l->method('t')
- ->willReturnCallback(function($text, $parameters = []) {
+ ->willReturnCallback(function ($text, $parameters = []) {
return vsprintf($text, $parameters);
});
@@ -414,7 +414,7 @@ class ManagerTest extends TestCase {
$this->legacyDispatcher->expects($this->once())
->method('dispatch')
->with('OCP\WorkflowEngine::registerEntities', $this->anything())
- ->willReturnCallback(function() use ($extraEntity) {
+ ->willReturnCallback(function () use ($extraEntity) {
$this->manager->registerEntity($extraEntity);
});