@@ -74,7 +74,7 @@ discard block |
||
74 | 74 | $qb = $this->dbc->getQueryBuilder(); |
75 | 75 | $qb->select(['id', 'principaluri']) |
76 | 76 | ->from('dav_shares') |
77 | - ->where($qb->expr()->like('principaluri', $qb->createNamedParameter(self::GROUP_PRINCIPAL_PREFIX . '%'))); |
|
77 | + ->where($qb->expr()->like('principaluri', $qb->createNamedParameter(self::GROUP_PRINCIPAL_PREFIX.'%'))); |
|
78 | 78 | |
79 | 79 | $updateQuery = $this->dbc->getQueryBuilder(); |
80 | 80 | $updateQuery->update('dav_shares') |
@@ -100,7 +100,7 @@ discard block |
||
100 | 100 | // + AND there are no ambivalent groups |
101 | 101 | |
102 | 102 | try { |
103 | - $fixedPrincipal = self::GROUP_PRINCIPAL_PREFIX . $encodedGid; |
|
103 | + $fixedPrincipal = self::GROUP_PRINCIPAL_PREFIX.$encodedGid; |
|
104 | 104 | $logParameters = [ |
105 | 105 | 'app' => 'core', |
106 | 106 | 'id' => $share['id'], |
@@ -101,7 +101,7 @@ |
||
101 | 101 | } |
102 | 102 | } |
103 | 103 | } catch (Throwable $e) { |
104 | - $this->logger->warning('Could not read calendar data for interaction events: ' . $e->getMessage(), [ |
|
104 | + $this->logger->warning('Could not read calendar data for interaction events: '.$e->getMessage(), [ |
|
105 | 105 | 'exception' => $e, |
106 | 106 | ]); |
107 | 107 | } |
@@ -59,7 +59,7 @@ |
||
59 | 59 | $class = ($this->event !== null && is_object($this->event)) ? get_class($this->event) : 'null'; |
60 | 60 | $this->logger->info( |
61 | 61 | 'Deprecated event type for {name}: {class} is used', |
62 | - [ 'name' => $this->eventName, 'class' => $class] |
|
62 | + ['name' => $this->eventName, 'class' => $class] |
|
63 | 63 | ); |
64 | 64 | $this->deprecationNoticeLogged = true; |
65 | 65 | } |
@@ -38,12 +38,12 @@ |
||
38 | 38 | * @since 14.0.0 |
39 | 39 | * @deprecated 22.0.0 |
40 | 40 | */ |
41 | - public const EVENT_SUCCESS = self::class . '::success'; |
|
41 | + public const EVENT_SUCCESS = self::class.'::success'; |
|
42 | 42 | |
43 | 43 | /** |
44 | 44 | * @deprecated 22.0.0 |
45 | 45 | */ |
46 | - public const EVENT_FAILED = self::class . '::failed'; |
|
46 | + public const EVENT_FAILED = self::class.'::failed'; |
|
47 | 47 | |
48 | 48 | /** |
49 | 49 | * Get unique identifier of this 2FA provider |
@@ -42,12 +42,12 @@ |
||
42 | 42 | /** |
43 | 43 | * @deprecated 22.0.0 |
44 | 44 | */ |
45 | - public const EVENT_PROVIDER_ENABLED = self::class . '::enable'; |
|
45 | + public const EVENT_PROVIDER_ENABLED = self::class.'::enable'; |
|
46 | 46 | |
47 | 47 | /** |
48 | 48 | * @deprecated 22.0.0 |
49 | 49 | */ |
50 | - public const EVENT_PROVIDER_DISABLED = self::class . '::disable'; |
|
50 | + public const EVENT_PROVIDER_DISABLED = self::class.'::disable'; |
|
51 | 51 | |
52 | 52 | /** |
53 | 53 | * Get a key-value map of providers and their enabled/disabled state for |
@@ -50,7 +50,7 @@ |
||
50 | 50 | * @since 9.2.0 |
51 | 51 | * @deprecated 22.0.0 |
52 | 52 | */ |
53 | - public const EVENT = self::class . ':' . 'PreviewRequested'; |
|
53 | + public const EVENT = self::class.':'.'PreviewRequested'; |
|
54 | 54 | |
55 | 55 | public const MODE_FILL = 'fill'; |
56 | 56 | public const MODE_COVER = 'cover'; |
@@ -75,7 +75,7 @@ discard block |
||
75 | 75 | |
76 | 76 | $subject = $request->getParam('resource'); |
77 | 77 | $initialResponse = new JrdResponse($subject ?? ''); |
78 | - $finalResponse = array_reduce($handlers, function (?IResponse $previousResponse, IHandler $handler) use ($context, $service) { |
|
78 | + $finalResponse = array_reduce($handlers, function(?IResponse $previousResponse, IHandler $handler) use ($context, $service) { |
|
79 | 79 | return $handler->handle($service, $context, $previousResponse); |
80 | 80 | }, $initialResponse); |
81 | 81 | |
@@ -97,10 +97,10 @@ discard block |
||
97 | 97 | } |
98 | 98 | |
99 | 99 | $registrations = $context->getWellKnownHandlers(); |
100 | - $this->logger->debug(count($registrations) . " well known handlers registered"); |
|
100 | + $this->logger->debug(count($registrations)." well known handlers registered"); |
|
101 | 101 | |
102 | 102 | return array_filter( |
103 | - array_map(function (ServiceRegistration $registration) { |
|
103 | + array_map(function(ServiceRegistration $registration) { |
|
104 | 104 | /** @var ServiceRegistration<IHandler> $registration */ |
105 | 105 | $class = $registration->getService(); |
106 | 106 |
@@ -213,12 +213,12 @@ |
||
213 | 213 | continue; |
214 | 214 | } |
215 | 215 | |
216 | - $message = str_replace('@"' . $mention['id'] . '"', '{mention' . $mentionCount . '}', $message); |
|
216 | + $message = str_replace('@"'.$mention['id'].'"', '{mention'.$mentionCount.'}', $message); |
|
217 | 217 | if (strpos($mention['id'], ' ') === false && strpos($mention['id'], 'guest/') !== 0) { |
218 | - $message = str_replace('@' . $mention['id'], '{mention' . $mentionCount . '}', $message); |
|
218 | + $message = str_replace('@'.$mention['id'], '{mention'.$mentionCount.'}', $message); |
|
219 | 219 | } |
220 | 220 | |
221 | - $mentions['mention' . $mentionCount] = $this->generateUserParameter($mention['id']); |
|
221 | + $mentions['mention'.$mentionCount] = $this->generateUserParameter($mention['id']); |
|
222 | 222 | $mentionCount++; |
223 | 223 | } |
224 | 224 |
@@ -37,6 +37,6 @@ |
||
37 | 37 | } |
38 | 38 | |
39 | 39 | public function isAvailable(FileInfo $file): bool { |
40 | - return (bool)(imagetypes() & IMG_WEBP); |
|
40 | + return (bool) (imagetypes() & IMG_WEBP); |
|
41 | 41 | } |
42 | 42 | } |