@@ -6,5 +6,5 @@ |
||
6 | 6 | $baseDir = $vendorDir; |
7 | 7 | |
8 | 8 | return array( |
9 | - 'OCA\\Accessibility\\' => array($baseDir . '/../lib'), |
|
9 | + 'OCA\\Accessibility\\' => array($baseDir.'/../lib'), |
|
10 | 10 | ); |
@@ -2,6 +2,6 @@ |
||
2 | 2 | |
3 | 3 | // autoload.php @generated by Composer |
4 | 4 | |
5 | -require_once __DIR__ . '/composer/autoload_real.php'; |
|
5 | +require_once __DIR__.'/composer/autoload_real.php'; |
|
6 | 6 | |
7 | 7 | return ComposerAutoloaderInitAccessibility::getLoader(); |
@@ -370,18 +370,18 @@ discard block |
||
370 | 370 | private function findFileWithExtension($class, $ext) |
371 | 371 | { |
372 | 372 | // PSR-4 lookup |
373 | - $logicalPathPsr4 = strtr($class, '\\', DIRECTORY_SEPARATOR) . $ext; |
|
373 | + $logicalPathPsr4 = strtr($class, '\\', DIRECTORY_SEPARATOR).$ext; |
|
374 | 374 | |
375 | 375 | $first = $class[0]; |
376 | 376 | if (isset($this->prefixLengthsPsr4[$first])) { |
377 | 377 | $subPath = $class; |
378 | 378 | while (false !== $lastPos = strrpos($subPath, '\\')) { |
379 | 379 | $subPath = substr($subPath, 0, $lastPos); |
380 | - $search = $subPath . '\\'; |
|
380 | + $search = $subPath.'\\'; |
|
381 | 381 | if (isset($this->prefixDirsPsr4[$search])) { |
382 | - $pathEnd = DIRECTORY_SEPARATOR . substr($logicalPathPsr4, $lastPos + 1); |
|
382 | + $pathEnd = DIRECTORY_SEPARATOR.substr($logicalPathPsr4, $lastPos + 1); |
|
383 | 383 | foreach ($this->prefixDirsPsr4[$search] as $dir) { |
384 | - if (file_exists($file = $dir . $pathEnd)) { |
|
384 | + if (file_exists($file = $dir.$pathEnd)) { |
|
385 | 385 | return $file; |
386 | 386 | } |
387 | 387 | } |
@@ -391,7 +391,7 @@ discard block |
||
391 | 391 | |
392 | 392 | // PSR-4 fallback dirs |
393 | 393 | foreach ($this->fallbackDirsPsr4 as $dir) { |
394 | - if (file_exists($file = $dir . DIRECTORY_SEPARATOR . $logicalPathPsr4)) { |
|
394 | + if (file_exists($file = $dir.DIRECTORY_SEPARATOR.$logicalPathPsr4)) { |
|
395 | 395 | return $file; |
396 | 396 | } |
397 | 397 | } |
@@ -403,14 +403,14 @@ discard block |
||
403 | 403 | . strtr(substr($logicalPathPsr4, $pos + 1), '_', DIRECTORY_SEPARATOR); |
404 | 404 | } else { |
405 | 405 | // PEAR-like class name |
406 | - $logicalPathPsr0 = strtr($class, '_', DIRECTORY_SEPARATOR) . $ext; |
|
406 | + $logicalPathPsr0 = strtr($class, '_', DIRECTORY_SEPARATOR).$ext; |
|
407 | 407 | } |
408 | 408 | |
409 | 409 | if (isset($this->prefixesPsr0[$first])) { |
410 | 410 | foreach ($this->prefixesPsr0[$first] as $prefix => $dirs) { |
411 | 411 | if (0 === strpos($class, $prefix)) { |
412 | 412 | foreach ($dirs as $dir) { |
413 | - if (file_exists($file = $dir . DIRECTORY_SEPARATOR . $logicalPathPsr0)) { |
|
413 | + if (file_exists($file = $dir.DIRECTORY_SEPARATOR.$logicalPathPsr0)) { |
|
414 | 414 | return $file; |
415 | 415 | } |
416 | 416 | } |
@@ -420,7 +420,7 @@ discard block |
||
420 | 420 | |
421 | 421 | // PSR-0 fallback dirs |
422 | 422 | foreach ($this->fallbackDirsPsr0 as $dir) { |
423 | - if (file_exists($file = $dir . DIRECTORY_SEPARATOR . $logicalPathPsr0)) { |
|
423 | + if (file_exists($file = $dir.DIRECTORY_SEPARATOR.$logicalPathPsr0)) { |
|
424 | 424 | return $file; |
425 | 425 | } |
426 | 426 | } |
@@ -6,5 +6,5 @@ |
||
6 | 6 | $baseDir = $vendorDir; |
7 | 7 | |
8 | 8 | return array( |
9 | - 'OCA\\WorkflowEngine\\' => array($baseDir . '/../lib'), |
|
9 | + 'OCA\\WorkflowEngine\\' => array($baseDir.'/../lib'), |
|
10 | 10 | ); |
@@ -2,6 +2,6 @@ |
||
2 | 2 | |
3 | 3 | // autoload.php @generated by Composer |
4 | 4 | |
5 | -require_once __DIR__ . '/composer/autoload_real.php'; |
|
5 | +require_once __DIR__.'/composer/autoload_real.php'; |
|
6 | 6 | |
7 | 7 | return ComposerAutoloaderInitWorkflowEngine::getLoader(); |
@@ -85,7 +85,7 @@ discard block |
||
85 | 85 | $tokens = $this->tokenProvider->getTokenByUser($user->getUID()); |
86 | 86 | |
87 | 87 | /** @var IWipeableToken[] $wipeable */ |
88 | - $wipeable = array_filter($tokens, function (IToken $token) { |
|
88 | + $wipeable = array_filter($tokens, function(IToken $token) { |
|
89 | 89 | return $token instanceof IWipeableToken; |
90 | 90 | }); |
91 | 91 | |
@@ -121,7 +121,7 @@ discard block |
||
121 | 121 | |
122 | 122 | $dbToken = $e->getToken(); |
123 | 123 | |
124 | - $this->logger->info("user " . $dbToken->getUID() . " started a remote wipe"); |
|
124 | + $this->logger->info("user ".$dbToken->getUID()." started a remote wipe"); |
|
125 | 125 | |
126 | 126 | $this->eventDispatcher->dispatch(RemoteWipeStarted::class, new RemoteWipeStarted($dbToken)); |
127 | 127 | |
@@ -149,7 +149,7 @@ discard block |
||
149 | 149 | |
150 | 150 | $this->tokenProvider->invalidateToken($token); |
151 | 151 | |
152 | - $this->logger->info("user " . $dbToken->getUID() . " finished a remote wipe"); |
|
152 | + $this->logger->info("user ".$dbToken->getUID()." finished a remote wipe"); |
|
153 | 153 | $this->eventDispatcher->dispatch(RemoteWipeFinished::class, new RemoteWipeFinished($dbToken)); |
154 | 154 | |
155 | 155 | return true; |
@@ -84,7 +84,7 @@ discard block |
||
84 | 84 | public function registerNotifier(\Closure $service, \Closure $info) { |
85 | 85 | $infoData = $info(); |
86 | 86 | $this->logger->logException(new \InvalidArgumentException( |
87 | - 'Notifier ' . $infoData['name'] . ' (id: ' . $infoData['id'] . ') is not considered because it is using the old way to register.' |
|
87 | + 'Notifier '.$infoData['name'].' (id: '.$infoData['id'].') is not considered because it is using the old way to register.' |
|
88 | 88 | )); |
89 | 89 | } |
90 | 90 | |
@@ -110,14 +110,14 @@ discard block |
||
110 | 110 | $app = \OC::$server->query($appClass); |
111 | 111 | } catch (QueryException $e) { |
112 | 112 | $this->logger->logException($e, [ |
113 | - 'message' => 'Failed to load notification app class: ' . $appClass, |
|
113 | + 'message' => 'Failed to load notification app class: '.$appClass, |
|
114 | 114 | 'app' => 'notifications', |
115 | 115 | ]); |
116 | 116 | continue; |
117 | 117 | } |
118 | 118 | |
119 | 119 | if (!($app instanceof IApp)) { |
120 | - $this->logger->error('Notification app class ' . $appClass . ' is not implementing ' . IApp::class, [ |
|
120 | + $this->logger->error('Notification app class '.$appClass.' is not implementing '.IApp::class, [ |
|
121 | 121 | 'app' => 'notifications', |
122 | 122 | ]); |
123 | 123 | continue; |
@@ -144,14 +144,14 @@ discard block |
||
144 | 144 | $notifier = \OC::$server->query($notifierClass); |
145 | 145 | } catch (QueryException $e) { |
146 | 146 | $this->logger->logException($e, [ |
147 | - 'message' => 'Failed to load notification notifier class: ' . $notifierClass, |
|
147 | + 'message' => 'Failed to load notification notifier class: '.$notifierClass, |
|
148 | 148 | 'app' => 'notifications', |
149 | 149 | ]); |
150 | 150 | continue; |
151 | 151 | } |
152 | 152 | |
153 | 153 | if (!($notifier instanceof INotifier)) { |
154 | - $this->logger->error('Notification notifier class ' . $notifierClass . ' is not implementing ' . INotifier::class, [ |
|
154 | + $this->logger->error('Notification notifier class '.$notifierClass.' is not implementing '.INotifier::class, [ |
|
155 | 155 | 'app' => 'notifications', |
156 | 156 | ]); |
157 | 157 | continue; |
@@ -61,5 +61,5 @@ |
||
61 | 61 | * @return string|null - The value stored for the key, null if no value stored |
62 | 62 | * @since 17.0.0 |
63 | 63 | */ |
64 | - public function getMetadataForKey(string $key):?string; |
|
64 | + public function getMetadataForKey(string $key): ?string; |
|
65 | 65 | } |
@@ -60,10 +60,10 @@ |
||
60 | 60 | */ |
61 | 61 | public function mergePolicies(FeaturePolicy $defaultPolicy, |
62 | 62 | EmptyFeaturePolicy $originalPolicy): FeaturePolicy { |
63 | - foreach ((object)(array)$originalPolicy as $name => $value) { |
|
64 | - $setter = 'set' . ucfirst($name); |
|
63 | + foreach ((object) (array) $originalPolicy as $name => $value) { |
|
64 | + $setter = 'set'.ucfirst($name); |
|
65 | 65 | if (\is_array($value)) { |
66 | - $getter = 'get' . ucfirst($name); |
|
66 | + $getter = 'get'.ucfirst($name); |
|
67 | 67 | $currentValues = \is_array($defaultPolicy->$getter()) ? $defaultPolicy->$getter() : []; |
68 | 68 | $defaultPolicy->$setter(\array_values(\array_unique(\array_merge($currentValues, $value)))); |
69 | 69 | } elseif (\is_bool($value)) { |