summaryrefslogtreecommitdiffstats
path: root/lib/private
diff options
context:
space:
mode:
authorChristoph Wurst <christoph@winzerhof-wurst.at>2020-04-09 11:48:10 +0200
committerChristoph Wurst <christoph@winzerhof-wurst.at>2020-04-09 11:48:10 +0200
commit41b5e5923a44965e435d35d01b5009abb2dd5c97 (patch)
tree1d832f87ecbaa33c5ad6e09792e5ae5a0f760fe6 /lib/private
parent813bdc1ce8a45039fa17aac12bd078466a0034d0 (diff)
downloadnextcloud-server-41b5e5923a44965e435d35d01b5009abb2dd5c97.tar.gz
nextcloud-server-41b5e5923a44965e435d35d01b5009abb2dd5c97.zip
Use exactly one empty line after the namespace declaration
For PSR2 Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Diffstat (limited to 'lib/private')
-rw-r--r--lib/private/Activity/Manager.php1
-rw-r--r--lib/private/AllConfig.php1
-rw-r--r--lib/private/Authentication/Token/INamedToken.php1
-rw-r--r--lib/private/BackgroundJob/QueuedJob.php1
-rw-r--r--lib/private/BackgroundJob/TimedJob.php1
-rw-r--r--lib/private/Collaboration/Collaborators/LookupPlugin.php1
-rw-r--r--lib/private/Collaboration/Collaborators/MailPlugin.php1
-rw-r--r--lib/private/Collaboration/Collaborators/RemoteGroupPlugin.php1
-rw-r--r--lib/private/Collaboration/Collaborators/RemotePlugin.php1
-rw-r--r--lib/private/Collaboration/Collaborators/SearchResult.php1
-rw-r--r--lib/private/Collaboration/Collaborators/UserPlugin.php1
-rw-r--r--lib/private/Collaboration/Resources/Collection.php1
-rw-r--r--lib/private/Collaboration/Resources/Listener.php1
-rw-r--r--lib/private/Collaboration/Resources/Manager.php1
-rw-r--r--lib/private/Collaboration/Resources/Resource.php1
-rw-r--r--lib/private/Console/TimestampFormatter.php1
-rw-r--r--lib/private/DB/AdapterPgSql.php1
-rw-r--r--lib/private/DB/MigrationException.php1
-rw-r--r--lib/private/DB/PgSqlTools.php1
-rw-r--r--lib/private/DB/QueryBuilder/ExpressionBuilder/MySqlExpressionBuilder.php1
-rw-r--r--lib/private/DB/QueryBuilder/ExpressionBuilder/OCIExpressionBuilder.php1
-rw-r--r--lib/private/DB/QueryBuilder/ExpressionBuilder/PgSqlExpressionBuilder.php1
-rw-r--r--lib/private/DB/QueryBuilder/ExpressionBuilder/SqliteExpressionBuilder.php1
-rw-r--r--lib/private/Dashboard/DashboardManager.php1
-rw-r--r--lib/private/DateTimeZone.php1
-rw-r--r--lib/private/DirectEditing/Token.php1
-rw-r--r--lib/private/Encryption/EncryptionWrapper.php1
-rw-r--r--lib/private/Files/Cache/Watcher.php1
-rw-r--r--lib/private/Files/Cache/Wrapper/JailPropagator.php1
-rw-r--r--lib/private/Files/Config/CachedMountFileInfo.php1
-rw-r--r--lib/private/Files/ObjectStore/NoopScanner.php1
-rw-r--r--lib/private/Files/ObjectStore/SwiftV2CachingAuthService.php1
-rw-r--r--lib/private/Files/Search/SearchOrder.php1
-rw-r--r--lib/private/Files/Storage/Storage.php1
-rw-r--r--lib/private/FullTextSearch/FullTextSearchManager.php1
-rw-r--r--lib/private/FullTextSearch/Model/DocumentAccess.php1
-rw-r--r--lib/private/FullTextSearch/Model/IndexDocument.php1
-rw-r--r--lib/private/FullTextSearch/Model/SearchOption.php1
-rw-r--r--lib/private/FullTextSearch/Model/SearchRequestSimpleQuery.php1
-rw-r--r--lib/private/FullTextSearch/Model/SearchTemplate.php1
-rw-r--r--lib/private/GlobalScale/Config.php1
-rw-r--r--lib/private/Log/File.php1
-rw-r--r--lib/private/Log/Rotate.php1
-rw-r--r--lib/private/Migration/ConsoleOutput.php1
-rw-r--r--lib/private/Migration/SimpleOutput.php1
-rw-r--r--lib/private/Notification/Action.php1
-rw-r--r--lib/private/Notification/Manager.php1
-rw-r--r--lib/private/Notification/Notification.php1
-rw-r--r--lib/private/Remote/Api/ApiCollection.php1
-rw-r--r--lib/private/Remote/Api/ApiFactory.php1
-rw-r--r--lib/private/Remote/Api/NotFoundException.php1
-rw-r--r--lib/private/Remote/Api/OCS.php1
-rw-r--r--lib/private/Remote/Credentials.php1
-rw-r--r--lib/private/Remote/InstanceFactory.php1
-rw-r--r--lib/private/Remote/User.php1
-rw-r--r--lib/private/RichObjectStrings/Validator.php1
-rw-r--r--lib/private/Search.php1
-rw-r--r--lib/private/Search/Provider/File.php1
-rw-r--r--lib/private/Search/Result/File.php1
-rw-r--r--lib/private/Security/TrustedDomainHelper.php1
-rw-r--r--lib/private/ServerContainer.php1
-rw-r--r--lib/private/ServerNotAvailableException.php1
-rw-r--r--lib/private/Share20/Exception/ProviderException.php1
-rw-r--r--lib/private/SystemConfig.php1
64 files changed, 13 insertions, 51 deletions
diff --git a/lib/private/Activity/Manager.php b/lib/private/Activity/Manager.php
index c1b09300033..fc1c32a475f 100644
--- a/lib/private/Activity/Manager.php
+++ b/lib/private/Activity/Manager.php
@@ -28,7 +28,6 @@
namespace OC\Activity;
-
use OCP\Activity\IConsumer;
use OCP\Activity\IEvent;
use OCP\Activity\IFilter;
diff --git a/lib/private/AllConfig.php b/lib/private/AllConfig.php
index a41230e4a97..e62b000938b 100644
--- a/lib/private/AllConfig.php
+++ b/lib/private/AllConfig.php
@@ -31,6 +31,7 @@
*/
namespace OC;
+
use OC\Cache\CappedMemoryCache;
use OCP\IDBConnection;
use OCP\PreConditionNotMetException;
diff --git a/lib/private/Authentication/Token/INamedToken.php b/lib/private/Authentication/Token/INamedToken.php
index 99eb338e8d4..30755879963 100644
--- a/lib/private/Authentication/Token/INamedToken.php
+++ b/lib/private/Authentication/Token/INamedToken.php
@@ -27,7 +27,6 @@ declare(strict_types=1);
namespace OC\Authentication\Token;
-
interface INamedToken extends IToken {
/**
* Set token name
diff --git a/lib/private/BackgroundJob/QueuedJob.php b/lib/private/BackgroundJob/QueuedJob.php
index a01e666eb57..08fae26630f 100644
--- a/lib/private/BackgroundJob/QueuedJob.php
+++ b/lib/private/BackgroundJob/QueuedJob.php
@@ -23,6 +23,7 @@
*/
namespace OC\BackgroundJob;
+
use OCP\ILogger;
/**
diff --git a/lib/private/BackgroundJob/TimedJob.php b/lib/private/BackgroundJob/TimedJob.php
index 755607bfb6d..0da8c4ad123 100644
--- a/lib/private/BackgroundJob/TimedJob.php
+++ b/lib/private/BackgroundJob/TimedJob.php
@@ -23,6 +23,7 @@
*/
namespace OC\BackgroundJob;
+
use OCP\ILogger;
/**
diff --git a/lib/private/Collaboration/Collaborators/LookupPlugin.php b/lib/private/Collaboration/Collaborators/LookupPlugin.php
index 79204043bd0..493c35a46d4 100644
--- a/lib/private/Collaboration/Collaborators/LookupPlugin.php
+++ b/lib/private/Collaboration/Collaborators/LookupPlugin.php
@@ -26,7 +26,6 @@
namespace OC\Collaboration\Collaborators;
-
use OCP\Collaboration\Collaborators\ISearchPlugin;
use OCP\Collaboration\Collaborators\ISearchResult;
use OCP\Collaboration\Collaborators\SearchResultType;
diff --git a/lib/private/Collaboration/Collaborators/MailPlugin.php b/lib/private/Collaboration/Collaborators/MailPlugin.php
index 3a3759b5794..bafc383f746 100644
--- a/lib/private/Collaboration/Collaborators/MailPlugin.php
+++ b/lib/private/Collaboration/Collaborators/MailPlugin.php
@@ -26,7 +26,6 @@
namespace OC\Collaboration\Collaborators;
-
use OCP\Collaboration\Collaborators\ISearchPlugin;
use OCP\Collaboration\Collaborators\ISearchResult;
use OCP\Collaboration\Collaborators\SearchResultType;
diff --git a/lib/private/Collaboration/Collaborators/RemoteGroupPlugin.php b/lib/private/Collaboration/Collaborators/RemoteGroupPlugin.php
index 2f024119c26..a922befec76 100644
--- a/lib/private/Collaboration/Collaborators/RemoteGroupPlugin.php
+++ b/lib/private/Collaboration/Collaborators/RemoteGroupPlugin.php
@@ -24,7 +24,6 @@
namespace OC\Collaboration\Collaborators;
-
use OCP\Collaboration\Collaborators\ISearchPlugin;
use OCP\Collaboration\Collaborators\ISearchResult;
use OCP\Collaboration\Collaborators\SearchResultType;
diff --git a/lib/private/Collaboration/Collaborators/RemotePlugin.php b/lib/private/Collaboration/Collaborators/RemotePlugin.php
index 5173e889b9c..b41e6441f84 100644
--- a/lib/private/Collaboration/Collaborators/RemotePlugin.php
+++ b/lib/private/Collaboration/Collaborators/RemotePlugin.php
@@ -26,7 +26,6 @@
namespace OC\Collaboration\Collaborators;
-
use OCP\Collaboration\Collaborators\ISearchPlugin;
use OCP\Collaboration\Collaborators\ISearchResult;
use OCP\Collaboration\Collaborators\SearchResultType;
diff --git a/lib/private/Collaboration/Collaborators/SearchResult.php b/lib/private/Collaboration/Collaborators/SearchResult.php
index 768089c909a..1ee37e65589 100644
--- a/lib/private/Collaboration/Collaborators/SearchResult.php
+++ b/lib/private/Collaboration/Collaborators/SearchResult.php
@@ -24,7 +24,6 @@
namespace OC\Collaboration\Collaborators;
-
use OCP\Collaboration\Collaborators\ISearchResult;
use OCP\Collaboration\Collaborators\SearchResultType;
diff --git a/lib/private/Collaboration/Collaborators/UserPlugin.php b/lib/private/Collaboration/Collaborators/UserPlugin.php
index a344e557ac7..bed3da8521d 100644
--- a/lib/private/Collaboration/Collaborators/UserPlugin.php
+++ b/lib/private/Collaboration/Collaborators/UserPlugin.php
@@ -27,7 +27,6 @@
namespace OC\Collaboration\Collaborators;
-
use OCP\Collaboration\Collaborators\ISearchPlugin;
use OCP\Collaboration\Collaborators\ISearchResult;
use OCP\Collaboration\Collaborators\SearchResultType;
diff --git a/lib/private/Collaboration/Resources/Collection.php b/lib/private/Collaboration/Resources/Collection.php
index b890e52f33a..4fb0e49f16e 100644
--- a/lib/private/Collaboration/Resources/Collection.php
+++ b/lib/private/Collaboration/Resources/Collection.php
@@ -27,7 +27,6 @@ declare(strict_types=1);
namespace OC\Collaboration\Resources;
-
use Doctrine\DBAL\Exception\ConstraintViolationException;
use OCP\Collaboration\Resources\ICollection;
use OCP\Collaboration\Resources\IManager;
diff --git a/lib/private/Collaboration/Resources/Listener.php b/lib/private/Collaboration/Resources/Listener.php
index 41a24960a66..a465db1fed9 100644
--- a/lib/private/Collaboration/Resources/Listener.php
+++ b/lib/private/Collaboration/Resources/Listener.php
@@ -27,7 +27,6 @@ declare(strict_types=1);
namespace OC\Collaboration\Resources;
-
use OCP\Collaboration\Resources\IManager;
use OCP\IGroup;
use OCP\IUser;
diff --git a/lib/private/Collaboration/Resources/Manager.php b/lib/private/Collaboration/Resources/Manager.php
index 35ae0330e51..98cc25916fe 100644
--- a/lib/private/Collaboration/Resources/Manager.php
+++ b/lib/private/Collaboration/Resources/Manager.php
@@ -28,7 +28,6 @@ declare(strict_types=1);
namespace OC\Collaboration\Resources;
-
use Doctrine\DBAL\Exception\UniqueConstraintViolationException;
use OCP\Collaboration\Resources\CollectionException;
use OCP\Collaboration\Resources\ICollection;
diff --git a/lib/private/Collaboration/Resources/Resource.php b/lib/private/Collaboration/Resources/Resource.php
index 19d7f3c0831..702bc2faf46 100644
--- a/lib/private/Collaboration/Resources/Resource.php
+++ b/lib/private/Collaboration/Resources/Resource.php
@@ -27,7 +27,6 @@ declare(strict_types=1);
namespace OC\Collaboration\Resources;
-
use OCP\Collaboration\Resources\ICollection;
use OCP\Collaboration\Resources\IManager;
use OCP\Collaboration\Resources\IResource;
diff --git a/lib/private/Console/TimestampFormatter.php b/lib/private/Console/TimestampFormatter.php
index 946b864ac62..72e3e392e0b 100644
--- a/lib/private/Console/TimestampFormatter.php
+++ b/lib/private/Console/TimestampFormatter.php
@@ -23,7 +23,6 @@
namespace OC\Console;
-
use OCP\IConfig;
use Symfony\Component\Console\Formatter\OutputFormatterInterface;
use Symfony\Component\Console\Formatter\OutputFormatterStyleInterface;
diff --git a/lib/private/DB/AdapterPgSql.php b/lib/private/DB/AdapterPgSql.php
index 628c91dbb9e..0febdd7f1f8 100644
--- a/lib/private/DB/AdapterPgSql.php
+++ b/lib/private/DB/AdapterPgSql.php
@@ -26,7 +26,6 @@
namespace OC\DB;
-
class AdapterPgSql extends Adapter {
protected $compatModePre9_5 = null;
diff --git a/lib/private/DB/MigrationException.php b/lib/private/DB/MigrationException.php
index 9e758f4e860..76d769e08be 100644
--- a/lib/private/DB/MigrationException.php
+++ b/lib/private/DB/MigrationException.php
@@ -23,7 +23,6 @@
namespace OC\DB;
-
class MigrationException extends \Exception {
private $table;
diff --git a/lib/private/DB/PgSqlTools.php b/lib/private/DB/PgSqlTools.php
index 27b6bbc9aeb..724344ac2a1 100644
--- a/lib/private/DB/PgSqlTools.php
+++ b/lib/private/DB/PgSqlTools.php
@@ -25,6 +25,7 @@
*/
namespace OC\DB;
+
use OCP\IConfig;
/**
diff --git a/lib/private/DB/QueryBuilder/ExpressionBuilder/MySqlExpressionBuilder.php b/lib/private/DB/QueryBuilder/ExpressionBuilder/MySqlExpressionBuilder.php
index 666e99e7f8e..e7df321b102 100644
--- a/lib/private/DB/QueryBuilder/ExpressionBuilder/MySqlExpressionBuilder.php
+++ b/lib/private/DB/QueryBuilder/ExpressionBuilder/MySqlExpressionBuilder.php
@@ -24,7 +24,6 @@
namespace OC\DB\QueryBuilder\ExpressionBuilder;
-
use OC\DB\Connection;
use OCP\DB\QueryBuilder\IQueryBuilder;
use OCP\IDBConnection;
diff --git a/lib/private/DB/QueryBuilder/ExpressionBuilder/OCIExpressionBuilder.php b/lib/private/DB/QueryBuilder/ExpressionBuilder/OCIExpressionBuilder.php
index 12719b2aaad..2aa007dba04 100644
--- a/lib/private/DB/QueryBuilder/ExpressionBuilder/OCIExpressionBuilder.php
+++ b/lib/private/DB/QueryBuilder/ExpressionBuilder/OCIExpressionBuilder.php
@@ -24,7 +24,6 @@
namespace OC\DB\QueryBuilder\ExpressionBuilder;
-
use OC\DB\QueryBuilder\QueryFunction;
use OCP\DB\QueryBuilder\ILiteral;
use OCP\DB\QueryBuilder\IParameter;
diff --git a/lib/private/DB/QueryBuilder/ExpressionBuilder/PgSqlExpressionBuilder.php b/lib/private/DB/QueryBuilder/ExpressionBuilder/PgSqlExpressionBuilder.php
index a59cd591db0..fbf76da8690 100644
--- a/lib/private/DB/QueryBuilder/ExpressionBuilder/PgSqlExpressionBuilder.php
+++ b/lib/private/DB/QueryBuilder/ExpressionBuilder/PgSqlExpressionBuilder.php
@@ -24,7 +24,6 @@
namespace OC\DB\QueryBuilder\ExpressionBuilder;
-
use OC\DB\QueryBuilder\QueryFunction;
use OCP\DB\QueryBuilder\IQueryBuilder;
diff --git a/lib/private/DB/QueryBuilder/ExpressionBuilder/SqliteExpressionBuilder.php b/lib/private/DB/QueryBuilder/ExpressionBuilder/SqliteExpressionBuilder.php
index b82b4d9eb3f..1fa0d79663a 100644
--- a/lib/private/DB/QueryBuilder/ExpressionBuilder/SqliteExpressionBuilder.php
+++ b/lib/private/DB/QueryBuilder/ExpressionBuilder/SqliteExpressionBuilder.php
@@ -23,7 +23,6 @@
namespace OC\DB\QueryBuilder\ExpressionBuilder;
-
class SqliteExpressionBuilder extends ExpressionBuilder {
/**
* @inheritdoc
diff --git a/lib/private/Dashboard/DashboardManager.php b/lib/private/Dashboard/DashboardManager.php
index 3f2b04bb96d..6491779bce7 100644
--- a/lib/private/Dashboard/DashboardManager.php
+++ b/lib/private/Dashboard/DashboardManager.php
@@ -26,7 +26,6 @@ declare(strict_types=1);
namespace OC\Dashboard;
-
use OCP\Dashboard\Exceptions\DashboardAppNotAvailableException;
use OCP\Dashboard\IDashboardManager;
use OCP\Dashboard\Model\IWidgetConfig;
diff --git a/lib/private/DateTimeZone.php b/lib/private/DateTimeZone.php
index 23fb8ae272f..d12dbdf2a37 100644
--- a/lib/private/DateTimeZone.php
+++ b/lib/private/DateTimeZone.php
@@ -24,7 +24,6 @@
namespace OC;
-
use OCP\IConfig;
use OCP\IDateTimeZone;
use OCP\ILogger;
diff --git a/lib/private/DirectEditing/Token.php b/lib/private/DirectEditing/Token.php
index add6f5b471c..1c0b99b757d 100644
--- a/lib/private/DirectEditing/Token.php
+++ b/lib/private/DirectEditing/Token.php
@@ -23,7 +23,6 @@
namespace OC\DirectEditing;
-
use OCP\DirectEditing\IToken;
use OCP\Files\File;
diff --git a/lib/private/Encryption/EncryptionWrapper.php b/lib/private/Encryption/EncryptionWrapper.php
index e5bc0e868bd..6389e996c1d 100644
--- a/lib/private/Encryption/EncryptionWrapper.php
+++ b/lib/private/Encryption/EncryptionWrapper.php
@@ -24,7 +24,6 @@
namespace OC\Encryption;
-
use OC\Files\Filesystem;
use OC\Files\Storage\Wrapper\Encryption;
use OC\Files\View;
diff --git a/lib/private/Files/Cache/Watcher.php b/lib/private/Files/Cache/Watcher.php
index cd375572b08..6270f03ca92 100644
--- a/lib/private/Files/Cache/Watcher.php
+++ b/lib/private/Files/Cache/Watcher.php
@@ -26,6 +26,7 @@
*/
namespace OC\Files\Cache;
+
use OCP\Files\Cache\ICacheEntry;
use OCP\Files\Cache\IWatcher;
diff --git a/lib/private/Files/Cache/Wrapper/JailPropagator.php b/lib/private/Files/Cache/Wrapper/JailPropagator.php
index 9322d9e610b..956d187783a 100644
--- a/lib/private/Files/Cache/Wrapper/JailPropagator.php
+++ b/lib/private/Files/Cache/Wrapper/JailPropagator.php
@@ -24,7 +24,6 @@
namespace OC\Files\Cache\Wrapper;
-
use OC\Files\Cache\Propagator;
use OC\Files\Storage\Wrapper\Jail;
diff --git a/lib/private/Files/Config/CachedMountFileInfo.php b/lib/private/Files/Config/CachedMountFileInfo.php
index 99df663a4e6..7bae52bb65d 100644
--- a/lib/private/Files/Config/CachedMountFileInfo.php
+++ b/lib/private/Files/Config/CachedMountFileInfo.php
@@ -24,7 +24,6 @@
namespace OC\Files\Config;
-
use OCP\Files\Config\ICachedMountFileInfo;
use OCP\IUser;
diff --git a/lib/private/Files/ObjectStore/NoopScanner.php b/lib/private/Files/ObjectStore/NoopScanner.php
index 2625703b5c4..7a253c82c5b 100644
--- a/lib/private/Files/ObjectStore/NoopScanner.php
+++ b/lib/private/Files/ObjectStore/NoopScanner.php
@@ -26,6 +26,7 @@
*/
namespace OC\Files\ObjectStore;
+
use OC\Files\Cache\Scanner;
use OC\Files\Storage\Storage;
diff --git a/lib/private/Files/ObjectStore/SwiftV2CachingAuthService.php b/lib/private/Files/ObjectStore/SwiftV2CachingAuthService.php
index 1343531e384..635d0908c9a 100644
--- a/lib/private/Files/ObjectStore/SwiftV2CachingAuthService.php
+++ b/lib/private/Files/ObjectStore/SwiftV2CachingAuthService.php
@@ -26,7 +26,6 @@ declare(strict_types=1);
namespace OC\Files\ObjectStore;
-
use OpenStack\Identity\v2\Service;
class SwiftV2CachingAuthService extends Service {
diff --git a/lib/private/Files/Search/SearchOrder.php b/lib/private/Files/Search/SearchOrder.php
index 7a7eb01ed94..4bff8ba1b6c 100644
--- a/lib/private/Files/Search/SearchOrder.php
+++ b/lib/private/Files/Search/SearchOrder.php
@@ -23,7 +23,6 @@
namespace OC\Files\Search;
-
use OCP\Files\Search\ISearchOrder;
class SearchOrder implements ISearchOrder {
diff --git a/lib/private/Files/Storage/Storage.php b/lib/private/Files/Storage/Storage.php
index 748253f21bb..7e5a0cef4d7 100644
--- a/lib/private/Files/Storage/Storage.php
+++ b/lib/private/Files/Storage/Storage.php
@@ -23,6 +23,7 @@
*/
namespace OC\Files\Storage;
+
use OCP\Lock\ILockingProvider;
/**
diff --git a/lib/private/FullTextSearch/FullTextSearchManager.php b/lib/private/FullTextSearch/FullTextSearchManager.php
index a67d23f6af6..4af70d97260 100644
--- a/lib/private/FullTextSearch/FullTextSearchManager.php
+++ b/lib/private/FullTextSearch/FullTextSearchManager.php
@@ -26,7 +26,6 @@ declare(strict_types=1);
namespace OC\FullTextSearch;
-
use OCP\FullTextSearch\Exceptions\FullTextSearchAppNotAvailableException;
use OCP\FullTextSearch\IFullTextSearchManager;
use OCP\FullTextSearch\Model\IIndex;
diff --git a/lib/private/FullTextSearch/Model/DocumentAccess.php b/lib/private/FullTextSearch/Model/DocumentAccess.php
index 2b74991b717..d4c7a06d079 100644
--- a/lib/private/FullTextSearch/Model/DocumentAccess.php
+++ b/lib/private/FullTextSearch/Model/DocumentAccess.php
@@ -26,7 +26,6 @@ declare(strict_types=1);
namespace OC\FullTextSearch\Model;
-
use JsonSerializable;
use OCP\FullTextSearch\Model\IDocumentAccess;
diff --git a/lib/private/FullTextSearch/Model/IndexDocument.php b/lib/private/FullTextSearch/Model/IndexDocument.php
index 048696e4d4b..7c7847b7463 100644
--- a/lib/private/FullTextSearch/Model/IndexDocument.php
+++ b/lib/private/FullTextSearch/Model/IndexDocument.php
@@ -26,7 +26,6 @@ declare(strict_types=1);
namespace OC\FullTextSearch\Model;
-
use JsonSerializable;
use OCP\FullTextSearch\Model\IDocumentAccess;
use OCP\FullTextSearch\Model\IIndex;
diff --git a/lib/private/FullTextSearch/Model/SearchOption.php b/lib/private/FullTextSearch/Model/SearchOption.php
index a61e823fb74..1ff3fbba272 100644
--- a/lib/private/FullTextSearch/Model/SearchOption.php
+++ b/lib/private/FullTextSearch/Model/SearchOption.php
@@ -26,7 +26,6 @@ declare(strict_types=1);
namespace OC\FullTextSearch\Model;
-
use JsonSerializable;
use OCP\FullTextSearch\Model\ISearchOption;
diff --git a/lib/private/FullTextSearch/Model/SearchRequestSimpleQuery.php b/lib/private/FullTextSearch/Model/SearchRequestSimpleQuery.php
index 2ffc2ee359d..19be494d82f 100644
--- a/lib/private/FullTextSearch/Model/SearchRequestSimpleQuery.php
+++ b/lib/private/FullTextSearch/Model/SearchRequestSimpleQuery.php
@@ -26,7 +26,6 @@ declare(strict_types=1);
namespace OC\FullTextSearch\Model;
-
use JsonSerializable;
use OCP\FullTextSearch\Model\ISearchRequestSimpleQuery;
diff --git a/lib/private/FullTextSearch/Model/SearchTemplate.php b/lib/private/FullTextSearch/Model/SearchTemplate.php
index 9060a82046f..4940e57c281 100644
--- a/lib/private/FullTextSearch/Model/SearchTemplate.php
+++ b/lib/private/FullTextSearch/Model/SearchTemplate.php
@@ -26,7 +26,6 @@ declare(strict_types=1);
namespace OC\FullTextSearch\Model;
-
use JsonSerializable;
use OCP\FullTextSearch\IFullTextSearchProvider;
use OCP\FullTextSearch\Model\ISearchOption;
diff --git a/lib/private/GlobalScale/Config.php b/lib/private/GlobalScale/Config.php
index c1a70c94647..f886ac8ff84 100644
--- a/lib/private/GlobalScale/Config.php
+++ b/lib/private/GlobalScale/Config.php
@@ -23,7 +23,6 @@
namespace OC\GlobalScale;
-
use OCP\IConfig;
class Config implements \OCP\GlobalScale\IConfig {
diff --git a/lib/private/Log/File.php b/lib/private/Log/File.php
index 5fccb36acb1..57b4e9353ef 100644
--- a/lib/private/Log/File.php
+++ b/lib/private/Log/File.php
@@ -35,6 +35,7 @@
*/
namespace OC\Log;
+
use OC\SystemConfig;
use OCP\ILogger;
use OCP\Log\IFileBased;
diff --git a/lib/private/Log/Rotate.php b/lib/private/Log/Rotate.php
index c7103b46075..a5fc7d5a0cd 100644
--- a/lib/private/Log/Rotate.php
+++ b/lib/private/Log/Rotate.php
@@ -24,6 +24,7 @@
*/
namespace OC\Log;
+
use OCP\Log\RotationTrait;
/**
diff --git a/lib/private/Migration/ConsoleOutput.php b/lib/private/Migration/ConsoleOutput.php
index 2efe898a01e..2ad42843dba 100644
--- a/lib/private/Migration/ConsoleOutput.php
+++ b/lib/private/Migration/ConsoleOutput.php
@@ -22,7 +22,6 @@
namespace OC\Migration;
-
use OCP\Migration\IOutput;
use Symfony\Component\Console\Helper\ProgressBar;
use Symfony\Component\Console\Output\OutputInterface;
diff --git a/lib/private/Migration/SimpleOutput.php b/lib/private/Migration/SimpleOutput.php
index 7f44db9e30a..11f2ed2837c 100644
--- a/lib/private/Migration/SimpleOutput.php
+++ b/lib/private/Migration/SimpleOutput.php
@@ -22,7 +22,6 @@
namespace OC\Migration;
-
use OCP\ILogger;
use OCP\Migration\IOutput;
diff --git a/lib/private/Notification/Action.php b/lib/private/Notification/Action.php
index 93029bcd7ac..a04f622c3cb 100644
--- a/lib/private/Notification/Action.php
+++ b/lib/private/Notification/Action.php
@@ -25,7 +25,6 @@ declare(strict_types=1);
namespace OC\Notification;
-
use OCP\Notification\IAction;
class Action implements IAction {
diff --git a/lib/private/Notification/Manager.php b/lib/private/Notification/Manager.php
index b8b549663b1..3a19b0f49e6 100644
--- a/lib/private/Notification/Manager.php
+++ b/lib/private/Notification/Manager.php
@@ -27,7 +27,6 @@ declare(strict_types=1);
namespace OC\Notification;
-
use OCP\AppFramework\QueryException;
use OCP\ILogger;
use OCP\Notification\AlreadyProcessedException;
diff --git a/lib/private/Notification/Notification.php b/lib/private/Notification/Notification.php
index 3e3a15a4f8a..8ac4e19b7d1 100644
--- a/lib/private/Notification/Notification.php
+++ b/lib/private/Notification/Notification.php
@@ -27,7 +27,6 @@ declare(strict_types=1);
namespace OC\Notification;
-
use OCP\Notification\IAction;
use OCP\Notification\INotification;
use OCP\RichObjectStrings\InvalidObjectExeption;
diff --git a/lib/private/Remote/Api/ApiCollection.php b/lib/private/Remote/Api/ApiCollection.php
index c1f2a732a8e..9ce4c7d0661 100644
--- a/lib/private/Remote/Api/ApiCollection.php
+++ b/lib/private/Remote/Api/ApiCollection.php
@@ -23,7 +23,6 @@
namespace OC\Remote\Api;
-
use OCP\Http\Client\IClientService;
use OCP\Remote\Api\IApiCollection;
use OCP\Remote\ICredentials;
diff --git a/lib/private/Remote/Api/ApiFactory.php b/lib/private/Remote/Api/ApiFactory.php
index 62f20e2787c..81bc41f9269 100644
--- a/lib/private/Remote/Api/ApiFactory.php
+++ b/lib/private/Remote/Api/ApiFactory.php
@@ -23,7 +23,6 @@
namespace OC\Remote\Api;
-
use OCP\Http\Client\IClientService;
use OCP\Remote\Api\IApiFactory;
use OCP\Remote\ICredentials;
diff --git a/lib/private/Remote/Api/NotFoundException.php b/lib/private/Remote/Api/NotFoundException.php
index 429d3e87a10..51ecfabd402 100644
--- a/lib/private/Remote/Api/NotFoundException.php
+++ b/lib/private/Remote/Api/NotFoundException.php
@@ -23,7 +23,6 @@
namespace OC\Remote\Api;
-
class NotFoundException extends \Exception {
}
diff --git a/lib/private/Remote/Api/OCS.php b/lib/private/Remote/Api/OCS.php
index 553ac92df7a..6a32c83e086 100644
--- a/lib/private/Remote/Api/OCS.php
+++ b/lib/private/Remote/Api/OCS.php
@@ -23,7 +23,6 @@
namespace OC\Remote\Api;
-
use GuzzleHttp\Exception\ClientException;
use OC\ForbiddenException;
use OC\Remote\User;
diff --git a/lib/private/Remote/Credentials.php b/lib/private/Remote/Credentials.php
index 5a4654436b8..09f5e1cda78 100644
--- a/lib/private/Remote/Credentials.php
+++ b/lib/private/Remote/Credentials.php
@@ -23,7 +23,6 @@
namespace OC\Remote;
-
use OCP\Remote\ICredentials;
class Credentials implements ICredentials {
diff --git a/lib/private/Remote/InstanceFactory.php b/lib/private/Remote/InstanceFactory.php
index 9d42353e792..a4445a8306b 100644
--- a/lib/private/Remote/InstanceFactory.php
+++ b/lib/private/Remote/InstanceFactory.php
@@ -23,7 +23,6 @@
namespace OC\Remote;
-
use OCP\Http\Client\IClientService;
use OCP\ICache;
use OCP\Remote\IInstanceFactory;
diff --git a/lib/private/Remote/User.php b/lib/private/Remote/User.php
index ef26171859a..5519d7dc22f 100644
--- a/lib/private/Remote/User.php
+++ b/lib/private/Remote/User.php
@@ -23,7 +23,6 @@
namespace OC\Remote;
-
use OCP\Remote\IUser;
class User implements IUser {
diff --git a/lib/private/RichObjectStrings/Validator.php b/lib/private/RichObjectStrings/Validator.php
index 0a651256d3a..c80da2914a4 100644
--- a/lib/private/RichObjectStrings/Validator.php
+++ b/lib/private/RichObjectStrings/Validator.php
@@ -25,7 +25,6 @@
namespace OC\RichObjectStrings;
-
use OCP\RichObjectStrings\Definitions;
use OCP\RichObjectStrings\InvalidObjectExeption;
use OCP\RichObjectStrings\IValidator;
diff --git a/lib/private/Search.php b/lib/private/Search.php
index ca9024bdd78..598eda82a54 100644
--- a/lib/private/Search.php
+++ b/lib/private/Search.php
@@ -27,6 +27,7 @@
*/
namespace OC;
+
use OCP\ISearch;
use OCP\Search\PagedProvider;
use OCP\Search\Provider;
diff --git a/lib/private/Search/Provider/File.php b/lib/private/Search/Provider/File.php
index afd37cfe703..734878be982 100644
--- a/lib/private/Search/Provider/File.php
+++ b/lib/private/Search/Provider/File.php
@@ -27,6 +27,7 @@
*/
namespace OC\Search\Provider;
+
use OC\Files\Filesystem;
/**
diff --git a/lib/private/Search/Result/File.php b/lib/private/Search/Result/File.php
index 09d2afb2617..1321c1cfc59 100644
--- a/lib/private/Search/Result/File.php
+++ b/lib/private/Search/Result/File.php
@@ -24,6 +24,7 @@
*/
namespace OC\Search\Result;
+
use OCP\Files\FileInfo;
use OCP\Files\Folder;
diff --git a/lib/private/Security/TrustedDomainHelper.php b/lib/private/Security/TrustedDomainHelper.php
index 451d5074b69..a558f24111b 100644
--- a/lib/private/Security/TrustedDomainHelper.php
+++ b/lib/private/Security/TrustedDomainHelper.php
@@ -26,6 +26,7 @@
*/
namespace OC\Security;
+
use OC\AppFramework\Http\Request;
use OCP\IConfig;
diff --git a/lib/private/ServerContainer.php b/lib/private/ServerContainer.php
index 8f2f2a93503..13fb70ddd44 100644
--- a/lib/private/ServerContainer.php
+++ b/lib/private/ServerContainer.php
@@ -27,7 +27,6 @@ declare(strict_types=1);
namespace OC;
-
use OC\AppFramework\App;
use OC\AppFramework\DependencyInjection\DIContainer;
use OC\AppFramework\Utility\SimpleContainer;
diff --git a/lib/private/ServerNotAvailableException.php b/lib/private/ServerNotAvailableException.php
index a78d470e2a6..1dd93aefb20 100644
--- a/lib/private/ServerNotAvailableException.php
+++ b/lib/private/ServerNotAvailableException.php
@@ -22,7 +22,6 @@
namespace OC;
-
class ServerNotAvailableException extends \Exception {
}
diff --git a/lib/private/Share20/Exception/ProviderException.php b/lib/private/Share20/Exception/ProviderException.php
index 360f42f63f0..7d3f79f7120 100644
--- a/lib/private/Share20/Exception/ProviderException.php
+++ b/lib/private/Share20/Exception/ProviderException.php
@@ -22,7 +22,6 @@
namespace OC\Share20\Exception;
-
class ProviderException extends \Exception {
}
diff --git a/lib/private/SystemConfig.php b/lib/private/SystemConfig.php
index 321ec61e048..7f0114ec821 100644
--- a/lib/private/SystemConfig.php
+++ b/lib/private/SystemConfig.php
@@ -27,7 +27,6 @@
namespace OC;
-
use OCP\IConfig;
/**