@@ -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) { |
@@ -146,8 +146,8 @@ discard block |
||
| 146 | 146 | } |
| 147 | 147 | |
| 148 | 148 | private function entitiesToArray(array $entities) { |
| 149 | - return array_map(function (IEntity $entity) { |
|
| 150 | - $events = array_map(function (IEntityEvent $entityEvent) { |
|
| 149 | + return array_map(function(IEntity $entity) { |
|
| 150 | + $events = array_map(function(IEntityEvent $entityEvent) { |
|
| 151 | 151 | return [ |
| 152 | 152 | 'eventName' => $entityEvent->getEventName(), |
| 153 | 153 | 'displayName' => $entityEvent->getDisplayName() |
@@ -164,11 +164,11 @@ discard block |
||
| 164 | 164 | } |
| 165 | 165 | |
| 166 | 166 | private function operatorsToArray(array $operators) { |
| 167 | - $operators = array_filter($operators, function (IOperation $operator) { |
|
| 167 | + $operators = array_filter($operators, function(IOperation $operator) { |
|
| 168 | 168 | return $operator->isAvailableForScope($this->getScope()); |
| 169 | 169 | }); |
| 170 | 170 | |
| 171 | - return array_map(function (IOperation $operator) { |
|
| 171 | + return array_map(function(IOperation $operator) { |
|
| 172 | 172 | return [ |
| 173 | 173 | 'id' => get_class($operator), |
| 174 | 174 | 'icon' => $operator->getIcon(), |
@@ -182,11 +182,11 @@ discard block |
||
| 182 | 182 | } |
| 183 | 183 | |
| 184 | 184 | private function checksToArray(array $checks) { |
| 185 | - $checks = array_filter($checks, function (ICheck $check) { |
|
| 185 | + $checks = array_filter($checks, function(ICheck $check) { |
|
| 186 | 186 | return $check->isAvailableForScope($this->getScope()); |
| 187 | 187 | }); |
| 188 | 188 | |
| 189 | - return array_map(function (ICheck $check) { |
|
| 189 | + return array_map(function(ICheck $check) { |
|
| 190 | 190 | return [ |
| 191 | 191 | 'id' => get_class($check), |
| 192 | 192 | 'supportedEntities' => $check->supportedEntities(), |
@@ -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 | } |
@@ -112,7 +112,7 @@ discard block |
||
| 112 | 112 | $searchResult->markExactIdMatch($resultType); |
| 113 | 113 | } |
| 114 | 114 | $result['exact'][] = [ |
| 115 | - 'label' => $contact['FN'] . " ($cloudId)", |
|
| 115 | + 'label' => $contact['FN']." ($cloudId)", |
|
| 116 | 116 | 'uuid' => $contact['UID'], |
| 117 | 117 | 'name' => $contact['FN'], |
| 118 | 118 | 'type' => $cloudIdType, |
@@ -124,7 +124,7 @@ discard block |
||
| 124 | 124 | ]; |
| 125 | 125 | } else { |
| 126 | 126 | $result['wide'][] = [ |
| 127 | - 'label' => $contact['FN'] . " ($cloudId)", |
|
| 127 | + 'label' => $contact['FN']." ($cloudId)", |
|
| 128 | 128 | 'uuid' => $contact['UID'], |
| 129 | 129 | 'name' => $contact['FN'], |
| 130 | 130 | 'type' => $cloudIdType, |
@@ -154,7 +154,7 @@ discard block |
||
| 154 | 154 | $localUser = $this->userManager->get($remoteUser); |
| 155 | 155 | if ($localUser === null || $search !== $localUser->getCloudId()) { |
| 156 | 156 | $result['exact'][] = [ |
| 157 | - 'label' => $remoteUser . " ($serverUrl)", |
|
| 157 | + 'label' => $remoteUser." ($serverUrl)", |
|
| 158 | 158 | 'uuid' => $remoteUser, |
| 159 | 159 | 'name' => $remoteUser, |
| 160 | 160 | 'value' => [ |
@@ -143,7 +143,7 @@ |
||
| 143 | 143 | } elseif ($existing === 'exclusive') { |
| 144 | 144 | return $existing; |
| 145 | 145 | } else { |
| 146 | - return $existing . ' shared locks'; |
|
| 146 | + return $existing.' shared locks'; |
|
| 147 | 147 | } |
| 148 | 148 | } |
| 149 | 149 | } |