@@ -6,5 +6,5 @@ |
||
| 6 | 6 | $baseDir = $vendorDir; |
| 7 | 7 | |
| 8 | 8 | return array( |
| 9 | - 'OCA\\ContactsInteraction\\' => array($baseDir . '/../lib'), |
|
| 9 | + 'OCA\\ContactsInteraction\\' => array($baseDir.'/../lib'), |
|
| 10 | 10 | ); |
@@ -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 | } |
@@ -56,7 +56,7 @@ |
||
| 56 | 56 | $uid = $publicKeyCredentialUserEntity->getId(); |
| 57 | 57 | $entities = $this->credentialMapper->findAllForUid($uid); |
| 58 | 58 | |
| 59 | - return array_map(function (PublicKeyCredentialEntity $entity) { |
|
| 59 | + return array_map(function(PublicKeyCredentialEntity $entity) { |
|
| 60 | 60 | return $entity->toPublicKeyCredentialSource(); |
| 61 | 61 | }, $entities); |
| 62 | 62 | } |
@@ -77,7 +77,7 @@ |
||
| 77 | 77 | 'preLoginNameUsedAsUserName', |
| 78 | 78 | ['uid' => &$uid] |
| 79 | 79 | ); |
| 80 | - $this->logger->debug('Got UID: ' . $uid); |
|
| 80 | + $this->logger->debug('Got UID: '.$uid); |
|
| 81 | 81 | |
| 82 | 82 | $publicKeyCredentialRequestOptions = $this->webAuthnManger->startAuthentication($uid, $this->request->getServerHost()); |
| 83 | 83 | $this->session->set(self::WEBAUTHN_LOGIN, json_encode($publicKeyCredentialRequestOptions)); |
@@ -30,7 +30,7 @@ |
||
| 30 | 30 | <h2><?php p($l->t('Connect to your account')) ?></h2> |
| 31 | 31 | <p class="info"> |
| 32 | 32 | <?php print_unescaped($l->t('Please log in before granting %1$s access to your %2$s account.', [ |
| 33 | - '<strong>' . \OCP\Util::sanitizeHTML($_['client']) . '</strong>', |
|
| 33 | + '<strong>'.\OCP\Util::sanitizeHTML($_['client']).'</strong>', |
|
| 34 | 34 | \OCP\Util::sanitizeHTML($_['instanceName']) |
| 35 | 35 | ])) ?> |
| 36 | 36 | </p> |
@@ -143,7 +143,7 @@ |
||
| 143 | 143 | * @return boolean |
| 144 | 144 | */ |
| 145 | 145 | public function isActive(IUser $user): bool { |
| 146 | - $appIds = array_filter($this->appManager->getEnabledAppsForUser($user), function ($appId) { |
|
| 146 | + $appIds = array_filter($this->appManager->getEnabledAppsForUser($user), function($appId) { |
|
| 147 | 147 | return $appId !== $this->appName; |
| 148 | 148 | }); |
| 149 | 149 | foreach ($appIds as $appId) { |
@@ -72,7 +72,7 @@ |
||
| 72 | 72 | * @return IProvider[] |
| 73 | 73 | */ |
| 74 | 74 | public function getPrimaryProviders(): array { |
| 75 | - return array_filter($this->providers, function (IProvider $provider) { |
|
| 75 | + return array_filter($this->providers, function(IProvider $provider) { |
|
| 76 | 76 | return !($provider instanceof BackupCodesProvider); |
| 77 | 77 | }); |
| 78 | 78 | } |
@@ -126,7 +126,7 @@ discard block |
||
| 126 | 126 | * @since 16.0.0 |
| 127 | 127 | */ |
| 128 | 128 | public function addResource(IResource $resource): void { |
| 129 | - array_map(function (IResource $r) use ($resource) { |
|
| 129 | + array_map(function(IResource $r) use ($resource) { |
|
| 130 | 130 | if ($this->isSameResource($r, $resource)) { |
| 131 | 131 | throw new ResourceException('Already part of the collection'); |
| 132 | 132 | } |
@@ -158,7 +158,7 @@ discard block |
||
| 158 | 158 | * @since 16.0.0 |
| 159 | 159 | */ |
| 160 | 160 | public function removeResource(IResource $resource): void { |
| 161 | - $this->resources = array_filter($this->getResources(), function (IResource $r) use ($resource) { |
|
| 161 | + $this->resources = array_filter($this->getResources(), function(IResource $r) use ($resource) { |
|
| 162 | 162 | return !$this->isSameResource($r, $resource); |
| 163 | 163 | }); |
| 164 | 164 | |
@@ -38,7 +38,7 @@ |
||
| 38 | 38 | * @since 15.0.0 |
| 39 | 39 | */ |
| 40 | 40 | public function __construct($property) { |
| 41 | - parent::__construct('Property ' . $property . ' does not exist.'); |
|
| 41 | + parent::__construct('Property '.$property.' does not exist.'); |
|
| 42 | 42 | } |
| 43 | 43 | |
| 44 | 44 | } |