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/Authentication
parent19e97e86c69ab128191439d6a17dacb5a630cf98 (diff)
Unify function spacing to PSR2 recommendation
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Diffstat (limited to 'tests/lib/Authentication')
-rw-r--r--tests/lib/Authentication/Token/PublicKeyTokenProviderTest.php4
-rw-r--r--tests/lib/Authentication/TwoFactorAuth/MandatoryTwoFactorTest.php4
-rw-r--r--tests/lib/Authentication/TwoFactorAuth/RegistryTest.php4
3 files changed, 6 insertions, 6 deletions
diff --git a/tests/lib/Authentication/Token/PublicKeyTokenProviderTest.php b/tests/lib/Authentication/Token/PublicKeyTokenProviderTest.php
index c9dc3d6ef4a..357200e24b4 100644
--- a/tests/lib/Authentication/Token/PublicKeyTokenProviderTest.php
+++ b/tests/lib/Authentication/Token/PublicKeyTokenProviderTest.php
@@ -285,7 +285,7 @@ class PublicKeyTokenProviderTest extends TestCase {
$this->mapper
->expects($this->at(2))
->method('delete')
- ->with($this->callback(function($token) use ($oldToken) {
+ ->with($this->callback(function ($token) use ($oldToken) {
return $token === $oldToken;
}));
@@ -325,7 +325,7 @@ class PublicKeyTokenProviderTest extends TestCase {
$this->mapper
->expects($this->at(2))
->method('delete')
- ->with($this->callback(function($token) use ($oldToken) {
+ ->with($this->callback(function ($token) use ($oldToken) {
return $token === $oldToken;
}));
diff --git a/tests/lib/Authentication/TwoFactorAuth/MandatoryTwoFactorTest.php b/tests/lib/Authentication/TwoFactorAuth/MandatoryTwoFactorTest.php
index 92d072608f2..e1e401e7683 100644
--- a/tests/lib/Authentication/TwoFactorAuth/MandatoryTwoFactorTest.php
+++ b/tests/lib/Authentication/TwoFactorAuth/MandatoryTwoFactorTest.php
@@ -109,7 +109,7 @@ class MandatoryTwoFactorTest extends TestCase {
['twofactor_enforced_excluded_groups', [], []],
]);
$this->groupManager->method('isInGroup')
- ->willReturnCallback(function($user, $group) {
+ ->willReturnCallback(function ($user, $group) {
return $user === 'user123' && $group ==='twofactorers';
});
@@ -147,7 +147,7 @@ class MandatoryTwoFactorTest extends TestCase {
['twofactor_enforced_excluded_groups', [], ['yoloers']],
]);
$this->groupManager->method('isInGroup')
- ->willReturnCallback(function($user, $group) {
+ ->willReturnCallback(function ($user, $group) {
return $user === 'user123' && $group ==='yoloers';
});
diff --git a/tests/lib/Authentication/TwoFactorAuth/RegistryTest.php b/tests/lib/Authentication/TwoFactorAuth/RegistryTest.php
index 6a5ba83dc8b..5b2aa654f11 100644
--- a/tests/lib/Authentication/TwoFactorAuth/RegistryTest.php
+++ b/tests/lib/Authentication/TwoFactorAuth/RegistryTest.php
@@ -81,7 +81,7 @@ class RegistryTest extends TestCase {
->method('dispatch')
->with(
$this->equalTo(IRegistry::EVENT_PROVIDER_ENABLED),
- $this->callback(function(RegistryEvent $e) use ($user, $provider) {
+ $this->callback(function (RegistryEvent $e) use ($user, $provider) {
return $e->getUser() === $user && $e->getProvider() === $provider;
})
);
@@ -102,7 +102,7 @@ class RegistryTest extends TestCase {
->method('dispatch')
->with(
$this->equalTo(IRegistry::EVENT_PROVIDER_DISABLED),
- $this->callback(function(RegistryEvent $e) use ($user, $provider) {
+ $this->callback(function (RegistryEvent $e) use ($user, $provider) {
return $e->getUser() === $user && $e->getProvider() === $provider;
})
);