]> source.dussan.org Git - nextcloud-server.git/commitdiff
Fix typos in lib/private subdirectory 33380/head
authorluz paz <luzpaz@github.com>
Wed, 27 Jul 2022 12:51:42 +0000 (08:51 -0400)
committerluz paz <luzpaz@pm.me>
Wed, 27 Jul 2022 12:52:17 +0000 (08:52 -0400)
Found via `codespell -q 3 -S l10n -L jus ./lib/private`

Signed-off-by: luz paz <luzpaz@github.com>
37 files changed:
lib/private/App/CompareVersion.php
lib/private/AppFramework/Http/Dispatcher.php
lib/private/AppFramework/Http/Request.php
lib/private/AppFramework/Middleware/MiddlewareDispatcher.php
lib/private/Authentication/Token/IProvider.php
lib/private/Avatar/Avatar.php
lib/private/Contacts/ContactsMenu/ContactsStore.php
lib/private/DB/QueryBuilder/QueryBuilder.php
lib/private/Files/Cache/Cache.php
lib/private/Files/Cache/Propagator.php
lib/private/Files/Cache/QuerySearchHelper.php
lib/private/Files/Cache/Storage.php
lib/private/Files/Cache/StorageGlobal.php
lib/private/Files/Cache/Updater.php
lib/private/Files/Config/UserMountCache.php
lib/private/Files/FileInfo.php
lib/private/Files/Node/Folder.php
lib/private/Files/Node/Root.php
lib/private/Files/SimpleFS/NewSimpleFile.php
lib/private/Files/SimpleFS/SimpleFile.php
lib/private/Files/View.php
lib/private/HintException.php
lib/private/Http/Client/Client.php
lib/private/MemoryInfo.php
lib/private/Metadata/IMetadataManager.php
lib/private/OCS/DiscoveryService.php
lib/private/Profile/ProfileManager.php
lib/private/Repair/RemoveLinkShares.php
lib/private/Route/Router.php
lib/private/Security/TrustedDomainHelper.php
lib/private/Session/Internal.php
lib/private/Share/Constants.php
lib/private/Share/Share.php
lib/private/Share20/DefaultShareProvider.php
lib/private/Share20/Manager.php
lib/private/Share20/Share.php
lib/private/URLGenerator.php

index d155945fff1e68ddc6bec97d24d724fbd3f053d7..a349c7aa6f21dc59176c8426ade90cc511bbfea5 100644 (file)
@@ -41,7 +41,7 @@ class CompareVersion {
         * so '13.0.1', '13.0' and '13' are valid.
         *
         * @param string $actual version as major.minor.patch notation
-        * @param string $required version where major is requried and minor and patch are optional
+        * @param string $required version where major is required and minor and patch are optional
         * @param string $comparator passed to `version_compare`
         * @return bool whether the requirement is fulfilled
         * @throws InvalidArgumentException if versions specified in an invalid format
index 21d61bc95aaf1145578f29e6afb108ad23905620..c1a203a7165f8731fbd4c8a277dad29597a50840 100644 (file)
@@ -118,7 +118,7 @@ class Dispatcher {
                $out = [null, [], null];
 
                try {
-                       // prefill reflector with everything thats needed for the
+                       // prefill reflector with everything that's needed for the
                        // middlewares
                        $this->reflector->reflect($controller, $methodName);
 
@@ -156,7 +156,7 @@ class Dispatcher {
 
                        // if an exception appears, the middleware checks if it can handle the
                        // exception and creates a response. If no response is created, it is
-                       // assumed that theres no middleware who can handle it and the error is
+                       // assumed that there's no middleware who can handle it and the error is
                        // thrown again
                } catch (\Exception $exception) {
                        $response = $this->middlewareDispatcher->afterException(
index 010d889070e19646f5f9e8d48bdab43af7c89ca5..35cd46bf68af51a3bacd29a7267d53df8529eeec 100644 (file)
@@ -342,7 +342,7 @@ class Request implements \ArrayAccess, \Countable, IRequest {
 
        /**
         * Returns all params that were received, be it from the request
-        * (as GET or POST) or throuh the URL by the route
+        * (as GET or POST) or through the URL by the route
         * @return array the array with all parameters
         */
        public function getParams(): array {
index 950ef8a13a3f401e799c58cae7ee7e4929a5bfc6..adf17e53caab4d225ea3960bbea73ad4066b7de4 100644 (file)
@@ -46,7 +46,7 @@ class MiddlewareDispatcher {
        private $middlewares;
 
        /**
-        * @var int counter which tells us what middlware was executed once an
+        * @var int counter which tells us what middleware was executed once an
         *                  exception occurs
         */
        private $middlewareCounter;
index 0a145bfd7e63dc075a29304fa8eed2749892d831..33e0ad4626336c28789735a100d073ae8dfc2136 100644 (file)
@@ -158,7 +158,7 @@ interface IProvider {
        public function setPassword(IToken $token, string $tokenId, string $password);
 
        /**
-        * Rotate the token. Usefull for for example oauth tokens
+        * Rotate the token. Useful for for example oauth tokens
         *
         * @param IToken $token
         * @param string $oldTokenId
index 25099a4f13925f9cff0f8ee43dc8a53b361fa96d..0eb8f8816d826dd17d61f85751add9145783a954 100644 (file)
@@ -236,7 +236,7 @@ abstract class Avatar implements IAvatar {
        }
 
        /**
-        * @return Color Object containting r g b int in the range [0, 255]
+        * @return Color Object containing r g b int in the range [0, 255]
         */
        public function avatarBackgroundColor(string $hash): Color {
                // Normalize hash
index 4d7fda39c6a4dc2e98eb8ccabd714815892f62d5..dd4bd973fa94ceb9504ccbdcdf6efe99fd964a34 100644 (file)
@@ -123,7 +123,7 @@ class ContactsStore implements IContactsStore {
         *  2. if the `shareapi_exclude_groups` config option is enabled and the
         * current user is in an excluded group it will filter all local users.
         *  3. if the `shareapi_only_share_with_group_members` config option is
-        * enabled it will filter all users which doens't have a common group
+        * enabled it will filter all users which doesn't have a common group
         * with the current user.
         *
         * @param IUser $self
index 8fc66755a99ffa930fe88da3e0671afc9c3f979b..d991cbd1dd55b767b5c519870236c8d2fd11e9fc 100644 (file)
@@ -852,7 +852,7 @@ class QueryBuilder implements IQueryBuilder {
         *         ->from('users', 'u')
         *         ->where('u.id = ?');
         *
-        *     // You can optionally programatically build and/or expressions
+        *     // You can optionally programmatically build and/or expressions
         *     $qb = $conn->getQueryBuilder();
         *
         *     $or = $qb->expr()->orx();
index 33a07e9b9e56db5d83f9e7e21ba2ccd90b8000de..110e55bcc6cdbf10d3a89531466d5b6a26d645da 100644 (file)
@@ -64,7 +64,7 @@ use Psr\Log\LoggerInterface;
 /**
  * Metadata cache for a storage
  *
- * The cache stores the metadata for all files and folders in a storage and is kept up to date trough the following mechanisms:
+ * The cache stores the metadata for all files and folders in a storage and is kept up to date through the following mechanisms:
  *
  * - Scanner: scans the storage and updates the cache where needed
  * - Watcher: checks for changes made to the filesystem outside of the Nextcloud instance and rescans files and folder when a change is detected
@@ -582,7 +582,7 @@ class Cache implements ICache {
                $parentIds = [$entry->getId()];
                $queue = [$entry->getId()];
 
-               // we walk depth first trough the file tree, removing all filecache_extended attributes while we walk
+               // we walk depth first through the file tree, removing all filecache_extended attributes while we walk
                // and collecting all folder ids to later use to delete the filecache entries
                while ($entryId = array_pop($queue)) {
                        $children = $this->getFolderContentsById($entryId);
index afff2fb51ff2a004ca8636964a5c58a15bd07133..a0953baa7858795901c190bd1bbe191061910410 100644 (file)
@@ -66,7 +66,7 @@ class Propagator implements IPropagator {
         * @param int $sizeDifference number of bytes the file has grown
         */
        public function propagateChange($internalPath, $time, $sizeDifference = 0) {
-               // Do not propogate changes in ignored paths
+               // Do not propagate changes in ignored paths
                foreach ($this->ignore as $ignore) {
                        if (strpos($internalPath, $ignore) === 0) {
                                return;
index 69a2944b2dd4d9fa6e8b62331aef268692835892..3529ede9746d7a9b7da71a393f53f26dc88a4cfd 100644 (file)
@@ -158,7 +158,7 @@ class QuerySearchHelper {
 
                $result->closeCursor();
 
-               // loop trough all caches for each result to see if the result matches that storage
+               // loop through all caches for each result to see if the result matches that storage
                // results are grouped by the same array keys as the caches argument to allow the caller to distringuish the source of the results
                $results = array_fill_keys(array_keys($caches), []);
                foreach ($rawEntries as $rawEntry) {
index fb9e550065850f49a21f12a73ae3e509739908bc..f77c9b71dd7a4514b86941e71d5b7da3e427eb97 100644 (file)
@@ -40,7 +40,7 @@ use Psr\Log\LoggerInterface;
  *     a string id which is generated by the storage backend and reflects the configuration of the storage (e.g. 'smb://user@host/share')
  *     and a numeric storage id which is referenced in the file cache
  *
- * A mapping between the two storage ids is stored in the database and accessible trough this class
+ * A mapping between the two storage ids is stored in the database and accessible through this class
  *
  * @package OC\Files\Cache
  */
@@ -135,7 +135,7 @@ class Storage {
         * Get the numeric of the storage with the provided string id
         *
         * @param $storageId
-        * @return int|null either the numeric storage id or null if the storage id is not knwon
+        * @return int|null either the numeric storage id or null if the storage id is not known
         */
        public static function getNumericStorageId($storageId) {
                $storageId = self::adjustStorageId($storageId);
index a898c4354157eee0c288e9c2d814aa26062a00ad..74cbd5abdb2226d97a9b512681814bc50cb074a7 100644 (file)
@@ -33,7 +33,7 @@ use OCP\IDBConnection;
  *    a string id which is generated by the storage backend and reflects the configuration of the storage (e.g. 'smb://user@host/share')
  *    and a numeric storage id which is referenced in the file cache
  *
- * A mapping between the two storage ids is stored in the database and accessible trough this class
+ * A mapping between the two storage ids is stored in the database and accessible through this class
  *
  * @package OC\Files\Cache
  */
index 98fb51fe2643874ba92a5f147b4c0367e452a011..f8c187996e69dab6ec5ec316e579c537ec81f82a 100644 (file)
@@ -73,14 +73,14 @@ class Updater implements IUpdater {
        }
 
        /**
-        * Disable updating the cache trough this updater
+        * Disable updating the cache through this updater
         */
        public function disable() {
                $this->enabled = false;
        }
 
        /**
-        * Re-enable the updating of the cache trough this updater
+        * Re-enable the updating of the cache through this updater
         */
        public function enable() {
                $this->enabled = true;
index f26c42938d3e812c46ce4ed0e482f3781a68e081..685057a78600f2e93a2541f0e55afe56ad0561fd 100644 (file)
@@ -42,7 +42,7 @@ use OCP\IUserManager;
 use Psr\Log\LoggerInterface;
 
 /**
- * Cache mounts points per user in the cache so we can easilly look them up
+ * Cache mounts points per user in the cache so we can easily look them up
  */
 class UserMountCache implements IUserMountCache {
        private IDBConnection $connection;
index 7a984429d1f3198eed7ded195dffaa14967367bd..47c893ebbf1538963f7afc94685ea4b9021cce1e 100644 (file)
@@ -414,7 +414,7 @@ class FileInfo implements \OCP\Files\FileInfo, \ArrayAccess {
                if (isset($data['etag'])) {
                        // prefix the etag with the relative path of the subentry to propagate etag on mount moves
                        $relativeEntryPath = substr($entryPath, strlen($this->getPath()));
-                       // attach the permissions to propagate etag on permision changes of submounts
+                       // attach the permissions to propagate etag on permission changes of submounts
                        $permissions = isset($data['permissions']) ? $data['permissions'] : 0;
                        $this->childEtags[] = $relativeEntryPath . '/' . $data['etag'] . $permissions;
                }
index b56b7e0f851dcfaf780d6d9a808fe12ecd49bc04..42562c99bcb235e8c9e4b193ed8feabb21623d63 100644 (file)
@@ -262,7 +262,7 @@ class Folder extends Node implements \OCP\Files\Folder {
                $searchHelper = \OC::$server->get(QuerySearchHelper::class);
                $resultsPerCache = $searchHelper->searchInCaches($query, $caches);
 
-               // loop trough all results per-cache, constructing the FileInfo object from the CacheEntry and merge them all
+               // loop through all results per-cache, constructing the FileInfo object from the CacheEntry and merge them all
                $files = array_merge(...array_map(function (array $results, $relativeMountPoint) use ($mountByMountPoint) {
                        $mount = $mountByMountPoint[$relativeMountPoint];
                        return array_map(function (ICacheEntry $result) use ($relativeMountPoint, $mount) {
index 9e3d4afd8d8d722664d350a97d6218d6afcdb586..ca930c1002c0f60fbb3eecf3fa5eeb5add98d099 100644 (file)
@@ -427,7 +427,7 @@ class Root extends Folder implements IRootFolder {
                        $mountsContainingFile = $mountCache->getMountsForFileId($id, $user);
                }
 
-               // when a user has access trough the same storage trough multiple paths
+               // when a user has access through the same storage through multiple paths
                // (such as an external storage that is both mounted for a user and shared to the user)
                // the mount cache will only hold a single entry for the storage
                // this can lead to issues as the different ways the user has access to a storage can have different permissions
index 5fdd794ba985842169767f856b80c67bec5b48c7..b2a183b7d29798366095cfd16c286e60e04e802d 100644 (file)
@@ -127,7 +127,7 @@ class NewSimpleFile implements ISimpleFile {
 
        /**
         * Sometimes there are some issues with the AppData. Most of them are from
-        * user error. But we should handle them gracefull anyway.
+        * user error. But we should handle them gracefully anyway.
         *
         * If for some reason the current file can't be found. We remove it.
         * Then traverse up and check all folders if they exists. This so that the
index a07871337a671ce1efc52a3aac17bb1d3485bfd9..a2571ac50e8cd94d078fc3e3f5ba2c1af5b9a88e 100644 (file)
@@ -97,7 +97,7 @@ class SimpleFile implements ISimpleFile {
 
        /**
         * Sometimes there are some issues with the AppData. Most of them are from
-        * user error. But we should handle them gracefull anyway.
+        * user error. But we should handle them gracefully anyway.
         *
         * If for some reason the current file can't be found. We remove it.
         * Then traverse up and check all folders if they exists. This so that the
index 2b6732e2ba0577f746c4f6e97ce4af980c19bfc9..d12869fbdaae685b627eabe55816eb63e354f1c6 100644 (file)
@@ -1164,7 +1164,7 @@ class View {
                                        try {
                                                $this->changeLock($path, ILockingProvider::LOCK_EXCLUSIVE);
                                        } catch (LockedException $e) {
-                                               // release the shared lock we acquired before quiting
+                                               // release the shared lock we acquired before quitting
                                                $this->unlockFile($path, ILockingProvider::LOCK_SHARED);
                                                throw $e;
                                        }
@@ -1725,7 +1725,7 @@ class View {
        /**
         * Get the path of a file by id, relative to the view
         *
-        * Note that the resulting path is not guarantied to be unique for the id, multiple paths can point to the same file
+        * Note that the resulting path is not guaranteed to be unique for the id, multiple paths can point to the same file
         *
         * @param int $id
         * @param int|null $storageId
index 735832266cf4d767033cff2d16d9db3ab2ddfca7..20f7142d1c0e1a6eb1e67c0f01e3cb6f908b0544 100644 (file)
@@ -31,7 +31,7 @@ namespace OC;
  * An Exception class with the intention to be presented to the end user
  *
  * @package OC
- * @depreacted 23.0.0 Use \OCP\HintException
+ * @deprecated 23.0.0 Use \OCP\HintException
  */
 class HintException extends \OCP\HintException {
 }
index 3ba85a2dd9f7ec2a6b99d719df26fb208817730d..4bf7fd02400095483fc7486ce03021a252f1e5e9 100644 (file)
@@ -128,7 +128,7 @@ class Client implements IClient {
        }
 
        /**
-        * Returns a null or an associative array specifiying the proxy URI for
+        * Returns a null or an associative array specifying the proxy URI for
         * 'http' and 'https' schemes, in addition to a 'no' key value pair
         * providing a list of host names that should not be proxied to.
         *
index 074e9f915fe8f5a8ce3e4393302108867232620d..ed6617d879d923db4dbe3c9e3dda40f994c5bb2e 100644 (file)
@@ -68,7 +68,7 @@ class MemoryInfo {
                $last = strtolower(substr($memoryLimit, -1));
                $memoryLimit = (int)substr($memoryLimit, 0, -1);
 
-               // intended fall trough
+               // intended fall through
                switch ($last) {
                        case 'g':
                                $memoryLimit *= 1024;
index d2d37f15c258e58b72c1c48758c92f3bdb050ea1..fa0bcc228016632f845d0a809743628ac4ab8f4c 100644 (file)
@@ -29,7 +29,7 @@ interface IMetadataManager {
        public function fetchMetadataFor(string $group, array $fileIds): array;
 
        /**
-        * Get the capabilites as an array of mimetype regex to the type provided
+        * Get the capabilities as an array of mimetype regex to the type provided
         */
        public function getCapabilities(): array;
 }
index 1d10bbac8702aa3abc391b1fad7b9ba9de67d87e..7ab876811e742c13a98565688c048aee209f07d8 100644 (file)
@@ -62,7 +62,7 @@ class DiscoveryService implements IDiscoveryService {
         *
         * @param string $remote
         * @param string $service the service you want to discover
-        * @param bool $skipCache We won't check if the data is in the cache. This is usefull if a background job is updating the status
+        * @param bool $skipCache We won't check if the data is in the cache. This is useful if a background job is updating the status
         * @return array
         */
        public function discover(string $remote, string $service, bool $skipCache = false): array {
index edb51458c66607da9e650a3a69bbfaf41bd4721b..f2eacd1ef25ef28f282aab897ebac0bf9eae22e4 100644 (file)
@@ -348,13 +348,13 @@ class ProfileManager {
         * Return the default profile config
         */
        private function getDefaultProfileConfig(IUser $targetUser, ?IUser $visitingUser): array {
-               // Contruct the default config for actions
+               // Construct the default config for actions
                $actionsConfig = [];
                foreach ($this->getActions($targetUser, $visitingUser) as $action) {
                        $actionsConfig[$action->getId()] = ['visibility' => ProfileConfig::DEFAULT_VISIBILITY];
                }
 
-               // Contruct the default config for account properties
+               // Construct the default config for account properties
                $propertiesConfig = [];
                foreach (ProfileConfig::DEFAULT_PROPERTY_VISIBILITY as $property => $visibility) {
                        $propertiesConfig[$property] = ['visibility' => $visibility];
index 1b0270e928dcf008e329a3e8b3ea2bbcad16a248..e1ce78cdbf313e58ad2750b7f5fd259b84aa556b 100644 (file)
@@ -217,7 +217,7 @@ class RemoveLinkShares implements IRepairStep {
                $output->finishProgress();
                $shareResult->closeCursor();
 
-               // Notifiy all admins
+               // Notify all admins
                $adminGroup = $this->groupManager->get('admin');
                $adminUsers = $adminGroup->getUsers();
                foreach ($adminUsers as $user) {
index b957173cacc155f1d6815c7a8c420a4299359b82..7e1acd49800b73a48841070a29ac781f718b151e 100644 (file)
@@ -409,7 +409,7 @@ class Router implements IRouter {
         * register the routes for the app. The application class will be chosen by
         * camelcasing the appname, e.g.: my_app will be turned into
         * \OCA\MyApp\AppInfo\Application. If that class does not exist, a default
-        * App will be intialized. This makes it optional to ship an
+        * App will be initialized. This makes it optional to ship an
         * appinfo/application.php by using the built in query resolver
         *
         * @param array $routes the application routes
index 0688ebba5b3bc08100b5f534a431075db5ccc7f7..1927af9cb1d01d5f5843df7d31bd3988eefa2f4e 100644 (file)
@@ -97,7 +97,7 @@ class TrustedDomainHelper implements ITrustedDomainHelper {
                if (preg_match(Request::REGEX_LOCALHOST, $domain) === 1) {
                        return true;
                }
-               // Reject misformed domains in any case
+               // Reject malformed domains in any case
                if (strpos($domain, '-') === 0 || strpos($domain, '..') !== false) {
                        return false;
                }
index 285b6fd796037ebcb355280b8925312b3bcb3097..6e0c54c6fab4eaab791a6574931107445bbf9137 100644 (file)
@@ -172,7 +172,7 @@ class Internal extends Session {
         * @throws \Exception
         */
        public function reopen() {
-               throw new \Exception('The session cannot be reopened - reopen() is ony to be used in unit testing.');
+               throw new \Exception('The session cannot be reopened - reopen() is only to be used in unit testing.');
        }
 
        /**
index 31c734f94aa7d6276cf54f2ed59349b943333326..3632a2a26d1c0af0fd8ad76a135cc480aadbaef7 100644 (file)
@@ -79,7 +79,7 @@ class Constants {
        public const FORMAT_STATUSES = -2;
        public const FORMAT_SOURCES = -3;  // ToDo Check if it is still in use otherwise remove it
 
-       public const RESPONSE_FORMAT = 'json'; // default resonse format for ocs calls
+       public const RESPONSE_FORMAT = 'json'; // default response format for ocs calls
 
        public const TOKEN_LENGTH = 15; // old (oc7) length is 32, keep token length in db at least that for compatibility
 
index 9018f35ac2aa4b0ed02503c8eb424f277179f01f..f47c042df29b9451d7db08f4292945fe57afae1d 100644 (file)
@@ -732,7 +732,7 @@ class Share extends Constants {
                        foreach ($result as $key => $r) {
                                // for file/folder shares we need to compare file_source, otherwise we compare item_source
                                // only group shares if they already point to the same target, otherwise the file where shared
-                               // before grouping of shares was added. In this case we don't group them toi avoid confusions
+                               // before grouping of shares was added. In this case we don't group them to avoid confusions
                                if (($fileSharing && $item['file_source'] === $r['file_source'] && $item['file_target'] === $r['file_target']) ||
                                        (!$fileSharing && $item['item_source'] === $r['item_source'] && $item['item_target'] === $r['item_target'])) {
                                        // add the first item to the list of grouped shares
@@ -757,7 +757,7 @@ class Share extends Constants {
        /**
         * construct select statement
         * @param int $format
-        * @param boolean $fileDependent ist it a file/folder share or a generla share
+        * @param boolean $fileDependent ist it a file/folder share or a general share
         * @param string $uidOwner
         * @return string select statement
         */
index 7719a1e6be3c1748e73ac4a5c5eb6cb82f434248..e4cf0415202da73bf5e09ddbc5d4745ae6d962e9 100644 (file)
@@ -1294,7 +1294,7 @@ class DefaultShareProvider implements IShareProvider {
                        $chunks = array_chunk($ids, 100);
                        foreach ($chunks as $chunk) {
                                /*
-                                * Delete all special shares wit this users for the found group shares
+                                * Delete all special shares with this users for the found group shares
                                 */
                                $qb->delete('share')
                                        ->where($qb->expr()->eq('share_type', $qb->createNamedParameter(IShare::TYPE_USERGROUP)))
index 46f256df54d199e7406752ec33a223aa87c3a1ef..25511491a24240b820e75fbcbc7137ed1d943311 100644 (file)
@@ -2010,7 +2010,7 @@ class Manager implements IManager {
        /**
         * Copied from \OC_Util::isSharingDisabledForUser
         *
-        * TODO: Deprecate fuction from OC_Util
+        * TODO: Deprecate function from OC_Util
         *
         * @param string $userId
         * @return bool
index 7ed03832e4c7194f6541031a4381f9dccd7807c8..e21564563a228f5b94e33a8405dfd2a2bdd43799 100644 (file)
@@ -319,7 +319,7 @@ class Share implements IShare {
         * @inheritdoc
         */
        public function setPermissions($permissions) {
-               //TODO checkes
+               //TODO checks
 
                $this->permissions = $permissions;
                return $this;
index 753a4a217d1c0360cd7feacc3bc0d2df488a1275..47979a038bae0e195395293b7d9e0d3a25112c7a 100644 (file)
@@ -320,7 +320,7 @@ class URLGenerator implements IURLGenerator {
         * @return string base url of the current request
         */
        public function getBaseUrl(): string {
-               // BaseUrl can be equal to 'http(s)://' during the first steps of the intial setup.
+               // BaseUrl can be equal to 'http(s)://' during the first steps of the initial setup.
                if ($this->baseUrl === null || $this->baseUrl === "http://" || $this->baseUrl === "https://") {
                        $this->baseUrl = $this->request->getServerProtocol() . '://' . $this->request->getServerHost() . \OC::$WEBROOT;
                }