@@ -86,7 +86,7 @@ |
||
| 86 | 86 | $response = new Response(); |
| 87 | 87 | $response->addHeader('Access-Control-Allow-Origin', $origin); |
| 88 | 88 | $response->addHeader('Access-Control-Allow-Methods', $this->corsMethods); |
| 89 | - $response->addHeader('Access-Control-Max-Age', (string)$this->corsMaxAge); |
|
| 89 | + $response->addHeader('Access-Control-Max-Age', (string) $this->corsMaxAge); |
|
| 90 | 90 | $response->addHeader('Access-Control-Allow-Headers', $this->corsAllowedHeaders); |
| 91 | 91 | $response->addHeader('Access-Control-Allow-Credentials', 'false'); |
| 92 | 92 | return $response; |
@@ -82,7 +82,7 @@ |
||
| 82 | 82 | |
| 83 | 83 | if ($runIsSetupDirectly) { |
| 84 | 84 | $applicationClassName = get_class($this); |
| 85 | - $e = new \RuntimeException('App class ' . $applicationClassName . ' is not setup via query() but directly'); |
|
| 85 | + $e = new \RuntimeException('App class '.$applicationClassName.' is not setup via query() but directly'); |
|
| 86 | 86 | $setUpViaQuery = false; |
| 87 | 87 | |
| 88 | 88 | $classNameParts = explode('\\', trim($applicationClassName, '\\')); |
@@ -64,7 +64,7 @@ |
||
| 64 | 64 | $this->manager->invalidateTokenById($uid, $token->getId()); |
| 65 | 65 | } |
| 66 | 66 | } catch (Throwable $e) { |
| 67 | - $this->logger->error('Could not clean up auth tokens after user deletion: ' . $e->getMessage(), [ |
|
| 67 | + $this->logger->error('Could not clean up auth tokens after user deletion: '.$e->getMessage(), [ |
|
| 68 | 68 | 'exception' => $e, |
| 69 | 69 | ]); |
| 70 | 70 | } |
@@ -25,12 +25,12 @@ |
||
| 25 | 25 | ?> |
| 26 | 26 | |
| 27 | 27 | <div id="two-factor-auth" class="section"> |
| 28 | - <h2><?php p($l->t('Two-Factor Authentication'));?></h2> |
|
| 28 | + <h2><?php p($l->t('Two-Factor Authentication')); ?></h2> |
|
| 29 | 29 | <a target="_blank" rel="noreferrer noopener" class="icon-info" |
| 30 | - title="<?php p($l->t('Open documentation'));?>" |
|
| 30 | + title="<?php p($l->t('Open documentation')); ?>" |
|
| 31 | 31 | href="<?php p(link_to_docs('user-2fa')); ?>"></a> |
| 32 | - <p class="settings-hint"><?php p($l->t('Use a second factor besides your password to increase security for your account.'));?></p> |
|
| 33 | - <p class="settings-hint"><?php p($l->t('If you use third party applications to connect to Nextcloud, please make sure to create and configure an app password for each before enabling second factor authentication.'));?></p> |
|
| 32 | + <p class="settings-hint"><?php p($l->t('Use a second factor besides your password to increase security for your account.')); ?></p> |
|
| 33 | + <p class="settings-hint"><?php p($l->t('If you use third party applications to connect to Nextcloud, please make sure to create and configure an app password for each before enabling second factor authentication.')); ?></p> |
|
| 34 | 34 | <ul> |
| 35 | 35 | <?php foreach ($_['twoFactorProviderData']['providers'] as $data) { ?> |
| 36 | 36 | <li> |
@@ -63,7 +63,7 @@ |
||
| 63 | 63 | $managerProvider = $this->managerProvider; |
| 64 | 64 | $manager = $managerProvider(); |
| 65 | 65 | $data['manager'] = $manager; |
| 66 | - $mountPoint = '/' . $user->getUID() . '/files/' . ltrim($data['mountpoint'], '/'); |
|
| 66 | + $mountPoint = '/'.$user->getUID().'/files/'.ltrim($data['mountpoint'], '/'); |
|
| 67 | 67 | $data['mountpoint'] = $mountPoint; |
| 68 | 68 | $data['cloudId'] = $this->cloudIdManager->getCloudId($data['owner'], $data['remote']); |
| 69 | 69 | $data['certificateManager'] = \OC::$server->getCertificateManager(); |
@@ -94,7 +94,7 @@ |
||
| 94 | 94 | * @param bool $httpOnly |
| 95 | 95 | */ |
| 96 | 96 | public function setCookie($name, $value, $expire, $path, $domain, $secure, $httpOnly, $sameSite = 'Lax') { |
| 97 | - $path = $this->webRoot ? : '/'; |
|
| 97 | + $path = $this->webRoot ?: '/'; |
|
| 98 | 98 | |
| 99 | 99 | setcookie($name, $value, [ |
| 100 | 100 | 'expires' => $expire, |
@@ -152,7 +152,7 @@ |
||
| 152 | 152 | |
| 153 | 153 | public function copyObject($from, $to) { |
| 154 | 154 | $this->getContainer()->getObject($from)->copy([ |
| 155 | - 'destination' => $this->getContainer()->name . '/' . $to |
|
| 155 | + 'destination' => $this->getContainer()->name.'/'.$to |
|
| 156 | 156 | ]); |
| 157 | 157 | } |
| 158 | 158 | } |
@@ -6,33 +6,33 @@ |
||
| 6 | 6 | |
| 7 | 7 | class ComposerStaticInitShareByMail |
| 8 | 8 | { |
| 9 | - public static $prefixLengthsPsr4 = array ( |
|
| 9 | + public static $prefixLengthsPsr4 = array( |
|
| 10 | 10 | 'O' => |
| 11 | - array ( |
|
| 11 | + array( |
|
| 12 | 12 | 'OCA\\ShareByMail\\' => 16, |
| 13 | 13 | ), |
| 14 | 14 | ); |
| 15 | 15 | |
| 16 | - public static $prefixDirsPsr4 = array ( |
|
| 16 | + public static $prefixDirsPsr4 = array( |
|
| 17 | 17 | 'OCA\\ShareByMail\\' => |
| 18 | - array ( |
|
| 19 | - 0 => __DIR__ . '/..' . '/../lib', |
|
| 18 | + array( |
|
| 19 | + 0 => __DIR__.'/..'.'/../lib', |
|
| 20 | 20 | ), |
| 21 | 21 | ); |
| 22 | 22 | |
| 23 | - public static $classMap = array ( |
|
| 24 | - 'Composer\\InstalledVersions' => __DIR__ . '/..' . '/composer/InstalledVersions.php', |
|
| 25 | - 'OCA\\ShareByMail\\Activity' => __DIR__ . '/..' . '/../lib/Activity.php', |
|
| 26 | - 'OCA\\ShareByMail\\AppInfo\\Application' => __DIR__ . '/..' . '/../lib/AppInfo/Application.php', |
|
| 27 | - 'OCA\\ShareByMail\\Capabilities' => __DIR__ . '/..' . '/../lib/Capabilities.php', |
|
| 28 | - 'OCA\\ShareByMail\\Settings\\Admin' => __DIR__ . '/..' . '/../lib/Settings/Admin.php', |
|
| 29 | - 'OCA\\ShareByMail\\Settings\\SettingsManager' => __DIR__ . '/..' . '/../lib/Settings/SettingsManager.php', |
|
| 30 | - 'OCA\\ShareByMail\\ShareByMailProvider' => __DIR__ . '/..' . '/../lib/ShareByMailProvider.php', |
|
| 23 | + public static $classMap = array( |
|
| 24 | + 'Composer\\InstalledVersions' => __DIR__.'/..'.'/composer/InstalledVersions.php', |
|
| 25 | + 'OCA\\ShareByMail\\Activity' => __DIR__.'/..'.'/../lib/Activity.php', |
|
| 26 | + 'OCA\\ShareByMail\\AppInfo\\Application' => __DIR__.'/..'.'/../lib/AppInfo/Application.php', |
|
| 27 | + 'OCA\\ShareByMail\\Capabilities' => __DIR__.'/..'.'/../lib/Capabilities.php', |
|
| 28 | + 'OCA\\ShareByMail\\Settings\\Admin' => __DIR__.'/..'.'/../lib/Settings/Admin.php', |
|
| 29 | + 'OCA\\ShareByMail\\Settings\\SettingsManager' => __DIR__.'/..'.'/../lib/Settings/SettingsManager.php', |
|
| 30 | + 'OCA\\ShareByMail\\ShareByMailProvider' => __DIR__.'/..'.'/../lib/ShareByMailProvider.php', |
|
| 31 | 31 | ); |
| 32 | 32 | |
| 33 | 33 | public static function getInitializer(ClassLoader $loader) |
| 34 | 34 | { |
| 35 | - return \Closure::bind(function () use ($loader) { |
|
| 35 | + return \Closure::bind(function() use ($loader) { |
|
| 36 | 36 | $loader->prefixLengthsPsr4 = ComposerStaticInitShareByMail::$prefixLengthsPsr4; |
| 37 | 37 | $loader->prefixDirsPsr4 = ComposerStaticInitShareByMail::$prefixDirsPsr4; |
| 38 | 38 | $loader->classMap = ComposerStaticInitShareByMail::$classMap; |
@@ -6,11 +6,11 @@ |
||
| 6 | 6 | $baseDir = $vendorDir; |
| 7 | 7 | |
| 8 | 8 | return array( |
| 9 | - 'Composer\\InstalledVersions' => $vendorDir . '/composer/InstalledVersions.php', |
|
| 10 | - 'OCA\\ShareByMail\\Activity' => $baseDir . '/../lib/Activity.php', |
|
| 11 | - 'OCA\\ShareByMail\\AppInfo\\Application' => $baseDir . '/../lib/AppInfo/Application.php', |
|
| 12 | - 'OCA\\ShareByMail\\Capabilities' => $baseDir . '/../lib/Capabilities.php', |
|
| 13 | - 'OCA\\ShareByMail\\Settings\\Admin' => $baseDir . '/../lib/Settings/Admin.php', |
|
| 14 | - 'OCA\\ShareByMail\\Settings\\SettingsManager' => $baseDir . '/../lib/Settings/SettingsManager.php', |
|
| 15 | - 'OCA\\ShareByMail\\ShareByMailProvider' => $baseDir . '/../lib/ShareByMailProvider.php', |
|
| 9 | + 'Composer\\InstalledVersions' => $vendorDir.'/composer/InstalledVersions.php', |
|
| 10 | + 'OCA\\ShareByMail\\Activity' => $baseDir.'/../lib/Activity.php', |
|
| 11 | + 'OCA\\ShareByMail\\AppInfo\\Application' => $baseDir.'/../lib/AppInfo/Application.php', |
|
| 12 | + 'OCA\\ShareByMail\\Capabilities' => $baseDir.'/../lib/Capabilities.php', |
|
| 13 | + 'OCA\\ShareByMail\\Settings\\Admin' => $baseDir.'/../lib/Settings/Admin.php', |
|
| 14 | + 'OCA\\ShareByMail\\Settings\\SettingsManager' => $baseDir.'/../lib/Settings/SettingsManager.php', |
|
| 15 | + 'OCA\\ShareByMail\\ShareByMailProvider' => $baseDir.'/../lib/ShareByMailProvider.php', |
|
| 16 | 16 | ); |