@@ -90,7 +90,7 @@ discard block |
||
90 | 90 | $manager = new \OC\User\Manager($this->config, $this->cacheFactory, $this->eventDispatcher, $this->logger); |
91 | 91 | $manager->registerBackend($backend); |
92 | 92 | |
93 | - $this->assertFalse($manager->userExists('foo' . str_repeat('a', 62))); |
|
93 | + $this->assertFalse($manager->userExists('foo'.str_repeat('a', 62))); |
|
94 | 94 | } |
95 | 95 | |
96 | 96 | public function testUserExistsSingleBackendNotExists(): void { |
@@ -177,7 +177,7 @@ discard block |
||
177 | 177 | |
178 | 178 | $backend->expects($this->any()) |
179 | 179 | ->method('implementsActions') |
180 | - ->willReturnCallback(function ($actions) { |
|
180 | + ->willReturnCallback(function($actions) { |
|
181 | 181 | if ($actions === \OC\USER\BACKEND::CHECK_PASSWORD) { |
182 | 182 | return true; |
183 | 183 | } else { |
@@ -255,7 +255,7 @@ discard block |
||
255 | 255 | $manager = new \OC\User\Manager($this->config, $this->cacheFactory, $this->eventDispatcher, $this->logger); |
256 | 256 | $manager->registerBackend($backend); |
257 | 257 | |
258 | - $this->assertEquals(null, $manager->get('foo' . str_repeat('a', 62))); |
|
258 | + $this->assertEquals(null, $manager->get('foo'.str_repeat('a', 62))); |
|
259 | 259 | } |
260 | 260 | |
261 | 261 | public function testGetOneBackendDoNotTranslateLoginNames(): void { |
@@ -361,7 +361,7 @@ discard block |
||
361 | 361 | ['..', 'foo', 'Username must not consist of dots only'], |
362 | 362 | ['.test', '', 'A valid password must be provided'], |
363 | 363 | ['test', '', 'A valid password must be provided'], |
364 | - ['test' . str_repeat('a', 61), '', 'Login is too long'], |
|
364 | + ['test'.str_repeat('a', 61), '', 'Login is too long'], |
|
365 | 365 | ]; |
366 | 366 | } |
367 | 367 | |
@@ -663,7 +663,7 @@ discard block |
||
663 | 663 | $manager = \OCP\Server::get(IUserManager::class); |
664 | 664 | // count other users in the db before adding our own |
665 | 665 | $count = 0; |
666 | - $function = function (IUser $user) use (&$count) { |
|
666 | + $function = function(IUser $user) use (&$count) { |
|
667 | 667 | $count++; |
668 | 668 | }; |
669 | 669 | $manager->callForAllUsers($function, '', true); |
@@ -702,7 +702,7 @@ discard block |
||
702 | 702 | $manager = \OCP\Server::get(IUserManager::class); |
703 | 703 | |
704 | 704 | // Create some users |
705 | - $now = (string)time(); |
|
705 | + $now = (string) time(); |
|
706 | 706 | $user1 = $manager->createUser('test_active_1', 'test_active_1'); |
707 | 707 | $config->setUserValue('test_active_1', 'login', 'lastLogin', $now); |
708 | 708 | $user1->setDisplayName('test active 1'); |