summaryrefslogtreecommitdiffstats
path: root/lib/private
diff options
context:
space:
mode:
authorRoeland Jago Douma <roeland@famdouma.nl>2019-11-22 20:52:10 +0100
committerRoeland Jago Douma <roeland@famdouma.nl>2019-11-22 20:52:10 +0100
commit68748d4f85dd23238aaafb787b1c341f0f2f0419 (patch)
tree7aab3a925dda8dcd6ef4e8c6fe04063abbadd6af /lib/private
parent21119633041d5ccae19975a58b0ae50ef5a8e33a (diff)
downloadnextcloud-server-68748d4f85dd23238aaafb787b1c341f0f2f0419.tar.gz
nextcloud-server-68748d4f85dd23238aaafb787b1c341f0f2f0419.zip
Some php-cs fixes
* Order the imports * No leading slash on imports * Empty line before namespace * One line per import * Empty after imports * Emmpty line at bottom of file Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'lib/private')
-rw-r--r--lib/private/Accounts/AccountManager.php3
-rw-r--r--lib/private/Accounts/Hooks.php1
-rw-r--r--lib/private/Activity/Manager.php1
-rw-r--r--lib/private/App/AppStore/Fetcher/Fetcher.php2
-rw-r--r--lib/private/App/CodeChecker/EmptyCheck.php1
-rw-r--r--lib/private/App/CodeChecker/ICheck.php1
-rw-r--r--lib/private/App/PlatformRepository.php1
-rw-r--r--lib/private/AppFramework/App.php5
-rw-r--r--lib/private/AppFramework/DependencyInjection/DIContainer.php5
-rw-r--r--lib/private/AppFramework/Http.php3
-rw-r--r--lib/private/AppFramework/Http/Dispatcher.php10
-rw-r--r--lib/private/AppFramework/Middleware/MiddlewareDispatcher.php1
-rw-r--r--lib/private/AppFramework/Middleware/OCSMiddleware.php3
-rw-r--r--lib/private/AppFramework/Middleware/Security/PasswordConfirmationMiddleware.php1
-rw-r--r--lib/private/AppFramework/Middleware/Security/SameSiteCookieMiddleware.php1
-rw-r--r--lib/private/AppFramework/Middleware/Security/SecurityMiddleware.php13
-rw-r--r--lib/private/AppFramework/Middleware/SessionMiddleware.php2
-rw-r--r--lib/private/AppFramework/OCS/BaseResponse.php1
-rw-r--r--lib/private/AppFramework/OCS/V1Response.php1
-rw-r--r--lib/private/AppFramework/OCS/V2Response.php3
-rw-r--r--lib/private/AppFramework/Routing/RouteActionHandler.php4
-rw-r--r--lib/private/AppFramework/Utility/ControllerMethodReflector.php2
-rw-r--r--lib/private/AppFramework/Utility/SimpleContainer.php6
-rw-r--r--lib/private/AppFramework/Utility/TimeFactory.php1
-rw-r--r--lib/private/Authentication/Exceptions/ExpiredTokenException.php1
-rw-r--r--lib/private/Authentication/Exceptions/WipeTokenException.php1
-rw-r--r--lib/private/Authentication/Login/PreLoginHookCommand.php2
-rw-r--r--lib/private/Authentication/Token/INamedToken.php2
-rw-r--r--lib/private/Avatar/Avatar.php4
-rw-r--r--lib/private/Avatar/AvatarManager.php2
-rw-r--r--lib/private/BackgroundJob/JobList.php2
-rw-r--r--lib/private/CapabilitiesManager.php1
-rw-r--r--lib/private/Collaboration/Resources/Collection.php4
-rw-r--r--lib/private/Comments/Comment.php1
-rw-r--r--lib/private/Comments/Manager.php2
-rw-r--r--lib/private/Comments/ManagerFactory.php1
-rw-r--r--lib/private/Config.php1
-rw-r--r--lib/private/Console/Application.php1
-rw-r--r--lib/private/Contacts/ContactsMenu/ContactsStore.php2
-rw-r--r--lib/private/DB/AdapterMySQL.php1
-rw-r--r--lib/private/DB/AdapterOCI8.php1
-rw-r--r--lib/private/DB/AdapterPgSql.php1
-rw-r--r--lib/private/DB/AdapterSqlite.php1
-rw-r--r--lib/private/DB/Connection.php8
-rw-r--r--lib/private/DB/MigrationService.php2
-rw-r--r--lib/private/DB/Migrator.php12
-rw-r--r--lib/private/DB/MissingIndexInformation.php2
-rw-r--r--lib/private/DB/OracleMigrator.php2
-rw-r--r--lib/private/DB/QueryBuilder/QueryBuilder.php2
-rw-r--r--lib/private/DB/SQLiteSessionInit.php2
-rw-r--r--lib/private/Dashboard/DashboardManager.php3
-rw-r--r--lib/private/Encryption/DecryptAll.php3
-rw-r--r--lib/private/Encryption/EncryptionWrapper.php5
-rw-r--r--lib/private/Encryption/Exceptions/DecryptionFailedException.php1
-rw-r--r--lib/private/Encryption/Exceptions/EmptyEncryptionDataException.php1
-rw-r--r--lib/private/Encryption/Exceptions/EncryptionFailedException.php1
-rw-r--r--lib/private/Encryption/Exceptions/EncryptionHeaderToLargeException.php1
-rw-r--r--lib/private/Encryption/Exceptions/UnknownCipherException.php1
-rw-r--r--lib/private/Encryption/Keys/Storage.php2
-rw-r--r--lib/private/Encryption/Update.php4
-rw-r--r--lib/private/EventDispatcher/EventDispatcher.php4
-rw-r--r--lib/private/EventDispatcher/SymfonyAdapter.php2
-rw-r--r--lib/private/Federation/CloudFederationProviderManager.php1
-rw-r--r--lib/private/Files/AppData/AppData.php4
-rw-r--r--lib/private/Files/AppData/Factory.php1
-rw-r--r--lib/private/Files/Cache/AbstractCacheEvent.php2
-rw-r--r--lib/private/Files/Cache/Cache.php4
-rw-r--r--lib/private/Files/Cache/Wrapper/CacheWrapper.php2
-rw-r--r--lib/private/Files/Config/CachedMountFileInfo.php2
-rw-r--r--lib/private/Files/Config/MountProviderCollection.php2
-rw-r--r--lib/private/Files/Config/UserMountCache.php2
-rw-r--r--lib/private/Files/Mount/MountPoint.php4
-rw-r--r--lib/private/Files/Node/HookConnector.php2
-rw-r--r--lib/private/Files/Node/LazyRoot.php1
-rw-r--r--lib/private/Files/Node/Root.php4
-rw-r--r--lib/private/Files/ObjectStore/HomeObjectStoreStorage.php2
-rw-r--r--lib/private/Files/ObjectStore/Mapper.php1
-rw-r--r--lib/private/Files/ObjectStore/NoopScanner.php4
-rw-r--r--lib/private/Files/ObjectStore/SwiftFactory.php6
-rw-r--r--lib/private/Files/SimpleFS/SimpleFile.php1
-rw-r--r--lib/private/Files/SimpleFS/SimpleFolder.php1
-rw-r--r--lib/private/Files/Storage/Common.php2
-rw-r--r--lib/private/Files/Storage/DAV.php9
-rw-r--r--lib/private/Files/Storage/FailedStorage.php4
-rw-r--r--lib/private/Files/Storage/Wrapper/Availability.php1
-rw-r--r--lib/private/Files/Storage/Wrapper/Encoding.php2
-rw-r--r--lib/private/Files/Storage/Wrapper/Encryption.php2
-rw-r--r--lib/private/Files/Type/Loader.php2
-rw-r--r--lib/private/Files/Utils/Scanner.php3
-rw-r--r--lib/private/Files/View.php1
-rw-r--r--lib/private/FullTextSearch/FullTextSearchManager.php3
-rw-r--r--lib/private/FullTextSearch/Model/DocumentAccess.php3
-rw-r--r--lib/private/FullTextSearch/Model/IndexDocument.php3
-rw-r--r--lib/private/FullTextSearch/Model/SearchOption.php2
-rw-r--r--lib/private/FullTextSearch/Model/SearchRequestSimpleQuery.php2
-rw-r--r--lib/private/FullTextSearch/Model/SearchTemplate.php3
-rw-r--r--lib/private/GlobalScale/Config.php1
-rw-r--r--lib/private/Group/Group.php4
-rw-r--r--lib/private/Group/MetaData.php2
-rw-r--r--lib/private/L10N/LanguageNotFoundException.php1
-rw-r--r--lib/private/Lock/MemcacheLockingProvider.php2
-rw-r--r--lib/private/Log.php2
-rw-r--r--lib/private/Log/Errorlog.php1
-rw-r--r--lib/private/Log/File.php2
-rw-r--r--lib/private/Log/Systemdlog.php2
-rw-r--r--lib/private/Mail/Mailer.php2
-rw-r--r--lib/private/Memcache/Redis.php1
-rw-r--r--lib/private/Migration/BackgroundRepair.php1
-rw-r--r--lib/private/Migration/ConsoleOutput.php1
-rw-r--r--lib/private/Migration/SimpleOutput.php1
-rw-r--r--lib/private/OCS/DiscoveryService.php1
-rw-r--r--lib/private/Preview/Bitmap.php2
-rw-r--r--lib/private/Preview/Generator.php2
-rw-r--r--lib/private/Preview/GeneratorHelper.php1
-rw-r--r--lib/private/Preview/HEIC.php2
-rw-r--r--lib/private/Preview/Image.php1
-rw-r--r--lib/private/Preview/MP3.php1
-rw-r--r--lib/private/Preview/MSOffice2003.php1
-rw-r--r--lib/private/Preview/MSOffice2007.php1
-rw-r--r--lib/private/Preview/MSOfficeDoc.php1
-rw-r--r--lib/private/Preview/MarkDown.php1
-rw-r--r--lib/private/Preview/Movie.php1
-rw-r--r--lib/private/Preview/Office.php3
-rw-r--r--lib/private/Preview/OpenDocument.php1
-rw-r--r--lib/private/Preview/Provider.php1
-rw-r--r--lib/private/Preview/SVG.php3
-rw-r--r--lib/private/Preview/StarOffice.php1
-rw-r--r--lib/private/Preview/TXT.php1
-rw-r--r--lib/private/Preview/Watcher.php3
-rw-r--r--lib/private/Preview/WatcherConnector.php3
-rw-r--r--lib/private/PreviewManager.php1
-rw-r--r--lib/private/Repair/AddCleanupUpdaterBackupsJob.php1
-rw-r--r--lib/private/Repair/ClearFrontendCaches.php4
-rw-r--r--lib/private/Repair/Collation.php1
-rw-r--r--lib/private/Repair/MoveUpdaterStepFile.php1
-rw-r--r--lib/private/Repair/NC11/FixMountStorages.php1
-rw-r--r--lib/private/Repair/NC13/AddLogRotateJob.php1
-rw-r--r--lib/private/Repair/NC14/AddPreviewBackgroundCleanupJob.php1
-rw-r--r--lib/private/Repair/NC17/SwitchUpdateChannel.php1
-rw-r--r--lib/private/Repair/Owncloud/DropAccountTermsTable.php1
-rw-r--r--lib/private/Repair/Owncloud/SaveAccountsTableData.php1
-rw-r--r--lib/private/Repair/SqliteAutoincrement.php5
-rw-r--r--lib/private/Route/Router.php6
-rw-r--r--lib/private/Search.php2
-rw-r--r--lib/private/Security/Bruteforce/Capabilities.php1
-rw-r--r--lib/private/Security/CSP/ContentSecurityPolicy.php1
-rw-r--r--lib/private/Security/CredentialsManager.php2
-rw-r--r--lib/private/Security/Crypto.php7
-rw-r--r--lib/private/Settings/Manager.php2
-rw-r--r--lib/private/Setup/AbstractDatabase.php1
-rw-r--r--lib/private/Setup/MySQL.php1
-rw-r--r--lib/private/Setup/PostgreSQL.php1
-rw-r--r--lib/private/Share/SearchResultSorter.php2
-rw-r--r--lib/private/Share20/DefaultShareProvider.php23
-rw-r--r--lib/private/Share20/Exception/BackendError.php1
-rw-r--r--lib/private/Share20/Exception/InvalidShare.php1
-rw-r--r--lib/private/Share20/Exception/ProviderException.php2
-rw-r--r--lib/private/Share20/Hooks.php1
-rw-r--r--lib/private/Share20/LegacyHooks.php2
-rw-r--r--lib/private/Share20/Manager.php4
-rw-r--r--lib/private/Share20/ProviderFactory.php5
-rw-r--r--lib/private/Share20/Share.php1
-rw-r--r--lib/private/Share20/ShareHelper.php1
-rw-r--r--lib/private/SubAdmin.php6
-rw-r--r--lib/private/SystemTag/ManagerFactory.php1
-rw-r--r--lib/private/SystemTag/SystemTagManager.php6
-rw-r--r--lib/private/Tagging/Tag.php2
-rw-r--r--lib/private/Tagging/TagMapper.php7
-rw-r--r--lib/private/TempManager.php2
-rw-r--r--lib/private/Template/IconsCacher.php4
-rw-r--r--lib/private/Template/JSCombiner.php3
-rw-r--r--lib/private/Template/JSConfigHelper.php1
-rw-r--r--lib/private/Template/SCSSCacher.php4
-rw-r--r--lib/private/TemplateLayout.php3
-rw-r--r--lib/private/Updater/VersionCheck.php1
-rw-r--r--lib/private/User/Backend.php2
-rw-r--r--lib/private/User/Manager.php4
-rw-r--r--lib/private/User/NoUserException.php2
-rw-r--r--lib/private/User/User.php4
-rw-r--r--lib/private/legacy/util.php2
180 files changed, 220 insertions, 223 deletions
diff --git a/lib/private/Accounts/AccountManager.php b/lib/private/Accounts/AccountManager.php
index 7a73ec455eb..ada1228954c 100644
--- a/lib/private/Accounts/AccountManager.php
+++ b/lib/private/Accounts/AccountManager.php
@@ -23,9 +23,9 @@
*
*/
-
namespace OC\Accounts;
+use OCA\Settings\BackgroundJobs\VerifyUserData;
use OCP\Accounts\IAccount;
use OCP\Accounts\IAccountManager;
use OCP\BackgroundJob\IJobList;
@@ -33,7 +33,6 @@ use OCP\IDBConnection;
use OCP\IUser;
use Symfony\Component\EventDispatcher\EventDispatcherInterface;
use Symfony\Component\EventDispatcher\GenericEvent;
-use OCA\Settings\BackgroundJobs\VerifyUserData;
/**
* Class AccountManager
diff --git a/lib/private/Accounts/Hooks.php b/lib/private/Accounts/Hooks.php
index df0b80e8229..2226b1e0b55 100644
--- a/lib/private/Accounts/Hooks.php
+++ b/lib/private/Accounts/Hooks.php
@@ -21,7 +21,6 @@
*
*/
-
namespace OC\Accounts;
use OCP\ILogger;
diff --git a/lib/private/Activity/Manager.php b/lib/private/Activity/Manager.php
index ba2d1147bc8..29c3c7bbc4d 100644
--- a/lib/private/Activity/Manager.php
+++ b/lib/private/Activity/Manager.php
@@ -23,6 +23,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>
*
*/
+
namespace OC\Activity;
diff --git a/lib/private/App/AppStore/Fetcher/Fetcher.php b/lib/private/App/AppStore/Fetcher/Fetcher.php
index db8c38ac686..b7679685b40 100644
--- a/lib/private/App/AppStore/Fetcher/Fetcher.php
+++ b/lib/private/App/AppStore/Fetcher/Fetcher.php
@@ -27,8 +27,8 @@
namespace OC\App\AppStore\Fetcher;
-use OC\Files\AppData\Factory;
use GuzzleHttp\Exception\ConnectException;
+use OC\Files\AppData\Factory;
use OCP\AppFramework\Http;
use OCP\AppFramework\Utility\ITimeFactory;
use OCP\Files\IAppData;
diff --git a/lib/private/App/CodeChecker/EmptyCheck.php b/lib/private/App/CodeChecker/EmptyCheck.php
index 02fbb46d7de..0a2217212a2 100644
--- a/lib/private/App/CodeChecker/EmptyCheck.php
+++ b/lib/private/App/CodeChecker/EmptyCheck.php
@@ -19,6 +19,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>
*
*/
+
namespace OC\App\CodeChecker;
class EmptyCheck implements ICheck {
diff --git a/lib/private/App/CodeChecker/ICheck.php b/lib/private/App/CodeChecker/ICheck.php
index 4dfaa23c538..d34d01cd55d 100644
--- a/lib/private/App/CodeChecker/ICheck.php
+++ b/lib/private/App/CodeChecker/ICheck.php
@@ -19,6 +19,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>
*
*/
+
namespace OC\App\CodeChecker;
interface ICheck {
diff --git a/lib/private/App/PlatformRepository.php b/lib/private/App/PlatformRepository.php
index f94fb3ad504..a264a4dd6c5 100644
--- a/lib/private/App/PlatformRepository.php
+++ b/lib/private/App/PlatformRepository.php
@@ -19,6 +19,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>
*
*/
+
namespace OC\App;
/**
diff --git a/lib/private/AppFramework/App.php b/lib/private/AppFramework/App.php
index 691c5514881..122f4684558 100644
--- a/lib/private/AppFramework/App.php
+++ b/lib/private/AppFramework/App.php
@@ -26,16 +26,15 @@ declare(strict_types=1);
*
*/
-
namespace OC\AppFramework;
-use OC\AppFramework\Http\Dispatcher;
use OC\AppFramework\DependencyInjection\DIContainer;
+use OC\AppFramework\Http\Dispatcher;
use OC\HintException;
use OCP\AppFramework\Http;
-use OCP\AppFramework\QueryException;
use OCP\AppFramework\Http\ICallbackResponse;
use OCP\AppFramework\Http\IOutput;
+use OCP\AppFramework\QueryException;
use OCP\IRequest;
/**
diff --git a/lib/private/AppFramework/DependencyInjection/DIContainer.php b/lib/private/AppFramework/DependencyInjection/DIContainer.php
index 5f3fa1b6dc6..b41be947adb 100644
--- a/lib/private/AppFramework/DependencyInjection/DIContainer.php
+++ b/lib/private/AppFramework/DependencyInjection/DIContainer.php
@@ -32,7 +32,6 @@
*
*/
-
namespace OC\AppFramework\DependencyInjection;
use OC;
@@ -40,14 +39,15 @@ use OC\AppFramework\Http;
use OC\AppFramework\Http\Dispatcher;
use OC\AppFramework\Http\Output;
use OC\AppFramework\Middleware\MiddlewareDispatcher;
-use OC\AppFramework\Middleware\Security\CORSMiddleware;
use OC\AppFramework\Middleware\OCSMiddleware;
+use OC\AppFramework\Middleware\Security\CORSMiddleware;
use OC\AppFramework\Middleware\Security\RateLimitingMiddleware;
use OC\AppFramework\Middleware\Security\SecurityMiddleware;
use OC\AppFramework\Middleware\SessionMiddleware;
use OC\AppFramework\Utility\SimpleContainer;
use OC\Core\Middleware\TwoFactorMiddleware;
use OC\ServerContainer;
+use OCA\WorkflowEngine\Manager;
use OCP\AppFramework\Http\IOutput;
use OCP\AppFramework\IAppContainer;
use OCP\AppFramework\QueryException;
@@ -65,7 +65,6 @@ use OCP\IServerContainer;
use OCP\ISession;
use OCP\IURLGenerator;
use OCP\IUserSession;
-use OCA\WorkflowEngine\Manager;
class DIContainer extends SimpleContainer implements IAppContainer {
diff --git a/lib/private/AppFramework/Http.php b/lib/private/AppFramework/Http.php
index e126c8a1cf0..0b3b31fe541 100644
--- a/lib/private/AppFramework/Http.php
+++ b/lib/private/AppFramework/Http.php
@@ -27,7 +27,6 @@
*
*/
-
namespace OC\AppFramework;
use OCP\AppFramework\Http as BaseHttp;
@@ -152,5 +151,3 @@ class Http extends BaseHttp {
}
-
-
diff --git a/lib/private/AppFramework/Http/Dispatcher.php b/lib/private/AppFramework/Http/Dispatcher.php
index 0b9422f9fc9..6a04de76adc 100644
--- a/lib/private/AppFramework/Http/Dispatcher.php
+++ b/lib/private/AppFramework/Http/Dispatcher.php
@@ -27,19 +27,17 @@ declare(strict_types=1);
*
*/
-
namespace OC\AppFramework\Http;
-use \OC\AppFramework\Middleware\MiddlewareDispatcher;
-use \OC\AppFramework\Http;
-use \OC\AppFramework\Utility\ControllerMethodReflector;
+use OC\AppFramework\Http;
+use OC\AppFramework\Middleware\MiddlewareDispatcher;
+use OC\AppFramework\Utility\ControllerMethodReflector;
use OCP\AppFramework\Controller;
-use OCP\AppFramework\Http\Response;
use OCP\AppFramework\Http\DataResponse;
+use OCP\AppFramework\Http\Response;
use OCP\IRequest;
-
/**
* Class to dispatch the request to the middleware dispatcher
*/
diff --git a/lib/private/AppFramework/Middleware/MiddlewareDispatcher.php b/lib/private/AppFramework/Middleware/MiddlewareDispatcher.php
index e1262b6c712..70440e9623f 100644
--- a/lib/private/AppFramework/Middleware/MiddlewareDispatcher.php
+++ b/lib/private/AppFramework/Middleware/MiddlewareDispatcher.php
@@ -26,7 +26,6 @@ declare(strict_types=1);
*
*/
-
namespace OC\AppFramework\Middleware;
use OCP\AppFramework\Controller;
diff --git a/lib/private/AppFramework/Middleware/OCSMiddleware.php b/lib/private/AppFramework/Middleware/OCSMiddleware.php
index ad1d953f372..2174693a1d7 100644
--- a/lib/private/AppFramework/Middleware/OCSMiddleware.php
+++ b/lib/private/AppFramework/Middleware/OCSMiddleware.php
@@ -21,6 +21,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/
+
namespace OC\AppFramework\Middleware;
use OC\AppFramework\Http;
@@ -32,10 +33,10 @@ use OCP\AppFramework\Controller;
use OCP\AppFramework\Http\DataResponse;
use OCP\AppFramework\Http\JSONResponse;
use OCP\AppFramework\Http\Response;
+use OCP\AppFramework\Middleware;
use OCP\AppFramework\OCS\OCSException;
use OCP\AppFramework\OCSController;
use OCP\IRequest;
-use OCP\AppFramework\Middleware;
class OCSMiddleware extends Middleware {
diff --git a/lib/private/AppFramework/Middleware/Security/PasswordConfirmationMiddleware.php b/lib/private/AppFramework/Middleware/Security/PasswordConfirmationMiddleware.php
index d752a68cf32..9f005448387 100644
--- a/lib/private/AppFramework/Middleware/Security/PasswordConfirmationMiddleware.php
+++ b/lib/private/AppFramework/Middleware/Security/PasswordConfirmationMiddleware.php
@@ -20,6 +20,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/
+
namespace OC\AppFramework\Middleware\Security;
use OC\AppFramework\Middleware\Security\Exceptions\NotConfirmedException;
diff --git a/lib/private/AppFramework/Middleware/Security/SameSiteCookieMiddleware.php b/lib/private/AppFramework/Middleware/Security/SameSiteCookieMiddleware.php
index 22a9246d661..3c011945477 100644
--- a/lib/private/AppFramework/Middleware/Security/SameSiteCookieMiddleware.php
+++ b/lib/private/AppFramework/Middleware/Security/SameSiteCookieMiddleware.php
@@ -20,6 +20,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/
+
namespace OC\AppFramework\Middleware\Security;
use OC\AppFramework\Http\Request;
diff --git a/lib/private/AppFramework/Middleware/Security/SecurityMiddleware.php b/lib/private/AppFramework/Middleware/Security/SecurityMiddleware.php
index db3157bda64..16725b1f5d6 100644
--- a/lib/private/AppFramework/Middleware/Security/SecurityMiddleware.php
+++ b/lib/private/AppFramework/Middleware/Security/SecurityMiddleware.php
@@ -28,31 +28,30 @@ declare(strict_types=1);
*
*/
-
namespace OC\AppFramework\Middleware\Security;
use OC\AppFramework\Middleware\Security\Exceptions\AppNotEnabledException;
use OC\AppFramework\Middleware\Security\Exceptions\CrossSiteRequestForgeryException;
use OC\AppFramework\Middleware\Security\Exceptions\NotAdminException;
use OC\AppFramework\Middleware\Security\Exceptions\NotLoggedInException;
+use OC\AppFramework\Middleware\Security\Exceptions\SecurityException;
use OC\AppFramework\Middleware\Security\Exceptions\StrictCookieMissingException;
use OC\AppFramework\Utility\ControllerMethodReflector;
use OCP\App\AppPathNotFoundException;
use OCP\App\IAppManager;
+use OCP\AppFramework\Controller;
+use OCP\AppFramework\Http\JSONResponse;
use OCP\AppFramework\Http\RedirectResponse;
+use OCP\AppFramework\Http\Response;
use OCP\AppFramework\Http\TemplateResponse;
use OCP\AppFramework\Middleware;
-use OCP\AppFramework\Http\Response;
-use OCP\AppFramework\Http\JSONResponse;
use OCP\AppFramework\OCSController;
use OCP\IL10N;
+use OCP\ILogger;
use OCP\INavigationManager;
-use OCP\IURLGenerator;
use OCP\IRequest;
-use OCP\ILogger;
-use OCP\AppFramework\Controller;
+use OCP\IURLGenerator;
use OCP\Util;
-use OC\AppFramework\Middleware\Security\Exceptions\SecurityException;
/**
* Used to do all the authentication and checking stuff for a controller method
diff --git a/lib/private/AppFramework/Middleware/SessionMiddleware.php b/lib/private/AppFramework/Middleware/SessionMiddleware.php
index 3cb60874b38..cc927e6875c 100644
--- a/lib/private/AppFramework/Middleware/SessionMiddleware.php
+++ b/lib/private/AppFramework/Middleware/SessionMiddleware.php
@@ -27,9 +27,9 @@ namespace OC\AppFramework\Middleware;
use OC\AppFramework\Utility\ControllerMethodReflector;
use OCP\AppFramework\Controller;
-use OCP\IRequest;
use OCP\AppFramework\Http\Response;
use OCP\AppFramework\Middleware;
+use OCP\IRequest;
use OCP\ISession;
class SessionMiddleware extends Middleware {
diff --git a/lib/private/AppFramework/OCS/BaseResponse.php b/lib/private/AppFramework/OCS/BaseResponse.php
index 90ea084dd99..19567f8fdaf 100644
--- a/lib/private/AppFramework/OCS/BaseResponse.php
+++ b/lib/private/AppFramework/OCS/BaseResponse.php
@@ -20,6 +20,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/
+
namespace OC\AppFramework\OCS;
use OCP\AppFramework\Http;
diff --git a/lib/private/AppFramework/OCS/V1Response.php b/lib/private/AppFramework/OCS/V1Response.php
index 08b11788110..02405b5edbe 100644
--- a/lib/private/AppFramework/OCS/V1Response.php
+++ b/lib/private/AppFramework/OCS/V1Response.php
@@ -20,6 +20,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/
+
namespace OC\AppFramework\OCS;
use OCP\API;
diff --git a/lib/private/AppFramework/OCS/V2Response.php b/lib/private/AppFramework/OCS/V2Response.php
index 7e98efe867d..54e9e8bd9a7 100644
--- a/lib/private/AppFramework/OCS/V2Response.php
+++ b/lib/private/AppFramework/OCS/V2Response.php
@@ -20,10 +20,11 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/
+
namespace OC\AppFramework\OCS;
-use OCP\AppFramework\Http;
use OCP\API;
+use OCP\AppFramework\Http;
class V2Response extends BaseResponse {
diff --git a/lib/private/AppFramework/Routing/RouteActionHandler.php b/lib/private/AppFramework/Routing/RouteActionHandler.php
index bcbe2eb400b..7e1c089d2a8 100644
--- a/lib/private/AppFramework/Routing/RouteActionHandler.php
+++ b/lib/private/AppFramework/Routing/RouteActionHandler.php
@@ -25,8 +25,8 @@
namespace OC\AppFramework\Routing;
-use \OC\AppFramework\App;
-use \OC\AppFramework\DependencyInjection\DIContainer;
+use OC\AppFramework\App;
+use OC\AppFramework\DependencyInjection\DIContainer;
class RouteActionHandler {
private $controllerName;
diff --git a/lib/private/AppFramework/Utility/ControllerMethodReflector.php b/lib/private/AppFramework/Utility/ControllerMethodReflector.php
index fd42606cf54..187fb43a9fc 100644
--- a/lib/private/AppFramework/Utility/ControllerMethodReflector.php
+++ b/lib/private/AppFramework/Utility/ControllerMethodReflector.php
@@ -29,7 +29,7 @@ declare(strict_types=1);
namespace OC\AppFramework\Utility;
-use \OCP\AppFramework\Utility\IControllerMethodReflector;
+use OCP\AppFramework\Utility\IControllerMethodReflector;
/**
* Reads and parses annotations from doc comments
diff --git a/lib/private/AppFramework/Utility/SimpleContainer.php b/lib/private/AppFramework/Utility/SimpleContainer.php
index 6f50523bbf6..b8398623490 100644
--- a/lib/private/AppFramework/Utility/SimpleContainer.php
+++ b/lib/private/AppFramework/Utility/SimpleContainer.php
@@ -28,12 +28,12 @@
namespace OC\AppFramework\Utility;
-use ReflectionClass;
-use ReflectionException;
use Closure;
-use Pimple\Container;
use OCP\AppFramework\QueryException;
use OCP\IContainer;
+use Pimple\Container;
+use ReflectionClass;
+use ReflectionException;
/**
* Class SimpleContainer
diff --git a/lib/private/AppFramework/Utility/TimeFactory.php b/lib/private/AppFramework/Utility/TimeFactory.php
index 4526f9b1abb..841d1838354 100644
--- a/lib/private/AppFramework/Utility/TimeFactory.php
+++ b/lib/private/AppFramework/Utility/TimeFactory.php
@@ -27,7 +27,6 @@ namespace OC\AppFramework\Utility;
use OCP\AppFramework\Utility\ITimeFactory;
-
/**
* Needed to mock calls to time()
*/
diff --git a/lib/private/Authentication/Exceptions/ExpiredTokenException.php b/lib/private/Authentication/Exceptions/ExpiredTokenException.php
index d5b2e2cbca7..ddc611b5ce3 100644
--- a/lib/private/Authentication/Exceptions/ExpiredTokenException.php
+++ b/lib/private/Authentication/Exceptions/ExpiredTokenException.php
@@ -21,6 +21,7 @@ declare(strict_types=1);
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/
+
namespace OC\Authentication\Exceptions;
use OC\Authentication\Token\IToken;
diff --git a/lib/private/Authentication/Exceptions/WipeTokenException.php b/lib/private/Authentication/Exceptions/WipeTokenException.php
index c56059fd7b9..03b679596e2 100644
--- a/lib/private/Authentication/Exceptions/WipeTokenException.php
+++ b/lib/private/Authentication/Exceptions/WipeTokenException.php
@@ -21,6 +21,7 @@ declare(strict_types=1);
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/
+
namespace OC\Authentication\Exceptions;
use OC\Authentication\Token\IToken;
diff --git a/lib/private/Authentication/Login/PreLoginHookCommand.php b/lib/private/Authentication/Login/PreLoginHookCommand.php
index 87c52c6fef1..e8b5c0b6aaa 100644
--- a/lib/private/Authentication/Login/PreLoginHookCommand.php
+++ b/lib/private/Authentication/Login/PreLoginHookCommand.php
@@ -51,4 +51,4 @@ class PreLoginHookCommand extends ALoginCommand {
return $this->processNextOrFinishSuccessfully($loginData);
}
-} \ No newline at end of file
+}
diff --git a/lib/private/Authentication/Token/INamedToken.php b/lib/private/Authentication/Token/INamedToken.php
index ede075a21c0..403116cb660 100644
--- a/lib/private/Authentication/Token/INamedToken.php
+++ b/lib/private/Authentication/Token/INamedToken.php
@@ -31,4 +31,4 @@ interface INamedToken extends IToken {
* @return void
*/
public function setName(string $name): void;
-} \ No newline at end of file
+}
diff --git a/lib/private/Avatar/Avatar.php b/lib/private/Avatar/Avatar.php
index 172f47d12a8..e7baa10fbb3 100644
--- a/lib/private/Avatar/Avatar.php
+++ b/lib/private/Avatar/Avatar.php
@@ -32,12 +32,12 @@ declare(strict_types=1);
namespace OC\Avatar;
+use Imagick;
use OC\Color;
+use OC_Image;
use OCP\Files\NotFoundException;
use OCP\IAvatar;
use OCP\ILogger;
-use OC_Image;
-use Imagick;
/**
* This class gets and sets users avatars.
diff --git a/lib/private/Avatar/AvatarManager.php b/lib/private/Avatar/AvatarManager.php
index 567ed3aec1e..b3f475ac698 100644
--- a/lib/private/Avatar/AvatarManager.php
+++ b/lib/private/Avatar/AvatarManager.php
@@ -34,8 +34,8 @@ use OCP\Files\NotFoundException;
use OCP\IAvatar;
use OCP\IAvatarManager;
use OCP\IConfig;
-use OCP\ILogger;
use OCP\IL10N;
+use OCP\ILogger;
/**
* This class implements methods to access Avatar functionality
diff --git a/lib/private/BackgroundJob/JobList.php b/lib/private/BackgroundJob/JobList.php
index 44b6786841f..7b5469c48f4 100644
--- a/lib/private/BackgroundJob/JobList.php
+++ b/lib/private/BackgroundJob/JobList.php
@@ -30,9 +30,9 @@ namespace OC\BackgroundJob;
use OCP\AppFramework\QueryException;
use OCP\AppFramework\Utility\ITimeFactory;
+use OCP\AutoloadNotAllowedException;
use OCP\BackgroundJob\IJob;
use OCP\BackgroundJob\IJobList;
-use OCP\AutoloadNotAllowedException;
use OCP\DB\QueryBuilder\IQueryBuilder;
use OCP\IConfig;
use OCP\IDBConnection;
diff --git a/lib/private/CapabilitiesManager.php b/lib/private/CapabilitiesManager.php
index ceb8205a7bb..b7ecce144c8 100644
--- a/lib/private/CapabilitiesManager.php
+++ b/lib/private/CapabilitiesManager.php
@@ -22,7 +22,6 @@ declare(strict_types=1);
*
*/
-
namespace OC;
use OCP\AppFramework\QueryException;
diff --git a/lib/private/Collaboration/Resources/Collection.php b/lib/private/Collaboration/Resources/Collection.php
index 6d37cebdc2f..beef8ba9bd8 100644
--- a/lib/private/Collaboration/Resources/Collection.php
+++ b/lib/private/Collaboration/Resources/Collection.php
@@ -24,10 +24,10 @@ namespace OC\Collaboration\Resources;
use Doctrine\DBAL\Exception\ConstraintViolationException;
-use OCP\Collaboration\Resources\IManager;
-use OCP\Collaboration\Resources\ResourceException;
use OCP\Collaboration\Resources\ICollection;
+use OCP\Collaboration\Resources\IManager;
use OCP\Collaboration\Resources\IResource;
+use OCP\Collaboration\Resources\ResourceException;
use OCP\DB\QueryBuilder\IQueryBuilder;
use OCP\IDBConnection;
use OCP\IUser;
diff --git a/lib/private/Comments/Comment.php b/lib/private/Comments/Comment.php
index 7c935930f28..ef7538d140d 100644
--- a/lib/private/Comments/Comment.php
+++ b/lib/private/Comments/Comment.php
@@ -22,6 +22,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>
*
*/
+
namespace OC\Comments;
use OCP\Comments\IComment;
diff --git a/lib/private/Comments/Manager.php b/lib/private/Comments/Manager.php
index 024dd58b89c..5c36d5e2091 100644
--- a/lib/private/Comments/Manager.php
+++ b/lib/private/Comments/Manager.php
@@ -34,8 +34,8 @@ use OCP\Comments\ICommentsEventHandler;
use OCP\Comments\ICommentsManager;
use OCP\Comments\NotFoundException;
use OCP\DB\QueryBuilder\IQueryBuilder;
-use OCP\IDBConnection;
use OCP\IConfig;
+use OCP\IDBConnection;
use OCP\ILogger;
use OCP\IUser;
diff --git a/lib/private/Comments/ManagerFactory.php b/lib/private/Comments/ManagerFactory.php
index 21926912b10..1fc5fb2730b 100644
--- a/lib/private/Comments/ManagerFactory.php
+++ b/lib/private/Comments/ManagerFactory.php
@@ -21,6 +21,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>
*
*/
+
namespace OC\Comments;
use OCP\Comments\ICommentsManager;
diff --git a/lib/private/Config.php b/lib/private/Config.php
index f462bebaf58..4d24643c22f 100644
--- a/lib/private/Config.php
+++ b/lib/private/Config.php
@@ -270,4 +270,3 @@ class Config {
}
}
}
-
diff --git a/lib/private/Console/Application.php b/lib/private/Console/Application.php
index d7c047527f1..0260d5f7a3c 100644
--- a/lib/private/Console/Application.php
+++ b/lib/private/Console/Application.php
@@ -27,6 +27,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>
*
*/
+
namespace OC\Console;
use OC\MemoryInfo;
diff --git a/lib/private/Contacts/ContactsMenu/ContactsStore.php b/lib/private/Contacts/ContactsMenu/ContactsStore.php
index 05ef9cca53a..b3843b17a9e 100644
--- a/lib/private/Contacts/ContactsMenu/ContactsStore.php
+++ b/lib/private/Contacts/ContactsMenu/ContactsStore.php
@@ -27,13 +27,13 @@
namespace OC\Contacts\ContactsMenu;
+use OCP\Contacts\ContactsMenu\IContactsStore;
use OCP\Contacts\ContactsMenu\IEntry;
use OCP\Contacts\IManager;
use OCP\IConfig;
use OCP\IGroupManager;
use OCP\IUser;
use OCP\IUserManager;
-use OCP\Contacts\ContactsMenu\IContactsStore;
class ContactsStore implements IContactsStore {
diff --git a/lib/private/DB/AdapterMySQL.php b/lib/private/DB/AdapterMySQL.php
index aa784bb83dc..d9af077da70 100644
--- a/lib/private/DB/AdapterMySQL.php
+++ b/lib/private/DB/AdapterMySQL.php
@@ -22,7 +22,6 @@
*
*/
-
namespace OC\DB;
class AdapterMySQL extends Adapter {
diff --git a/lib/private/DB/AdapterOCI8.php b/lib/private/DB/AdapterOCI8.php
index 359e4ba1b67..68e73ac8c44 100644
--- a/lib/private/DB/AdapterOCI8.php
+++ b/lib/private/DB/AdapterOCI8.php
@@ -23,7 +23,6 @@
*
*/
-
namespace OC\DB;
class AdapterOCI8 extends Adapter {
diff --git a/lib/private/DB/AdapterPgSql.php b/lib/private/DB/AdapterPgSql.php
index 42e57cd45f7..840d270d25f 100644
--- a/lib/private/DB/AdapterPgSql.php
+++ b/lib/private/DB/AdapterPgSql.php
@@ -21,7 +21,6 @@
*
*/
-
namespace OC\DB;
use Doctrine\DBAL\DBALException;
diff --git a/lib/private/DB/AdapterSqlite.php b/lib/private/DB/AdapterSqlite.php
index 0a482259b98..caf6a70b097 100644
--- a/lib/private/DB/AdapterSqlite.php
+++ b/lib/private/DB/AdapterSqlite.php
@@ -24,7 +24,6 @@
*
*/
-
namespace OC\DB;
use Doctrine\DBAL\Exception\UniqueConstraintViolationException;
diff --git a/lib/private/DB/Connection.php b/lib/private/DB/Connection.php
index 506f4bcd4c9..f9c6f4155a3 100644
--- a/lib/private/DB/Connection.php
+++ b/lib/private/DB/Connection.php
@@ -30,13 +30,13 @@
namespace OC\DB;
+use Doctrine\Common\EventManager;
+use Doctrine\DBAL\Cache\QueryCacheProfile;
+use Doctrine\DBAL\Configuration;
use Doctrine\DBAL\DBALException;
use Doctrine\DBAL\Driver;
-use Doctrine\DBAL\Configuration;
-use Doctrine\DBAL\Cache\QueryCacheProfile;
-use Doctrine\Common\EventManager;
-use Doctrine\DBAL\Platforms\MySqlPlatform;
use Doctrine\DBAL\Exception\ConstraintViolationException;
+use Doctrine\DBAL\Platforms\MySqlPlatform;
use Doctrine\DBAL\Schema\Schema;
use OC\DB\QueryBuilder\QueryBuilder;
use OCP\DB\QueryBuilder\IQueryBuilder;
diff --git a/lib/private/DB/MigrationService.php b/lib/private/DB/MigrationService.php
index 269400c3ba9..329500fa081 100644
--- a/lib/private/DB/MigrationService.php
+++ b/lib/private/DB/MigrationService.php
@@ -30,6 +30,7 @@ use Doctrine\DBAL\Schema\Schema;
use Doctrine\DBAL\Schema\SchemaException;
use Doctrine\DBAL\Schema\Sequence;
use Doctrine\DBAL\Schema\Table;
+use Doctrine\DBAL\Types\Type;
use OC\App\InfoParser;
use OC\IntegrityCheck\Helpers\AppLocator;
use OC\Migration\SimpleOutput;
@@ -38,7 +39,6 @@ use OCP\AppFramework\QueryException;
use OCP\IDBConnection;
use OCP\Migration\IMigrationStep;
use OCP\Migration\IOutput;
-use Doctrine\DBAL\Types\Type;
class MigrationService {
diff --git a/lib/private/DB/Migrator.php b/lib/private/DB/Migrator.php
index a853ab1ea1b..7f1db4b15d2 100644
--- a/lib/private/DB/Migrator.php
+++ b/lib/private/DB/Migrator.php
@@ -29,12 +29,12 @@
namespace OC\DB;
-use \Doctrine\DBAL\DBALException;
-use \Doctrine\DBAL\Schema\Index;
-use \Doctrine\DBAL\Schema\Table;
-use \Doctrine\DBAL\Schema\Schema;
-use \Doctrine\DBAL\Schema\SchemaConfig;
-use \Doctrine\DBAL\Schema\Comparator;
+use Doctrine\DBAL\DBALException;
+use Doctrine\DBAL\Schema\Comparator;
+use Doctrine\DBAL\Schema\Index;
+use Doctrine\DBAL\Schema\Schema;
+use Doctrine\DBAL\Schema\SchemaConfig;
+use Doctrine\DBAL\Schema\Table;
use Doctrine\DBAL\Types\StringType;
use Doctrine\DBAL\Types\Type;
use OCP\IConfig;
diff --git a/lib/private/DB/MissingIndexInformation.php b/lib/private/DB/MissingIndexInformation.php
index 0cb9852d0d4..bcf8465d8aa 100644
--- a/lib/private/DB/MissingIndexInformation.php
+++ b/lib/private/DB/MissingIndexInformation.php
@@ -36,4 +36,4 @@ class MissingIndexInformation {
public function getListOfMissingIndexes(): array {
return $this->listOfMissingIndexes;
}
-} \ No newline at end of file
+}
diff --git a/lib/private/DB/OracleMigrator.php b/lib/private/DB/OracleMigrator.php
index be90a4bb97f..9c6c9fd156a 100644
--- a/lib/private/DB/OracleMigrator.php
+++ b/lib/private/DB/OracleMigrator.php
@@ -31,10 +31,10 @@ namespace OC\DB;
use Doctrine\DBAL\DBALException;
use Doctrine\DBAL\Schema\Column;
use Doctrine\DBAL\Schema\ColumnDiff;
+use Doctrine\DBAL\Schema\ForeignKeyConstraint;
use Doctrine\DBAL\Schema\Index;
use Doctrine\DBAL\Schema\Schema;
use Doctrine\DBAL\Schema\Table;
-use Doctrine\DBAL\Schema\ForeignKeyConstraint;
class OracleMigrator extends Migrator {
diff --git a/lib/private/DB/QueryBuilder/QueryBuilder.php b/lib/private/DB/QueryBuilder/QueryBuilder.php
index bff38c0c8d6..b9fada8c4f0 100644
--- a/lib/private/DB/QueryBuilder/QueryBuilder.php
+++ b/lib/private/DB/QueryBuilder/QueryBuilder.php
@@ -39,9 +39,9 @@ use OC\DB\QueryBuilder\FunctionBuilder\OCIFunctionBuilder;
use OC\DB\QueryBuilder\FunctionBuilder\PgSqlFunctionBuilder;
use OC\DB\QueryBuilder\FunctionBuilder\SqliteFunctionBuilder;
use OC\SystemConfig;
+use OCP\DB\QueryBuilder\IParameter;
use OCP\DB\QueryBuilder\IQueryBuilder;
use OCP\DB\QueryBuilder\IQueryFunction;
-use OCP\DB\QueryBuilder\IParameter;
use OCP\IDBConnection;
use OCP\ILogger;
diff --git a/lib/private/DB/SQLiteSessionInit.php b/lib/private/DB/SQLiteSessionInit.php
index 635a5d98a9e..826bf8e1952 100644
--- a/lib/private/DB/SQLiteSessionInit.php
+++ b/lib/private/DB/SQLiteSessionInit.php
@@ -24,9 +24,9 @@
namespace OC\DB;
+use Doctrine\Common\EventSubscriber;
use Doctrine\DBAL\Event\ConnectionEventArgs;
use Doctrine\DBAL\Events;
-use Doctrine\Common\EventSubscriber;
class SQLiteSessionInit implements EventSubscriber {
/**
diff --git a/lib/private/Dashboard/DashboardManager.php b/lib/private/Dashboard/DashboardManager.php
index 712d56641fa..c2ec8f25288 100644
--- a/lib/private/Dashboard/DashboardManager.php
+++ b/lib/private/Dashboard/DashboardManager.php
@@ -27,7 +27,6 @@ declare(strict_types=1);
*
*/
-
namespace OC\Dashboard;
@@ -37,7 +36,6 @@ use OCP\Dashboard\Model\IWidgetConfig;
use OCP\Dashboard\Service\IEventsService;
use OCP\Dashboard\Service\IWidgetsService;
-
/**
* Class DashboardManager
*
@@ -145,4 +143,3 @@ class DashboardManager implements IDashboardManager {
}
}
-
diff --git a/lib/private/Encryption/DecryptAll.php b/lib/private/Encryption/DecryptAll.php
index d95a8660762..86164f072d2 100644
--- a/lib/private/Encryption/DecryptAll.php
+++ b/lib/private/Encryption/DecryptAll.php
@@ -24,12 +24,11 @@
*
*/
-
namespace OC\Encryption;
use OC\Encryption\Exceptions\DecryptionFailedException;
use OC\Files\View;
-use \OCP\Encryption\IEncryptionModule;
+use OCP\Encryption\IEncryptionModule;
use OCP\IUserManager;
use Symfony\Component\Console\Helper\ProgressBar;
use Symfony\Component\Console\Input\InputInterface;
diff --git a/lib/private/Encryption/EncryptionWrapper.php b/lib/private/Encryption/EncryptionWrapper.php
index c4650d39ee3..30fee808097 100644
--- a/lib/private/Encryption/EncryptionWrapper.php
+++ b/lib/private/Encryption/EncryptionWrapper.php
@@ -21,15 +21,14 @@
*
*/
-
namespace OC\Encryption;
-use OC\Memcache\ArrayCache;
use OC\Files\Filesystem;
use OC\Files\Storage\Wrapper\Encryption;
-use OCP\Files\Mount\IMountPoint;
use OC\Files\View;
+use OC\Memcache\ArrayCache;
+use OCP\Files\Mount\IMountPoint;
use OCP\Files\Storage;
use OCP\ILogger;
diff --git a/lib/private/Encryption/Exceptions/DecryptionFailedException.php b/lib/private/Encryption/Exceptions/DecryptionFailedException.php
index de13536b0c5..946bd47b2c4 100644
--- a/lib/private/Encryption/Exceptions/DecryptionFailedException.php
+++ b/lib/private/Encryption/Exceptions/DecryptionFailedException.php
@@ -21,7 +21,6 @@
*
*/
-
namespace OC\Encryption\Exceptions;
use OCP\Encryption\Exceptions\GenericEncryptionException;
diff --git a/lib/private/Encryption/Exceptions/EmptyEncryptionDataException.php b/lib/private/Encryption/Exceptions/EmptyEncryptionDataException.php
index 3e93e633ce1..73c02ac8d4c 100644
--- a/lib/private/Encryption/Exceptions/EmptyEncryptionDataException.php
+++ b/lib/private/Encryption/Exceptions/EmptyEncryptionDataException.php
@@ -21,7 +21,6 @@
*
*/
-
namespace OC\Encryption\Exceptions;
use OCP\Encryption\Exceptions\GenericEncryptionException;
diff --git a/lib/private/Encryption/Exceptions/EncryptionFailedException.php b/lib/private/Encryption/Exceptions/EncryptionFailedException.php
index fefd8d4f0ba..d351476ffcd 100644
--- a/lib/private/Encryption/Exceptions/EncryptionFailedException.php
+++ b/lib/private/Encryption/Exceptions/EncryptionFailedException.php
@@ -21,7 +21,6 @@
*
*/
-
namespace OC\Encryption\Exceptions;
use OCP\Encryption\Exceptions\GenericEncryptionException;
diff --git a/lib/private/Encryption/Exceptions/EncryptionHeaderToLargeException.php b/lib/private/Encryption/Exceptions/EncryptionHeaderToLargeException.php
index 00bb0cf4262..b06087f0829 100644
--- a/lib/private/Encryption/Exceptions/EncryptionHeaderToLargeException.php
+++ b/lib/private/Encryption/Exceptions/EncryptionHeaderToLargeException.php
@@ -21,7 +21,6 @@
*
*/
-
namespace OC\Encryption\Exceptions;
use OCP\Encryption\Exceptions\GenericEncryptionException;
diff --git a/lib/private/Encryption/Exceptions/UnknownCipherException.php b/lib/private/Encryption/Exceptions/UnknownCipherException.php
index d2c2eb6289c..21dc6639f0d 100644
--- a/lib/private/Encryption/Exceptions/UnknownCipherException.php
+++ b/lib/private/Encryption/Exceptions/UnknownCipherException.php
@@ -21,7 +21,6 @@
*
*/
-
namespace OC\Encryption\Exceptions;
use OCP\Encryption\Exceptions\GenericEncryptionException;
diff --git a/lib/private/Encryption/Keys/Storage.php b/lib/private/Encryption/Keys/Storage.php
index 223b959e661..77284be1b9d 100644
--- a/lib/private/Encryption/Keys/Storage.php
+++ b/lib/private/Encryption/Keys/Storage.php
@@ -29,8 +29,8 @@ namespace OC\Encryption\Keys;
use OC\Encryption\Util;
use OC\Files\Filesystem;
use OC\Files\View;
-use OCP\Encryption\Keys\IStorage;
use OC\User\NoUserException;
+use OCP\Encryption\Keys\IStorage;
class Storage implements IStorage {
diff --git a/lib/private/Encryption/Update.php b/lib/private/Encryption/Update.php
index 9d9f5e4d954..65788424906 100644
--- a/lib/private/Encryption/Update.php
+++ b/lib/private/Encryption/Update.php
@@ -25,8 +25,8 @@
namespace OC\Encryption;
use OC\Files\Filesystem;
-use \OC\Files\Mount;
-use \OC\Files\View;
+use OC\Files\Mount;
+use OC\Files\View;
/**
* update encrypted files, e.g. because a file was shared
diff --git a/lib/private/EventDispatcher/EventDispatcher.php b/lib/private/EventDispatcher/EventDispatcher.php
index d9d7985f7cc..1f4a1ba9ab4 100644
--- a/lib/private/EventDispatcher/EventDispatcher.php
+++ b/lib/private/EventDispatcher/EventDispatcher.php
@@ -25,16 +25,16 @@ declare(strict_types=1);
namespace OC\EventDispatcher;
+use function get_class;
use OC\Broadcast\Events\BroadcastEvent;
use OCP\Broadcast\Events\IBroadcastEvent;
-use OCP\EventDispatcher\Event;
use OCP\EventDispatcher\ABroadcastedEvent;
+use OCP\EventDispatcher\Event;
use OCP\EventDispatcher\IEventDispatcher;
use OCP\IContainer;
use OCP\ILogger;
use OCP\IServerContainer;
use Symfony\Component\EventDispatcher\EventDispatcher as SymfonyDispatcher;
-use function get_class;
class EventDispatcher implements IEventDispatcher {
diff --git a/lib/private/EventDispatcher/SymfonyAdapter.php b/lib/private/EventDispatcher/SymfonyAdapter.php
index f8f80b6c5f8..70c03fcb1ff 100644
--- a/lib/private/EventDispatcher/SymfonyAdapter.php
+++ b/lib/private/EventDispatcher/SymfonyAdapter.php
@@ -25,9 +25,9 @@ declare(strict_types=1);
namespace OC\EventDispatcher;
-use OCP\ILogger;
use function is_callable;
use OCP\EventDispatcher\Event;
+use OCP\ILogger;
use Symfony\Component\EventDispatcher\EventDispatcherInterface;
use Symfony\Component\EventDispatcher\EventSubscriberInterface;
diff --git a/lib/private/Federation/CloudFederationProviderManager.php b/lib/private/Federation/CloudFederationProviderManager.php
index c2944f410b3..772bc0aeb05 100644
--- a/lib/private/Federation/CloudFederationProviderManager.php
+++ b/lib/private/Federation/CloudFederationProviderManager.php
@@ -19,7 +19,6 @@
*
*/
-
namespace OC\Federation;
use OC\AppFramework\Http;
diff --git a/lib/private/Files/AppData/AppData.php b/lib/private/Files/AppData/AppData.php
index 7ce29bd0e00..4f526bf04cf 100644
--- a/lib/private/Files/AppData/AppData.php
+++ b/lib/private/Files/AppData/AppData.php
@@ -26,10 +26,10 @@ namespace OC\Files\AppData;
use OC\Cache\CappedMemoryCache;
use OC\Files\SimpleFS\SimpleFolder;
+use OC\SystemConfig;
+use OCP\Files\Folder;
use OCP\Files\IAppData;
use OCP\Files\IRootFolder;
-use OCP\Files\Folder;
-use OC\SystemConfig;
use OCP\Files\Node;
use OCP\Files\NotFoundException;
use OCP\Files\NotPermittedException;
diff --git a/lib/private/Files/AppData/Factory.php b/lib/private/Files/AppData/Factory.php
index 5c7d554ba5b..3a880d5e29b 100644
--- a/lib/private/Files/AppData/Factory.php
+++ b/lib/private/Files/AppData/Factory.php
@@ -21,6 +21,7 @@ declare(strict_types=1);
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/
+
namespace OC\Files\AppData;
use OC\SystemConfig;
diff --git a/lib/private/Files/Cache/AbstractCacheEvent.php b/lib/private/Files/Cache/AbstractCacheEvent.php
index db1e7a1cf32..d4990f17743 100644
--- a/lib/private/Files/Cache/AbstractCacheEvent.php
+++ b/lib/private/Files/Cache/AbstractCacheEvent.php
@@ -21,9 +21,9 @@
namespace OC\Files\Cache;
+use OCP\EventDispatcher\Event;
use OCP\Files\Cache\ICacheEvent;
use OCP\Files\Storage\IStorage;
-use OCP\EventDispatcher\Event;
class AbstractCacheEvent extends Event implements ICacheEvent {
protected $storage;
diff --git a/lib/private/Files/Cache/Cache.php b/lib/private/Files/Cache/Cache.php
index f1d2c64e8fd..a90617f5c53 100644
--- a/lib/private/Files/Cache/Cache.php
+++ b/lib/private/Files/Cache/Cache.php
@@ -38,15 +38,15 @@
namespace OC\Files\Cache;
+use Doctrine\DBAL\Driver\Statement;
use Doctrine\DBAL\Exception\UniqueConstraintViolationException;
use OCP\DB\QueryBuilder\IQueryBuilder;
-use Doctrine\DBAL\Driver\Statement;
use OCP\Files\Cache\CacheInsertEvent;
use OCP\Files\Cache\CacheUpdateEvent;
use OCP\Files\Cache\ICache;
use OCP\Files\Cache\ICacheEntry;
use OCP\Files\FileInfo;
-use \OCP\Files\IMimeTypeLoader;
+use OCP\Files\IMimeTypeLoader;
use OCP\Files\Search\ISearchQuery;
use OCP\Files\Storage\IStorage;
use OCP\IDBConnection;
diff --git a/lib/private/Files/Cache/Wrapper/CacheWrapper.php b/lib/private/Files/Cache/Wrapper/CacheWrapper.php
index 6d7f1876e29..157bb083b73 100644
--- a/lib/private/Files/Cache/Wrapper/CacheWrapper.php
+++ b/lib/private/Files/Cache/Wrapper/CacheWrapper.php
@@ -28,8 +28,8 @@
namespace OC\Files\Cache\Wrapper;
use OC\Files\Cache\Cache;
-use OCP\Files\Cache\ICacheEntry;
use OCP\Files\Cache\ICache;
+use OCP\Files\Cache\ICacheEntry;
use OCP\Files\Search\ISearchQuery;
class CacheWrapper extends Cache {
diff --git a/lib/private/Files/Config/CachedMountFileInfo.php b/lib/private/Files/Config/CachedMountFileInfo.php
index e315493a693..331e28d3d5e 100644
--- a/lib/private/Files/Config/CachedMountFileInfo.php
+++ b/lib/private/Files/Config/CachedMountFileInfo.php
@@ -45,4 +45,4 @@ class CachedMountFileInfo extends CachedMountInfo implements ICachedMountFileInf
public function getPath() {
return $this->getMountPoint() . $this->getInternalPath();
}
-} \ No newline at end of file
+}
diff --git a/lib/private/Files/Config/MountProviderCollection.php b/lib/private/Files/Config/MountProviderCollection.php
index a3c88dd6b4b..fbb455c5063 100644
--- a/lib/private/Files/Config/MountProviderCollection.php
+++ b/lib/private/Files/Config/MountProviderCollection.php
@@ -26,8 +26,8 @@ namespace OC\Files\Config;
use OC\Hooks\Emitter;
use OC\Hooks\EmitterTrait;
use OCP\Files\Config\IHomeMountProvider;
-use OCP\Files\Config\IMountProviderCollection;
use OCP\Files\Config\IMountProvider;
+use OCP\Files\Config\IMountProviderCollection;
use OCP\Files\Config\IUserMountCache;
use OCP\Files\Mount\IMountManager;
use OCP\Files\Mount\IMountPoint;
diff --git a/lib/private/Files/Config/UserMountCache.php b/lib/private/Files/Config/UserMountCache.php
index 63abdf5fdeb..53bd52a2e6c 100644
--- a/lib/private/Files/Config/UserMountCache.php
+++ b/lib/private/Files/Config/UserMountCache.php
@@ -25,6 +25,7 @@
namespace OC\Files\Config;
+use OC\Cache\CappedMemoryCache;
use OCA\Files_Sharing\SharedMount;
use OCP\DB\QueryBuilder\IQueryBuilder;
use OCP\Files\Config\ICachedMountFileInfo;
@@ -37,7 +38,6 @@ use OCP\IDBConnection;
use OCP\ILogger;
use OCP\IUser;
use OCP\IUserManager;
-use OC\Cache\CappedMemoryCache;
/**
* Cache mounts points per user in the cache so we can easilly look them up
diff --git a/lib/private/Files/Mount/MountPoint.php b/lib/private/Files/Mount/MountPoint.php
index 36e10bfb45a..1e67eecb9dc 100644
--- a/lib/private/Files/Mount/MountPoint.php
+++ b/lib/private/Files/Mount/MountPoint.php
@@ -29,9 +29,9 @@
namespace OC\Files\Mount;
-use \OC\Files\Filesystem;
-use OC\Files\Storage\StorageFactory;
+use OC\Files\Filesystem;
use OC\Files\Storage\Storage;
+use OC\Files\Storage\StorageFactory;
use OCP\Files\Mount\IMountPoint;
use OCP\ILogger;
diff --git a/lib/private/Files/Node/HookConnector.php b/lib/private/Files/Node/HookConnector.php
index 4783a71b07b..b792b584077 100644
--- a/lib/private/Files/Node/HookConnector.php
+++ b/lib/private/Files/Node/HookConnector.php
@@ -22,9 +22,9 @@
namespace OC\Files\Node;
-use OCP\Files\FileInfo;
use OC\Files\Filesystem;
use OC\Files\View;
+use OCP\Files\FileInfo;
use OCP\Util;
use Symfony\Component\EventDispatcher\EventDispatcherInterface;
use Symfony\Component\EventDispatcher\GenericEvent;
diff --git a/lib/private/Files/Node/LazyRoot.php b/lib/private/Files/Node/LazyRoot.php
index f5d8cdc91a9..acf288860d9 100644
--- a/lib/private/Files/Node/LazyRoot.php
+++ b/lib/private/Files/Node/LazyRoot.php
@@ -20,6 +20,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>
*
*/
+
namespace OC\Files\Node;
use OCP\Files\IRootFolder;
diff --git a/lib/private/Files/Node/Root.php b/lib/private/Files/Node/Root.php
index 390d29edb31..ad0935ebaf7 100644
--- a/lib/private/Files/Node/Root.php
+++ b/lib/private/Files/Node/Root.php
@@ -33,11 +33,11 @@ namespace OC\Files\Node;
use OC\Cache\CappedMemoryCache;
use OC\Files\Mount\Manager;
use OC\Files\Mount\MountPoint;
+use OC\Hooks\PublicEmitter;
use OCP\Files\Config\IUserMountCache;
+use OCP\Files\IRootFolder;
use OCP\Files\NotFoundException;
use OCP\Files\NotPermittedException;
-use OC\Hooks\PublicEmitter;
-use OCP\Files\IRootFolder;
use OCP\ILogger;
use OCP\IUserManager;
diff --git a/lib/private/Files/ObjectStore/HomeObjectStoreStorage.php b/lib/private/Files/ObjectStore/HomeObjectStoreStorage.php
index fb5e8d83ab1..fd6c9a2ebc1 100644
--- a/lib/private/Files/ObjectStore/HomeObjectStoreStorage.php
+++ b/lib/private/Files/ObjectStore/HomeObjectStoreStorage.php
@@ -66,4 +66,4 @@ class HomeObjectStoreStorage extends ObjectStoreStorage implements \OCP\Files\IH
}
-} \ No newline at end of file
+}
diff --git a/lib/private/Files/ObjectStore/Mapper.php b/lib/private/Files/ObjectStore/Mapper.php
index 2b5cf6ea4ab..c4b5e5d7778 100644
--- a/lib/private/Files/ObjectStore/Mapper.php
+++ b/lib/private/Files/ObjectStore/Mapper.php
@@ -20,6 +20,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>
*
*/
+
namespace OC\Files\ObjectStore;
use OCP\IUser;
diff --git a/lib/private/Files/ObjectStore/NoopScanner.php b/lib/private/Files/ObjectStore/NoopScanner.php
index a3a396651a2..1ee868c49d4 100644
--- a/lib/private/Files/ObjectStore/NoopScanner.php
+++ b/lib/private/Files/ObjectStore/NoopScanner.php
@@ -24,8 +24,8 @@
*/
namespace OC\Files\ObjectStore;
-use \OC\Files\Cache\Scanner;
-use \OC\Files\Storage\Storage;
+use OC\Files\Cache\Scanner;
+use OC\Files\Storage\Storage;
class NoopScanner extends Scanner {
diff --git a/lib/private/Files/ObjectStore/SwiftFactory.php b/lib/private/Files/ObjectStore/SwiftFactory.php
index f6270d36e7a..430d628d3ce 100644
--- a/lib/private/Files/ObjectStore/SwiftFactory.php
+++ b/lib/private/Files/ObjectStore/SwiftFactory.php
@@ -31,15 +31,15 @@ use OCP\Files\StorageAuthException;
use OCP\Files\StorageNotAvailableException;
use OCP\ICache;
use OCP\ILogger;
-use OpenStack\Common\Error\BadResponseError;
use OpenStack\Common\Auth\Token;
+use OpenStack\Common\Error\BadResponseError;
+use OpenStack\Common\Transport\Utils as TransportUtils;
use OpenStack\Identity\v2\Models\Catalog;
use OpenStack\Identity\v2\Service as IdentityV2Service;
use OpenStack\Identity\v3\Service as IdentityV3Service;
+use OpenStack\ObjectStore\v1\Models\Container;
use OpenStack\OpenStack;
-use OpenStack\Common\Transport\Utils as TransportUtils;
use Psr\Http\Message\RequestInterface;
-use OpenStack\ObjectStore\v1\Models\Container;
class SwiftFactory {
private $cache;
diff --git a/lib/private/Files/SimpleFS/SimpleFile.php b/lib/private/Files/SimpleFS/SimpleFile.php
index 9c9ca10650c..85a1a64a854 100644
--- a/lib/private/Files/SimpleFS/SimpleFile.php
+++ b/lib/private/Files/SimpleFS/SimpleFile.php
@@ -20,6 +20,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/
+
namespace OC\Files\SimpleFS;
use OCP\Files\File;
diff --git a/lib/private/Files/SimpleFS/SimpleFolder.php b/lib/private/Files/SimpleFS/SimpleFolder.php
index 5b55fe0f157..9375a3c5545 100644
--- a/lib/private/Files/SimpleFS/SimpleFolder.php
+++ b/lib/private/Files/SimpleFS/SimpleFolder.php
@@ -20,6 +20,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/
+
namespace OC\Files\SimpleFS;
use OCP\Files\File;
diff --git a/lib/private/Files/Storage/Common.php b/lib/private/Files/Storage/Common.php
index 2dbaf619c05..3bc14d35cd0 100644
--- a/lib/private/Files/Storage/Common.php
+++ b/lib/private/Files/Storage/Common.php
@@ -44,8 +44,8 @@ use OC\Files\Cache\Cache;
use OC\Files\Cache\Propagator;
use OC\Files\Cache\Scanner;
use OC\Files\Cache\Updater;
-use OC\Files\Filesystem;
use OC\Files\Cache\Watcher;
+use OC\Files\Filesystem;
use OC\Files\Storage\Wrapper\Jail;
use OC\Files\Storage\Wrapper\Wrapper;
use OCP\Files\EmptyFileNameException;
diff --git a/lib/private/Files/Storage/DAV.php b/lib/private/Files/Storage/DAV.php
index 2367c1aab3c..69e6f309c31 100644
--- a/lib/private/Files/Storage/DAV.php
+++ b/lib/private/Files/Storage/DAV.php
@@ -35,19 +35,19 @@ namespace OC\Files\Storage;
use Exception;
use GuzzleHttp\Exception\RequestException;
-use OCP\Files\ForbiddenException;
-use OCP\ILogger;
-use Psr\Http\Message\ResponseInterface;
use Icewind\Streams\CallbackWrapper;
-use OC\Files\Filesystem;
use Icewind\Streams\IteratorDirectory;
+use OC\Files\Filesystem;
use OC\MemCache\ArrayCache;
use OCP\AppFramework\Http;
use OCP\Constants;
use OCP\Files\FileInfo;
+use OCP\Files\ForbiddenException;
use OCP\Files\StorageInvalidException;
use OCP\Files\StorageNotAvailableException;
+use OCP\ILogger;
use OCP\Util;
+use Psr\Http\Message\ResponseInterface;
use Sabre\DAV\Client;
use Sabre\DAV\Xml\Property\ResourceType;
use Sabre\HTTP\ClientException;
@@ -864,4 +864,3 @@ class DAV extends Common {
// TODO: only log for now, but in the future need to wrap/rethrow exception
}
}
-
diff --git a/lib/private/Files/Storage/FailedStorage.php b/lib/private/Files/Storage/FailedStorage.php
index 9ed09e82e7d..4ee9b21694a 100644
--- a/lib/private/Files/Storage/FailedStorage.php
+++ b/lib/private/Files/Storage/FailedStorage.php
@@ -27,8 +27,8 @@ namespace OC\Files\Storage;
use OC\Files\Cache\FailedCache;
use OCP\Files\Storage\IStorage;
-use \OCP\Lock\ILockingProvider;
-use \OCP\Files\StorageNotAvailableException;
+use OCP\Files\StorageNotAvailableException;
+use OCP\Lock\ILockingProvider;
/**
* Storage placeholder to represent a missing precondition, storage unavailable
diff --git a/lib/private/Files/Storage/Wrapper/Availability.php b/lib/private/Files/Storage/Wrapper/Availability.php
index 77a23d26fb7..0c01595d306 100644
--- a/lib/private/Files/Storage/Wrapper/Availability.php
+++ b/lib/private/Files/Storage/Wrapper/Availability.php
@@ -21,6 +21,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>
*
*/
+
namespace OC\Files\Storage\Wrapper;
use OCP\Files\Storage\IStorage;
diff --git a/lib/private/Files/Storage/Wrapper/Encoding.php b/lib/private/Files/Storage/Wrapper/Encoding.php
index bc8519bf42c..f143c8b8c92 100644
--- a/lib/private/Files/Storage/Wrapper/Encoding.php
+++ b/lib/private/Files/Storage/Wrapper/Encoding.php
@@ -23,9 +23,9 @@
namespace OC\Files\Storage\Wrapper;
+use OC\Cache\CappedMemoryCache;
use OCP\Files\Storage\IStorage;
use OCP\ICache;
-use OC\Cache\CappedMemoryCache;
/**
* Encoding wrapper that deals with file names that use unsupported encodings like NFD.
diff --git a/lib/private/Files/Storage/Wrapper/Encryption.php b/lib/private/Files/Storage/Wrapper/Encryption.php
index 5485b80985b..7741f820c63 100644
--- a/lib/private/Files/Storage/Wrapper/Encryption.php
+++ b/lib/private/Files/Storage/Wrapper/Encryption.php
@@ -41,10 +41,10 @@ use OCP\Encryption\Exceptions\GenericEncryptionException;
use OCP\Encryption\IFile;
use OCP\Encryption\IManager;
use OCP\Encryption\Keys\IStorage;
+use OCP\Files\Cache\ICacheEntry;
use OCP\Files\Mount\IMountPoint;
use OCP\Files\Storage;
use OCP\ILogger;
-use OCP\Files\Cache\ICacheEntry;
class Encryption extends Wrapper {
diff --git a/lib/private/Files/Type/Loader.php b/lib/private/Files/Type/Loader.php
index d1419dca4dc..46588a74d0d 100644
--- a/lib/private/Files/Type/Loader.php
+++ b/lib/private/Files/Type/Loader.php
@@ -25,9 +25,9 @@
namespace OC\Files\Type;
+use Doctrine\DBAL\Exception\UniqueConstraintViolationException;
use OCP\Files\IMimeTypeLoader;
use OCP\IDBConnection;
-use Doctrine\DBAL\Exception\UniqueConstraintViolationException;
/**
* Mimetype database loader
diff --git a/lib/private/Files/Utils/Scanner.php b/lib/private/Files/Utils/Scanner.php
index 28921973fcf..8dee7bf7423 100644
--- a/lib/private/Files/Utils/Scanner.php
+++ b/lib/private/Files/Utils/Scanner.php
@@ -30,6 +30,7 @@ namespace OC\Files\Utils;
use OC\Files\Cache\Cache;
use OC\Files\Filesystem;
+use OC\Files\Storage\FailedStorage;
use OC\ForbiddenException;
use OC\Hooks\PublicEmitter;
use OC\Lock\DBLockingProvider;
@@ -38,7 +39,6 @@ use OCP\Files\NotFoundException;
use OCP\Files\Storage\IStorage;
use OCP\Files\StorageNotAvailableException;
use OCP\ILogger;
-use OC\Files\Storage\FailedStorage;
/**
* Class Scanner
@@ -279,4 +279,3 @@ class Scanner extends PublicEmitter {
}
}
}
-
diff --git a/lib/private/Files/View.php b/lib/private/Files/View.php
index 8322576c5c2..4f4c4b90f2c 100644
--- a/lib/private/Files/View.php
+++ b/lib/private/Files/View.php
@@ -42,7 +42,6 @@
*
*/
-
namespace OC\Files;
use Icewind\Streams\CallbackWrapper;
diff --git a/lib/private/FullTextSearch/FullTextSearchManager.php b/lib/private/FullTextSearch/FullTextSearchManager.php
index 8ab1af05b0e..3aec4638a21 100644
--- a/lib/private/FullTextSearch/FullTextSearchManager.php
+++ b/lib/private/FullTextSearch/FullTextSearchManager.php
@@ -27,7 +27,6 @@ declare(strict_types=1);
*
*/
-
namespace OC\FullTextSearch;
@@ -39,7 +38,6 @@ use OCP\FullTextSearch\Service\IIndexService;
use OCP\FullTextSearch\Service\IProviderService;
use OCP\FullTextSearch\Service\ISearchService;
-
/**
* Class FullTextSearchManager
*
@@ -239,4 +237,3 @@ class FullTextSearchManager implements IFullTextSearchManager {
}
-
diff --git a/lib/private/FullTextSearch/Model/DocumentAccess.php b/lib/private/FullTextSearch/Model/DocumentAccess.php
index 088bf075ae6..ce195eb8a2e 100644
--- a/lib/private/FullTextSearch/Model/DocumentAccess.php
+++ b/lib/private/FullTextSearch/Model/DocumentAccess.php
@@ -27,14 +27,12 @@ declare(strict_types=1);
*
*/
-
namespace OC\FullTextSearch\Model;
use JsonSerializable;
use OCP\FullTextSearch\Model\IDocumentAccess;
-
/**
* Class IDocumentAccess
*
@@ -362,4 +360,3 @@ final class DocumentAccess implements IDocumentAccess, JsonSerializable {
];
}
}
-
diff --git a/lib/private/FullTextSearch/Model/IndexDocument.php b/lib/private/FullTextSearch/Model/IndexDocument.php
index d5bef906021..1efa55b5ca1 100644
--- a/lib/private/FullTextSearch/Model/IndexDocument.php
+++ b/lib/private/FullTextSearch/Model/IndexDocument.php
@@ -27,7 +27,6 @@ declare(strict_types=1);
*
*/
-
namespace OC\FullTextSearch\Model;
@@ -36,7 +35,6 @@ use OCP\FullTextSearch\Model\IDocumentAccess;
use OCP\FullTextSearch\Model\IIndex;
use OCP\FullTextSearch\Model\IIndexDocument;
-
/**
* Class IndexDocument
*
@@ -997,4 +995,3 @@ class IndexDocument implements IIndexDocument, JsonSerializable {
}
}
-
diff --git a/lib/private/FullTextSearch/Model/SearchOption.php b/lib/private/FullTextSearch/Model/SearchOption.php
index 6a67c9fe7df..d0eb0eab2ed 100644
--- a/lib/private/FullTextSearch/Model/SearchOption.php
+++ b/lib/private/FullTextSearch/Model/SearchOption.php
@@ -27,14 +27,12 @@ declare(strict_types=1);
*
*/
-
namespace OC\FullTextSearch\Model;
use JsonSerializable;
use OCP\FullTextSearch\Model\ISearchOption;
-
/**
* @since 15.0.0
*
diff --git a/lib/private/FullTextSearch/Model/SearchRequestSimpleQuery.php b/lib/private/FullTextSearch/Model/SearchRequestSimpleQuery.php
index a01fb232916..8796f28a249 100644
--- a/lib/private/FullTextSearch/Model/SearchRequestSimpleQuery.php
+++ b/lib/private/FullTextSearch/Model/SearchRequestSimpleQuery.php
@@ -27,14 +27,12 @@ declare(strict_types=1);
*
*/
-
namespace OC\FullTextSearch\Model;
use JsonSerializable;
use OCP\FullTextSearch\Model\ISearchRequestSimpleQuery;
-
/**
* @since 17.0.0
*
diff --git a/lib/private/FullTextSearch/Model/SearchTemplate.php b/lib/private/FullTextSearch/Model/SearchTemplate.php
index 22333e712ce..a4c21d30bcc 100644
--- a/lib/private/FullTextSearch/Model/SearchTemplate.php
+++ b/lib/private/FullTextSearch/Model/SearchTemplate.php
@@ -27,7 +27,6 @@ declare(strict_types=1);
*
*/
-
namespace OC\FullTextSearch\Model;
@@ -36,7 +35,6 @@ use OCP\FullTextSearch\IFullTextSearchProvider;
use OCP\FullTextSearch\Model\ISearchOption;
use OCP\FullTextSearch\Model\ISearchTemplate;
-
/**
* Class ISearchTemplate
*
@@ -257,4 +255,3 @@ final class SearchTemplate implements ISearchTemplate, JsonSerializable {
];
}
}
-
diff --git a/lib/private/GlobalScale/Config.php b/lib/private/GlobalScale/Config.php
index da7a459741b..2ab862a0e4e 100644
--- a/lib/private/GlobalScale/Config.php
+++ b/lib/private/GlobalScale/Config.php
@@ -21,7 +21,6 @@
*
*/
-
namespace OC\GlobalScale;
diff --git a/lib/private/Group/Group.php b/lib/private/Group/Group.php
index 8d86425c8e5..fa14e4e9932 100644
--- a/lib/private/Group/Group.php
+++ b/lib/private/Group/Group.php
@@ -30,14 +30,14 @@
namespace OC\Group;
+use OC\Hooks\PublicEmitter;
+use OCP\Group\Backend\ICountDisabledInGroup;
use OCP\Group\Backend\IGetDisplayNameBackend;
use OCP\Group\Backend\IHideFromCollaborationBackend;
-use OC\Hooks\PublicEmitter;
use OCP\Group\Backend\ISetDisplayNameBackend;
use OCP\GroupInterface;
use OCP\IGroup;
use OCP\IUser;
-use OCP\Group\Backend\ICountDisabledInGroup;
use OCP\IUserManager;
use Symfony\Component\EventDispatcher\EventDispatcherInterface;
use Symfony\Component\EventDispatcher\GenericEvent;
diff --git a/lib/private/Group/MetaData.php b/lib/private/Group/MetaData.php
index f4877237ec7..cda208f3f58 100644
--- a/lib/private/Group/MetaData.php
+++ b/lib/private/Group/MetaData.php
@@ -28,8 +28,8 @@
namespace OC\Group;
-use OCP\IUserSession;
use OCP\IGroupManager;
+use OCP\IUserSession;
class MetaData {
const SORT_NONE = 0;
diff --git a/lib/private/L10N/LanguageNotFoundException.php b/lib/private/L10N/LanguageNotFoundException.php
index 317e0629b60..0f3b8140e08 100644
--- a/lib/private/L10N/LanguageNotFoundException.php
+++ b/lib/private/L10N/LanguageNotFoundException.php
@@ -20,6 +20,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/
+
namespace OC\L10N;
class LanguageNotFoundException extends \Exception {
diff --git a/lib/private/Lock/MemcacheLockingProvider.php b/lib/private/Lock/MemcacheLockingProvider.php
index 4d1b3dc0bca..368c672dbb2 100644
--- a/lib/private/Lock/MemcacheLockingProvider.php
+++ b/lib/private/Lock/MemcacheLockingProvider.php
@@ -23,9 +23,9 @@ declare(strict_types=1);
namespace OC\Lock;
+use OCP\IMemcache;
use OCP\IMemcacheTTL;
use OCP\Lock\LockedException;
-use OCP\IMemcache;
class MemcacheLockingProvider extends AbstractLockingProvider {
/**
diff --git a/lib/private/Log.php b/lib/private/Log.php
index da29c351185..22792fe4020 100644
--- a/lib/private/Log.php
+++ b/lib/private/Log.php
@@ -39,9 +39,9 @@ use function array_merge;
use InterfaSys\LogNormalizer\Normalizer;
use OC\Log\ExceptionSerializer;
+use OCP\ILogger;
use OCP\Log\IFileBased;
use OCP\Log\IWriter;
-use OCP\ILogger;
use OCP\Support\CrashReport\IRegistry;
/**
diff --git a/lib/private/Log/Errorlog.php b/lib/private/Log/Errorlog.php
index 9dc8b2cc49c..ebcb73be4ce 100644
--- a/lib/private/Log/Errorlog.php
+++ b/lib/private/Log/Errorlog.php
@@ -39,4 +39,3 @@ class Errorlog implements IWriter {
error_log('[owncloud]['.$app.']['.$level.'] '.$message);
}
}
-
diff --git a/lib/private/Log/File.php b/lib/private/Log/File.php
index fe2bbf30a26..b982836b8ef 100644
--- a/lib/private/Log/File.php
+++ b/lib/private/Log/File.php
@@ -37,9 +37,9 @@
namespace OC\Log;
use OC\SystemConfig;
+use OCP\ILogger;
use OCP\Log\IFileBased;
use OCP\Log\IWriter;
-use OCP\ILogger;
/**
* logging utilities
diff --git a/lib/private/Log/Systemdlog.php b/lib/private/Log/Systemdlog.php
index c40e4860f95..1fd0a6a419b 100644
--- a/lib/private/Log/Systemdlog.php
+++ b/lib/private/Log/Systemdlog.php
@@ -24,8 +24,8 @@ namespace OC\Log;
use OC\HintException;
use OC\SystemConfig;
-use OCP\ILogger;
use OCP\IConfig;
+use OCP\ILogger;
use OCP\Log\IWriter;
// The following fields are understood by systemd/journald, see
diff --git a/lib/private/Mail/Mailer.php b/lib/private/Mail/Mailer.php
index d103e1380c5..e3547c84da3 100644
--- a/lib/private/Mail/Mailer.php
+++ b/lib/private/Mail/Mailer.php
@@ -31,11 +31,11 @@ use Egulias\EmailValidator\Validation\RFCValidation;
use OCP\Defaults;
use OCP\IConfig;
use OCP\IL10N;
+use OCP\ILogger;
use OCP\IURLGenerator;
use OCP\Mail\IAttachment;
use OCP\Mail\IEMailTemplate;
use OCP\Mail\IMailer;
-use OCP\ILogger;
use OCP\Mail\IMessage;
/**
diff --git a/lib/private/Memcache/Redis.php b/lib/private/Memcache/Redis.php
index adf3c5050bd..8d0d1679e80 100644
--- a/lib/private/Memcache/Redis.php
+++ b/lib/private/Memcache/Redis.php
@@ -178,4 +178,3 @@ class Redis extends Cache implements IMemcacheTTL {
return \OC::$server->getGetRedisFactory()->isAvailable();
}
}
-
diff --git a/lib/private/Migration/BackgroundRepair.php b/lib/private/Migration/BackgroundRepair.php
index 7ef90301cf3..7cab14f5ccc 100644
--- a/lib/private/Migration/BackgroundRepair.php
+++ b/lib/private/Migration/BackgroundRepair.php
@@ -20,6 +20,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>
*
*/
+
namespace OC\Migration;
use OC\BackgroundJob\JobList;
diff --git a/lib/private/Migration/ConsoleOutput.php b/lib/private/Migration/ConsoleOutput.php
index 74c8c7340cc..d3487a771cc 100644
--- a/lib/private/Migration/ConsoleOutput.php
+++ b/lib/private/Migration/ConsoleOutput.php
@@ -20,7 +20,6 @@
*
*/
-
namespace OC\Migration;
diff --git a/lib/private/Migration/SimpleOutput.php b/lib/private/Migration/SimpleOutput.php
index ea61c44fcac..c3426a426f8 100644
--- a/lib/private/Migration/SimpleOutput.php
+++ b/lib/private/Migration/SimpleOutput.php
@@ -20,7 +20,6 @@
*
*/
-
namespace OC\Migration;
diff --git a/lib/private/OCS/DiscoveryService.php b/lib/private/OCS/DiscoveryService.php
index 6662263fb76..f084dae35ed 100644
--- a/lib/private/OCS/DiscoveryService.php
+++ b/lib/private/OCS/DiscoveryService.php
@@ -22,7 +22,6 @@ declare(strict_types=1);
*
*/
-
namespace OC\OCS;
use OCP\AppFramework\Http;
diff --git a/lib/private/Preview/Bitmap.php b/lib/private/Preview/Bitmap.php
index 000b1f8277f..fe309376296 100644
--- a/lib/private/Preview/Bitmap.php
+++ b/lib/private/Preview/Bitmap.php
@@ -26,9 +26,9 @@
namespace OC\Preview;
use Imagick;
+use OCP\Files\File;
use OCP\IImage;
use OCP\ILogger;
-use OCP\Files\File;
/**
* Creates a PNG preview using ImageMagick via the PECL extension
diff --git a/lib/private/Preview/Generator.php b/lib/private/Preview/Generator.php
index 79c512c84aa..981c820ccf3 100644
--- a/lib/private/Preview/Generator.php
+++ b/lib/private/Preview/Generator.php
@@ -36,8 +36,8 @@ use OCP\IConfig;
use OCP\IImage;
use OCP\IPreview;
use OCP\Preview\IProvider;
-use OCP\Preview\IVersionedPreviewFile;
use OCP\Preview\IProviderV2;
+use OCP\Preview\IVersionedPreviewFile;
use Symfony\Component\EventDispatcher\EventDispatcherInterface;
use Symfony\Component\EventDispatcher\GenericEvent;
diff --git a/lib/private/Preview/GeneratorHelper.php b/lib/private/Preview/GeneratorHelper.php
index 7e35b5360d4..4389e269c8b 100644
--- a/lib/private/Preview/GeneratorHelper.php
+++ b/lib/private/Preview/GeneratorHelper.php
@@ -20,6 +20,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/
+
namespace OC\Preview;
use OC\Files\View;
diff --git a/lib/private/Preview/HEIC.php b/lib/private/Preview/HEIC.php
index d23e6c6bd1f..9f4f9be38df 100644
--- a/lib/private/Preview/HEIC.php
+++ b/lib/private/Preview/HEIC.php
@@ -23,9 +23,9 @@ declare(strict_types=1);
namespace OC\Preview;
+use OCP\Files\File;
use OCP\IImage;
use OCP\ILogger;
-use OCP\Files\File;
/**
* Creates a JPG preview using ImageMagick via the PECL extension
diff --git a/lib/private/Preview/Image.php b/lib/private/Preview/Image.php
index 6f82904a6a7..b8767d3f639 100644
--- a/lib/private/Preview/Image.php
+++ b/lib/private/Preview/Image.php
@@ -25,6 +25,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>
*
*/
+
namespace OC\Preview;
use OCP\Files\File;
diff --git a/lib/private/Preview/MP3.php b/lib/private/Preview/MP3.php
index f560f100109..6b19602b5c9 100644
--- a/lib/private/Preview/MP3.php
+++ b/lib/private/Preview/MP3.php
@@ -24,6 +24,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>
*
*/
+
namespace OC\Preview;
use ID3Parser\ID3Parser;
diff --git a/lib/private/Preview/MSOffice2003.php b/lib/private/Preview/MSOffice2003.php
index 5af66f72720..67559224528 100644
--- a/lib/private/Preview/MSOffice2003.php
+++ b/lib/private/Preview/MSOffice2003.php
@@ -19,6 +19,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>
*
*/
+
namespace OC\Preview;
//.docm, .dotm, .xls(m), .xlt(m), .xla(m), .ppt(m), .pot(m), .pps(m), .ppa(m)
diff --git a/lib/private/Preview/MSOffice2007.php b/lib/private/Preview/MSOffice2007.php
index 0d1177d9de9..125e0ecfcad 100644
--- a/lib/private/Preview/MSOffice2007.php
+++ b/lib/private/Preview/MSOffice2007.php
@@ -19,6 +19,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>
*
*/
+
namespace OC\Preview;
//.docx, .dotx, .xlsx, .xltx, .pptx, .potx, .ppsx
diff --git a/lib/private/Preview/MSOfficeDoc.php b/lib/private/Preview/MSOfficeDoc.php
index 24d1a9d5b6a..e1359c6b903 100644
--- a/lib/private/Preview/MSOfficeDoc.php
+++ b/lib/private/Preview/MSOfficeDoc.php
@@ -19,6 +19,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>
*
*/
+
namespace OC\Preview;
//.doc, .dot
diff --git a/lib/private/Preview/MarkDown.php b/lib/private/Preview/MarkDown.php
index ae24c4f4419..bdf16ae2bc5 100644
--- a/lib/private/Preview/MarkDown.php
+++ b/lib/private/Preview/MarkDown.php
@@ -19,6 +19,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>
*
*/
+
namespace OC\Preview;
class MarkDown extends TXT {
diff --git a/lib/private/Preview/Movie.php b/lib/private/Preview/Movie.php
index 60fe443804a..17916896f97 100644
--- a/lib/private/Preview/Movie.php
+++ b/lib/private/Preview/Movie.php
@@ -23,6 +23,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>
*
*/
+
namespace OC\Preview;
use OCP\Files\File;
diff --git a/lib/private/Preview/Office.php b/lib/private/Preview/Office.php
index f51023c5a83..49437aec186 100644
--- a/lib/private/Preview/Office.php
+++ b/lib/private/Preview/Office.php
@@ -23,11 +23,12 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>
*
*/
+
namespace OC\Preview;
+use OCP\Files\File;
use OCP\IImage;
use OCP\ILogger;
-use OCP\Files\File;
abstract class Office extends ProviderV2 {
private $cmd;
diff --git a/lib/private/Preview/OpenDocument.php b/lib/private/Preview/OpenDocument.php
index 929fecffb21..ab3394ffea0 100644
--- a/lib/private/Preview/OpenDocument.php
+++ b/lib/private/Preview/OpenDocument.php
@@ -19,6 +19,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>
*
*/
+
namespace OC\Preview;
//.odt, .ott, .oth, .odm, .odg, .otg, .odp, .otp, .ods, .ots, .odc, .odf, .odb, .odi, .oxt
diff --git a/lib/private/Preview/Provider.php b/lib/private/Preview/Provider.php
index d0dd259891f..ed128638e4b 100644
--- a/lib/private/Preview/Provider.php
+++ b/lib/private/Preview/Provider.php
@@ -23,6 +23,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>
*
*/
+
namespace OC\Preview;
use OCP\Preview\IProvider;
diff --git a/lib/private/Preview/SVG.php b/lib/private/Preview/SVG.php
index 3f313f4bb9b..2fe4c464575 100644
--- a/lib/private/Preview/SVG.php
+++ b/lib/private/Preview/SVG.php
@@ -22,11 +22,12 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>
*
*/
+
namespace OC\Preview;
+use OCP\Files\File;
use OCP\IImage;
use OCP\ILogger;
-use OCP\Files\File;
class SVG extends ProviderV2 {
/**
diff --git a/lib/private/Preview/StarOffice.php b/lib/private/Preview/StarOffice.php
index 2c9542b22e6..1300bdc7b41 100644
--- a/lib/private/Preview/StarOffice.php
+++ b/lib/private/Preview/StarOffice.php
@@ -19,6 +19,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>
*
*/
+
namespace OC\Preview;
//.sxw, .stw, .sxc, .stc, .sxd, .std, .sxi, .sti, .sxg, .sxm
diff --git a/lib/private/Preview/TXT.php b/lib/private/Preview/TXT.php
index 3e2032df2de..d1ee1c025ea 100644
--- a/lib/private/Preview/TXT.php
+++ b/lib/private/Preview/TXT.php
@@ -24,6 +24,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>
*
*/
+
namespace OC\Preview;
use OCP\Files\File;
diff --git a/lib/private/Preview/Watcher.php b/lib/private/Preview/Watcher.php
index 0c0531dff94..30708445c76 100644
--- a/lib/private/Preview/Watcher.php
+++ b/lib/private/Preview/Watcher.php
@@ -21,11 +21,12 @@ declare(strict_types=1);
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/
+
namespace OC\Preview;
-use OCP\Files\Node;
use OCP\Files\Folder;
use OCP\Files\IAppData;
+use OCP\Files\Node;
use OCP\Files\NotFoundException;
/**
diff --git a/lib/private/Preview/WatcherConnector.php b/lib/private/Preview/WatcherConnector.php
index f374b909d8f..346634ccf3a 100644
--- a/lib/private/Preview/WatcherConnector.php
+++ b/lib/private/Preview/WatcherConnector.php
@@ -21,11 +21,12 @@ declare(strict_types=1);
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/
+
namespace OC\Preview;
use OC\SystemConfig;
-use OCP\Files\Node;
use OCP\Files\IRootFolder;
+use OCP\Files\Node;
class WatcherConnector {
diff --git a/lib/private/PreviewManager.php b/lib/private/PreviewManager.php
index b0858643d53..45b1529648b 100644
--- a/lib/private/PreviewManager.php
+++ b/lib/private/PreviewManager.php
@@ -24,6 +24,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>
*
*/
+
namespace OC;
use OC\Preview\Generator;
diff --git a/lib/private/Repair/AddCleanupUpdaterBackupsJob.php b/lib/private/Repair/AddCleanupUpdaterBackupsJob.php
index 1574e665fb6..cf35bc1fda5 100644
--- a/lib/private/Repair/AddCleanupUpdaterBackupsJob.php
+++ b/lib/private/Repair/AddCleanupUpdaterBackupsJob.php
@@ -45,4 +45,3 @@ class AddCleanupUpdaterBackupsJob implements IRepairStep {
$this->jobList->add(BackgroundCleanupUpdaterBackupsJob::class);
}
}
-
diff --git a/lib/private/Repair/ClearFrontendCaches.php b/lib/private/Repair/ClearFrontendCaches.php
index 22add525adb..90fdaf6b70f 100644
--- a/lib/private/Repair/ClearFrontendCaches.php
+++ b/lib/private/Repair/ClearFrontendCaches.php
@@ -23,11 +23,11 @@
namespace OC\Repair;
+use OC\Template\JSCombiner;
+use OC\Template\SCSSCacher;
use OCP\ICacheFactory;
use OCP\Migration\IOutput;
use OCP\Migration\IRepairStep;
-use OC\Template\JSCombiner;
-use OC\Template\SCSSCacher;
class ClearFrontendCaches implements IRepairStep {
diff --git a/lib/private/Repair/Collation.php b/lib/private/Repair/Collation.php
index f2cc9373176..a7a53720db5 100644
--- a/lib/private/Repair/Collation.php
+++ b/lib/private/Repair/Collation.php
@@ -151,4 +151,3 @@ class Collation implements IRepairStep {
return array_keys($result);
}
}
-
diff --git a/lib/private/Repair/MoveUpdaterStepFile.php b/lib/private/Repair/MoveUpdaterStepFile.php
index feb8a291282..adeabea9672 100644
--- a/lib/private/Repair/MoveUpdaterStepFile.php
+++ b/lib/private/Repair/MoveUpdaterStepFile.php
@@ -77,4 +77,3 @@ class MoveUpdaterStepFile implements IRepairStep {
}
}
}
-
diff --git a/lib/private/Repair/NC11/FixMountStorages.php b/lib/private/Repair/NC11/FixMountStorages.php
index d57a356dff9..c3c239d11ba 100644
--- a/lib/private/Repair/NC11/FixMountStorages.php
+++ b/lib/private/Repair/NC11/FixMountStorages.php
@@ -20,6 +20,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/
+
namespace OC\Repair\NC11;
use OCP\DB\QueryBuilder\IQueryBuilder;
diff --git a/lib/private/Repair/NC13/AddLogRotateJob.php b/lib/private/Repair/NC13/AddLogRotateJob.php
index c65ea47f02b..0d258aa3779 100644
--- a/lib/private/Repair/NC13/AddLogRotateJob.php
+++ b/lib/private/Repair/NC13/AddLogRotateJob.php
@@ -20,6 +20,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/
+
namespace OC\Repair\NC13;
use OC\Log\Rotate;
diff --git a/lib/private/Repair/NC14/AddPreviewBackgroundCleanupJob.php b/lib/private/Repair/NC14/AddPreviewBackgroundCleanupJob.php
index b58fabcba50..7bef59a9d37 100644
--- a/lib/private/Repair/NC14/AddPreviewBackgroundCleanupJob.php
+++ b/lib/private/Repair/NC14/AddPreviewBackgroundCleanupJob.php
@@ -21,6 +21,7 @@ declare(strict_types=1);
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/
+
namespace OC\Repair\NC14;
use OC\Preview\BackgroundCleanupJob;
diff --git a/lib/private/Repair/NC17/SwitchUpdateChannel.php b/lib/private/Repair/NC17/SwitchUpdateChannel.php
index cfa72d86b1e..8a2850080a6 100644
--- a/lib/private/Repair/NC17/SwitchUpdateChannel.php
+++ b/lib/private/Repair/NC17/SwitchUpdateChannel.php
@@ -26,6 +26,7 @@ use OCP\IConfig;
use OCP\Migration\IOutput;
use OCP\Migration\IRepairStep;
use OCP\Support\Subscription\IRegistry;
+
/**
* @deprecated - can be removed in 18
*/
diff --git a/lib/private/Repair/Owncloud/DropAccountTermsTable.php b/lib/private/Repair/Owncloud/DropAccountTermsTable.php
index 0b1b64c3a3a..9c18ff809ae 100644
--- a/lib/private/Repair/Owncloud/DropAccountTermsTable.php
+++ b/lib/private/Repair/Owncloud/DropAccountTermsTable.php
@@ -57,4 +57,3 @@ class DropAccountTermsTable implements IRepairStep {
$this->db->dropTable('account_terms');
}
}
-
diff --git a/lib/private/Repair/Owncloud/SaveAccountsTableData.php b/lib/private/Repair/Owncloud/SaveAccountsTableData.php
index f62f8b56b26..13f618b6747 100644
--- a/lib/private/Repair/Owncloud/SaveAccountsTableData.php
+++ b/lib/private/Repair/Owncloud/SaveAccountsTableData.php
@@ -189,4 +189,3 @@ class SaveAccountsTableData implements IRepairStep {
}
}
-
diff --git a/lib/private/Repair/SqliteAutoincrement.php b/lib/private/Repair/SqliteAutoincrement.php
index 814f955dc70..93f9961d565 100644
--- a/lib/private/Repair/SqliteAutoincrement.php
+++ b/lib/private/Repair/SqliteAutoincrement.php
@@ -24,10 +24,10 @@
namespace OC\Repair;
use Doctrine\DBAL\Platforms\SqlitePlatform;
-use Doctrine\DBAL\Schema\SchemaException;
+use Doctrine\DBAL\Schema\ColumnDiff;
use Doctrine\DBAL\Schema\SchemaDiff;
+use Doctrine\DBAL\Schema\SchemaException;
use Doctrine\DBAL\Schema\TableDiff;
-use Doctrine\DBAL\Schema\ColumnDiff;
use OCP\Migration\IOutput;
use OCP\Migration\IRepairStep;
@@ -98,4 +98,3 @@ class SqliteAutoincrement implements IRepairStep {
$this->connection->commit();
}
}
-
diff --git a/lib/private/Route/Router.php b/lib/private/Route/Router.php
index 4c83f251012..125c5ff2742 100644
--- a/lib/private/Route/Router.php
+++ b/lib/private/Route/Router.php
@@ -33,16 +33,16 @@
namespace OC\Route;
+use OCP\AppFramework\App;
use OCP\ILogger;
use OCP\Route\IRouter;
-use OCP\AppFramework\App;
use OCP\Util;
+use Symfony\Component\Routing\Exception\ResourceNotFoundException;
use Symfony\Component\Routing\Exception\RouteNotFoundException;
-use Symfony\Component\Routing\Matcher\UrlMatcher;
use Symfony\Component\Routing\Generator\UrlGenerator;
+use Symfony\Component\Routing\Matcher\UrlMatcher;
use Symfony\Component\Routing\RequestContext;
use Symfony\Component\Routing\RouteCollection;
-use Symfony\Component\Routing\Exception\ResourceNotFoundException;
class Router implements IRouter {
/** @var RouteCollection[] */
diff --git a/lib/private/Search.php b/lib/private/Search.php
index 0cfdf24ac97..2ef7eeda4ad 100644
--- a/lib/private/Search.php
+++ b/lib/private/Search.php
@@ -25,9 +25,9 @@
*/
namespace OC;
+use OCP\ISearch;
use OCP\Search\PagedProvider;
use OCP\Search\Provider;
-use OCP\ISearch;
/**
* Provide an interface to all search providers
diff --git a/lib/private/Security/Bruteforce/Capabilities.php b/lib/private/Security/Bruteforce/Capabilities.php
index 3df0458c694..d6e08c399ed 100644
--- a/lib/private/Security/Bruteforce/Capabilities.php
+++ b/lib/private/Security/Bruteforce/Capabilities.php
@@ -20,6 +20,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/
+
namespace OC\Security\Bruteforce;
use OCP\Capabilities\IPublicCapability;
diff --git a/lib/private/Security/CSP/ContentSecurityPolicy.php b/lib/private/Security/CSP/ContentSecurityPolicy.php
index 9d1d043a165..c912b820eba 100644
--- a/lib/private/Security/CSP/ContentSecurityPolicy.php
+++ b/lib/private/Security/CSP/ContentSecurityPolicy.php
@@ -21,6 +21,7 @@ declare(strict_types=1);
* along with this program. If not, see <http://www.gnu.org/licenses/>
*
*/
+
namespace OC\Security\CSP;
/**
diff --git a/lib/private/Security/CredentialsManager.php b/lib/private/Security/CredentialsManager.php
index 0ac9b30c6ce..7c58cb3b1c9 100644
--- a/lib/private/Security/CredentialsManager.php
+++ b/lib/private/Security/CredentialsManager.php
@@ -22,9 +22,9 @@
namespace OC\Security;
-use OCP\Security\ICrypto;
use OCP\IDBConnection;
use OCP\Security\ICredentialsManager;
+use OCP\Security\ICrypto;
/**
* Store and retrieve credentials for external services
diff --git a/lib/private/Security/Crypto.php b/lib/private/Security/Crypto.php
index 876f159950c..2eb20d41456 100644
--- a/lib/private/Security/Crypto.php
+++ b/lib/private/Security/Crypto.php
@@ -24,14 +24,13 @@ declare(strict_types=1);
*
*/
-
namespace OC\Security;
-use phpseclib\Crypt\AES;
-use phpseclib\Crypt\Hash;
+use OCP\IConfig;
use OCP\Security\ICrypto;
use OCP\Security\ISecureRandom;
-use OCP\IConfig;
+use phpseclib\Crypt\AES;
+use phpseclib\Crypt\Hash;
/**
* Class Crypto provides a high-level encryption layer using AES-CBC. If no key has been provided
diff --git a/lib/private/Settings/Manager.php b/lib/private/Settings/Manager.php
index 48e2d34a5dd..a5ffa9e0f1e 100644
--- a/lib/private/Settings/Manager.php
+++ b/lib/private/Settings/Manager.php
@@ -37,9 +37,9 @@ use OCP\ILogger;
use OCP\IServerContainer;
use OCP\IURLGenerator;
use OCP\L10N\IFactory;
-use OCP\Settings\ISettings;
use OCP\Settings\IManager;
use OCP\Settings\ISection;
+use OCP\Settings\ISettings;
use OCP\Settings\ISubAdminSettings;
class Manager implements IManager {
diff --git a/lib/private/Setup/AbstractDatabase.php b/lib/private/Setup/AbstractDatabase.php
index 903f8b6e386..459848d1c79 100644
--- a/lib/private/Setup/AbstractDatabase.php
+++ b/lib/private/Setup/AbstractDatabase.php
@@ -26,6 +26,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>
*
*/
+
namespace OC\Setup;
use OC\DB\ConnectionFactory;
diff --git a/lib/private/Setup/MySQL.php b/lib/private/Setup/MySQL.php
index 3bb940186f8..8a38f889c74 100644
--- a/lib/private/Setup/MySQL.php
+++ b/lib/private/Setup/MySQL.php
@@ -27,6 +27,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>
*
*/
+
namespace OC\Setup;
use OC\DB\MySqlTools;
diff --git a/lib/private/Setup/PostgreSQL.php b/lib/private/Setup/PostgreSQL.php
index 6d1b5ca2927..020c2e555d9 100644
--- a/lib/private/Setup/PostgreSQL.php
+++ b/lib/private/Setup/PostgreSQL.php
@@ -24,6 +24,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>
*
*/
+
namespace OC\Setup;
use OC\DatabaseException;
diff --git a/lib/private/Share/SearchResultSorter.php b/lib/private/Share/SearchResultSorter.php
index da63dd33b8e..8418a1e4119 100644
--- a/lib/private/Share/SearchResultSorter.php
+++ b/lib/private/Share/SearchResultSorter.php
@@ -21,6 +21,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>
*
*/
+
namespace OC\Share;
use OCP\ILogger;
@@ -73,4 +74,3 @@ class SearchResultSorter {
}
}
}
-
diff --git a/lib/private/Share20/DefaultShareProvider.php b/lib/private/Share20/DefaultShareProvider.php
index 7a146bf7890..c25a7b03d5c 100644
--- a/lib/private/Share20/DefaultShareProvider.php
+++ b/lib/private/Share20/DefaultShareProvider.php
@@ -27,29 +27,30 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>
*
*/
+
namespace OC\Share20;
use OC\Files\Cache\Cache;
+use OC\Share20\Exception\BackendError;
+use OC\Share20\Exception\InvalidShare;
+use OC\Share20\Exception\ProviderException;
+use OCP\DB\QueryBuilder\IQueryBuilder;
use OCP\Defaults;
use OCP\Files\Folder;
+use OCP\Files\IRootFolder;
+use OCP\Files\Node;
+use OCP\IDBConnection;
+use OCP\IGroup;
+use OCP\IGroupManager;
use OCP\IL10N;
use OCP\IURLGenerator;
use OCP\IUser;
+use OCP\IUserManager;
use OCP\Mail\IMailer;
+use OCP\Share\Exceptions\ShareNotFound;
use OCP\Share\IShare;
use OCP\Share\IShareHelper;
use OCP\Share\IShareProvider;
-use OC\Share20\Exception\InvalidShare;
-use OC\Share20\Exception\ProviderException;
-use OCP\Share\Exceptions\ShareNotFound;
-use OC\Share20\Exception\BackendError;
-use OCP\DB\QueryBuilder\IQueryBuilder;
-use OCP\IGroup;
-use OCP\IGroupManager;
-use OCP\IUserManager;
-use OCP\Files\IRootFolder;
-use OCP\IDBConnection;
-use OCP\Files\Node;
/**
* Class DefaultShareProvider
diff --git a/lib/private/Share20/Exception/BackendError.php b/lib/private/Share20/Exception/BackendError.php
index 10dae34cc34..f270dd53147 100644
--- a/lib/private/Share20/Exception/BackendError.php
+++ b/lib/private/Share20/Exception/BackendError.php
@@ -19,6 +19,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>
*
*/
+
namespace OC\Share20\Exception;
class BackendError extends \Exception {
diff --git a/lib/private/Share20/Exception/InvalidShare.php b/lib/private/Share20/Exception/InvalidShare.php
index 1e7337b0418..f4a88ebc188 100644
--- a/lib/private/Share20/Exception/InvalidShare.php
+++ b/lib/private/Share20/Exception/InvalidShare.php
@@ -19,6 +19,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>
*
*/
+
namespace OC\Share20\Exception;
class InvalidShare extends \Exception {
diff --git a/lib/private/Share20/Exception/ProviderException.php b/lib/private/Share20/Exception/ProviderException.php
index f7ada6d48fd..89bd28a60eb 100644
--- a/lib/private/Share20/Exception/ProviderException.php
+++ b/lib/private/Share20/Exception/ProviderException.php
@@ -19,10 +19,10 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>
*
*/
+
namespace OC\Share20\Exception;
class ProviderException extends \Exception {
}
-
diff --git a/lib/private/Share20/Hooks.php b/lib/private/Share20/Hooks.php
index 4519b709a8c..4318fd57cf1 100644
--- a/lib/private/Share20/Hooks.php
+++ b/lib/private/Share20/Hooks.php
@@ -19,6 +19,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>
*
*/
+
namespace OC\Share20;
class Hooks {
diff --git a/lib/private/Share20/LegacyHooks.php b/lib/private/Share20/LegacyHooks.php
index 4cc748aa418..4554ab64a14 100644
--- a/lib/private/Share20/LegacyHooks.php
+++ b/lib/private/Share20/LegacyHooks.php
@@ -26,10 +26,10 @@
namespace OC\Share20;
use OCP\Files\File;
+use OCP\Share;
use OCP\Share\IShare;
use Symfony\Component\EventDispatcher\EventDispatcherInterface;
use Symfony\Component\EventDispatcher\GenericEvent;
-use OCP\Share;
class LegacyHooks {
diff --git a/lib/private/Share20/Manager.php b/lib/private/Share20/Manager.php
index 298aa6f0f57..d9809fd128a 100644
--- a/lib/private/Share20/Manager.php
+++ b/lib/private/Share20/Manager.php
@@ -57,15 +57,15 @@ use OCP\L10N\IFactory;
use OCP\Mail\IMailer;
use OCP\Security\IHasher;
use OCP\Security\ISecureRandom;
+use OCP\Share;
use OCP\Share\Exceptions\GenericShareException;
use OCP\Share\Exceptions\ShareNotFound;
use OCP\Share\IManager;
use OCP\Share\IProviderFactory;
use OCP\Share\IShare;
+use OCP\Share\IShareProvider;
use Symfony\Component\EventDispatcher\EventDispatcherInterface;
use Symfony\Component\EventDispatcher\GenericEvent;
-use OCP\Share\IShareProvider;
-use OCP\Share;
/**
* This class is the communication hub for all sharing related operations.
diff --git a/lib/private/Share20/ProviderFactory.php b/lib/private/Share20/ProviderFactory.php
index da1905bf986..dc77a9fbcbb 100644
--- a/lib/private/Share20/ProviderFactory.php
+++ b/lib/private/Share20/ProviderFactory.php
@@ -26,9 +26,11 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>
*
*/
+
namespace OC\Share20;
use OC\CapabilitiesManager;
+use OC\Share20\Exception\ProviderException;
use OCA\FederatedFileSharing\AddressHandler;
use OCA\FederatedFileSharing\FederatedShareProvider;
use OCA\FederatedFileSharing\Notifications;
@@ -37,9 +39,8 @@ use OCA\FederatedFileSharing\TokenHandler;
use OCA\ShareByMail\Settings\SettingsManager;
use OCA\ShareByMail\ShareByMailProvider;
use OCP\Defaults;
-use OCP\Share\IProviderFactory;
-use OC\Share20\Exception\ProviderException;
use OCP\IServerContainer;
+use OCP\Share\IProviderFactory;
/**
* Class ProviderFactory
diff --git a/lib/private/Share20/Share.php b/lib/private/Share20/Share.php
index 57b5304b102..3ac324b40ce 100644
--- a/lib/private/Share20/Share.php
+++ b/lib/private/Share20/Share.php
@@ -21,6 +21,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>
*
*/
+
namespace OC\Share20;
use OCP\Files\Cache\ICacheEntry;
diff --git a/lib/private/Share20/ShareHelper.php b/lib/private/Share20/ShareHelper.php
index 5f692c6a62b..f94546d19ed 100644
--- a/lib/private/Share20/ShareHelper.php
+++ b/lib/private/Share20/ShareHelper.php
@@ -21,6 +21,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/
+
namespace OC\Share20;
use OCP\Files\InvalidPathException;
diff --git a/lib/private/SubAdmin.php b/lib/private/SubAdmin.php
index f79a0b1ae5a..ec959e0e4ea 100644
--- a/lib/private/SubAdmin.php
+++ b/lib/private/SubAdmin.php
@@ -30,11 +30,11 @@ namespace OC;
use OC\Hooks\PublicEmitter;
use OCP\Group\ISubAdmin;
-use OCP\IUser;
-use OCP\IUserManager;
+use OCP\IDBConnection;
use OCP\IGroup;
use OCP\IGroupManager;
-use OCP\IDBConnection;
+use OCP\IUser;
+use OCP\IUserManager;
class SubAdmin extends PublicEmitter implements ISubAdmin {
diff --git a/lib/private/SystemTag/ManagerFactory.php b/lib/private/SystemTag/ManagerFactory.php
index 839a819a04a..ab17ae69ac8 100644
--- a/lib/private/SystemTag/ManagerFactory.php
+++ b/lib/private/SystemTag/ManagerFactory.php
@@ -21,6 +21,7 @@ declare(strict_types=1);
* along with this program. If not, see <http://www.gnu.org/licenses/>
*
*/
+
namespace OC\SystemTag;
use OCP\IServerContainer;
diff --git a/lib/private/SystemTag/SystemTagManager.php b/lib/private/SystemTag/SystemTagManager.php
index 055b744e5c3..85a12da67f2 100644
--- a/lib/private/SystemTag/SystemTagManager.php
+++ b/lib/private/SystemTag/SystemTagManager.php
@@ -29,14 +29,14 @@ namespace OC\SystemTag;
use Doctrine\DBAL\Exception\UniqueConstraintViolationException;
use OCP\DB\QueryBuilder\IQueryBuilder;
use OCP\IDBConnection;
+use OCP\IGroupManager;
+use OCP\IUser;
+use OCP\SystemTag\ISystemTag;
use OCP\SystemTag\ISystemTagManager;
use OCP\SystemTag\ManagerEvent;
use OCP\SystemTag\TagAlreadyExistsException;
use OCP\SystemTag\TagNotFoundException;
use Symfony\Component\EventDispatcher\EventDispatcherInterface;
-use OCP\IGroupManager;
-use OCP\SystemTag\ISystemTag;
-use OCP\IUser;
/**
* Manager class for system tags
diff --git a/lib/private/Tagging/Tag.php b/lib/private/Tagging/Tag.php
index de5ab0a485c..f20f22955a3 100644
--- a/lib/private/Tagging/Tag.php
+++ b/lib/private/Tagging/Tag.php
@@ -23,7 +23,7 @@
namespace OC\Tagging;
-use \OCP\AppFramework\Db\Entity;
+use OCP\AppFramework\Db\Entity;
/**
* Class to represent a tag.
diff --git a/lib/private/Tagging/TagMapper.php b/lib/private/Tagging/TagMapper.php
index e5ca41f69e3..49361ff181a 100644
--- a/lib/private/Tagging/TagMapper.php
+++ b/lib/private/Tagging/TagMapper.php
@@ -24,9 +24,9 @@
namespace OC\Tagging;
-use \OCP\AppFramework\Db\Mapper,
- \OCP\AppFramework\Db\DoesNotExistException,
- \OCP\IDBConnection;
+use OCP\AppFramework\Db\DoesNotExistException;
+use OCP\AppFramework\Db\Mapper;
+use OCP\IDBConnection;
/**
* Mapper for Tag entity
@@ -76,4 +76,3 @@ class TagMapper extends Mapper {
return true;
}
}
-
diff --git a/lib/private/TempManager.php b/lib/private/TempManager.php
index 6e8683d2f7c..479c41ff7fd 100644
--- a/lib/private/TempManager.php
+++ b/lib/private/TempManager.php
@@ -30,8 +30,8 @@
namespace OC;
-use OCP\ILogger;
use OCP\IConfig;
+use OCP\ILogger;
use OCP\ITempManager;
class TempManager implements ITempManager {
diff --git a/lib/private/Template/IconsCacher.php b/lib/private/Template/IconsCacher.php
index 3c0a270d3f2..75175ad6373 100644
--- a/lib/private/Template/IconsCacher.php
+++ b/lib/private/Template/IconsCacher.php
@@ -24,14 +24,14 @@ declare (strict_types = 1);
namespace OC\Template;
+use OC\Files\AppData\Factory;
use OCP\AppFramework\Utility\ITimeFactory;
use OCP\Files\IAppData;
use OCP\Files\NotFoundException;
-use OCP\Files\SimpleFS\ISimpleFolder;
use OCP\Files\SimpleFS\ISimpleFile;
+use OCP\Files\SimpleFS\ISimpleFolder;
use OCP\ILogger;
use OCP\IURLGenerator;
-use OC\Files\AppData\Factory;
class IconsCacher {
diff --git a/lib/private/Template/JSCombiner.php b/lib/private/Template/JSCombiner.php
index 93683753899..224a7a9b213 100644
--- a/lib/private/Template/JSCombiner.php
+++ b/lib/private/Template/JSCombiner.php
@@ -22,14 +22,15 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/
+
namespace OC\Template;
use OC\SystemConfig;
-use OCP\ICache;
use OCP\Files\IAppData;
use OCP\Files\NotFoundException;
use OCP\Files\NotPermittedException;
use OCP\Files\SimpleFS\ISimpleFolder;
+use OCP\ICache;
use OCP\ICacheFactory;
use OCP\ILogger;
use OCP\IURLGenerator;
diff --git a/lib/private/Template/JSConfigHelper.php b/lib/private/Template/JSConfigHelper.php
index 15e2fd76c48..df5eda9121b 100644
--- a/lib/private/Template/JSConfigHelper.php
+++ b/lib/private/Template/JSConfigHelper.php
@@ -25,6 +25,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/
+
namespace OC\Template;
use bantu\IniGetWrapper\IniGetWrapper;
diff --git a/lib/private/Template/SCSSCacher.php b/lib/private/Template/SCSSCacher.php
index c6d5fc8ef71..df90fca9817 100644
--- a/lib/private/Template/SCSSCacher.php
+++ b/lib/private/Template/SCSSCacher.php
@@ -32,7 +32,9 @@ use Leafo\ScssPhp\Compiler;
use Leafo\ScssPhp\Exception\ParserException;
use Leafo\ScssPhp\Formatter\Crunched;
use Leafo\ScssPhp\Formatter\Expanded;
+use OC\Files\AppData\Factory;
use OC\Memcache\NullCache;
+use OC\Template\IconsCacher;
use OCP\AppFramework\Utility\ITimeFactory;
use OCP\Files\IAppData;
use OCP\Files\NotFoundException;
@@ -45,8 +47,6 @@ use OCP\IConfig;
use OCP\ILogger;
use OCP\IMemcache;
use OCP\IURLGenerator;
-use OC\Files\AppData\Factory;
-use OC\Template\IconsCacher;
class SCSSCacher {
diff --git a/lib/private/TemplateLayout.php b/lib/private/TemplateLayout.php
index 6de6b33172c..e476ddd275d 100644
--- a/lib/private/TemplateLayout.php
+++ b/lib/private/TemplateLayout.php
@@ -36,13 +36,14 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>
*
*/
+
namespace OC;
+use OC\AppFramework\Http\Request;
use OC\Template\JSCombiner;
use OC\Template\JSConfigHelper;
use OC\Template\SCSSCacher;
use OCP\Defaults;
-use OC\AppFramework\Http\Request;
use OCP\Support\Subscription\IRegistry;
class TemplateLayout extends \OC_Template {
diff --git a/lib/private/Updater/VersionCheck.php b/lib/private/Updater/VersionCheck.php
index 446e04dc5ed..079ffe7ff44 100644
--- a/lib/private/Updater/VersionCheck.php
+++ b/lib/private/Updater/VersionCheck.php
@@ -127,4 +127,3 @@ class VersionCheck {
return $response->getBody();
}
}
-
diff --git a/lib/private/User/Backend.php b/lib/private/User/Backend.php
index 30ed962555d..2b9b4d27ea3 100644
--- a/lib/private/User/Backend.php
+++ b/lib/private/User/Backend.php
@@ -23,7 +23,7 @@
namespace OC\User;
-use \OCP\UserInterface;
+use OCP\UserInterface;
/**
* Abstract base class for user management. Provides methods for querying backend
diff --git a/lib/private/User/Manager.php b/lib/private/User/Manager.php
index 7f9691073c9..da2d354b7ef 100644
--- a/lib/private/User/Manager.php
+++ b/lib/private/User/Manager.php
@@ -33,11 +33,11 @@ namespace OC\User;
use OC\Hooks\PublicEmitter;
use OCP\DB\QueryBuilder\IQueryBuilder;
-use OCP\IUser;
+use OCP\IConfig;
use OCP\IGroup;
+use OCP\IUser;
use OCP\IUserBackend;
use OCP\IUserManager;
-use OCP\IConfig;
use OCP\User\Backend\IGetRealUIDBackend;
use OCP\UserInterface;
use Symfony\Component\EventDispatcher\EventDispatcherInterface;
diff --git a/lib/private/User/NoUserException.php b/lib/private/User/NoUserException.php
index a80bf7dc54b..b72fb6a9e25 100644
--- a/lib/private/User/NoUserException.php
+++ b/lib/private/User/NoUserException.php
@@ -22,4 +22,4 @@
namespace OC\User;
-class NoUserException extends \Exception {} \ No newline at end of file
+class NoUserException extends \Exception {}
diff --git a/lib/private/User/User.php b/lib/private/User/User.php
index 12af787a5a6..96f0f38b82a 100644
--- a/lib/private/User/User.php
+++ b/lib/private/User/User.php
@@ -36,12 +36,12 @@ use OC\Files\Cache\Storage;
use OC\Hooks\Emitter;
use OC_Helper;
use OCP\IAvatarManager;
+use OCP\IConfig;
use OCP\IImage;
use OCP\IURLGenerator;
use OCP\IUser;
-use OCP\IConfig;
+use OCP\IUserBackend;
use OCP\UserInterface;
-use \OCP\IUserBackend;
use Symfony\Component\EventDispatcher\EventDispatcherInterface;
use Symfony\Component\EventDispatcher\GenericEvent;
diff --git a/lib/private/legacy/util.php b/lib/private/legacy/util.php
index eed49aff313..f73756dd240 100644
--- a/lib/private/legacy/util.php
+++ b/lib/private/legacy/util.php
@@ -61,11 +61,11 @@
*
*/
+use OC\AppFramework\Http\Request;
use OCP\IConfig;
use OCP\IGroupManager;
use OCP\ILogger;
use OCP\IUser;
-use OC\AppFramework\Http\Request;
class OC_Util {
public static $scripts = array();