diff options
Diffstat (limited to 'lib')
139 files changed, 35 insertions, 104 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/Events/LoginFailed.php b/lib/private/Authentication/Events/LoginFailed.php index cc5a547fdef..6e32e419871 100644 --- a/lib/private/Authentication/Events/LoginFailed.php +++ b/lib/private/Authentication/Events/LoginFailed.php @@ -1,4 +1,5 @@ <?php + declare(strict_types=1); /** * @copyright Copyright (c) 2020, Roeland Jago Douma <roeland@famdouma.nl> diff --git a/lib/private/Authentication/Listeners/LoginFailedListener.php b/lib/private/Authentication/Listeners/LoginFailedListener.php index d4f46d9547f..8086194eab3 100644 --- a/lib/private/Authentication/Listeners/LoginFailedListener.php +++ b/lib/private/Authentication/Listeners/LoginFailedListener.php @@ -1,4 +1,5 @@ <?php + declare(strict_types=1); /** * @copyright Copyright (c) 2020, Roeland Jago Douma <roeland@famdouma.nl> diff --git a/lib/private/Authentication/Login/WebAuthnChain.php b/lib/private/Authentication/Login/WebAuthnChain.php index dfc6943e853..ff6dd23e1ef 100644 --- a/lib/private/Authentication/Login/WebAuthnChain.php +++ b/lib/private/Authentication/Login/WebAuthnChain.php @@ -1,4 +1,5 @@ <?php + declare(strict_types=1); /** * @copyright Copyright (c) 2020, Roeland Jago Douma <roeland@famdouma.nl> diff --git a/lib/private/Authentication/Login/WebAuthnLoginCommand.php b/lib/private/Authentication/Login/WebAuthnLoginCommand.php index e477a243c56..d2f613c59be 100644 --- a/lib/private/Authentication/Login/WebAuthnLoginCommand.php +++ b/lib/private/Authentication/Login/WebAuthnLoginCommand.php @@ -1,4 +1,5 @@ <?php + declare(strict_types=1); /** * @copyright Copyright (c) 2020, Roeland Jago Douma <roeland@famdouma.nl> 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/Authentication/WebAuthn/CredentialRepository.php b/lib/private/Authentication/WebAuthn/CredentialRepository.php index c6f8cdfd888..c57af15d2e4 100644 --- a/lib/private/Authentication/WebAuthn/CredentialRepository.php +++ b/lib/private/Authentication/WebAuthn/CredentialRepository.php @@ -1,4 +1,5 @@ <?php + declare(strict_types=1); /** * @copyright Copyright (c) 2020, Roeland Jago Douma <roeland@famdouma.nl> diff --git a/lib/private/Authentication/WebAuthn/Db/PublicKeyCredentialEntity.php b/lib/private/Authentication/WebAuthn/Db/PublicKeyCredentialEntity.php index cd5da83805a..0b27c78efbd 100644 --- a/lib/private/Authentication/WebAuthn/Db/PublicKeyCredentialEntity.php +++ b/lib/private/Authentication/WebAuthn/Db/PublicKeyCredentialEntity.php @@ -1,4 +1,5 @@ <?php + declare(strict_types=1); /** * @copyright Copyright (c) 2020, Roeland Jago Douma <roeland@famdouma.nl> diff --git a/lib/private/Authentication/WebAuthn/Manager.php b/lib/private/Authentication/WebAuthn/Manager.php index 180eb1543b2..e33d0e48e9b 100644 --- a/lib/private/Authentication/WebAuthn/Manager.php +++ b/lib/private/Authentication/WebAuthn/Manager.php @@ -1,4 +1,5 @@ <?php + declare(strict_types=1); /** * @copyright Copyright (c) 2020, Roeland Jago Douma <roeland@famdouma.nl> 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; /** diff --git a/lib/public/Activity/IEventMerger.php b/lib/public/Activity/IEventMerger.php index a8f75875c6f..90d9cecb756 100644 --- a/lib/public/Activity/IEventMerger.php +++ b/lib/public/Activity/IEventMerger.php @@ -23,7 +23,6 @@ namespace OCP\Activity; - /** * Interface EventMerger * diff --git a/lib/public/AppFramework/App.php b/lib/public/AppFramework/App.php index d6bf23e4afe..7bf9e72637b 100644 --- a/lib/public/AppFramework/App.php +++ b/lib/public/AppFramework/App.php @@ -37,6 +37,7 @@ declare(strict_types=1); */ namespace OCP\AppFramework; + use OC\AppFramework\Routing\RouteConfig; use OC\ServerContainer; use OCP\Route\IRouter; diff --git a/lib/public/AppFramework/Db/DoesNotExistException.php b/lib/public/AppFramework/Db/DoesNotExistException.php index 45008473c21..d401bcb5f8b 100644 --- a/lib/public/AppFramework/Db/DoesNotExistException.php +++ b/lib/public/AppFramework/Db/DoesNotExistException.php @@ -27,7 +27,6 @@ declare(strict_types=1); namespace OCP\AppFramework\Db; - /** * This is returned or should be returned when a find request does not find an * entry in the database diff --git a/lib/public/AppFramework/Db/Entity.php b/lib/public/AppFramework/Db/Entity.php index 7340df55fc4..3735c83cf81 100644 --- a/lib/public/AppFramework/Db/Entity.php +++ b/lib/public/AppFramework/Db/Entity.php @@ -25,7 +25,6 @@ namespace OCP\AppFramework\Db; - use function lcfirst; use function substr; diff --git a/lib/public/AppFramework/Db/MultipleObjectsReturnedException.php b/lib/public/AppFramework/Db/MultipleObjectsReturnedException.php index 0f37d16cffc..d5fd63bd405 100644 --- a/lib/public/AppFramework/Db/MultipleObjectsReturnedException.php +++ b/lib/public/AppFramework/Db/MultipleObjectsReturnedException.php @@ -27,7 +27,6 @@ declare(strict_types=1); namespace OCP\AppFramework\Db; - /** * This is returned or should be returned when a find request finds more than one * row diff --git a/lib/public/AppFramework/Http/DownloadResponse.php b/lib/public/AppFramework/Http/DownloadResponse.php index 2f808ff156c..c28550a0bbd 100644 --- a/lib/public/AppFramework/Http/DownloadResponse.php +++ b/lib/public/AppFramework/Http/DownloadResponse.php @@ -25,7 +25,6 @@ namespace OCP\AppFramework\Http; - /** * Prompts the user to download the a file * @since 7.0.0 diff --git a/lib/public/AppFramework/Http/ICallbackResponse.php b/lib/public/AppFramework/Http/ICallbackResponse.php index f12a406120a..ca2f5f424ff 100644 --- a/lib/public/AppFramework/Http/ICallbackResponse.php +++ b/lib/public/AppFramework/Http/ICallbackResponse.php @@ -25,7 +25,6 @@ namespace OCP\AppFramework\Http; - /** * Interface ICallbackResponse * diff --git a/lib/public/AppFramework/Http/IOutput.php b/lib/public/AppFramework/Http/IOutput.php index 082e5e40046..83d65857c16 100644 --- a/lib/public/AppFramework/Http/IOutput.php +++ b/lib/public/AppFramework/Http/IOutput.php @@ -26,7 +26,6 @@ namespace OCP\AppFramework\Http; - /** * Very thin wrapper class to make output testable * @since 8.1.0 diff --git a/lib/public/AppFramework/Http/RedirectToDefaultAppResponse.php b/lib/public/AppFramework/Http/RedirectToDefaultAppResponse.php index b34ede45dfd..9072ca8a059 100644 --- a/lib/public/AppFramework/Http/RedirectToDefaultAppResponse.php +++ b/lib/public/AppFramework/Http/RedirectToDefaultAppResponse.php @@ -27,7 +27,6 @@ declare(strict_types=1); namespace OCP\AppFramework\Http; - /** * Redirects to the default app * @since 16.0.0 diff --git a/lib/public/AppFramework/Http/TemplateResponse.php b/lib/public/AppFramework/Http/TemplateResponse.php index 99219d6eb0e..5ce7c3a7966 100644 --- a/lib/public/AppFramework/Http/TemplateResponse.php +++ b/lib/public/AppFramework/Http/TemplateResponse.php @@ -33,7 +33,6 @@ namespace OCP\AppFramework\Http; - /** * Response for a normal template * @since 6.0.0 diff --git a/lib/public/AppFramework/Utility/ITimeFactory.php b/lib/public/AppFramework/Utility/ITimeFactory.php index 08266ec775d..2ab10986f19 100644 --- a/lib/public/AppFramework/Utility/ITimeFactory.php +++ b/lib/public/AppFramework/Utility/ITimeFactory.php @@ -27,7 +27,6 @@ declare(strict_types=1); namespace OCP\AppFramework\Utility; - /** * Needed to mock calls to time() * @since 8.0.0 diff --git a/lib/public/Authentication/Events/LoginFailedEvent.php b/lib/public/Authentication/Events/LoginFailedEvent.php index 15c8fb31bce..ba5a54efb45 100644 --- a/lib/public/Authentication/Events/LoginFailedEvent.php +++ b/lib/public/Authentication/Events/LoginFailedEvent.php @@ -1,4 +1,5 @@ <?php + declare(strict_types=1); /** * @copyright Copyright (c) 2020, Roeland Jago Douma <roeland@famdouma.nl> diff --git a/lib/public/BackgroundJob/IJob.php b/lib/public/BackgroundJob/IJob.php index 719d0ea013a..d1d763fd5e4 100644 --- a/lib/public/BackgroundJob/IJob.php +++ b/lib/public/BackgroundJob/IJob.php @@ -24,6 +24,7 @@ */ namespace OCP\BackgroundJob; + use OCP\ILogger; /** diff --git a/lib/public/Calendar/Resource/IBackend.php b/lib/public/Calendar/Resource/IBackend.php index 416643919ec..474d5f902ee 100644 --- a/lib/public/Calendar/Resource/IBackend.php +++ b/lib/public/Calendar/Resource/IBackend.php @@ -22,6 +22,7 @@ */ namespace OCP\Calendar\Resource; + use OCP\Calendar\BackendTemporarilyUnavailableException; /** diff --git a/lib/public/Calendar/Room/IBackend.php b/lib/public/Calendar/Room/IBackend.php index 00f8b64a41e..d0d3e70dc17 100644 --- a/lib/public/Calendar/Room/IBackend.php +++ b/lib/public/Calendar/Room/IBackend.php @@ -22,6 +22,7 @@ */ namespace OCP\Calendar\Room; + use OCP\Calendar\BackendTemporarilyUnavailableException; /** diff --git a/lib/public/Collaboration/AutoComplete/AutoCompleteEvent.php b/lib/public/Collaboration/AutoComplete/AutoCompleteEvent.php index cd711ea20b2..6b46d9157de 100644 --- a/lib/public/Collaboration/AutoComplete/AutoCompleteEvent.php +++ b/lib/public/Collaboration/AutoComplete/AutoCompleteEvent.php @@ -26,7 +26,6 @@ declare(strict_types=1); namespace OCP\Collaboration\AutoComplete; - use Symfony\Component\EventDispatcher\GenericEvent; /** diff --git a/lib/public/Collaboration/Resources/ResourceException.php b/lib/public/Collaboration/Resources/ResourceException.php index 81bace8f085..8aa72447c95 100644 --- a/lib/public/Collaboration/Resources/ResourceException.php +++ b/lib/public/Collaboration/Resources/ResourceException.php @@ -26,7 +26,6 @@ declare(strict_types=1); namespace OCP\Collaboration\Resources; - /** * @since 16.0.0 */ diff --git a/lib/public/DB/QueryBuilder/IExpressionBuilder.php b/lib/public/DB/QueryBuilder/IExpressionBuilder.php index 1db98ba98f4..5f17585a131 100644 --- a/lib/public/DB/QueryBuilder/IExpressionBuilder.php +++ b/lib/public/DB/QueryBuilder/IExpressionBuilder.php @@ -25,7 +25,6 @@ namespace OCP\DB\QueryBuilder; - use Doctrine\DBAL\Query\Expression\ExpressionBuilder; /** diff --git a/lib/public/DB/QueryBuilder/IQueryBuilder.php b/lib/public/DB/QueryBuilder/IQueryBuilder.php index ece5d36c3eb..d65872388f9 100644 --- a/lib/public/DB/QueryBuilder/IQueryBuilder.php +++ b/lib/public/DB/QueryBuilder/IQueryBuilder.php @@ -26,7 +26,6 @@ namespace OCP\DB\QueryBuilder; - use Doctrine\DBAL\Connection; /** diff --git a/lib/public/Dashboard/IDashboardManager.php b/lib/public/Dashboard/IDashboardManager.php index 683ead5512e..7805bc236e8 100644 --- a/lib/public/Dashboard/IDashboardManager.php +++ b/lib/public/Dashboard/IDashboardManager.php @@ -26,7 +26,6 @@ declare(strict_types=1); namespace OCP\Dashboard; - use OCP\Dashboard\Exceptions\DashboardAppNotAvailableException; use OCP\Dashboard\Model\IWidgetConfig; use OCP\Dashboard\Service\IEventsService; diff --git a/lib/public/Dashboard/IDashboardWidget.php b/lib/public/Dashboard/IDashboardWidget.php index 8532a8700a1..9010845355a 100644 --- a/lib/public/Dashboard/IDashboardWidget.php +++ b/lib/public/Dashboard/IDashboardWidget.php @@ -27,7 +27,6 @@ declare(strict_types=1); namespace OCP\Dashboard; - use OCP\Dashboard\Model\IWidgetConfig; use OCP\Dashboard\Model\IWidgetRequest; use OCP\Dashboard\Model\WidgetSetup; diff --git a/lib/public/Dashboard/Model/IWidgetConfig.php b/lib/public/Dashboard/Model/IWidgetConfig.php index 7d3d88f3241..bc33b37f544 100644 --- a/lib/public/Dashboard/Model/IWidgetConfig.php +++ b/lib/public/Dashboard/Model/IWidgetConfig.php @@ -26,7 +26,6 @@ declare(strict_types=1); namespace OCP\Dashboard\Model; - use OCP\Dashboard\IDashboardWidget; /** diff --git a/lib/public/Dashboard/Model/IWidgetRequest.php b/lib/public/Dashboard/Model/IWidgetRequest.php index 0a49e34ab30..b646935978a 100644 --- a/lib/public/Dashboard/Model/IWidgetRequest.php +++ b/lib/public/Dashboard/Model/IWidgetRequest.php @@ -26,7 +26,6 @@ declare(strict_types=1); namespace OCP\Dashboard\Model; - use OCP\Dashboard\IDashboardWidget; /** diff --git a/lib/public/Dashboard/Model/WidgetSetting.php b/lib/public/Dashboard/Model/WidgetSetting.php index 29744c56fac..b20d8d68b38 100644 --- a/lib/public/Dashboard/Model/WidgetSetting.php +++ b/lib/public/Dashboard/Model/WidgetSetting.php @@ -26,7 +26,6 @@ declare(strict_types=1); namespace OCP\Dashboard\Model; - use JsonSerializable; /** diff --git a/lib/public/Dashboard/Model/WidgetSetup.php b/lib/public/Dashboard/Model/WidgetSetup.php index 4d9884fd470..80885705633 100644 --- a/lib/public/Dashboard/Model/WidgetSetup.php +++ b/lib/public/Dashboard/Model/WidgetSetup.php @@ -26,7 +26,6 @@ declare(strict_types=1); namespace OCP\Dashboard\Model; - use JsonSerializable; /** diff --git a/lib/public/Dashboard/Model/WidgetTemplate.php b/lib/public/Dashboard/Model/WidgetTemplate.php index ba4447638a1..979a49a342d 100644 --- a/lib/public/Dashboard/Model/WidgetTemplate.php +++ b/lib/public/Dashboard/Model/WidgetTemplate.php @@ -26,7 +26,6 @@ declare(strict_types=1); namespace OCP\Dashboard\Model; - use JsonSerializable; /** diff --git a/lib/public/Dashboard/Service/IEventsService.php b/lib/public/Dashboard/Service/IEventsService.php index a036149599c..a9898f578e6 100644 --- a/lib/public/Dashboard/Service/IEventsService.php +++ b/lib/public/Dashboard/Service/IEventsService.php @@ -26,7 +26,6 @@ declare(strict_types=1); namespace OCP\Dashboard\Service; - use OCP\Dashboard\IDashboardManager; /** diff --git a/lib/public/Dashboard/Service/IWidgetsService.php b/lib/public/Dashboard/Service/IWidgetsService.php index 73a0bd7b171..dfa89ec1f59 100644 --- a/lib/public/Dashboard/Service/IWidgetsService.php +++ b/lib/public/Dashboard/Service/IWidgetsService.php @@ -26,7 +26,6 @@ declare(strict_types=1); namespace OCP\Dashboard\Service; - use OCP\Dashboard\Model\IWidgetConfig; /** diff --git a/lib/public/DirectEditing/ACreateEmpty.php b/lib/public/DirectEditing/ACreateEmpty.php index 022bccf9516..71a18c94e23 100644 --- a/lib/public/DirectEditing/ACreateEmpty.php +++ b/lib/public/DirectEditing/ACreateEmpty.php @@ -23,7 +23,6 @@ namespace OCP\DirectEditing; - use OCP\Files\File; /** diff --git a/lib/public/DirectEditing/IEditor.php b/lib/public/DirectEditing/IEditor.php index 5b376ba2ad5..22ec130aee0 100644 --- a/lib/public/DirectEditing/IEditor.php +++ b/lib/public/DirectEditing/IEditor.php @@ -26,7 +26,6 @@ declare(strict_types=1); namespace OCP\DirectEditing; - use OCP\AppFramework\Http\Response; /** diff --git a/lib/public/DirectEditing/IToken.php b/lib/public/DirectEditing/IToken.php index 416b2ccb807..46c423053fe 100644 --- a/lib/public/DirectEditing/IToken.php +++ b/lib/public/DirectEditing/IToken.php @@ -23,7 +23,6 @@ namespace OCP\DirectEditing; - use OCP\Files\File; use OCP\Files\NotFoundException; diff --git a/lib/public/Encryption/Exceptions/GenericEncryptionException.php b/lib/public/Encryption/Exceptions/GenericEncryptionException.php index 938e6662a79..2124e5effea 100644 --- a/lib/public/Encryption/Exceptions/GenericEncryptionException.php +++ b/lib/public/Encryption/Exceptions/GenericEncryptionException.php @@ -25,6 +25,7 @@ */ namespace OCP\Encryption\Exceptions; + use OC\HintException; /** diff --git a/lib/public/Encryption/IEncryptionModule.php b/lib/public/Encryption/IEncryptionModule.php index 90d427d4a1a..9646fb90e93 100644 --- a/lib/public/Encryption/IEncryptionModule.php +++ b/lib/public/Encryption/IEncryptionModule.php @@ -25,6 +25,7 @@ */ namespace OCP\Encryption; + use Symfony\Component\Console\Input\InputInterface; use Symfony\Component\Console\Output\OutputInterface; diff --git a/lib/public/Files/Cache/ICache.php b/lib/public/Files/Cache/ICache.php index a4c9bfe3e45..d1388f02b1d 100644 --- a/lib/public/Files/Cache/ICache.php +++ b/lib/public/Files/Cache/ICache.php @@ -21,6 +21,7 @@ */ namespace OCP\Files\Cache; + use OCP\Files\Search\ISearchQuery; /** diff --git a/lib/public/Files/Folder.php b/lib/public/Files/Folder.php index a78a9ca8f78..4c05b0fb490 100644 --- a/lib/public/Files/Folder.php +++ b/lib/public/Files/Folder.php @@ -32,6 +32,7 @@ // This means that they should be used by apps instead of the internal ownCloud classes namespace OCP\Files; + use OCP\Files\Search\ISearchQuery; /** diff --git a/lib/public/Files/IMimeTypeDetector.php b/lib/public/Files/IMimeTypeDetector.php index ec80b3480d1..bb75ce742c5 100644 --- a/lib/public/Files/IMimeTypeDetector.php +++ b/lib/public/Files/IMimeTypeDetector.php @@ -26,7 +26,6 @@ namespace OCP\Files; - /** * Interface IMimeTypeDetector * @package OCP\Files diff --git a/lib/public/Files/Storage/IStorageFactory.php b/lib/public/Files/Storage/IStorageFactory.php index e5a94de34f9..e9550fdaa29 100644 --- a/lib/public/Files/Storage/IStorageFactory.php +++ b/lib/public/Files/Storage/IStorageFactory.php @@ -23,6 +23,7 @@ */ namespace OCP\Files\Storage; + use OCP\Files\Mount\IMountPoint; /** diff --git a/lib/public/Files/StorageNotAvailableException.php b/lib/public/Files/StorageNotAvailableException.php index 0b1defaded8..052a6b5ad78 100644 --- a/lib/public/Files/StorageNotAvailableException.php +++ b/lib/public/Files/StorageNotAvailableException.php @@ -36,6 +36,7 @@ // This means that they should be used by apps instead of the internal ownCloud classes namespace OCP\Files; + use OC\HintException; /** diff --git a/lib/public/Files_FullTextSearch/Model/AFilesDocument.php b/lib/public/Files_FullTextSearch/Model/AFilesDocument.php index 24c14089bcc..1ca6bff98c9 100644 --- a/lib/public/Files_FullTextSearch/Model/AFilesDocument.php +++ b/lib/public/Files_FullTextSearch/Model/AFilesDocument.php @@ -26,7 +26,6 @@ declare(strict_types=1); namespace OCP\Files_FullTextSearch\Model; - use OC\FullTextSearch\Model\IndexDocument; use OCP\FullTextSearch\Model\IIndexDocument; diff --git a/lib/public/FullTextSearch/IFullTextSearchManager.php b/lib/public/FullTextSearch/IFullTextSearchManager.php index 8730a344ded..e420e91f3a1 100644 --- a/lib/public/FullTextSearch/IFullTextSearchManager.php +++ b/lib/public/FullTextSearch/IFullTextSearchManager.php @@ -26,7 +26,6 @@ declare(strict_types=1); namespace OCP\FullTextSearch; - use OCP\FullTextSearch\Model\IIndex; use OCP\FullTextSearch\Model\ISearchResult; use OCP\FullTextSearch\Service\IIndexService; diff --git a/lib/public/FullTextSearch/IFullTextSearchPlatform.php b/lib/public/FullTextSearch/IFullTextSearchPlatform.php index a22e6930383..797c179082e 100644 --- a/lib/public/FullTextSearch/IFullTextSearchPlatform.php +++ b/lib/public/FullTextSearch/IFullTextSearchPlatform.php @@ -26,7 +26,6 @@ declare(strict_types=1); namespace OCP\FullTextSearch; - use OCP\FullTextSearch\Model\IDocumentAccess; use OCP\FullTextSearch\Model\IIndex; use OCP\FullTextSearch\Model\IIndexDocument; diff --git a/lib/public/FullTextSearch/IFullTextSearchProvider.php b/lib/public/FullTextSearch/IFullTextSearchProvider.php index f9a56b40e85..4a37001754a 100644 --- a/lib/public/FullTextSearch/IFullTextSearchProvider.php +++ b/lib/public/FullTextSearch/IFullTextSearchProvider.php @@ -27,7 +27,6 @@ declare(strict_types=1); namespace OCP\FullTextSearch; - use OCP\FullTextSearch\Model\IIndex; use OCP\FullTextSearch\Model\IIndexDocument; use OCP\FullTextSearch\Model\IIndexOptions; diff --git a/lib/public/FullTextSearch/Model/IDocumentAccess.php b/lib/public/FullTextSearch/Model/IDocumentAccess.php index 713a018e661..478072593aa 100644 --- a/lib/public/FullTextSearch/Model/IDocumentAccess.php +++ b/lib/public/FullTextSearch/Model/IDocumentAccess.php @@ -26,7 +26,6 @@ declare(strict_types=1); namespace OCP\FullTextSearch\Model; - /** * Interface IDocumentAccess * diff --git a/lib/public/FullTextSearch/Model/IIndex.php b/lib/public/FullTextSearch/Model/IIndex.php index 0f3f718d7ba..7078962d99e 100644 --- a/lib/public/FullTextSearch/Model/IIndex.php +++ b/lib/public/FullTextSearch/Model/IIndex.php @@ -27,7 +27,6 @@ declare(strict_types=1); namespace OCP\FullTextSearch\Model; - /** * Interface IIndex * diff --git a/lib/public/FullTextSearch/Model/IIndexDocument.php b/lib/public/FullTextSearch/Model/IIndexDocument.php index e86582b9234..667d2c15c7f 100644 --- a/lib/public/FullTextSearch/Model/IIndexDocument.php +++ b/lib/public/FullTextSearch/Model/IIndexDocument.php @@ -26,7 +26,6 @@ declare(strict_types=1); namespace OCP\FullTextSearch\Model; - /** * Class IIndexDocument * diff --git a/lib/public/FullTextSearch/Model/IIndexOptions.php b/lib/public/FullTextSearch/Model/IIndexOptions.php index daa8f5a0c7a..8719289d746 100644 --- a/lib/public/FullTextSearch/Model/IIndexOptions.php +++ b/lib/public/FullTextSearch/Model/IIndexOptions.php @@ -26,7 +26,6 @@ declare(strict_types=1); namespace OCP\FullTextSearch\Model; - /** * Interface IIndexOptions * diff --git a/lib/public/FullTextSearch/Model/IRunner.php b/lib/public/FullTextSearch/Model/IRunner.php index c4eecfa4894..d92eb789d64 100644 --- a/lib/public/FullTextSearch/Model/IRunner.php +++ b/lib/public/FullTextSearch/Model/IRunner.php @@ -26,7 +26,6 @@ declare(strict_types=1); namespace OCP\FullTextSearch\Model; - /** * Interface IRunner * diff --git a/lib/public/FullTextSearch/Model/ISearchOption.php b/lib/public/FullTextSearch/Model/ISearchOption.php index bbd2ac4827a..3f893c516d9 100644 --- a/lib/public/FullTextSearch/Model/ISearchOption.php +++ b/lib/public/FullTextSearch/Model/ISearchOption.php @@ -26,7 +26,6 @@ declare(strict_types=1); namespace OCP\FullTextSearch\Model; - /** * @since 16.0.0 * diff --git a/lib/public/FullTextSearch/Model/ISearchRequest.php b/lib/public/FullTextSearch/Model/ISearchRequest.php index 2453c1e871c..d48b74288fd 100644 --- a/lib/public/FullTextSearch/Model/ISearchRequest.php +++ b/lib/public/FullTextSearch/Model/ISearchRequest.php @@ -26,7 +26,6 @@ declare(strict_types=1); namespace OCP\FullTextSearch\Model; - /** * Interface ISearchRequest * diff --git a/lib/public/FullTextSearch/Model/ISearchRequestSimpleQuery.php b/lib/public/FullTextSearch/Model/ISearchRequestSimpleQuery.php index ca11b0c9317..c72d15a6930 100644 --- a/lib/public/FullTextSearch/Model/ISearchRequestSimpleQuery.php +++ b/lib/public/FullTextSearch/Model/ISearchRequestSimpleQuery.php @@ -26,7 +26,6 @@ declare(strict_types=1); namespace OCP\FullTextSearch\Model; - /** * Interface ISearchRequestSimpleQuery * diff --git a/lib/public/FullTextSearch/Model/ISearchResult.php b/lib/public/FullTextSearch/Model/ISearchResult.php index 775c4314bb1..1d8cb5d8037 100644 --- a/lib/public/FullTextSearch/Model/ISearchResult.php +++ b/lib/public/FullTextSearch/Model/ISearchResult.php @@ -26,7 +26,6 @@ declare(strict_types=1); namespace OCP\FullTextSearch\Model; - use OCP\FullTextSearch\IFullTextSearchProvider; /** diff --git a/lib/public/FullTextSearch/Model/ISearchTemplate.php b/lib/public/FullTextSearch/Model/ISearchTemplate.php index 43d1a586a1d..b63bae43a0a 100644 --- a/lib/public/FullTextSearch/Model/ISearchTemplate.php +++ b/lib/public/FullTextSearch/Model/ISearchTemplate.php @@ -26,7 +26,6 @@ declare(strict_types=1); namespace OCP\FullTextSearch\Model; - use OCP\FullTextSearch\IFullTextSearchProvider; /** diff --git a/lib/public/FullTextSearch/Service/IIndexService.php b/lib/public/FullTextSearch/Service/IIndexService.php index 3c3bd4bbe1f..f660909c9ca 100644 --- a/lib/public/FullTextSearch/Service/IIndexService.php +++ b/lib/public/FullTextSearch/Service/IIndexService.php @@ -26,7 +26,6 @@ declare(strict_types=1); namespace OCP\FullTextSearch\Service; - use OCP\FullTextSearch\Model\IIndex; /** diff --git a/lib/public/FullTextSearch/Service/IProviderService.php b/lib/public/FullTextSearch/Service/IProviderService.php index 8d4b68e4136..50c32649357 100644 --- a/lib/public/FullTextSearch/Service/IProviderService.php +++ b/lib/public/FullTextSearch/Service/IProviderService.php @@ -26,7 +26,6 @@ declare(strict_types=1); namespace OCP\FullTextSearch\Service; - /** * Interface IProviderService * diff --git a/lib/public/FullTextSearch/Service/ISearchService.php b/lib/public/FullTextSearch/Service/ISearchService.php index 8c2152855a1..89fa1a444e2 100644 --- a/lib/public/FullTextSearch/Service/ISearchService.php +++ b/lib/public/FullTextSearch/Service/ISearchService.php @@ -26,7 +26,6 @@ declare(strict_types=1); namespace OCP\FullTextSearch\Service; - use OCP\FullTextSearch\Model\ISearchRequest; use OCP\FullTextSearch\Model\ISearchResult; diff --git a/lib/public/IDBConnection.php b/lib/public/IDBConnection.php index a7aa9d448f1..405b4ba1b04 100644 --- a/lib/public/IDBConnection.php +++ b/lib/public/IDBConnection.php @@ -38,6 +38,7 @@ // This means that they should be used by apps instead of the internal ownCloud classes namespace OCP; + use Doctrine\DBAL\Schema\Schema; use OCP\DB\QueryBuilder\IQueryBuilder; diff --git a/lib/public/ISearch.php b/lib/public/ISearch.php index bdfe8431f13..fa6fc49c976 100644 --- a/lib/public/ISearch.php +++ b/lib/public/ISearch.php @@ -27,7 +27,6 @@ namespace OCP; - /** * Small Interface for Search * @since 7.0.0 diff --git a/lib/public/IServerContainer.php b/lib/public/IServerContainer.php index 7443f32bfe3..40f8d93f350 100644 --- a/lib/public/IServerContainer.php +++ b/lib/public/IServerContainer.php @@ -47,6 +47,7 @@ // This means that they should be used by apps instead of the internal ownCloud classes namespace OCP; + use OCP\Federation\ICloudFederationFactory; use OCP\Federation\ICloudFederationProviderManager; use OCP\Log\ILogFactory; diff --git a/lib/public/IUser.php b/lib/public/IUser.php index a5e94bf8ac4..910c1a06d9d 100644 --- a/lib/public/IUser.php +++ b/lib/public/IUser.php @@ -28,7 +28,6 @@ namespace OCP; - /** * Interface IUser * diff --git a/lib/public/IUserManager.php b/lib/public/IUserManager.php index 33e90a617a6..a8df1a1af7e 100644 --- a/lib/public/IUserManager.php +++ b/lib/public/IUserManager.php @@ -30,7 +30,6 @@ namespace OCP; - /** * Class Manager * diff --git a/lib/public/Lock/ManuallyLockedException.php b/lib/public/Lock/ManuallyLockedException.php index 12567456e18..1609727f4e8 100644 --- a/lib/public/Lock/ManuallyLockedException.php +++ b/lib/public/Lock/ManuallyLockedException.php @@ -27,7 +27,6 @@ declare(strict_types=1); namespace OCP\Lock; - /** * Class ManuallyLockedException * diff --git a/lib/public/Notification/AlreadyProcessedException.php b/lib/public/Notification/AlreadyProcessedException.php index 2cb1fc92765..251221004c9 100644 --- a/lib/public/Notification/AlreadyProcessedException.php +++ b/lib/public/Notification/AlreadyProcessedException.php @@ -26,7 +26,6 @@ declare(strict_types=1); namespace OCP\Notification; - /** * @since 17.0.0 */ diff --git a/lib/public/RichObjectStrings/Definitions.php b/lib/public/RichObjectStrings/Definitions.php index a4cf4dac725..6b293dfff6d 100644 --- a/lib/public/RichObjectStrings/Definitions.php +++ b/lib/public/RichObjectStrings/Definitions.php @@ -26,7 +26,6 @@ namespace OCP\RichObjectStrings; - /** * Class Definitions * diff --git a/lib/public/SabrePluginEvent.php b/lib/public/SabrePluginEvent.php index b04ca420e32..c9f80d184c2 100644 --- a/lib/public/SabrePluginEvent.php +++ b/lib/public/SabrePluginEvent.php @@ -25,7 +25,6 @@ namespace OCP; - use OCP\AppFramework\Http; use OCP\EventDispatcher\Event; use Sabre\DAV\Server; diff --git a/lib/public/SabrePluginException.php b/lib/public/SabrePluginException.php index 3f46885a11a..7d2220999e5 100644 --- a/lib/public/SabrePluginException.php +++ b/lib/public/SabrePluginException.php @@ -22,7 +22,6 @@ namespace OCP; - use Sabre\DAV\Exception; /** diff --git a/lib/public/Security/IContentSecurityPolicyManager.php b/lib/public/Security/IContentSecurityPolicyManager.php index bd579703cad..465a8c317f6 100644 --- a/lib/public/Security/IContentSecurityPolicyManager.php +++ b/lib/public/Security/IContentSecurityPolicyManager.php @@ -22,6 +22,7 @@ */ namespace OCP\Security; + use OCP\AppFramework\Http\EmptyContentSecurityPolicy; /** diff --git a/lib/public/Share/Exceptions/GenericShareException.php b/lib/public/Share/Exceptions/GenericShareException.php index b9c134b8d00..3714edbfc33 100644 --- a/lib/public/Share/Exceptions/GenericShareException.php +++ b/lib/public/Share/Exceptions/GenericShareException.php @@ -23,6 +23,7 @@ */ namespace OCP\Share\Exceptions; + use OC\HintException; /** diff --git a/lib/public/WorkflowEngine/IFileCheck.php b/lib/public/WorkflowEngine/IFileCheck.php index b94f3e512d3..d11a5011367 100644 --- a/lib/public/WorkflowEngine/IFileCheck.php +++ b/lib/public/WorkflowEngine/IFileCheck.php @@ -27,7 +27,6 @@ declare(strict_types=1); namespace OCP\WorkflowEngine; - use OCP\Files\Storage\IStorage; /** |