Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristoph Wurst <christoph@winzerhof-wurst.at>2020-04-09 14:53:40 +0300
committerChristoph Wurst <christoph@winzerhof-wurst.at>2020-04-09 14:54:22 +0300
commitafbd9c4e6ed834e713039f2cff88ba3eec03dadb (patch)
tree7d8721cf8fc0329d6b750db63798de67a162b090 /tests/lib/Activity
parent19e97e86c69ab128191439d6a17dacb5a630cf98 (diff)
Unify function spacing to PSR2 recommendation
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Diffstat (limited to 'tests/lib/Activity')
-rw-r--r--tests/lib/Activity/ManagerTest.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/lib/Activity/ManagerTest.php b/tests/lib/Activity/ManagerTest.php
index 1f616e062b7..98f36572c4a 100644
--- a/tests/lib/Activity/ManagerTest.php
+++ b/tests/lib/Activity/ManagerTest.php
@@ -61,7 +61,7 @@ class ManagerTest extends TestCase {
$this->assertSame([], self::invokePrivate($this->activityManager, 'getConsumers'));
- $this->activityManager->registerConsumer(function() {
+ $this->activityManager->registerConsumer(function () {
return new NoOpConsumer();
});
@@ -79,7 +79,7 @@ class ManagerTest extends TestCase {
public function testGetConsumersInvalidConsumer() {
$this->expectException(\InvalidArgumentException::class);
- $this->activityManager->registerConsumer(function() {
+ $this->activityManager->registerConsumer(function () {
return new \stdClass();
});
@@ -240,7 +240,7 @@ class ManagerTest extends TestCase {
$consumer->expects($this->once())
->method('receive')
->with($event)
- ->willReturnCallback(function(\OCP\Activity\IEvent $event) use ($expected) {
+ ->willReturnCallback(function (\OCP\Activity\IEvent $event) use ($expected) {
$this->assertLessThanOrEqual(time() + 2, $event->getTimestamp(), 'Timestamp not set correctly');
$this->assertGreaterThanOrEqual(time() - 2, $event->getTimestamp(), 'Timestamp not set correctly');
$this->assertSame($expected, $event->getAuthor(), 'Author name not set correctly');
@@ -270,7 +270,7 @@ class ManagerTest extends TestCase {
->getMock();
$consumer->expects($this->once())
->method('receive')
- ->willReturnCallback(function(\OCP\Activity\IEvent $event) {
+ ->willReturnCallback(function (\OCP\Activity\IEvent $event) {
$this->assertSame('test_app', $event->getApp(), 'App not set correctly');
$this->assertSame('test_type', $event->getType(), 'Type not set correctly');
$this->assertSame('test_affected', $event->getAffectedUser(), 'Affected user not set correctly');