@@ -74,7 +74,7 @@ discard block |
||
74 | 74 | ]); |
75 | 75 | |
76 | 76 | $this->input->method('getOption') |
77 | - ->willReturnCallback(function ($arg) { |
|
77 | + ->willReturnCallback(function($arg) { |
|
78 | 78 | if ($arg === 'limit') { |
79 | 79 | return '100'; |
80 | 80 | } elseif ($arg === 'offset') { |
@@ -155,7 +155,7 @@ discard block |
||
155 | 155 | ->willReturn(['LDAP']); |
156 | 156 | |
157 | 157 | $this->input->method('getOption') |
158 | - ->willReturnCallback(function ($arg) { |
|
158 | + ->willReturnCallback(function($arg) { |
|
159 | 159 | if ($arg === 'limit') { |
160 | 160 | return '100'; |
161 | 161 | } elseif ($arg === 'offset') { |
@@ -34,7 +34,7 @@ discard block |
||
34 | 34 | |
35 | 35 | $this->input = $this->createMock(InputInterface::class); |
36 | 36 | $this->input->method('getArgument') |
37 | - ->willReturnCallback(function ($arg) { |
|
37 | + ->willReturnCallback(function($arg) { |
|
38 | 38 | if ($arg === 'groupid') { |
39 | 39 | return 'myGroup'; |
40 | 40 | } |
@@ -54,7 +54,7 @@ discard block |
||
54 | 54 | ->method('createGroup'); |
55 | 55 | $this->output->expects($this->once()) |
56 | 56 | ->method('writeln') |
57 | - ->with($this->equalTo('<error>Group "' . $gid . '" already exists.</error>')); |
|
57 | + ->with($this->equalTo('<error>Group "'.$gid.'" already exists.</error>')); |
|
58 | 58 | |
59 | 59 | $this->invokePrivate($this->command, 'execute', [$this->input, $this->output]); |
60 | 60 | } |
@@ -72,7 +72,7 @@ discard block |
||
72 | 72 | ->with($this->equalTo($gid)); |
73 | 73 | $this->output->expects($this->once()) |
74 | 74 | ->method('writeln') |
75 | - ->with($this->equalTo('Created group "' . $group->getGID() . '"')); |
|
75 | + ->with($this->equalTo('Created group "'.$group->getGID().'"')); |
|
76 | 76 | |
77 | 77 | $this->invokePrivate($this->command, 'execute', [$this->input, $this->output]); |
78 | 78 | } |
@@ -39,7 +39,7 @@ discard block |
||
39 | 39 | public function testDoesNotExists(): void { |
40 | 40 | $gid = 'myGroup'; |
41 | 41 | $this->input->method('getArgument') |
42 | - ->willReturnCallback(function ($arg) use ($gid) { |
|
42 | + ->willReturnCallback(function($arg) use ($gid) { |
|
43 | 43 | if ($arg === 'groupid') { |
44 | 44 | return $gid; |
45 | 45 | } |
@@ -53,7 +53,7 @@ discard block |
||
53 | 53 | ->method('get'); |
54 | 54 | $this->output->expects($this->once()) |
55 | 55 | ->method('writeln') |
56 | - ->with($this->equalTo('<error>Group "' . $gid . '" does not exist.</error>')); |
|
56 | + ->with($this->equalTo('<error>Group "'.$gid.'" does not exist.</error>')); |
|
57 | 57 | |
58 | 58 | $this->invokePrivate($this->command, 'execute', [$this->input, $this->output]); |
59 | 59 | } |
@@ -61,7 +61,7 @@ discard block |
||
61 | 61 | public function testDeleteAdmin(): void { |
62 | 62 | $gid = 'admin'; |
63 | 63 | $this->input->method('getArgument') |
64 | - ->willReturnCallback(function ($arg) use ($gid) { |
|
64 | + ->willReturnCallback(function($arg) use ($gid) { |
|
65 | 65 | if ($arg === 'groupid') { |
66 | 66 | return $gid; |
67 | 67 | } |
@@ -72,7 +72,7 @@ discard block |
||
72 | 72 | ->method($this->anything()); |
73 | 73 | $this->output->expects($this->once()) |
74 | 74 | ->method('writeln') |
75 | - ->with($this->equalTo('<error>Group "' . $gid . '" could not be deleted.</error>')); |
|
75 | + ->with($this->equalTo('<error>Group "'.$gid.'" could not be deleted.</error>')); |
|
76 | 76 | |
77 | 77 | $this->invokePrivate($this->command, 'execute', [$this->input, $this->output]); |
78 | 78 | } |
@@ -80,7 +80,7 @@ discard block |
||
80 | 80 | public function testDeleteFailed(): void { |
81 | 81 | $gid = 'myGroup'; |
82 | 82 | $this->input->method('getArgument') |
83 | - ->willReturnCallback(function ($arg) use ($gid) { |
|
83 | + ->willReturnCallback(function($arg) use ($gid) { |
|
84 | 84 | if ($arg === 'groupid') { |
85 | 85 | return $gid; |
86 | 86 | } |
@@ -98,7 +98,7 @@ discard block |
||
98 | 98 | |
99 | 99 | $this->output->expects($this->once()) |
100 | 100 | ->method('writeln') |
101 | - ->with($this->equalTo('<error>Group "' . $gid . '" could not be deleted. Please check the logs.</error>')); |
|
101 | + ->with($this->equalTo('<error>Group "'.$gid.'" could not be deleted. Please check the logs.</error>')); |
|
102 | 102 | |
103 | 103 | $this->invokePrivate($this->command, 'execute', [$this->input, $this->output]); |
104 | 104 | } |
@@ -106,7 +106,7 @@ discard block |
||
106 | 106 | public function testDelete(): void { |
107 | 107 | $gid = 'myGroup'; |
108 | 108 | $this->input->method('getArgument') |
109 | - ->willReturnCallback(function ($arg) use ($gid) { |
|
109 | + ->willReturnCallback(function($arg) use ($gid) { |
|
110 | 110 | if ($arg === 'groupid') { |
111 | 111 | return $gid; |
112 | 112 | } |
@@ -124,7 +124,7 @@ discard block |
||
124 | 124 | |
125 | 125 | $this->output->expects($this->once()) |
126 | 126 | ->method('writeln') |
127 | - ->with($this->equalTo('Group "' . $gid . '" was removed')); |
|
127 | + ->with($this->equalTo('Group "'.$gid.'" was removed')); |
|
128 | 128 | |
129 | 129 | $this->invokePrivate($this->command, 'execute', [$this->input, $this->output]); |
130 | 130 | } |
@@ -8,7 +8,7 @@ |
||
8 | 8 | 'memcache.distributed' => '\\OC\\Memcache\\Redis', |
9 | 9 | 'memcache.locking' => '\\OC\\Memcache\\Redis', |
10 | 10 | 'redis.cluster' => [ |
11 | - 'seeds' => [ // provide some/all of the cluster servers to bootstrap discovery, port required |
|
11 | + 'seeds' => [// provide some/all of the cluster servers to bootstrap discovery, port required |
|
12 | 12 | 'cache-cluster:7000', |
13 | 13 | 'cache-cluster:7001', |
14 | 14 | 'cache-cluster:7002', |
@@ -8,16 +8,16 @@ discard block |
||
8 | 8 | 'appstoreenabled' => false, |
9 | 9 | 'apps_paths' => [ |
10 | 10 | [ |
11 | - 'path' => OC::$SERVERROOT . '/apps', |
|
11 | + 'path' => OC::$SERVERROOT.'/apps', |
|
12 | 12 | 'url' => '/apps', |
13 | 13 | 'writable' => true, |
14 | 14 | ], |
15 | 15 | ], |
16 | 16 | ]; |
17 | 17 | |
18 | -if (is_dir(OC::$SERVERROOT . '/apps2')) { |
|
18 | +if (is_dir(OC::$SERVERROOT.'/apps2')) { |
|
19 | 19 | $CONFIG['apps_paths'][] = [ |
20 | - 'path' => OC::$SERVERROOT . '/apps2', |
|
20 | + 'path' => OC::$SERVERROOT.'/apps2', |
|
21 | 21 | 'url' => '/apps2', |
22 | 22 | 'writable' => false, |
23 | 23 | ]; |
@@ -60,7 +60,7 @@ discard block |
||
60 | 60 | 'container' => 'test', |
61 | 61 | 'account_name' => getenv('OBJECT_STORE_KEY') ?: 'devstoreaccount1', |
62 | 62 | 'account_key' => getenv('OBJECT_STORE_SECRET') ?: 'Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==', |
63 | - 'endpoint' => 'http://' . (getenv('OBJECT_STORE_HOST') ?: 'localhost') . ':10000/' . (getenv('OBJECT_STORE_KEY') ?: 'devstoreaccount1'), |
|
63 | + 'endpoint' => 'http://'.(getenv('OBJECT_STORE_HOST') ?: 'localhost').':10000/'.(getenv('OBJECT_STORE_KEY') ?: 'devstoreaccount1'), |
|
64 | 64 | 'autocreate' => true |
65 | 65 | ] |
66 | 66 | ]; |
@@ -102,8 +102,8 @@ discard block |
||
102 | 102 | [ |
103 | 103 | IAccountManager::PROPERTY_WEBSITE => $properties[IAccountManager::PROPERTY_WEBSITE], |
104 | 104 | IAccountManager::PROPERTY_PHONE => $properties[IAccountManager::PROPERTY_PHONE], |
105 | - IAccountManager::COLLECTION_EMAIL . '#0' => $additionalProperty1, |
|
106 | - IAccountManager::COLLECTION_EMAIL . '#1' => $additionalProperty2, |
|
105 | + IAccountManager::COLLECTION_EMAIL.'#0' => $additionalProperty1, |
|
106 | + IAccountManager::COLLECTION_EMAIL.'#1' => $additionalProperty2, |
|
107 | 107 | ], |
108 | 108 | $account->getFilteredProperties(IAccountManager::SCOPE_PUBLISHED) |
109 | 109 | ); |
@@ -111,14 +111,14 @@ discard block |
||
111 | 111 | [ |
112 | 112 | IAccountManager::PROPERTY_EMAIL => $properties[IAccountManager::PROPERTY_EMAIL], |
113 | 113 | IAccountManager::PROPERTY_PHONE => $properties[IAccountManager::PROPERTY_PHONE], |
114 | - IAccountManager::COLLECTION_EMAIL . '#0' => $additionalProperty2, |
|
114 | + IAccountManager::COLLECTION_EMAIL.'#0' => $additionalProperty2, |
|
115 | 115 | ], |
116 | 116 | $account->getFilteredProperties(null, IAccountManager::VERIFIED) |
117 | 117 | ); |
118 | 118 | $this->assertEquals( |
119 | 119 | [ |
120 | 120 | IAccountManager::PROPERTY_PHONE => $properties[IAccountManager::PROPERTY_PHONE], |
121 | - IAccountManager::COLLECTION_EMAIL . '#0' => $additionalProperty2, |
|
121 | + IAccountManager::COLLECTION_EMAIL.'#0' => $additionalProperty2, |
|
122 | 122 | ], |
123 | 123 | $account->getFilteredProperties(IAccountManager::SCOPE_PUBLISHED, IAccountManager::VERIFIED), |
124 | 124 | ); |
@@ -22,25 +22,25 @@ |
||
22 | 22 | |
23 | 23 | $mock->expects($this->any()) |
24 | 24 | ->method('set') |
25 | - ->willReturnCallback(function ($key, $value, $ttl) use ($sourceCache) { |
|
25 | + ->willReturnCallback(function($key, $value, $ttl) use ($sourceCache) { |
|
26 | 26 | return $sourceCache->set($key, $value, $ttl); |
27 | 27 | }); |
28 | 28 | |
29 | 29 | $mock->expects($this->any()) |
30 | 30 | ->method('get') |
31 | - ->willReturnCallback(function ($key) use ($sourceCache) { |
|
31 | + ->willReturnCallback(function($key) use ($sourceCache) { |
|
32 | 32 | return $sourceCache->get($key); |
33 | 33 | }); |
34 | 34 | |
35 | 35 | $mock->expects($this->any()) |
36 | 36 | ->method('add') |
37 | - ->willReturnCallback(function ($key, $value, $ttl) use ($sourceCache) { |
|
37 | + ->willReturnCallback(function($key, $value, $ttl) use ($sourceCache) { |
|
38 | 38 | return $sourceCache->add($key, $value, $ttl); |
39 | 39 | }); |
40 | 40 | |
41 | 41 | $mock->expects($this->any()) |
42 | 42 | ->method('remove') |
43 | - ->willReturnCallback(function ($key) use ($sourceCache) { |
|
43 | + ->willReturnCallback(function($key) use ($sourceCache) { |
|
44 | 44 | return $sourceCache->remove($key); |
45 | 45 | }); |
46 | 46 | return $mock; |
@@ -1,6 +1,6 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types = 1); |
|
3 | +declare(strict_types=1); |
|
4 | 4 | /** |
5 | 5 | * SPDX-FileCopyrightText: 2016-2024 Nextcloud GmbH and Nextcloud contributors |
6 | 6 | * SPDX-FileCopyrightText: 2016 ownCloud, Inc. |
@@ -18,7 +18,7 @@ |
||
18 | 18 | protected function setUp(): void { |
19 | 19 | parent::setUp(); |
20 | 20 | |
21 | - $this->sessionCallback = function () { |
|
21 | + $this->sessionCallback = function() { |
|
22 | 22 | return $this->createMock(ISession::class); |
23 | 23 | }; |
24 | 24 | } |