aboutsummaryrefslogtreecommitdiffstats
path: root/lib/public
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/public
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/public')
-rw-r--r--lib/public/API.php1
-rw-r--r--lib/public/Accounts/IAccountProperty.php2
-rw-r--r--lib/public/Activity/IConsumer.php2
-rw-r--r--lib/public/Activity/IEvent.php1
-rw-r--r--lib/public/Activity/IFilter.php1
-rw-r--r--lib/public/Activity/ISetting.php1
-rw-r--r--lib/public/App.php1
-rw-r--r--lib/public/App/AppPathNotFoundException.php2
-rw-r--r--lib/public/App/IAppManager.php2
-rw-r--r--lib/public/AppFramework/ApiController.php1
-rw-r--r--lib/public/AppFramework/App.php1
-rw-r--r--lib/public/AppFramework/Controller.php3
-rw-r--r--lib/public/AppFramework/Db/DoesNotExistException.php1
-rw-r--r--lib/public/AppFramework/Db/Mapper.php2
-rw-r--r--lib/public/AppFramework/Db/MultipleObjectsReturnedException.php1
-rw-r--r--lib/public/AppFramework/Http/DataDownloadResponse.php1
-rw-r--r--lib/public/AppFramework/Http/DownloadResponse.php1
-rw-r--r--lib/public/AppFramework/Http/FileDisplayResponse.php1
-rw-r--r--lib/public/AppFramework/Http/RedirectResponse.php2
-rw-r--r--lib/public/AppFramework/Http/RedirectToDefaultAppResponse.php1
-rw-r--r--lib/public/AppFramework/Http/Template/ExternalShareMenuAction.php1
-rw-r--r--lib/public/AppFramework/Http/Template/IMenuAction.php2
-rw-r--r--lib/public/AppFramework/Http/Template/PublicTemplateResponse.php2
-rw-r--r--lib/public/AppFramework/Http/Template/SimpleMenuAction.php2
-rw-r--r--lib/public/AppFramework/Http/ZipResponse.php2
-rw-r--r--lib/public/AppFramework/Middleware.php1
-rw-r--r--lib/public/AppFramework/OCS/OCSBadRequestException.php1
-rw-r--r--lib/public/AppFramework/OCS/OCSException.php1
-rw-r--r--lib/public/AppFramework/OCS/OCSForbiddenException.php1
-rw-r--r--lib/public/AppFramework/OCS/OCSNotFoundException.php1
-rw-r--r--lib/public/AppFramework/OCSController.php1
-rw-r--r--lib/public/Authentication/IApacheBackend.php1
-rw-r--r--lib/public/AutoloadNotAllowedException.php1
-rw-r--r--lib/public/Capabilities/ICapability.php1
-rw-r--r--lib/public/Capabilities/IPublicCapability.php1
-rw-r--r--lib/public/Comments/IComment.php2
-rw-r--r--lib/public/Comments/ICommentsManager.php1
-rw-r--r--lib/public/Comments/ICommentsManagerFactory.php1
-rw-r--r--lib/public/Comments/IllegalIDChangeException.php1
-rw-r--r--lib/public/Comments/MessageTooLongException.php1
-rw-r--r--lib/public/Comments/NotFoundException.php1
-rw-r--r--lib/public/Contacts/IManager.php1
-rw-r--r--lib/public/DB/QueryBuilder/ILiteral.php1
-rw-r--r--lib/public/DB/QueryBuilder/IParameter.php1
-rw-r--r--lib/public/DB/QueryBuilder/IQueryFunction.php1
-rw-r--r--lib/public/Dashboard/Exceptions/DashboardAppNotAvailableException.php1
-rw-r--r--lib/public/Dashboard/IDashboardManager.php2
-rw-r--r--lib/public/Dashboard/IDashboardWidget.php6
-rw-r--r--lib/public/Dashboard/Model/IWidgetConfig.php1
-rw-r--r--lib/public/Dashboard/Model/IWidgetRequest.php2
-rw-r--r--lib/public/Dashboard/Model/WidgetSetting.php2
-rw-r--r--lib/public/Dashboard/Model/WidgetSetup.php2
-rw-r--r--lib/public/Dashboard/Model/WidgetTemplate.php2
-rw-r--r--lib/public/Dashboard/Service/IEventsService.php2
-rw-r--r--lib/public/Dashboard/Service/IWidgetsService.php2
-rw-r--r--lib/public/Defaults.php1
-rw-r--r--lib/public/Encryption/IManager.php2
-rw-r--r--lib/public/Federation/ICloudFederationProvider.php2
-rw-r--r--lib/public/Files.php1
-rw-r--r--lib/public/Files/AlreadyExistsException.php1
-rw-r--r--lib/public/Files/Cache/IScanner.php1
-rw-r--r--lib/public/Files/EntityTooLargeException.php1
-rw-r--r--lib/public/Files/File.php1
-rw-r--r--lib/public/Files/FileInfo.php1
-rw-r--r--lib/public/Files/FileNameTooLongException.php1
-rw-r--r--lib/public/Files/Folder.php1
-rw-r--r--lib/public/Files/ForbiddenException.php1
-rw-r--r--lib/public/Files/GenericFileException.php1
-rw-r--r--lib/public/Files/IAppData.php1
-rw-r--r--lib/public/Files/IHomeStorage.php1
-rw-r--r--lib/public/Files/IMimeTypeDetector.php1
-rw-r--r--lib/public/Files/IRootFolder.php2
-rw-r--r--lib/public/Files/InvalidCharacterInPathException.php1
-rw-r--r--lib/public/Files/InvalidContentException.php1
-rw-r--r--lib/public/Files/InvalidPathException.php1
-rw-r--r--lib/public/Files/LockNotAcquiredException.php1
-rw-r--r--lib/public/Files/Node.php1
-rw-r--r--lib/public/Files/NotEnoughSpaceException.php1
-rw-r--r--lib/public/Files/NotFoundException.php1
-rw-r--r--lib/public/Files/NotPermittedException.php1
-rw-r--r--lib/public/Files/ObjectStore/IObjectStore.php1
-rw-r--r--lib/public/Files/ReservedWordException.php1
-rw-r--r--lib/public/Files/SimpleFS/ISimpleFile.php1
-rw-r--r--lib/public/Files/SimpleFS/ISimpleFolder.php1
-rw-r--r--lib/public/Files/SimpleFS/ISimpleRoot.php1
-rw-r--r--lib/public/Files/Storage.php1
-rw-r--r--lib/public/Files/Storage/IDisableEncryptionStorage.php2
-rw-r--r--lib/public/Files/Storage/IStorage.php1
-rw-r--r--lib/public/Files/StorageAuthException.php1
-rw-r--r--lib/public/Files/StorageBadConfigException.php1
-rw-r--r--lib/public/Files/StorageConnectionException.php1
-rw-r--r--lib/public/Files/StorageInvalidException.php1
-rw-r--r--lib/public/Files/StorageNotAvailableException.php1
-rw-r--r--lib/public/Files/StorageTimeoutException.php1
-rw-r--r--lib/public/Files/UnseekableException.php1
-rw-r--r--lib/public/Files_FullTextSearch/Model/AFilesDocument.php3
-rw-r--r--lib/public/FullTextSearch/Exceptions/FullTextSearchAppNotAvailableException.php2
-rw-r--r--lib/public/FullTextSearch/IFullTextSearchManager.php3
-rw-r--r--lib/public/FullTextSearch/IFullTextSearchPlatform.php3
-rw-r--r--lib/public/FullTextSearch/IFullTextSearchProvider.php4
-rw-r--r--lib/public/FullTextSearch/Model/IDocumentAccess.php2
-rw-r--r--lib/public/FullTextSearch/Model/IIndex.php2
-rw-r--r--lib/public/FullTextSearch/Model/IIndexDocument.php2
-rw-r--r--lib/public/FullTextSearch/Model/IIndexOptions.php2
-rw-r--r--lib/public/FullTextSearch/Model/IRunner.php2
-rw-r--r--lib/public/FullTextSearch/Model/ISearchOption.php1
-rw-r--r--lib/public/FullTextSearch/Model/ISearchRequest.php2
-rw-r--r--lib/public/FullTextSearch/Model/ISearchRequestSimpleQuery.php2
-rw-r--r--lib/public/FullTextSearch/Model/ISearchResult.php3
-rw-r--r--lib/public/FullTextSearch/Model/ISearchTemplate.php3
-rw-r--r--lib/public/FullTextSearch/Service/IIndexService.php3
-rw-r--r--lib/public/FullTextSearch/Service/IProviderService.php2
-rw-r--r--lib/public/FullTextSearch/Service/ISearchService.php3
-rw-r--r--lib/public/GlobalScale/IConfig.php1
-rw-r--r--lib/public/GroupInterface.php1
-rw-r--r--lib/public/IAddressBook.php1
-rw-r--r--lib/public/IAppConfig.php1
-rw-r--r--lib/public/ICache.php1
-rw-r--r--lib/public/IConfig.php1
-rw-r--r--lib/public/IContainer.php2
-rw-r--r--lib/public/IDBConnection.php1
-rw-r--r--lib/public/IL10N.php1
-rw-r--r--lib/public/IMemcache.php1
-rw-r--r--lib/public/INavigationManager.php1
-rw-r--r--lib/public/IPreview.php3
-rw-r--r--lib/public/IRequest.php1
-rw-r--r--lib/public/IServerContainer.php4
-rw-r--r--lib/public/ISession.php1
-rw-r--r--lib/public/ITagManager.php1
-rw-r--r--lib/public/ITags.php1
-rw-r--r--lib/public/IUserBackend.php1
-rw-r--r--lib/public/IUserSession.php1
-rw-r--r--lib/public/Image.php1
-rw-r--r--lib/public/L10N/IFactory.php1
-rw-r--r--lib/public/Migration/IOutput.php1
-rw-r--r--lib/public/Migration/IRepairStep.php1
-rw-r--r--lib/public/OCS/IDiscoveryService.php1
-rw-r--r--lib/public/PreConditionNotMetException.php1
-rw-r--r--lib/public/Preview/IProvider.php1
-rw-r--r--lib/public/Route/IRoute.php1
-rw-r--r--lib/public/SabrePluginEvent.php2
-rw-r--r--lib/public/Share.php1
-rw-r--r--lib/public/Share/Exceptions/GenericShareException.php1
-rw-r--r--lib/public/Share/Exceptions/IllegalIDChangeException.php1
-rw-r--r--lib/public/Share/IShareHelper.php1
-rw-r--r--lib/public/Share/IShareProvider.php2
-rw-r--r--lib/public/Share_Backend.php1
-rw-r--r--lib/public/Share_Backend_Collection.php1
-rw-r--r--lib/public/Share_Backend_File_Dependent.php1
-rw-r--r--lib/public/SystemTag/ISystemTag.php1
-rw-r--r--lib/public/SystemTag/ISystemTagManagerFactory.php1
-rw-r--r--lib/public/User.php1
-rw-r--r--lib/public/UserInterface.php1
-rw-r--r--lib/public/Util.php1
154 files changed, 111 insertions, 106 deletions
diff --git a/lib/public/API.php b/lib/public/API.php
index d3c528ee4f9..5a41dfc7acb 100644
--- a/lib/public/API.php
+++ b/lib/public/API.php
@@ -32,6 +32,7 @@
// use OCP namespace for all classes that are considered public.
// This means that they should be used by apps instead of the internal ownCloud classes
+
namespace OCP;
/**
diff --git a/lib/public/Accounts/IAccountProperty.php b/lib/public/Accounts/IAccountProperty.php
index 1f85ac3ca86..c7213e278a6 100644
--- a/lib/public/Accounts/IAccountProperty.php
+++ b/lib/public/Accounts/IAccountProperty.php
@@ -101,5 +101,3 @@ interface IAccountProperty extends \JsonSerializable {
public function getVerified(): string;
}
-
-
diff --git a/lib/public/Activity/IConsumer.php b/lib/public/Activity/IConsumer.php
index d56719c4de3..56dbc840344 100644
--- a/lib/public/Activity/IConsumer.php
+++ b/lib/public/Activity/IConsumer.php
@@ -29,6 +29,7 @@
// use OCP namespace for all classes that are considered public.
// This means that they should be used by apps instead of the internal ownCloud classes
+
namespace OCP\Activity;
/**
@@ -46,4 +47,3 @@ interface IConsumer {
*/
public function receive(IEvent $event);
}
-
diff --git a/lib/public/Activity/IEvent.php b/lib/public/Activity/IEvent.php
index e380eca5c24..767d10f965a 100644
--- a/lib/public/Activity/IEvent.php
+++ b/lib/public/Activity/IEvent.php
@@ -29,6 +29,7 @@ declare(strict_types=1);
// use OCP namespace for all classes that are considered public.
// This means that they should be used by apps instead of the internal ownCloud classes
+
namespace OCP\Activity;
/**
diff --git a/lib/public/Activity/IFilter.php b/lib/public/Activity/IFilter.php
index b6e2025d2cd..ae5e65c605c 100644
--- a/lib/public/Activity/IFilter.php
+++ b/lib/public/Activity/IFilter.php
@@ -70,4 +70,3 @@ interface IFilter {
*/
public function allowedApps();
}
-
diff --git a/lib/public/Activity/ISetting.php b/lib/public/Activity/ISetting.php
index f3b953e95e0..4aedc03dd22 100644
--- a/lib/public/Activity/ISetting.php
+++ b/lib/public/Activity/ISetting.php
@@ -75,4 +75,3 @@ interface ISetting {
*/
public function isDefaultEnabledMail();
}
-
diff --git a/lib/public/App.php b/lib/public/App.php
index c731a5085f7..ff494e7b2fc 100644
--- a/lib/public/App.php
+++ b/lib/public/App.php
@@ -35,6 +35,7 @@
// use OCP namespace for all classes that are considered public.
// This means that they should be used by apps instead of the internal ownCloud classes
+
namespace OCP;
/**
diff --git a/lib/public/App/AppPathNotFoundException.php b/lib/public/App/AppPathNotFoundException.php
index db5a1803c83..fbca8899d3a 100644
--- a/lib/public/App/AppPathNotFoundException.php
+++ b/lib/public/App/AppPathNotFoundException.php
@@ -29,4 +29,4 @@ namespace OCP\App;
* @package OCP\App
* @since 11.0.0
*/
-class AppPathNotFoundException extends \Exception {} \ No newline at end of file
+class AppPathNotFoundException extends \Exception {}
diff --git a/lib/public/App/IAppManager.php b/lib/public/App/IAppManager.php
index 391e3f0dd64..46025d9831b 100644
--- a/lib/public/App/IAppManager.php
+++ b/lib/public/App/IAppManager.php
@@ -28,8 +28,8 @@
namespace OCP\App;
-use OCP\IUser;
use OCP\IGroup;
+use OCP\IUser;
/**
* Interface IAppManager
diff --git a/lib/public/AppFramework/ApiController.php b/lib/public/AppFramework/ApiController.php
index 5c99e170e00..bb17a34e8ba 100644
--- a/lib/public/AppFramework/ApiController.php
+++ b/lib/public/AppFramework/ApiController.php
@@ -33,7 +33,6 @@ namespace OCP\AppFramework;
use OCP\AppFramework\Http\Response;
use OCP\IRequest;
-
/**
* Base class to inherit your controllers from that are used for RESTful APIs
* @since 7.0.0
diff --git a/lib/public/AppFramework/App.php b/lib/public/AppFramework/App.php
index f327e6ca022..6fd1646f3f9 100644
--- a/lib/public/AppFramework/App.php
+++ b/lib/public/AppFramework/App.php
@@ -37,7 +37,6 @@ use OC\AppFramework\Routing\RouteConfig;
use OC\ServerContainer;
use OCP\Route\IRouter;
-
/**
* Class App
* @package OCP\AppFramework
diff --git a/lib/public/AppFramework/Controller.php b/lib/public/AppFramework/Controller.php
index 64be033d1d9..76390d09b4a 100644
--- a/lib/public/AppFramework/Controller.php
+++ b/lib/public/AppFramework/Controller.php
@@ -34,12 +34,11 @@
namespace OCP\AppFramework;
-use OCP\AppFramework\Http\JSONResponse;
use OCP\AppFramework\Http\DataResponse;
+use OCP\AppFramework\Http\JSONResponse;
use OCP\AppFramework\Http\Response;
use OCP\IRequest;
-
/**
* Base class to inherit your controllers from
* @since 6.0.0
diff --git a/lib/public/AppFramework/Db/DoesNotExistException.php b/lib/public/AppFramework/Db/DoesNotExistException.php
index 9823a0a1fa8..563d7d22aa8 100644
--- a/lib/public/AppFramework/Db/DoesNotExistException.php
+++ b/lib/public/AppFramework/Db/DoesNotExistException.php
@@ -22,7 +22,6 @@ declare(strict_types=1);
*
*/
-
namespace OCP\AppFramework\Db;
diff --git a/lib/public/AppFramework/Db/Mapper.php b/lib/public/AppFramework/Db/Mapper.php
index 6910757add0..d8de9e23aa7 100644
--- a/lib/public/AppFramework/Db/Mapper.php
+++ b/lib/public/AppFramework/Db/Mapper.php
@@ -24,12 +24,10 @@
*
*/
-
namespace OCP\AppFramework\Db;
use OCP\IDBConnection;
-
/**
* Simple parent class for inheriting your data access layer from. This class
* may be subject to change in the future
diff --git a/lib/public/AppFramework/Db/MultipleObjectsReturnedException.php b/lib/public/AppFramework/Db/MultipleObjectsReturnedException.php
index 3955c417d57..465c76c4dcb 100644
--- a/lib/public/AppFramework/Db/MultipleObjectsReturnedException.php
+++ b/lib/public/AppFramework/Db/MultipleObjectsReturnedException.php
@@ -22,7 +22,6 @@ declare(strict_types=1);
*
*/
-
namespace OCP\AppFramework\Db;
diff --git a/lib/public/AppFramework/Http/DataDownloadResponse.php b/lib/public/AppFramework/Http/DataDownloadResponse.php
index e9fcba8148d..78cf01f1ac7 100644
--- a/lib/public/AppFramework/Http/DataDownloadResponse.php
+++ b/lib/public/AppFramework/Http/DataDownloadResponse.php
@@ -20,6 +20,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>
*
*/
+
namespace OCP\AppFramework\Http;
/**
diff --git a/lib/public/AppFramework/Http/DownloadResponse.php b/lib/public/AppFramework/Http/DownloadResponse.php
index 774a6287cb2..4061dc42ad7 100644
--- a/lib/public/AppFramework/Http/DownloadResponse.php
+++ b/lib/public/AppFramework/Http/DownloadResponse.php
@@ -22,7 +22,6 @@
*
*/
-
namespace OCP\AppFramework\Http;
diff --git a/lib/public/AppFramework/Http/FileDisplayResponse.php b/lib/public/AppFramework/Http/FileDisplayResponse.php
index 2d2dd29e6a1..a63a77ef4ef 100644
--- a/lib/public/AppFramework/Http/FileDisplayResponse.php
+++ b/lib/public/AppFramework/Http/FileDisplayResponse.php
@@ -20,6 +20,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/
+
namespace OCP\AppFramework\Http;
use OCP\AppFramework\Http;
diff --git a/lib/public/AppFramework/Http/RedirectResponse.php b/lib/public/AppFramework/Http/RedirectResponse.php
index dc44bbe999c..84f53936fe8 100644
--- a/lib/public/AppFramework/Http/RedirectResponse.php
+++ b/lib/public/AppFramework/Http/RedirectResponse.php
@@ -23,12 +23,10 @@
*
*/
-
namespace OCP\AppFramework\Http;
use OCP\AppFramework\Http;
-
/**
* Redirects to a different URL
* @since 7.0.0
diff --git a/lib/public/AppFramework/Http/RedirectToDefaultAppResponse.php b/lib/public/AppFramework/Http/RedirectToDefaultAppResponse.php
index 2ec50137ef9..0a2f4c9d9ee 100644
--- a/lib/public/AppFramework/Http/RedirectToDefaultAppResponse.php
+++ b/lib/public/AppFramework/Http/RedirectToDefaultAppResponse.php
@@ -19,6 +19,7 @@ declare(strict_types=1);
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/
+
namespace OCP\AppFramework\Http;
diff --git a/lib/public/AppFramework/Http/Template/ExternalShareMenuAction.php b/lib/public/AppFramework/Http/Template/ExternalShareMenuAction.php
index 4d455a9a755..84eb48b954c 100644
--- a/lib/public/AppFramework/Http/Template/ExternalShareMenuAction.php
+++ b/lib/public/AppFramework/Http/Template/ExternalShareMenuAction.php
@@ -25,6 +25,7 @@ namespace OCP\AppFramework\Http\Template;
use OCP\AppFramework\Http\Template\SimpleMenuAction;
use OCP\Util;
+
/**
* Class LinkMenuAction
*
diff --git a/lib/public/AppFramework/Http/Template/IMenuAction.php b/lib/public/AppFramework/Http/Template/IMenuAction.php
index e42d2057981..8a037b62e4b 100644
--- a/lib/public/AppFramework/Http/Template/IMenuAction.php
+++ b/lib/public/AppFramework/Http/Template/IMenuAction.php
@@ -61,4 +61,4 @@ interface IMenuAction {
*/
public function render(): string;
-} \ No newline at end of file
+}
diff --git a/lib/public/AppFramework/Http/Template/PublicTemplateResponse.php b/lib/public/AppFramework/Http/Template/PublicTemplateResponse.php
index a520748a9ea..adffdd9ecdc 100644
--- a/lib/public/AppFramework/Http/Template/PublicTemplateResponse.php
+++ b/lib/public/AppFramework/Http/Template/PublicTemplateResponse.php
@@ -155,4 +155,4 @@ class PublicTemplateResponse extends TemplateResponse {
return parent::render();
}
-} \ No newline at end of file
+}
diff --git a/lib/public/AppFramework/Http/Template/SimpleMenuAction.php b/lib/public/AppFramework/Http/Template/SimpleMenuAction.php
index 60bb268661c..2a09d89d31a 100644
--- a/lib/public/AppFramework/Http/Template/SimpleMenuAction.php
+++ b/lib/public/AppFramework/Http/Template/SimpleMenuAction.php
@@ -123,4 +123,4 @@ class SimpleMenuAction implements IMenuAction {
);
}
-} \ No newline at end of file
+}
diff --git a/lib/public/AppFramework/Http/ZipResponse.php b/lib/public/AppFramework/Http/ZipResponse.php
index bec0812ab0c..4223912488b 100644
--- a/lib/public/AppFramework/Http/ZipResponse.php
+++ b/lib/public/AppFramework/Http/ZipResponse.php
@@ -25,8 +25,8 @@ declare(strict_types=1);
namespace OCP\AppFramework\Http;
-use OCP\IRequest;
use OC\Streamer;
+use OCP\IRequest;
/**
* Public library to send several files in one zip archive.
diff --git a/lib/public/AppFramework/Middleware.php b/lib/public/AppFramework/Middleware.php
index 4c9051a0b34..663e8e05452 100644
--- a/lib/public/AppFramework/Middleware.php
+++ b/lib/public/AppFramework/Middleware.php
@@ -33,7 +33,6 @@ namespace OCP\AppFramework;
use OCP\AppFramework\Http\Response;
-
/**
* Middleware is used to provide hooks before or after controller methods and
* deal with possible exceptions raised in the controller methods.
diff --git a/lib/public/AppFramework/OCS/OCSBadRequestException.php b/lib/public/AppFramework/OCS/OCSBadRequestException.php
index 843f8a5e0a4..7e7c775c368 100644
--- a/lib/public/AppFramework/OCS/OCSBadRequestException.php
+++ b/lib/public/AppFramework/OCS/OCSBadRequestException.php
@@ -20,6 +20,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/
+
namespace OCP\AppFramework\OCS;
use Exception;
diff --git a/lib/public/AppFramework/OCS/OCSException.php b/lib/public/AppFramework/OCS/OCSException.php
index 3ef6f3393ab..e6c506aef5c 100644
--- a/lib/public/AppFramework/OCS/OCSException.php
+++ b/lib/public/AppFramework/OCS/OCSException.php
@@ -20,6 +20,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/
+
namespace OCP\AppFramework\OCS;
use Exception;
diff --git a/lib/public/AppFramework/OCS/OCSForbiddenException.php b/lib/public/AppFramework/OCS/OCSForbiddenException.php
index 7545d87c0bf..a163ca5f175 100644
--- a/lib/public/AppFramework/OCS/OCSForbiddenException.php
+++ b/lib/public/AppFramework/OCS/OCSForbiddenException.php
@@ -20,6 +20,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/
+
namespace OCP\AppFramework\OCS;
use Exception;
diff --git a/lib/public/AppFramework/OCS/OCSNotFoundException.php b/lib/public/AppFramework/OCS/OCSNotFoundException.php
index 87a5ce20098..12e135251b4 100644
--- a/lib/public/AppFramework/OCS/OCSNotFoundException.php
+++ b/lib/public/AppFramework/OCS/OCSNotFoundException.php
@@ -20,6 +20,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/
+
namespace OCP\AppFramework\OCS;
use Exception;
diff --git a/lib/public/AppFramework/OCSController.php b/lib/public/AppFramework/OCSController.php
index 29f26bf7e71..e1273a0ca3e 100644
--- a/lib/public/AppFramework/OCSController.php
+++ b/lib/public/AppFramework/OCSController.php
@@ -36,7 +36,6 @@ use OCP\AppFramework\Http\DataResponse;
use OCP\AppFramework\Http\Response;
use OCP\IRequest;
-
/**
* Base class to inherit your controllers from that are used for RESTful APIs
* @since 8.1.0
diff --git a/lib/public/Authentication/IApacheBackend.php b/lib/public/Authentication/IApacheBackend.php
index fcc1c1a9b87..3569c50a034 100644
--- a/lib/public/Authentication/IApacheBackend.php
+++ b/lib/public/Authentication/IApacheBackend.php
@@ -29,6 +29,7 @@
// use OCP namespace for all classes that are considered public.
// This means that they should be used by apps instead of the internal ownCloud classes
+
namespace OCP\Authentication;
/**
diff --git a/lib/public/AutoloadNotAllowedException.php b/lib/public/AutoloadNotAllowedException.php
index 6c7b979f2d6..563dbdcfe0f 100644
--- a/lib/public/AutoloadNotAllowedException.php
+++ b/lib/public/AutoloadNotAllowedException.php
@@ -35,4 +35,3 @@ class AutoloadNotAllowedException extends \DomainException {
parent::__construct('Autoload path not allowed: '.$path);
}
}
-
diff --git a/lib/public/Capabilities/ICapability.php b/lib/public/Capabilities/ICapability.php
index 2a59689665d..918c97f8b68 100644
--- a/lib/public/Capabilities/ICapability.php
+++ b/lib/public/Capabilities/ICapability.php
@@ -44,4 +44,3 @@ interface ICapability {
*/
public function getCapabilities();
}
-
diff --git a/lib/public/Capabilities/IPublicCapability.php b/lib/public/Capabilities/IPublicCapability.php
index c882a24d56f..7f5d39f0ae3 100644
--- a/lib/public/Capabilities/IPublicCapability.php
+++ b/lib/public/Capabilities/IPublicCapability.php
@@ -29,4 +29,3 @@ namespace OCP\Capabilities;
* @since 13.0.0
*/
interface IPublicCapability extends ICapability {}
-
diff --git a/lib/public/Comments/IComment.php b/lib/public/Comments/IComment.php
index c7c846bbe9d..3249d70f496 100644
--- a/lib/public/Comments/IComment.php
+++ b/lib/public/Comments/IComment.php
@@ -21,6 +21,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>
*
*/
+
namespace OCP\Comments;
/**
@@ -262,4 +263,3 @@ interface IComment {
public function setObject($objectType, $objectId);
}
-
diff --git a/lib/public/Comments/ICommentsManager.php b/lib/public/Comments/ICommentsManager.php
index 744263643ec..061dacba480 100644
--- a/lib/public/Comments/ICommentsManager.php
+++ b/lib/public/Comments/ICommentsManager.php
@@ -24,6 +24,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>
*
*/
+
namespace OCP\Comments;
use OCP\IUser;
diff --git a/lib/public/Comments/ICommentsManagerFactory.php b/lib/public/Comments/ICommentsManagerFactory.php
index 4a38d992bc3..bdd15c816cb 100644
--- a/lib/public/Comments/ICommentsManagerFactory.php
+++ b/lib/public/Comments/ICommentsManagerFactory.php
@@ -21,6 +21,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>
*
*/
+
namespace OCP\Comments;
use OCP\IServerContainer;
diff --git a/lib/public/Comments/IllegalIDChangeException.php b/lib/public/Comments/IllegalIDChangeException.php
index 97f18fee12e..605f373acf2 100644
--- a/lib/public/Comments/IllegalIDChangeException.php
+++ b/lib/public/Comments/IllegalIDChangeException.php
@@ -20,6 +20,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>
*
*/
+
namespace OCP\Comments;
/**
diff --git a/lib/public/Comments/MessageTooLongException.php b/lib/public/Comments/MessageTooLongException.php
index 4c46ed46524..19c93b8252e 100644
--- a/lib/public/Comments/MessageTooLongException.php
+++ b/lib/public/Comments/MessageTooLongException.php
@@ -19,6 +19,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>
*
*/
+
namespace OCP\Comments;
/**
diff --git a/lib/public/Comments/NotFoundException.php b/lib/public/Comments/NotFoundException.php
index ab83e4095c2..56b48efcff0 100644
--- a/lib/public/Comments/NotFoundException.php
+++ b/lib/public/Comments/NotFoundException.php
@@ -20,6 +20,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>
*
*/
+
namespace OCP\Comments;
/**
diff --git a/lib/public/Contacts/IManager.php b/lib/public/Contacts/IManager.php
index 84948a929c0..b3ada74ba2d 100644
--- a/lib/public/Contacts/IManager.php
+++ b/lib/public/Contacts/IManager.php
@@ -30,6 +30,7 @@
// use OCP namespace for all classes that are considered public.
// This means that they should be used by apps instead of the internal ownCloud classes
+
namespace OCP\Contacts;
/**
diff --git a/lib/public/DB/QueryBuilder/ILiteral.php b/lib/public/DB/QueryBuilder/ILiteral.php
index 99b45ee7c29..1debf81f2b8 100644
--- a/lib/public/DB/QueryBuilder/ILiteral.php
+++ b/lib/public/DB/QueryBuilder/ILiteral.php
@@ -20,6 +20,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>
*
*/
+
namespace OCP\DB\QueryBuilder;
/**
diff --git a/lib/public/DB/QueryBuilder/IParameter.php b/lib/public/DB/QueryBuilder/IParameter.php
index c4e3fe29971..9e50c0905eb 100644
--- a/lib/public/DB/QueryBuilder/IParameter.php
+++ b/lib/public/DB/QueryBuilder/IParameter.php
@@ -20,6 +20,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>
*
*/
+
namespace OCP\DB\QueryBuilder;
/**
diff --git a/lib/public/DB/QueryBuilder/IQueryFunction.php b/lib/public/DB/QueryBuilder/IQueryFunction.php
index 5c319194739..afb676db565 100644
--- a/lib/public/DB/QueryBuilder/IQueryFunction.php
+++ b/lib/public/DB/QueryBuilder/IQueryFunction.php
@@ -20,6 +20,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>
*
*/
+
namespace OCP\DB\QueryBuilder;
/**
diff --git a/lib/public/Dashboard/Exceptions/DashboardAppNotAvailableException.php b/lib/public/Dashboard/Exceptions/DashboardAppNotAvailableException.php
index 4c3013000e8..1e3d420e0bf 100644
--- a/lib/public/Dashboard/Exceptions/DashboardAppNotAvailableException.php
+++ b/lib/public/Dashboard/Exceptions/DashboardAppNotAvailableException.php
@@ -38,4 +38,3 @@ namespace OCP\Dashboard\Exceptions;
*/
class DashboardAppNotAvailableException extends \Exception {
}
-
diff --git a/lib/public/Dashboard/IDashboardManager.php b/lib/public/Dashboard/IDashboardManager.php
index ede47c4baaf..93f96983583 100644
--- a/lib/public/Dashboard/IDashboardManager.php
+++ b/lib/public/Dashboard/IDashboardManager.php
@@ -27,7 +27,6 @@ declare(strict_types=1);
*
*/
-
namespace OCP\Dashboard;
@@ -134,4 +133,3 @@ interface IDashboardManager {
public function createGlobalEvent(string $widgetId, array $payload, string $uniqueId = '');
}
-
diff --git a/lib/public/Dashboard/IDashboardWidget.php b/lib/public/Dashboard/IDashboardWidget.php
index bbbdf86da8f..b4bb3892911 100644
--- a/lib/public/Dashboard/IDashboardWidget.php
+++ b/lib/public/Dashboard/IDashboardWidget.php
@@ -27,14 +27,13 @@ declare(strict_types=1);
*
*/
-
namespace OCP\Dashboard;
-use OCP\Dashboard\Model\WidgetSetup;
-use OCP\Dashboard\Model\WidgetTemplate;
use OCP\Dashboard\Model\IWidgetConfig;
use OCP\Dashboard\Model\IWidgetRequest;
+use OCP\Dashboard\Model\WidgetSetup;
+use OCP\Dashboard\Model\WidgetTemplate;
/**
* Interface IDashboardWidget
@@ -144,4 +143,3 @@ interface IDashboardWidget {
public function requestWidget(IWidgetRequest $request);
}
-
diff --git a/lib/public/Dashboard/Model/IWidgetConfig.php b/lib/public/Dashboard/Model/IWidgetConfig.php
index 0ae4cad50a9..b06e97100b4 100644
--- a/lib/public/Dashboard/Model/IWidgetConfig.php
+++ b/lib/public/Dashboard/Model/IWidgetConfig.php
@@ -126,4 +126,3 @@ interface IWidgetConfig {
}
-
diff --git a/lib/public/Dashboard/Model/IWidgetRequest.php b/lib/public/Dashboard/Model/IWidgetRequest.php
index 3a3658b30b2..3df1e2d3693 100644
--- a/lib/public/Dashboard/Model/IWidgetRequest.php
+++ b/lib/public/Dashboard/Model/IWidgetRequest.php
@@ -32,7 +32,6 @@ namespace OCP\Dashboard\Model;
use OCP\Dashboard\IDashboardWidget;
-
/**
* Interface IWidgetRequest
*
@@ -134,4 +133,3 @@ interface IWidgetRequest {
public function addResultArray(string $key, array $result): IWidgetRequest;
}
-
diff --git a/lib/public/Dashboard/Model/WidgetSetting.php b/lib/public/Dashboard/Model/WidgetSetting.php
index 616771f7bca..42d2f810bcd 100644
--- a/lib/public/Dashboard/Model/WidgetSetting.php
+++ b/lib/public/Dashboard/Model/WidgetSetting.php
@@ -32,7 +32,6 @@ namespace OCP\Dashboard\Model;
use JsonSerializable;
-
/**
* Interface WidgetSetting
*
@@ -239,4 +238,3 @@ final class WidgetSetting implements JsonSerializable {
}
-
diff --git a/lib/public/Dashboard/Model/WidgetSetup.php b/lib/public/Dashboard/Model/WidgetSetup.php
index 8f0881a3a17..7073bbc922d 100644
--- a/lib/public/Dashboard/Model/WidgetSetup.php
+++ b/lib/public/Dashboard/Model/WidgetSetup.php
@@ -32,7 +32,6 @@ namespace OCP\Dashboard\Model;
use JsonSerializable;
-
/**
* Interface WidgetSetup
*
@@ -268,4 +267,3 @@ final class WidgetSetup implements JsonSerializable {
];
}
}
-
diff --git a/lib/public/Dashboard/Model/WidgetTemplate.php b/lib/public/Dashboard/Model/WidgetTemplate.php
index 485d6298539..c668cfb7e7c 100644
--- a/lib/public/Dashboard/Model/WidgetTemplate.php
+++ b/lib/public/Dashboard/Model/WidgetTemplate.php
@@ -32,7 +32,6 @@ namespace OCP\Dashboard\Model;
use JsonSerializable;
-
/**
* Interface WidgetTemplate
*
@@ -316,4 +315,3 @@ final class WidgetTemplate implements JsonSerializable {
}
-
diff --git a/lib/public/Dashboard/Service/IEventsService.php b/lib/public/Dashboard/Service/IEventsService.php
index 4262e235fd5..6717b804296 100644
--- a/lib/public/Dashboard/Service/IEventsService.php
+++ b/lib/public/Dashboard/Service/IEventsService.php
@@ -27,7 +27,6 @@ declare(strict_types=1);
*
*/
-
namespace OCP\Dashboard\Service;
@@ -91,4 +90,3 @@ interface IEventsService {
}
-
diff --git a/lib/public/Dashboard/Service/IWidgetsService.php b/lib/public/Dashboard/Service/IWidgetsService.php
index b9a4482b4fc..e2869f7f70c 100644
--- a/lib/public/Dashboard/Service/IWidgetsService.php
+++ b/lib/public/Dashboard/Service/IWidgetsService.php
@@ -27,7 +27,6 @@ declare(strict_types=1);
*
*/
-
namespace OCP\Dashboard\Service;
@@ -59,4 +58,3 @@ interface IWidgetsService {
public function getWidgetConfig(string $widgetId, string $userId): IWidgetConfig;
}
-
diff --git a/lib/public/Defaults.php b/lib/public/Defaults.php
index bf790bb7239..82bf5be3843 100644
--- a/lib/public/Defaults.php
+++ b/lib/public/Defaults.php
@@ -32,6 +32,7 @@
// use OCP namespace for all classes that are considered public.
// This means that they should be used by apps instead of the internal ownCloud classes
+
namespace OCP;
/**
diff --git a/lib/public/Encryption/IManager.php b/lib/public/Encryption/IManager.php
index b32ccf03eb6..89e5525701b 100644
--- a/lib/public/Encryption/IManager.php
+++ b/lib/public/Encryption/IManager.php
@@ -24,8 +24,8 @@
namespace OCP\Encryption;
-use OC\Encryption\Exceptions\ModuleDoesNotExistsException;
use OC\Encryption\Exceptions\ModuleAlreadyExistsException;
+use OC\Encryption\Exceptions\ModuleDoesNotExistsException;
/**
* This class provides access to files encryption apps.
diff --git a/lib/public/Federation/ICloudFederationProvider.php b/lib/public/Federation/ICloudFederationProvider.php
index b3574535cb0..ef0c7c9bcc3 100644
--- a/lib/public/Federation/ICloudFederationProvider.php
+++ b/lib/public/Federation/ICloudFederationProvider.php
@@ -25,7 +25,7 @@ use OCP\Federation\Exceptions\ActionNotSupportedException;
use OCP\Federation\Exceptions\AuthenticationFailedException;
use OCP\Federation\Exceptions\BadRequestException;
use OCP\Federation\Exceptions\ProviderCouldNotAddShareException;
-use \OCP\Share\Exceptions\ShareNotFound;
+use OCP\Share\Exceptions\ShareNotFound;
/**
* Interface ICloudFederationProvider
diff --git a/lib/public/Files.php b/lib/public/Files.php
index 1cfd73fb288..e2983a8151d 100644
--- a/lib/public/Files.php
+++ b/lib/public/Files.php
@@ -38,6 +38,7 @@
// use OCP namespace for all classes that are considered public.
// This means that they should be used by apps instead of the internal ownCloud classes
+
namespace OCP;
/**
diff --git a/lib/public/Files/AlreadyExistsException.php b/lib/public/Files/AlreadyExistsException.php
index af801959247..51baf5f5d4e 100644
--- a/lib/public/Files/AlreadyExistsException.php
+++ b/lib/public/Files/AlreadyExistsException.php
@@ -28,6 +28,7 @@
// use OCP namespace for all classes that are considered public.
// This means that they should be used by apps instead of the internal ownCloud classes
+
namespace OCP\Files;
/**
diff --git a/lib/public/Files/Cache/IScanner.php b/lib/public/Files/Cache/IScanner.php
index 8aa4dc04aa9..effd4a45667 100644
--- a/lib/public/Files/Cache/IScanner.php
+++ b/lib/public/Files/Cache/IScanner.php
@@ -81,4 +81,3 @@ interface IScanner {
*/
public function backgroundScan();
}
-
diff --git a/lib/public/Files/EntityTooLargeException.php b/lib/public/Files/EntityTooLargeException.php
index 4a74403106c..0229f8357b0 100644
--- a/lib/public/Files/EntityTooLargeException.php
+++ b/lib/public/Files/EntityTooLargeException.php
@@ -28,6 +28,7 @@
// use OCP namespace for all classes that are considered public.
// This means that they should be used by apps instead of the internal ownCloud classes
+
namespace OCP\Files;
/**
diff --git a/lib/public/Files/File.php b/lib/public/Files/File.php
index 29a83b4df7d..1fe01cfb29a 100644
--- a/lib/public/Files/File.php
+++ b/lib/public/Files/File.php
@@ -30,6 +30,7 @@
// use OCP namespace for all classes that are considered public.
// This means that they should be used by apps instead of the internal ownCloud classes
+
namespace OCP\Files;
/**
diff --git a/lib/public/Files/FileInfo.php b/lib/public/Files/FileInfo.php
index 4d9e76b27f3..f09896bf93a 100644
--- a/lib/public/Files/FileInfo.php
+++ b/lib/public/Files/FileInfo.php
@@ -25,6 +25,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>
*
*/
+
namespace OCP\Files;
/**
diff --git a/lib/public/Files/FileNameTooLongException.php b/lib/public/Files/FileNameTooLongException.php
index 8c46b7f5519..d2302cd66f9 100644
--- a/lib/public/Files/FileNameTooLongException.php
+++ b/lib/public/Files/FileNameTooLongException.php
@@ -28,6 +28,7 @@
// use OCP namespace for all classes that are considered public.
// This means that they should be used by apps instead of the internal ownCloud classes
+
namespace OCP\Files;
/**
diff --git a/lib/public/Files/Folder.php b/lib/public/Files/Folder.php
index 425813c7e21..8e45051a118 100644
--- a/lib/public/Files/Folder.php
+++ b/lib/public/Files/Folder.php
@@ -29,6 +29,7 @@
// use OCP namespace for all classes that are considered public.
// 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/ForbiddenException.php b/lib/public/Files/ForbiddenException.php
index 4432c0d4934..03b0286695b 100644
--- a/lib/public/Files/ForbiddenException.php
+++ b/lib/public/Files/ForbiddenException.php
@@ -23,6 +23,7 @@
// use OCP namespace for all classes that are considered public.
// This means that they should be used by apps instead of the internal ownCloud classes
+
namespace OCP\Files;
/**
diff --git a/lib/public/Files/GenericFileException.php b/lib/public/Files/GenericFileException.php
index b5da4aabebd..dcbcd93bab8 100644
--- a/lib/public/Files/GenericFileException.php
+++ b/lib/public/Files/GenericFileException.php
@@ -20,6 +20,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/
+
namespace OCP\Files;
/**
diff --git a/lib/public/Files/IAppData.php b/lib/public/Files/IAppData.php
index fd0d0649810..875463c98bf 100644
--- a/lib/public/Files/IAppData.php
+++ b/lib/public/Files/IAppData.php
@@ -20,6 +20,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/
+
namespace OCP\Files;
use OCP\Files\SimpleFS\ISimpleRoot;
diff --git a/lib/public/Files/IHomeStorage.php b/lib/public/Files/IHomeStorage.php
index 3144dd8bc94..0d5f351ebad 100644
--- a/lib/public/Files/IHomeStorage.php
+++ b/lib/public/Files/IHomeStorage.php
@@ -28,6 +28,7 @@
// use OCP namespace for all classes that are considered public.
// This means that they should be used by apps instead of the internal ownCloud classes
+
namespace OCP\Files;
/**
diff --git a/lib/public/Files/IMimeTypeDetector.php b/lib/public/Files/IMimeTypeDetector.php
index f66eb4e0b9f..318927f2ffa 100644
--- a/lib/public/Files/IMimeTypeDetector.php
+++ b/lib/public/Files/IMimeTypeDetector.php
@@ -22,6 +22,7 @@
// use OCP namespace for all classes that are considered public.
// This means that they should be used by apps instead of the internal ownCloud classes
+
namespace OCP\Files;
diff --git a/lib/public/Files/IRootFolder.php b/lib/public/Files/IRootFolder.php
index b041bcae301..aa5ca5b8dc9 100644
--- a/lib/public/Files/IRootFolder.php
+++ b/lib/public/Files/IRootFolder.php
@@ -21,7 +21,6 @@
*
*/
-
namespace OCP\Files;
use OC\Hooks\Emitter;
@@ -43,4 +42,3 @@ interface IRootFolder extends Folder, Emitter {
*/
public function getUserFolder($userId);
}
-
diff --git a/lib/public/Files/InvalidCharacterInPathException.php b/lib/public/Files/InvalidCharacterInPathException.php
index 8e8f1a15e3a..40c51cb2544 100644
--- a/lib/public/Files/InvalidCharacterInPathException.php
+++ b/lib/public/Files/InvalidCharacterInPathException.php
@@ -28,6 +28,7 @@
// use OCP namespace for all classes that are considered public.
// This means that they should be used by apps instead of the internal ownCloud classes
+
namespace OCP\Files;
/**
diff --git a/lib/public/Files/InvalidContentException.php b/lib/public/Files/InvalidContentException.php
index bdde7909b58..b8f449b6462 100644
--- a/lib/public/Files/InvalidContentException.php
+++ b/lib/public/Files/InvalidContentException.php
@@ -28,6 +28,7 @@
// use OCP namespace for all classes that are considered public.
// This means that they should be used by apps instead of the internal ownCloud classes
+
namespace OCP\Files;
/**
diff --git a/lib/public/Files/InvalidPathException.php b/lib/public/Files/InvalidPathException.php
index bb8aff50913..2f2caa95a62 100644
--- a/lib/public/Files/InvalidPathException.php
+++ b/lib/public/Files/InvalidPathException.php
@@ -28,6 +28,7 @@
// use OCP namespace for all classes that are considered public.
// This means that they should be used by apps instead of the internal ownCloud classes
+
namespace OCP\Files;
/**
diff --git a/lib/public/Files/LockNotAcquiredException.php b/lib/public/Files/LockNotAcquiredException.php
index 1ef0e676b34..ece55b6c375 100644
--- a/lib/public/Files/LockNotAcquiredException.php
+++ b/lib/public/Files/LockNotAcquiredException.php
@@ -29,6 +29,7 @@
// use OCP namespace for all classes that are considered public.
// This means that they should be used by apps instead of the internal ownCloud classes
+
namespace OCP\Files;
/**
diff --git a/lib/public/Files/Node.php b/lib/public/Files/Node.php
index 016b217afc3..4468b680014 100644
--- a/lib/public/Files/Node.php
+++ b/lib/public/Files/Node.php
@@ -31,6 +31,7 @@
// use OCP namespace for all classes that are considered public.
// This means that they should be used by apps instead of the internal ownCloud classes
+
namespace OCP\Files;
/**
diff --git a/lib/public/Files/NotEnoughSpaceException.php b/lib/public/Files/NotEnoughSpaceException.php
index f4407a95785..f7b4b6c59d4 100644
--- a/lib/public/Files/NotEnoughSpaceException.php
+++ b/lib/public/Files/NotEnoughSpaceException.php
@@ -28,6 +28,7 @@
// use OCP namespace for all classes that are considered public.
// This means that they should be used by apps instead of the internal ownCloud classes
+
namespace OCP\Files;
/**
diff --git a/lib/public/Files/NotFoundException.php b/lib/public/Files/NotFoundException.php
index f0ccb90a52b..d285dafd32d 100644
--- a/lib/public/Files/NotFoundException.php
+++ b/lib/public/Files/NotFoundException.php
@@ -28,6 +28,7 @@
// use OCP namespace for all classes that are considered public.
// This means that they should be used by apps instead of the internal ownCloud classes
+
namespace OCP\Files;
/**
diff --git a/lib/public/Files/NotPermittedException.php b/lib/public/Files/NotPermittedException.php
index 516c323181b..75f34b787ce 100644
--- a/lib/public/Files/NotPermittedException.php
+++ b/lib/public/Files/NotPermittedException.php
@@ -28,6 +28,7 @@
// use OCP namespace for all classes that are considered public.
// This means that they should be used by apps instead of the internal ownCloud classes
+
namespace OCP\Files;
/**
diff --git a/lib/public/Files/ObjectStore/IObjectStore.php b/lib/public/Files/ObjectStore/IObjectStore.php
index 83c4b1065d6..580a92729d9 100644
--- a/lib/public/Files/ObjectStore/IObjectStore.php
+++ b/lib/public/Files/ObjectStore/IObjectStore.php
@@ -21,6 +21,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>
*
*/
+
namespace OCP\Files\ObjectStore;
use OCP\Files\NotFoundException;
diff --git a/lib/public/Files/ReservedWordException.php b/lib/public/Files/ReservedWordException.php
index 67b205de57b..64f88ca5187 100644
--- a/lib/public/Files/ReservedWordException.php
+++ b/lib/public/Files/ReservedWordException.php
@@ -28,6 +28,7 @@
// use OCP namespace for all classes that are considered public.
// This means that they should be used by apps instead of the internal ownCloud classes
+
namespace OCP\Files;
/**
diff --git a/lib/public/Files/SimpleFS/ISimpleFile.php b/lib/public/Files/SimpleFS/ISimpleFile.php
index b00f5c482c6..041e915643e 100644
--- a/lib/public/Files/SimpleFS/ISimpleFile.php
+++ b/lib/public/Files/SimpleFS/ISimpleFile.php
@@ -20,6 +20,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/
+
namespace OCP\Files\SimpleFS;
use OCP\Files\NotFoundException;
diff --git a/lib/public/Files/SimpleFS/ISimpleFolder.php b/lib/public/Files/SimpleFS/ISimpleFolder.php
index 54fbd466e46..ab3db007c54 100644
--- a/lib/public/Files/SimpleFS/ISimpleFolder.php
+++ b/lib/public/Files/SimpleFS/ISimpleFolder.php
@@ -20,6 +20,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/
+
namespace OCP\Files\SimpleFS;
use OCP\Files\NotFoundException;
diff --git a/lib/public/Files/SimpleFS/ISimpleRoot.php b/lib/public/Files/SimpleFS/ISimpleRoot.php
index 054106fbaca..649f0233b02 100644
--- a/lib/public/Files/SimpleFS/ISimpleRoot.php
+++ b/lib/public/Files/SimpleFS/ISimpleRoot.php
@@ -21,6 +21,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/
+
namespace OCP\Files\SimpleFS;
use OCP\Files\NotFoundException;
diff --git a/lib/public/Files/Storage.php b/lib/public/Files/Storage.php
index 1cbba104dee..3fab0877990 100644
--- a/lib/public/Files/Storage.php
+++ b/lib/public/Files/Storage.php
@@ -35,6 +35,7 @@
// use OCP namespace for all classes that are considered public.
// This means that they should be used by apps instead of the internal ownCloud classes
+
namespace OCP\Files;
use OCP\Files\Storage\IStorage;
diff --git a/lib/public/Files/Storage/IDisableEncryptionStorage.php b/lib/public/Files/Storage/IDisableEncryptionStorage.php
index 5ec4a2be843..8b62491d39a 100644
--- a/lib/public/Files/Storage/IDisableEncryptionStorage.php
+++ b/lib/public/Files/Storage/IDisableEncryptionStorage.php
@@ -28,4 +28,4 @@ namespace OCP\Files\Storage;
*/
interface IDisableEncryptionStorage {
-} \ No newline at end of file
+}
diff --git a/lib/public/Files/Storage/IStorage.php b/lib/public/Files/Storage/IStorage.php
index 1fc45c041c3..1d9fa5363dc 100644
--- a/lib/public/Files/Storage/IStorage.php
+++ b/lib/public/Files/Storage/IStorage.php
@@ -28,6 +28,7 @@
// use OCP namespace for all classes that are considered public.
// This means that they should be used by apps instead of the internal ownCloud classes
+
namespace OCP\Files\Storage;
use OCP\Files\Cache\ICache;
diff --git a/lib/public/Files/StorageAuthException.php b/lib/public/Files/StorageAuthException.php
index 4e216b0f01f..526feebb463 100644
--- a/lib/public/Files/StorageAuthException.php
+++ b/lib/public/Files/StorageAuthException.php
@@ -20,6 +20,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>
*
*/
+
namespace OCP\Files;
/**
diff --git a/lib/public/Files/StorageBadConfigException.php b/lib/public/Files/StorageBadConfigException.php
index ea525b91f45..6cd3ee06b24 100644
--- a/lib/public/Files/StorageBadConfigException.php
+++ b/lib/public/Files/StorageBadConfigException.php
@@ -20,6 +20,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>
*
*/
+
namespace OCP\Files;
/**
diff --git a/lib/public/Files/StorageConnectionException.php b/lib/public/Files/StorageConnectionException.php
index 7702460a2f8..be901b60a04 100644
--- a/lib/public/Files/StorageConnectionException.php
+++ b/lib/public/Files/StorageConnectionException.php
@@ -20,6 +20,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>
*
*/
+
namespace OCP\Files;
/**
diff --git a/lib/public/Files/StorageInvalidException.php b/lib/public/Files/StorageInvalidException.php
index c772a714fcd..7f8d489304e 100644
--- a/lib/public/Files/StorageInvalidException.php
+++ b/lib/public/Files/StorageInvalidException.php
@@ -28,6 +28,7 @@
// use OCP namespace for all classes that are considered public.
// This means that they should be used by apps instead of the internal ownCloud classes
+
namespace OCP\Files;
/**
diff --git a/lib/public/Files/StorageNotAvailableException.php b/lib/public/Files/StorageNotAvailableException.php
index 7a060417acb..3cf87331999 100644
--- a/lib/public/Files/StorageNotAvailableException.php
+++ b/lib/public/Files/StorageNotAvailableException.php
@@ -33,6 +33,7 @@
// use OCP namespace for all classes that are considered public.
// 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/StorageTimeoutException.php b/lib/public/Files/StorageTimeoutException.php
index 90b56095074..614b04c33f8 100644
--- a/lib/public/Files/StorageTimeoutException.php
+++ b/lib/public/Files/StorageTimeoutException.php
@@ -20,6 +20,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>
*
*/
+
namespace OCP\Files;
/**
diff --git a/lib/public/Files/UnseekableException.php b/lib/public/Files/UnseekableException.php
index 059a8d55126..5185f0c056f 100644
--- a/lib/public/Files/UnseekableException.php
+++ b/lib/public/Files/UnseekableException.php
@@ -27,6 +27,7 @@
// use OCP namespace for all classes that are considered public.
// This means that they should be used by apps instead of the internal ownCloud classes
+
namespace OCP\Files;
/**
diff --git a/lib/public/Files_FullTextSearch/Model/AFilesDocument.php b/lib/public/Files_FullTextSearch/Model/AFilesDocument.php
index 143788f33ad..d239521da44 100644
--- a/lib/public/Files_FullTextSearch/Model/AFilesDocument.php
+++ b/lib/public/Files_FullTextSearch/Model/AFilesDocument.php
@@ -27,14 +27,12 @@ declare(strict_types=1);
*
*/
-
namespace OCP\Files_FullTextSearch\Model;
use OC\FullTextSearch\Model\IndexDocument;
use OCP\FullTextSearch\Model\IIndexDocument;
-
/**
* Abstract Class AFilesDocument
*
@@ -108,4 +106,3 @@ abstract class AFilesDocument extends IndexDocument {
abstract public function getPath(): string;
}
-
diff --git a/lib/public/FullTextSearch/Exceptions/FullTextSearchAppNotAvailableException.php b/lib/public/FullTextSearch/Exceptions/FullTextSearchAppNotAvailableException.php
index 4363376f0f4..5d533ff467d 100644
--- a/lib/public/FullTextSearch/Exceptions/FullTextSearchAppNotAvailableException.php
+++ b/lib/public/FullTextSearch/Exceptions/FullTextSearchAppNotAvailableException.php
@@ -27,7 +27,6 @@ declare(strict_types=1);
*
*/
-
namespace OCP\FullTextSearch\Exceptions;
/**
@@ -39,4 +38,3 @@ namespace OCP\FullTextSearch\Exceptions;
*/
class FullTextSearchAppNotAvailableException extends \Exception {
}
-
diff --git a/lib/public/FullTextSearch/IFullTextSearchManager.php b/lib/public/FullTextSearch/IFullTextSearchManager.php
index 3c2aa6324d7..1cc58a78909 100644
--- a/lib/public/FullTextSearch/IFullTextSearchManager.php
+++ b/lib/public/FullTextSearch/IFullTextSearchManager.php
@@ -27,7 +27,6 @@ declare(strict_types=1);
*
*/
-
namespace OCP\FullTextSearch;
@@ -37,7 +36,6 @@ use OCP\FullTextSearch\Service\IIndexService;
use OCP\FullTextSearch\Service\IProviderService;
use OCP\FullTextSearch\Service\ISearchService;
-
/**
* Interface IFullTextSearchManager
*
@@ -193,4 +191,3 @@ interface IFullTextSearchManager {
}
-
diff --git a/lib/public/FullTextSearch/IFullTextSearchPlatform.php b/lib/public/FullTextSearch/IFullTextSearchPlatform.php
index 01016269f6b..0ae355b0eef 100644
--- a/lib/public/FullTextSearch/IFullTextSearchPlatform.php
+++ b/lib/public/FullTextSearch/IFullTextSearchPlatform.php
@@ -27,7 +27,6 @@ declare(strict_types=1);
*
*/
-
namespace OCP\FullTextSearch;
@@ -37,7 +36,6 @@ use OCP\FullTextSearch\Model\IIndexDocument;
use OCP\FullTextSearch\Model\IRunner;
use OCP\FullTextSearch\Model\ISearchResult;
-
/**
* Interface IFullTextSearchPlatform
*
@@ -224,4 +222,3 @@ interface IFullTextSearchPlatform {
}
-
diff --git a/lib/public/FullTextSearch/IFullTextSearchProvider.php b/lib/public/FullTextSearch/IFullTextSearchProvider.php
index b72c9e55435..1405a04420d 100644
--- a/lib/public/FullTextSearch/IFullTextSearchProvider.php
+++ b/lib/public/FullTextSearch/IFullTextSearchProvider.php
@@ -27,19 +27,17 @@ declare(strict_types=1);
*
*/
-
namespace OCP\FullTextSearch;
use OCP\FullTextSearch\Model\IIndex;
-use OCP\FullTextSearch\Model\IIndexOptions;
use OCP\FullTextSearch\Model\IIndexDocument;
+use OCP\FullTextSearch\Model\IIndexOptions;
use OCP\FullTextSearch\Model\IRunner;
use OCP\FullTextSearch\Model\ISearchRequest;
use OCP\FullTextSearch\Model\ISearchResult;
use OCP\FullTextSearch\Model\ISearchTemplate;
-
/**
* Interface IFullTextSearchProvider
*
diff --git a/lib/public/FullTextSearch/Model/IDocumentAccess.php b/lib/public/FullTextSearch/Model/IDocumentAccess.php
index 848e2200f60..bbd1e47411b 100644
--- a/lib/public/FullTextSearch/Model/IDocumentAccess.php
+++ b/lib/public/FullTextSearch/Model/IDocumentAccess.php
@@ -27,7 +27,6 @@ declare(strict_types=1);
*
*/
-
namespace OCP\FullTextSearch\Model;
@@ -261,4 +260,3 @@ interface IDocumentAccess {
public function getLinks(): array;
}
-
diff --git a/lib/public/FullTextSearch/Model/IIndex.php b/lib/public/FullTextSearch/Model/IIndex.php
index c1c83db2d4b..fd7a887ca46 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;
@@ -289,4 +288,3 @@ interface IIndex {
}
-
diff --git a/lib/public/FullTextSearch/Model/IIndexDocument.php b/lib/public/FullTextSearch/Model/IIndexDocument.php
index d3184530a7f..3effb2c1afc 100644
--- a/lib/public/FullTextSearch/Model/IIndexDocument.php
+++ b/lib/public/FullTextSearch/Model/IIndexDocument.php
@@ -27,7 +27,6 @@ declare(strict_types=1);
*
*/
-
namespace OCP\FullTextSearch\Model;
@@ -633,4 +632,3 @@ interface IIndexDocument {
public function getInfoAll(): array;
}
-
diff --git a/lib/public/FullTextSearch/Model/IIndexOptions.php b/lib/public/FullTextSearch/Model/IIndexOptions.php
index 8cc5da13d4d..81087101544 100644
--- a/lib/public/FullTextSearch/Model/IIndexOptions.php
+++ b/lib/public/FullTextSearch/Model/IIndexOptions.php
@@ -27,7 +27,6 @@ declare(strict_types=1);
*
*/
-
namespace OCP\FullTextSearch\Model;
@@ -83,4 +82,3 @@ interface IIndexOptions {
public function getOptionBool(string $option, bool $default): bool;
}
-
diff --git a/lib/public/FullTextSearch/Model/IRunner.php b/lib/public/FullTextSearch/Model/IRunner.php
index 0dff82bd5a0..21867be4d59 100644
--- a/lib/public/FullTextSearch/Model/IRunner.php
+++ b/lib/public/FullTextSearch/Model/IRunner.php
@@ -27,7 +27,6 @@ declare(strict_types=1);
*
*/
-
namespace OCP\FullTextSearch\Model;
@@ -139,4 +138,3 @@ interface IRunner {
}
-
diff --git a/lib/public/FullTextSearch/Model/ISearchOption.php b/lib/public/FullTextSearch/Model/ISearchOption.php
index 4ac995ad75f..e8f031e89cb 100644
--- a/lib/public/FullTextSearch/Model/ISearchOption.php
+++ b/lib/public/FullTextSearch/Model/ISearchOption.php
@@ -27,7 +27,6 @@ declare(strict_types=1);
*
*/
-
namespace OCP\FullTextSearch\Model;
diff --git a/lib/public/FullTextSearch/Model/ISearchRequest.php b/lib/public/FullTextSearch/Model/ISearchRequest.php
index 6874cf161b6..a8117789154 100644
--- a/lib/public/FullTextSearch/Model/ISearchRequest.php
+++ b/lib/public/FullTextSearch/Model/ISearchRequest.php
@@ -27,7 +27,6 @@ declare(strict_types=1);
*
*/
-
namespace OCP\FullTextSearch\Model;
@@ -365,4 +364,3 @@ interface ISearchRequest {
public function getSimpleQueries(): array;
}
-
diff --git a/lib/public/FullTextSearch/Model/ISearchRequestSimpleQuery.php b/lib/public/FullTextSearch/Model/ISearchRequestSimpleQuery.php
index 08884e25c2b..e040d5c8d4a 100644
--- a/lib/public/FullTextSearch/Model/ISearchRequestSimpleQuery.php
+++ b/lib/public/FullTextSearch/Model/ISearchRequestSimpleQuery.php
@@ -27,7 +27,6 @@ declare(strict_types=1);
*
*/
-
namespace OCP\FullTextSearch\Model;
@@ -136,4 +135,3 @@ interface ISearchRequestSimpleQuery {
public function addValueBool(bool $value): ISearchRequestSimpleQuery;
}
-
diff --git a/lib/public/FullTextSearch/Model/ISearchResult.php b/lib/public/FullTextSearch/Model/ISearchResult.php
index 2ca61c2f37b..53fbaf9bf74 100644
--- a/lib/public/FullTextSearch/Model/ISearchResult.php
+++ b/lib/public/FullTextSearch/Model/ISearchResult.php
@@ -27,13 +27,11 @@ declare(strict_types=1);
*
*/
-
namespace OCP\FullTextSearch\Model;
use OCP\FullTextSearch\IFullTextSearchProvider;
-
/**
* Interface ISearchResult
*
@@ -195,4 +193,3 @@ interface ISearchResult {
public function setTimedOut(bool $timedOut): ISearchResult;
}
-
diff --git a/lib/public/FullTextSearch/Model/ISearchTemplate.php b/lib/public/FullTextSearch/Model/ISearchTemplate.php
index 9cd6753f2a7..6abeaca581b 100644
--- a/lib/public/FullTextSearch/Model/ISearchTemplate.php
+++ b/lib/public/FullTextSearch/Model/ISearchTemplate.php
@@ -27,13 +27,11 @@ declare(strict_types=1);
*
*/
-
namespace OCP\FullTextSearch\Model;
use OCP\FullTextSearch\IFullTextSearchProvider;
-
/**
* Class ISearchTemplate
*
@@ -176,4 +174,3 @@ interface ISearchTemplate {
public function getNavigationOptions(): array;
}
-
diff --git a/lib/public/FullTextSearch/Service/IIndexService.php b/lib/public/FullTextSearch/Service/IIndexService.php
index b70c7eb965f..abc0fcb6faa 100644
--- a/lib/public/FullTextSearch/Service/IIndexService.php
+++ b/lib/public/FullTextSearch/Service/IIndexService.php
@@ -27,13 +27,11 @@ declare(strict_types=1);
*
*/
-
namespace OCP\FullTextSearch\Service;
use OCP\FullTextSearch\Model\IIndex;
-
/**
* Interface IIndexService
*
@@ -110,4 +108,3 @@ interface IIndexService {
public function updateIndexes(array $indexes);
}
-
diff --git a/lib/public/FullTextSearch/Service/IProviderService.php b/lib/public/FullTextSearch/Service/IProviderService.php
index 64153c13965..26ce5d0c56f 100644
--- a/lib/public/FullTextSearch/Service/IProviderService.php
+++ b/lib/public/FullTextSearch/Service/IProviderService.php
@@ -27,7 +27,6 @@ declare(strict_types=1);
*
*/
-
namespace OCP\FullTextSearch\Service;
@@ -62,4 +61,3 @@ interface IProviderService {
}
-
diff --git a/lib/public/FullTextSearch/Service/ISearchService.php b/lib/public/FullTextSearch/Service/ISearchService.php
index 7da38e44f5c..ac0d252f426 100644
--- a/lib/public/FullTextSearch/Service/ISearchService.php
+++ b/lib/public/FullTextSearch/Service/ISearchService.php
@@ -27,14 +27,12 @@ declare(strict_types=1);
*
*/
-
namespace OCP\FullTextSearch\Service;
use OCP\FullTextSearch\Model\ISearchRequest;
use OCP\FullTextSearch\Model\ISearchResult;
-
/**
* Interface ISearchService
*
@@ -86,4 +84,3 @@ interface ISearchService {
public function search(string $userId, ISearchRequest $searchRequest): array;
}
-
diff --git a/lib/public/GlobalScale/IConfig.php b/lib/public/GlobalScale/IConfig.php
index e67470f2e1a..ef6c22ebd8e 100644
--- a/lib/public/GlobalScale/IConfig.php
+++ b/lib/public/GlobalScale/IConfig.php
@@ -21,7 +21,6 @@
*
*/
-
namespace OCP\GlobalScale;
/**
diff --git a/lib/public/GroupInterface.php b/lib/public/GroupInterface.php
index 35d11755fac..2c67aafdba5 100644
--- a/lib/public/GroupInterface.php
+++ b/lib/public/GroupInterface.php
@@ -32,6 +32,7 @@
// use OCP namespace for all classes that are considered public.
// This means that they should be used by apps instead of the internal ownCloud classes
+
namespace OCP;
/**
diff --git a/lib/public/IAddressBook.php b/lib/public/IAddressBook.php
index 8d86773e771..77fc7b6567b 100644
--- a/lib/public/IAddressBook.php
+++ b/lib/public/IAddressBook.php
@@ -30,6 +30,7 @@
// use OCP namespace for all classes that are considered public.
// This means that they should be used by apps instead of the internal ownCloud classes
+
namespace OCP {
/**
* Interface IAddressBook
diff --git a/lib/public/IAppConfig.php b/lib/public/IAppConfig.php
index 2f268185e62..aae8bce025c 100644
--- a/lib/public/IAppConfig.php
+++ b/lib/public/IAppConfig.php
@@ -23,6 +23,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>
*
*/
+
namespace OCP;
/**
diff --git a/lib/public/ICache.php b/lib/public/ICache.php
index ba61100925b..5aa6dc9fc87 100644
--- a/lib/public/ICache.php
+++ b/lib/public/ICache.php
@@ -31,6 +31,7 @@
// use OCP namespace for all classes that are considered public.
// This means that they should be used by apps instead of the internal ownCloud classes
+
namespace OCP;
/**
diff --git a/lib/public/IConfig.php b/lib/public/IConfig.php
index 878c0acf0c3..95c72bb1fc8 100644
--- a/lib/public/IConfig.php
+++ b/lib/public/IConfig.php
@@ -34,6 +34,7 @@
// use OCP namespace for all classes that are considered public.
// This means that they should be used by apps instead of the internal ownCloud classes
+
namespace OCP;
/**
diff --git a/lib/public/IContainer.php b/lib/public/IContainer.php
index 558c72291c5..b9afa2f1d87 100644
--- a/lib/public/IContainer.php
+++ b/lib/public/IContainer.php
@@ -31,12 +31,12 @@
// use OCP namespace for all classes that are considered public.
// This means that they should be used by apps instead of the internal ownCloud classes
+
namespace OCP;
use Closure;
use OCP\AppFramework\QueryException;
-
/**
* Class IContainer
*
diff --git a/lib/public/IDBConnection.php b/lib/public/IDBConnection.php
index 4c66896a2fe..da89d5bb842 100644
--- a/lib/public/IDBConnection.php
+++ b/lib/public/IDBConnection.php
@@ -34,6 +34,7 @@
// use OCP namespace for all classes that are considered public.
// 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/IL10N.php b/lib/public/IL10N.php
index 53decd78051..f7baa10b5e9 100644
--- a/lib/public/IL10N.php
+++ b/lib/public/IL10N.php
@@ -34,6 +34,7 @@ declare(strict_types=1);
// use OCP namespace for all classes that are considered public.
// This means that they should be used by apps instead of the internal ownCloud classes
+
namespace OCP;
/**
diff --git a/lib/public/IMemcache.php b/lib/public/IMemcache.php
index 8f182553b67..19d89b86832 100644
--- a/lib/public/IMemcache.php
+++ b/lib/public/IMemcache.php
@@ -29,6 +29,7 @@
// use OCP namespace for all classes that are considered public.
// This means that they should be used by apps instead of the internal ownCloud classes
+
namespace OCP;
/**
diff --git a/lib/public/INavigationManager.php b/lib/public/INavigationManager.php
index f840bc8c8a5..68969d0c3f7 100644
--- a/lib/public/INavigationManager.php
+++ b/lib/public/INavigationManager.php
@@ -32,6 +32,7 @@
// use OCP namespace for all classes that are considered public.
// This means that they should be used by apps instead of the internal ownCloud classes
+
namespace OCP;
/**
diff --git a/lib/public/IPreview.php b/lib/public/IPreview.php
index 6989871d29b..08a428ebeb1 100644
--- a/lib/public/IPreview.php
+++ b/lib/public/IPreview.php
@@ -32,11 +32,12 @@
// use OCP namespace for all classes that are considered public.
// This means that they should be used by apps instead of the internal ownCloud classes
+
namespace OCP;
use OCP\Files\File;
-use OCP\Files\SimpleFS\ISimpleFile;
use OCP\Files\NotFoundException;
+use OCP\Files\SimpleFS\ISimpleFile;
/**
* This class provides functions to render and show thumbnails and previews of files
diff --git a/lib/public/IRequest.php b/lib/public/IRequest.php
index 05948cd480f..f61c1da0885 100644
--- a/lib/public/IRequest.php
+++ b/lib/public/IRequest.php
@@ -36,6 +36,7 @@ declare(strict_types=1);
// use OCP namespace for all classes that are considered public.
// This means that they should be used by apps instead of the internal ownCloud classes
+
namespace OCP;
/**
diff --git a/lib/public/IServerContainer.php b/lib/public/IServerContainer.php
index bcdb6e6c9f5..79d4ed9f71b 100644
--- a/lib/public/IServerContainer.php
+++ b/lib/public/IServerContainer.php
@@ -43,14 +43,14 @@
// use OCP namespace for all classes that are considered public.
// This means that they should be used by apps instead of the internal ownCloud classes
+
namespace OCP;
-use OCP\Log\ILogFactory;
use OCP\Federation\ICloudFederationFactory;
use OCP\Federation\ICloudFederationProviderManager;
+use OCP\Log\ILogFactory;
use OCP\Security\IContentSecurityPolicyManager;
use Symfony\Component\EventDispatcher\EventDispatcherInterface;
-
/**
* Class IServerContainer
* @package OCP
diff --git a/lib/public/ISession.php b/lib/public/ISession.php
index bbf36c86520..3d2f32f7f75 100644
--- a/lib/public/ISession.php
+++ b/lib/public/ISession.php
@@ -33,6 +33,7 @@ declare(strict_types=1);
// use OCP namespace for all classes that are considered public.
// This means that they should be used by apps instead of the internal ownCloud classes
+
namespace OCP;
use OCP\Session\Exceptions\SessionNotAvailableException;
diff --git a/lib/public/ITagManager.php b/lib/public/ITagManager.php
index 60d547e44ad..b0c9f0d7d90 100644
--- a/lib/public/ITagManager.php
+++ b/lib/public/ITagManager.php
@@ -31,6 +31,7 @@
// use OCP namespace for all classes that are considered public.
// This means that they should be used by apps instead of the internal ownCloud classes
+
namespace OCP;
/**
diff --git a/lib/public/ITags.php b/lib/public/ITags.php
index fce47bb5bc7..c39117e924f 100644
--- a/lib/public/ITags.php
+++ b/lib/public/ITags.php
@@ -31,6 +31,7 @@
// use OCP namespace for all classes that are considered public.
// This means that they should be used by apps instead of the internal ownCloud classes
+
namespace OCP;
use OC\Tags;
diff --git a/lib/public/IUserBackend.php b/lib/public/IUserBackend.php
index 502856fc354..41123e8b7ae 100644
--- a/lib/public/IUserBackend.php
+++ b/lib/public/IUserBackend.php
@@ -28,6 +28,7 @@
// use OCP namespace for all classes that are considered public.
// This means that they should be used by apps instead of the internal ownCloud classes
+
namespace OCP;
/**
diff --git a/lib/public/IUserSession.php b/lib/public/IUserSession.php
index b3c470e5be5..48fe135f28e 100644
--- a/lib/public/IUserSession.php
+++ b/lib/public/IUserSession.php
@@ -33,6 +33,7 @@
// use OCP namespace for all classes that are considered public.
// This means that they should be used by apps instead of the internal ownCloud classes
+
namespace OCP;
/**
diff --git a/lib/public/Image.php b/lib/public/Image.php
index d583dffe91d..55060f3da48 100644
--- a/lib/public/Image.php
+++ b/lib/public/Image.php
@@ -30,6 +30,7 @@
// use OCP namespace for all classes that are considered public.
// This means that they should be used by apps instead of the internal ownCloud classes
+
namespace OCP;
/**
diff --git a/lib/public/L10N/IFactory.php b/lib/public/L10N/IFactory.php
index de904d0eec1..04548046f55 100644
--- a/lib/public/L10N/IFactory.php
+++ b/lib/public/L10N/IFactory.php
@@ -19,6 +19,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>
*
*/
+
namespace OCP\L10N;
use OCP\IUser;
diff --git a/lib/public/Migration/IOutput.php b/lib/public/Migration/IOutput.php
index 7c6b12ceaf4..8d3ea7cb669 100644
--- a/lib/public/Migration/IOutput.php
+++ b/lib/public/Migration/IOutput.php
@@ -20,6 +20,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>
*
*/
+
namespace OCP\Migration;
/**
diff --git a/lib/public/Migration/IRepairStep.php b/lib/public/Migration/IRepairStep.php
index 0ba834e2cbf..1a39531bcde 100644
--- a/lib/public/Migration/IRepairStep.php
+++ b/lib/public/Migration/IRepairStep.php
@@ -20,6 +20,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>
*
*/
+
namespace OCP\Migration;
/**
diff --git a/lib/public/OCS/IDiscoveryService.php b/lib/public/OCS/IDiscoveryService.php
index ad1499e75fd..f294cffe94f 100644
--- a/lib/public/OCS/IDiscoveryService.php
+++ b/lib/public/OCS/IDiscoveryService.php
@@ -22,7 +22,6 @@ declare(strict_types=1);
*
*/
-
namespace OCP\OCS;
/**
diff --git a/lib/public/PreConditionNotMetException.php b/lib/public/PreConditionNotMetException.php
index ea6350afb4d..cbf0ec2f9b7 100644
--- a/lib/public/PreConditionNotMetException.php
+++ b/lib/public/PreConditionNotMetException.php
@@ -22,6 +22,7 @@
// use OCP namespace for all classes that are considered public.
// This means that they should be used by apps instead of the internal ownCloud classes
+
namespace OCP;
/**
diff --git a/lib/public/Preview/IProvider.php b/lib/public/Preview/IProvider.php
index 5d62b3ce6d0..6642b7e26c6 100644
--- a/lib/public/Preview/IProvider.php
+++ b/lib/public/Preview/IProvider.php
@@ -20,6 +20,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>
*
*/
+
namespace OCP\Preview;
/**
diff --git a/lib/public/Route/IRoute.php b/lib/public/Route/IRoute.php
index 9b8218085ad..40566413508 100644
--- a/lib/public/Route/IRoute.php
+++ b/lib/public/Route/IRoute.php
@@ -22,6 +22,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>
*
*/
+
namespace OCP\Route;
/**
diff --git a/lib/public/SabrePluginEvent.php b/lib/public/SabrePluginEvent.php
index 8f8d155ec10..165cccc22d2 100644
--- a/lib/public/SabrePluginEvent.php
+++ b/lib/public/SabrePluginEvent.php
@@ -25,8 +25,8 @@ namespace OCP;
use OCP\AppFramework\Http;
-use Sabre\DAV\Server;
use OCP\EventDispatcher\Event;
+use Sabre\DAV\Server;
/**
* @since 8.2.0
diff --git a/lib/public/Share.php b/lib/public/Share.php
index f433a35f17a..10c7324d903 100644
--- a/lib/public/Share.php
+++ b/lib/public/Share.php
@@ -34,6 +34,7 @@
// use OCP namespace for all classes that are considered public.
// This means that they should be used by apps instead of the internal ownCloud classes
+
namespace OCP;
/**
diff --git a/lib/public/Share/Exceptions/GenericShareException.php b/lib/public/Share/Exceptions/GenericShareException.php
index ef5586a362f..7ccac2fb2db 100644
--- a/lib/public/Share/Exceptions/GenericShareException.php
+++ b/lib/public/Share/Exceptions/GenericShareException.php
@@ -21,6 +21,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>
*
*/
+
namespace OCP\Share\Exceptions;
use OC\HintException;
diff --git a/lib/public/Share/Exceptions/IllegalIDChangeException.php b/lib/public/Share/Exceptions/IllegalIDChangeException.php
index 46cbe5fbf9f..fd5ef0dc2cd 100644
--- a/lib/public/Share/Exceptions/IllegalIDChangeException.php
+++ b/lib/public/Share/Exceptions/IllegalIDChangeException.php
@@ -19,6 +19,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>
*
*/
+
namespace OCP\Share\Exceptions;
/**
diff --git a/lib/public/Share/IShareHelper.php b/lib/public/Share/IShareHelper.php
index c957a815e89..db9f2adbacd 100644
--- a/lib/public/Share/IShareHelper.php
+++ b/lib/public/Share/IShareHelper.php
@@ -21,6 +21,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/
+
namespace OCP\Share;
use OCP\Files\Node;
diff --git a/lib/public/Share/IShareProvider.php b/lib/public/Share/IShareProvider.php
index 49ab4bef3e6..891e8bf1bb8 100644
--- a/lib/public/Share/IShareProvider.php
+++ b/lib/public/Share/IShareProvider.php
@@ -25,9 +25,9 @@
namespace OCP\Share;
use OCP\Files\Folder;
+use OCP\Files\Node;
use OCP\Share\Exceptions\GenericShareException;
use OCP\Share\Exceptions\ShareNotFound;
-use OCP\Files\Node;
/**
* Interface IShareProvider
diff --git a/lib/public/Share_Backend.php b/lib/public/Share_Backend.php
index 7ebad8b64d3..4aa55844027 100644
--- a/lib/public/Share_Backend.php
+++ b/lib/public/Share_Backend.php
@@ -25,6 +25,7 @@
// use OCP namespace for all classes that are considered public.
// This means that they should be used by apps instead of the internal ownCloud classes
+
namespace OCP;
/**
diff --git a/lib/public/Share_Backend_Collection.php b/lib/public/Share_Backend_Collection.php
index 0c87a58ce95..d5bb97a1c0c 100644
--- a/lib/public/Share_Backend_Collection.php
+++ b/lib/public/Share_Backend_Collection.php
@@ -23,6 +23,7 @@
// use OCP namespace for all classes that are considered public.
// This means that they should be used by apps instead of the internal ownCloud classes
+
namespace OCP;
/**
diff --git a/lib/public/Share_Backend_File_Dependent.php b/lib/public/Share_Backend_File_Dependent.php
index a7f866dd7d0..3ff8c86a6c7 100644
--- a/lib/public/Share_Backend_File_Dependent.php
+++ b/lib/public/Share_Backend_File_Dependent.php
@@ -23,6 +23,7 @@
// use OCP namespace for all classes that are considered public.
// This means that they should be used by apps instead of the internal ownCloud classes
+
namespace OCP;
/**
diff --git a/lib/public/SystemTag/ISystemTag.php b/lib/public/SystemTag/ISystemTag.php
index da434e8b5a0..8fa959fcc4d 100644
--- a/lib/public/SystemTag/ISystemTag.php
+++ b/lib/public/SystemTag/ISystemTag.php
@@ -67,4 +67,3 @@ interface ISystemTag {
public function isUserAssignable(): bool;
}
-
diff --git a/lib/public/SystemTag/ISystemTagManagerFactory.php b/lib/public/SystemTag/ISystemTagManagerFactory.php
index 25956b41df4..5458cab8340 100644
--- a/lib/public/SystemTag/ISystemTagManagerFactory.php
+++ b/lib/public/SystemTag/ISystemTagManagerFactory.php
@@ -20,6 +20,7 @@ declare(strict_types=1);
* along with this program. If not, see <http://www.gnu.org/licenses/>
*
*/
+
namespace OCP\SystemTag;
use OCP\IServerContainer;
diff --git a/lib/public/User.php b/lib/public/User.php
index a669a3a06fc..04254db08a1 100644
--- a/lib/public/User.php
+++ b/lib/public/User.php
@@ -38,6 +38,7 @@
// use OCP namespace for all classes that are considered public.
// This means that they should be used by apps instead of the internal ownCloud classes
+
namespace OCP;
/**
diff --git a/lib/public/UserInterface.php b/lib/public/UserInterface.php
index b82fc6ba550..d880f2f5df5 100644
--- a/lib/public/UserInterface.php
+++ b/lib/public/UserInterface.php
@@ -30,6 +30,7 @@
// use OCP namespace for all classes that are considered public.
// This means that they should be used by apps instead of the internal ownCloud classes
+
namespace OCP;
/**
diff --git a/lib/public/Util.php b/lib/public/Util.php
index 7e9f6b2efbc..a63e53b0720 100644
--- a/lib/public/Util.php
+++ b/lib/public/Util.php
@@ -50,6 +50,7 @@
// use OCP namespace for all classes that are considered public.
// This means that they should be used by apps instead of the internal ownCloud classes
+
namespace OCP;
/**