@@ -63,7 +63,7 @@ discard block |
||
63 | 63 | $this->logger = $logger; |
64 | 64 | } |
65 | 65 | |
66 | - public function for(string $appId): IRegistrationContext { |
|
66 | + public function for (string $appId): IRegistrationContext { |
|
67 | 67 | return new class($appId, $this) implements IRegistrationContext { |
68 | 68 | /** @var string */ |
69 | 69 | private $appId; |
@@ -200,7 +200,7 @@ discard block |
||
200 | 200 | } catch (Throwable $e) { |
201 | 201 | $appId = $registration['appId']; |
202 | 202 | $this->logger->logException($e, [ |
203 | - 'message' => "Error during capability registration of $appId: " . $e->getMessage(), |
|
203 | + 'message' => "Error during capability registration of $appId: ".$e->getMessage(), |
|
204 | 204 | 'level' => ILogger::ERROR, |
205 | 205 | ]); |
206 | 206 | } |
@@ -217,7 +217,7 @@ discard block |
||
217 | 217 | } catch (Throwable $e) { |
218 | 218 | $appId = $registration['appId']; |
219 | 219 | $this->logger->logException($e, [ |
220 | - 'message' => "Error during crash reporter registration of $appId: " . $e->getMessage(), |
|
220 | + 'message' => "Error during crash reporter registration of $appId: ".$e->getMessage(), |
|
221 | 221 | 'level' => ILogger::ERROR, |
222 | 222 | ]); |
223 | 223 | } |
@@ -242,7 +242,7 @@ discard block |
||
242 | 242 | } catch (Throwable $e) { |
243 | 243 | $appId = $registration['appId']; |
244 | 244 | $this->logger->logException($e, [ |
245 | - 'message' => "Error during event listener registration of $appId: " . $e->getMessage(), |
|
245 | + 'message' => "Error during event listener registration of $appId: ".$e->getMessage(), |
|
246 | 246 | 'level' => ILogger::ERROR, |
247 | 247 | ]); |
248 | 248 | } |
@@ -268,7 +268,7 @@ discard block |
||
268 | 268 | } catch (Throwable $e) { |
269 | 269 | $appId = $registration['appId']; |
270 | 270 | $this->logger->logException($e, [ |
271 | - 'message' => "Error during service registration of $appId: " . $e->getMessage(), |
|
271 | + 'message' => "Error during service registration of $appId: ".$e->getMessage(), |
|
272 | 272 | 'level' => ILogger::ERROR, |
273 | 273 | ]); |
274 | 274 | } |
@@ -285,7 +285,7 @@ discard block |
||
285 | 285 | } catch (Throwable $e) { |
286 | 286 | $appId = $registration['appId']; |
287 | 287 | $this->logger->logException($e, [ |
288 | - 'message' => "Error during service alias registration of $appId: " . $e->getMessage(), |
|
288 | + 'message' => "Error during service alias registration of $appId: ".$e->getMessage(), |
|
289 | 289 | 'level' => ILogger::ERROR, |
290 | 290 | ]); |
291 | 291 | } |
@@ -302,7 +302,7 @@ discard block |
||
302 | 302 | } catch (Throwable $e) { |
303 | 303 | $appId = $registration['appId']; |
304 | 304 | $this->logger->logException($e, [ |
305 | - 'message' => "Error during service alias registration of $appId: " . $e->getMessage(), |
|
305 | + 'message' => "Error during service alias registration of $appId: ".$e->getMessage(), |
|
306 | 306 | 'level' => ILogger::ERROR, |
307 | 307 | ]); |
308 | 308 | } |
@@ -321,7 +321,7 @@ discard block |
||
321 | 321 | } catch (Throwable $e) { |
322 | 322 | $appId = $middleware['appId']; |
323 | 323 | $this->logger->logException($e, [ |
324 | - 'message' => "Error during capability registration of $appId: " . $e->getMessage(), |
|
324 | + 'message' => "Error during capability registration of $appId: ".$e->getMessage(), |
|
325 | 325 | 'level' => ILogger::ERROR, |
326 | 326 | ]); |
327 | 327 | } |
@@ -91,7 +91,7 @@ discard block |
||
91 | 91 | * the \OCP\AppFramework\Bootstrap\IBootstrap interface |
92 | 92 | */ |
93 | 93 | $appNameSpace = App::buildAppNamespace($appId); |
94 | - $applicationClassName = $appNameSpace . '\\AppInfo\\Application'; |
|
94 | + $applicationClassName = $appNameSpace.'\\AppInfo\\Application'; |
|
95 | 95 | if (class_exists($applicationClassName) && in_array(IBootstrap::class, class_implements($applicationClassName), true)) { |
96 | 96 | try { |
97 | 97 | /** @var IBootstrap|App $application */ |
@@ -104,7 +104,7 @@ discard block |
||
104 | 104 | $application->register($this->registrationContext->for($appId)); |
105 | 105 | } catch (Throwable $e) { |
106 | 106 | $this->logger->logException($e, [ |
107 | - 'message' => 'Error during app service registration: ' . $e->getMessage(), |
|
107 | + 'message' => 'Error during app service registration: '.$e->getMessage(), |
|
108 | 108 | 'level' => ILogger::FATAL, |
109 | 109 | ]); |
110 | 110 | } |
@@ -128,7 +128,7 @@ discard block |
||
128 | 128 | |
129 | 129 | public function bootApp(string $appId): void { |
130 | 130 | $appNameSpace = App::buildAppNamespace($appId); |
131 | - $applicationClassName = $appNameSpace . '\\AppInfo\\Application'; |
|
131 | + $applicationClassName = $appNameSpace.'\\AppInfo\\Application'; |
|
132 | 132 | if (!class_exists($applicationClassName)) { |
133 | 133 | // Nothing to boot |
134 | 134 | return; |
@@ -150,12 +150,12 @@ discard block |
||
150 | 150 | } |
151 | 151 | } catch (QueryException $e) { |
152 | 152 | $this->logger->logException($e, [ |
153 | - 'message' => "Could not boot $appId" . $e->getMessage(), |
|
153 | + 'message' => "Could not boot $appId".$e->getMessage(), |
|
154 | 154 | ]); |
155 | 155 | return; |
156 | 156 | } catch (Throwable $e) { |
157 | 157 | $this->logger->logException($e, [ |
158 | - 'message' => "Could not boot $appId" . $e->getMessage(), |
|
158 | + 'message' => "Could not boot $appId".$e->getMessage(), |
|
159 | 159 | 'level' => ILogger::FATAL, |
160 | 160 | ]); |
161 | 161 | } |