@@ -19,8 +19,8 @@ |
||
19 | 19 | use Test\TestCase; |
20 | 20 | |
21 | 21 | class SessionMiddlewareTest extends TestCase { |
22 | - private ControllerMethodReflector|MockObject $reflector; |
|
23 | - private ISession|MockObject $session; |
|
22 | + private ControllerMethodReflector | MockObject $reflector; |
|
23 | + private ISession | MockObject $session; |
|
24 | 24 | private Controller $controller; |
25 | 25 | private SessionMiddleware $middleware; |
26 | 26 |
@@ -58,13 +58,13 @@ discard block |
||
58 | 58 | * @group DB |
59 | 59 | */ |
60 | 60 | class RateLimitingMiddlewareTest extends TestCase { |
61 | - private IRequest|MockObject $request; |
|
62 | - private IUserSession|MockObject $userSession; |
|
61 | + private IRequest | MockObject $request; |
|
62 | + private IUserSession | MockObject $userSession; |
|
63 | 63 | private ControllerMethodReflector $reflector; |
64 | - private Limiter|MockObject $limiter; |
|
65 | - private ISession|MockObject $session; |
|
66 | - private IAppConfig|MockObject $appConfig; |
|
67 | - private BruteforceAllowList|MockObject $bruteForceAllowList; |
|
64 | + private Limiter | MockObject $limiter; |
|
65 | + private ISession | MockObject $session; |
|
66 | + private IAppConfig | MockObject $appConfig; |
|
67 | + private BruteforceAllowList | MockObject $bruteForceAllowList; |
|
68 | 68 | private RateLimitingMiddleware $rateLimitingMiddleware; |
69 | 69 | |
70 | 70 | protected function setUp(): void { |
@@ -143,7 +143,7 @@ discard block |
||
143 | 143 | $this->limiter |
144 | 144 | ->expects($this->once()) |
145 | 145 | ->method('registerAnonRequest') |
146 | - ->with(get_class($controller) . '::testMethodWithAnnotation', '10', '100', '127.0.0.1'); |
|
146 | + ->with(get_class($controller).'::testMethodWithAnnotation', '10', '100', '127.0.0.1'); |
|
147 | 147 | |
148 | 148 | $this->reflector->reflect($controller, 'testMethodWithAnnotation'); |
149 | 149 | $this->rateLimitingMiddleware->beforeController($controller, 'testMethodWithAnnotation'); |
@@ -169,7 +169,7 @@ discard block |
||
169 | 169 | $this->limiter |
170 | 170 | ->expects($this->once()) |
171 | 171 | ->method('registerUserRequest') |
172 | - ->with(get_class($controller) . '::testMethodWithAnnotation', '20', '200', $user); |
|
172 | + ->with(get_class($controller).'::testMethodWithAnnotation', '20', '200', $user); |
|
173 | 173 | |
174 | 174 | |
175 | 175 | $this->reflector->reflect($controller, 'testMethodWithAnnotation'); |
@@ -195,7 +195,7 @@ discard block |
||
195 | 195 | $this->limiter |
196 | 196 | ->expects($this->once()) |
197 | 197 | ->method('registerAnonRequest') |
198 | - ->with(get_class($controller) . '::testMethodWithAnnotationFallback', '10', '100', '127.0.0.1'); |
|
198 | + ->with(get_class($controller).'::testMethodWithAnnotationFallback', '10', '100', '127.0.0.1'); |
|
199 | 199 | |
200 | 200 | $this->reflector->reflect($controller, 'testMethodWithAnnotationFallback'); |
201 | 201 | $this->rateLimitingMiddleware->beforeController($controller, 'testMethodWithAnnotationFallback'); |
@@ -219,7 +219,7 @@ discard block |
||
219 | 219 | $this->limiter |
220 | 220 | ->expects($this->once()) |
221 | 221 | ->method('registerAnonRequest') |
222 | - ->with(get_class($controller) . '::testMethodWithAttributes', '10', '100', '127.0.0.1'); |
|
222 | + ->with(get_class($controller).'::testMethodWithAttributes', '10', '100', '127.0.0.1'); |
|
223 | 223 | |
224 | 224 | $this->reflector->reflect($controller, 'testMethodWithAttributes'); |
225 | 225 | $this->rateLimitingMiddleware->beforeController($controller, 'testMethodWithAttributes'); |
@@ -245,7 +245,7 @@ discard block |
||
245 | 245 | $this->limiter |
246 | 246 | ->expects($this->once()) |
247 | 247 | ->method('registerUserRequest') |
248 | - ->with(get_class($controller) . '::testMethodWithAttributes', '20', '200', $user); |
|
248 | + ->with(get_class($controller).'::testMethodWithAttributes', '20', '200', $user); |
|
249 | 249 | |
250 | 250 | |
251 | 251 | $this->reflector->reflect($controller, 'testMethodWithAttributes'); |
@@ -271,7 +271,7 @@ discard block |
||
271 | 271 | $this->limiter |
272 | 272 | ->expects($this->once()) |
273 | 273 | ->method('registerAnonRequest') |
274 | - ->with(get_class($controller) . '::testMethodWithAttributesFallback', '10', '100', '127.0.0.1'); |
|
274 | + ->with(get_class($controller).'::testMethodWithAttributesFallback', '10', '100', '127.0.0.1'); |
|
275 | 275 | |
276 | 276 | $this->reflector->reflect($controller, 'testMethodWithAttributesFallback'); |
277 | 277 | $this->rateLimitingMiddleware->beforeController($controller, 'testMethodWithAttributesFallback'); |
@@ -134,11 +134,11 @@ |
||
134 | 134 | $prefix = Server::get(IConfig::class)->getSystemValueString('dbtableprefix', 'oc_'); |
135 | 135 | $schema = $this->connection->createSchema(); |
136 | 136 | try { |
137 | - $schema->getTable($prefix . 'testing'); |
|
137 | + $schema->getTable($prefix.'testing'); |
|
138 | 138 | $this->connection->getQueryBuilder()->delete('testing')->executeStatement(); |
139 | 139 | } catch (SchemaException $e) { |
140 | 140 | $this->schemaSetup = true; |
141 | - $table = $schema->createTable($prefix . 'testing'); |
|
141 | + $table = $schema->createTable($prefix.'testing'); |
|
142 | 142 | $table->addColumn('id', Types::BIGINT, [ |
143 | 143 | 'autoincrement' => true, |
144 | 144 | 'notnull' => true, |
@@ -74,7 +74,7 @@ |
||
74 | 74 | public function testRegisterService(bool $shared): void { |
75 | 75 | $app = $this->createMock(App::class); |
76 | 76 | $service = 'abc'; |
77 | - $factory = function () { |
|
77 | + $factory = function() { |
|
78 | 78 | return 'def'; |
79 | 79 | }; |
80 | 80 | $container = $this->createMock(IAppContainer::class); |
@@ -4,4 +4,4 @@ |
||
4 | 4 | * SPDX-FileCopyrightText: 2016 ownCloud, Inc. |
5 | 5 | * SPDX-License-Identifier: AGPL-3.0-only |
6 | 6 | */ |
7 | -require_once __DIR__ . '/v1.php'; |
|
7 | +require_once __DIR__.'/v1.php'; |
@@ -8,7 +8,7 @@ discard block |
||
8 | 8 | * SPDX-License-Identifier: AGPL-3.0-only |
9 | 9 | */ |
10 | 10 | |
11 | -require_once __DIR__ . '/lib/versioncheck.php'; |
|
11 | +require_once __DIR__.'/lib/versioncheck.php'; |
|
12 | 12 | |
13 | 13 | use OC\ServiceUnavailableException; |
14 | 14 | use OC\User\LoginException; |
@@ -20,7 +20,7 @@ discard block |
||
20 | 20 | use Psr\Log\LoggerInterface; |
21 | 21 | |
22 | 22 | try { |
23 | - require_once __DIR__ . '/lib/base.php'; |
|
23 | + require_once __DIR__.'/lib/base.php'; |
|
24 | 24 | |
25 | 25 | OC::handleRequest(); |
26 | 26 | } catch (ServiceUnavailableException $ex) { |
@@ -5,7 +5,7 @@ discard block |
||
5 | 5 | 'version' => 'dev-master', |
6 | 6 | 'reference' => 'b1797842784b250fb01ed5e3bf130705eb94751b', |
7 | 7 | 'type' => 'library', |
8 | - 'install_path' => __DIR__ . '/../', |
|
8 | + 'install_path' => __DIR__.'/../', |
|
9 | 9 | 'aliases' => array(), |
10 | 10 | 'dev' => false, |
11 | 11 | ), |
@@ -15,7 +15,7 @@ discard block |
||
15 | 15 | 'version' => 'dev-master', |
16 | 16 | 'reference' => 'b1797842784b250fb01ed5e3bf130705eb94751b', |
17 | 17 | 'type' => 'library', |
18 | - 'install_path' => __DIR__ . '/../', |
|
18 | + 'install_path' => __DIR__.'/../', |
|
19 | 19 | 'aliases' => array(), |
20 | 20 | 'dev_requirement' => false, |
21 | 21 | ), |
@@ -52,7 +52,7 @@ |
||
52 | 52 | ]); |
53 | 53 | |
54 | 54 | $this->logger->debug( |
55 | - 'Scheduled app update notification for "' . $event->getAppId() . '"', |
|
55 | + 'Scheduled app update notification for "'.$event->getAppId().'"', |
|
56 | 56 | [ |
57 | 57 | 'app' => Application::APP_NAME, |
58 | 58 | ], |
@@ -41,7 +41,7 @@ discard block |
||
41 | 41 | |
42 | 42 | $path = $this->getChangelogFile($appId, $languageCode); |
43 | 43 | if ($path === null) { |
44 | - $this->logger->debug('No changelog file found for app ' . $appId . ' and language code ' . $languageCode); |
|
44 | + $this->logger->debug('No changelog file found for app '.$appId.' and language code '.$languageCode); |
|
45 | 45 | return null; |
46 | 46 | } |
47 | 47 | |
@@ -60,7 +60,7 @@ discard block |
||
60 | 60 | $appPath = $this->appManager->getAppPath($appId); |
61 | 61 | $files = ["CHANGELOG.$languageCode.md", 'CHANGELOG.en.md']; |
62 | 62 | foreach ($files as $file) { |
63 | - $path = $appPath . '/' . $file; |
|
63 | + $path = $appPath.'/'.$file; |
|
64 | 64 | if (is_file($path)) { |
65 | 65 | return $path; |
66 | 66 | } |
@@ -102,7 +102,7 @@ discard block |
||
102 | 102 | ); |
103 | 103 | |
104 | 104 | if ($index === null) { |
105 | - $this->logger->debug('No changelog entry for version ' . $version . ' found', ['file_path' => $path]); |
|
105 | + $this->logger->debug('No changelog entry for version '.$version.' found', ['file_path' => $path]); |
|
106 | 106 | return null; |
107 | 107 | } |
108 | 108 |