aboutsummaryrefslogtreecommitdiffstats
path: root/lib/public
diff options
context:
space:
mode:
Diffstat (limited to 'lib/public')
-rw-r--r--lib/public/Accounts/IAccount.php1
-rw-r--r--lib/public/Accounts/IAccountManager.php1
-rw-r--r--lib/public/Accounts/IAccountProperty.php1
-rw-r--r--lib/public/Accounts/PropertyDoesNotExistException.php1
-rw-r--r--lib/public/Activity/IEventMerger.php1
-rw-r--r--lib/public/App/AppPathNotFoundException.php3
-rw-r--r--lib/public/App/ManagerEvent.php1
-rw-r--r--lib/public/AppFramework/ApiController.php5
-rw-r--r--lib/public/AppFramework/Controller.php4
-rw-r--r--lib/public/AppFramework/Db/DoesNotExistException.php1
-rw-r--r--lib/public/AppFramework/Db/Entity.php26
-rw-r--r--lib/public/AppFramework/Db/IMapperException.php3
-rw-r--r--lib/public/AppFramework/Db/Mapper.php25
-rw-r--r--lib/public/AppFramework/Db/MultipleObjectsReturnedException.php1
-rw-r--r--lib/public/AppFramework/Db/QBMapper.php23
-rw-r--r--lib/public/AppFramework/Http.php1
-rw-r--r--lib/public/AppFramework/Http/DataDisplayResponse.php1
-rw-r--r--lib/public/AppFramework/Http/DataResponse.php2
-rw-r--r--lib/public/AppFramework/Http/DownloadResponse.php3
-rw-r--r--lib/public/AppFramework/Http/EmptyContentSecurityPolicy.php34
-rw-r--r--lib/public/AppFramework/Http/ICallbackResponse.php1
-rw-r--r--lib/public/AppFramework/Http/IOutput.php1
-rw-r--r--lib/public/AppFramework/Http/JSONResponse.php3
-rw-r--r--lib/public/AppFramework/Http/OCSResponse.php3
-rw-r--r--lib/public/AppFramework/Http/RedirectResponse.php3
-rw-r--r--lib/public/AppFramework/Http/RedirectToDefaultAppResponse.php1
-rw-r--r--lib/public/AppFramework/Http/Response.php14
-rw-r--r--lib/public/AppFramework/Http/StandaloneTemplateResponse.php1
-rw-r--r--lib/public/AppFramework/Http/StreamResponse.php1
-rw-r--r--lib/public/AppFramework/Http/Template/IMenuAction.php1
-rw-r--r--lib/public/AppFramework/Http/Template/PublicTemplateResponse.php2
-rw-r--r--lib/public/AppFramework/Http/Template/SimpleMenuAction.php1
-rw-r--r--lib/public/AppFramework/Http/TemplateResponse.php4
-rw-r--r--lib/public/AppFramework/IAppContainer.php2
-rw-r--r--lib/public/AppFramework/Middleware.php2
-rw-r--r--lib/public/AppFramework/OCS/OCSBadRequestException.php1
-rw-r--r--lib/public/AppFramework/OCS/OCSException.php3
-rw-r--r--lib/public/AppFramework/OCSController.php1
-rw-r--r--lib/public/AppFramework/PublicShareController.php1
-rw-r--r--lib/public/AppFramework/QueryException.php3
-rw-r--r--lib/public/AppFramework/Utility/IControllerMethodReflector.php1
-rw-r--r--lib/public/AppFramework/Utility/ITimeFactory.php1
-rw-r--r--lib/public/Authentication/Exceptions/CredentialsUnavailableException.php1
-rw-r--r--lib/public/Authentication/Exceptions/PasswordUnavailableException.php1
-rw-r--r--lib/public/Authentication/IApacheBackend.php1
-rw-r--r--lib/public/Authentication/LoginCredentials/IStore.php1
-rw-r--r--lib/public/Authentication/TwoFactorAuth/ALoginSetupController.php1
-rw-r--r--lib/public/Authentication/TwoFactorAuth/IActivatableAtLogin.php1
-rw-r--r--lib/public/Authentication/TwoFactorAuth/IActivatableByAdmin.php1
-rw-r--r--lib/public/Authentication/TwoFactorAuth/IDeactivatableByAdmin.php1
-rw-r--r--lib/public/Authentication/TwoFactorAuth/ILoginSetupProvider.php1
-rw-r--r--lib/public/Authentication/TwoFactorAuth/IPersonalProviderSettings.php1
-rw-r--r--lib/public/Authentication/TwoFactorAuth/IProvidesIcons.php1
-rw-r--r--lib/public/Authentication/TwoFactorAuth/IProvidesPersonalSettings.php1
-rw-r--r--lib/public/Authentication/TwoFactorAuth/IRegistry.php3
-rw-r--r--lib/public/Authentication/TwoFactorAuth/TwoFactorException.php1
-rw-r--r--lib/public/Broadcast/Events/IBroadcastEvent.php1
-rw-r--r--lib/public/Calendar/BackendTemporarilyUnavailableException.php3
-rw-r--r--lib/public/Capabilities/IPublicCapability.php3
-rw-r--r--lib/public/Collaboration/AutoComplete/AutoCompleteEvent.php1
-rw-r--r--lib/public/Collaboration/Collaborators/SearchResultType.php4
-rw-r--r--lib/public/Collaboration/Resources/CollectionException.php1
-rw-r--r--lib/public/Collaboration/Resources/IProvider.php1
-rw-r--r--lib/public/Collaboration/Resources/ResourceException.php1
-rw-r--r--lib/public/Comments/CommentsEntityEvent.php1
-rw-r--r--lib/public/Comments/CommentsEvent.php1
-rw-r--r--lib/public/Comments/IComment.php1
-rw-r--r--lib/public/Comments/ICommentsManager.php1
-rw-r--r--lib/public/Comments/IllegalIDChangeException.php3
-rw-r--r--lib/public/Comments/MessageTooLongException.php3
-rw-r--r--lib/public/Comments/NotFoundException.php3
-rw-r--r--lib/public/Console/ConsoleEvent.php1
-rw-r--r--lib/public/Contacts/ContactsMenu/IContactsStore.php1
-rw-r--r--lib/public/Contacts/Events/ContactInteractedWithEvent.php1
-rw-r--r--lib/public/Dashboard/IDashboardManager.php1
-rw-r--r--lib/public/Dashboard/IDashboardWidget.php1
-rw-r--r--lib/public/Dashboard/Model/IWidgetConfig.php2
-rw-r--r--lib/public/Dashboard/Model/IWidgetRequest.php1
-rw-r--r--lib/public/Dashboard/Model/WidgetSetting.php4
-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.php1
-rw-r--r--lib/public/DirectEditing/ACreateEmpty.php1
-rw-r--r--lib/public/DirectEditing/ACreateFromTemplate.php1
-rw-r--r--lib/public/DirectEditing/IManager.php1
-rw-r--r--lib/public/DirectEditing/IToken.php1
-rw-r--r--lib/public/DirectEditing/RegisterDirectEditorEvent.php1
-rw-r--r--lib/public/Encryption/Exceptions/GenericEncryptionException.php1
-rw-r--r--lib/public/Encryption/IEncryptionModule.php1
-rw-r--r--lib/public/Encryption/IFile.php1
-rw-r--r--lib/public/Encryption/IManager.php1
-rw-r--r--lib/public/EventDispatcher/ABroadcastedEvent.php1
-rw-r--r--lib/public/EventDispatcher/Event.php1
-rw-r--r--lib/public/EventDispatcher/IEventDispatcher.php1
-rw-r--r--lib/public/EventDispatcher/IEventListener.php1
-rw-r--r--lib/public/Federation/Exceptions/ActionNotSupportedException.php1
-rw-r--r--lib/public/Federation/Exceptions/AuthenticationFailedException.php1
-rw-r--r--lib/public/Federation/Exceptions/BadRequestException.php2
-rw-r--r--lib/public/Federation/Exceptions/ProviderAlreadyExistsException.php1
-rw-r--r--lib/public/Federation/Exceptions/ProviderCouldNotAddShareException.php2
-rw-r--r--lib/public/Federation/Exceptions/ProviderDoesNotExistsException.php1
-rw-r--r--lib/public/Federation/ICloudFederationProvider.php1
-rw-r--r--lib/public/Federation/ICloudFederationProviderManager.php2
-rw-r--r--lib/public/Federation/ICloudFederationShare.php1
-rw-r--r--lib/public/Files/AlreadyExistsException.php3
-rw-r--r--lib/public/Files/EntityTooLargeException.php3
-rw-r--r--lib/public/Files/Events/BeforeFileScannedEvent.php1
-rw-r--r--lib/public/Files/Events/BeforeFolderScannedEvent.php1
-rw-r--r--lib/public/Files/Events/FileCacheUpdated.php1
-rw-r--r--lib/public/Files/Events/FileScannedEvent.php1
-rw-r--r--lib/public/Files/Events/FolderScannedEvent.php1
-rw-r--r--lib/public/Files/Events/NodeAddedToCache.php1
-rw-r--r--lib/public/Files/Events/NodeRemovedFromCache.php1
-rw-r--r--lib/public/Files/GenericFileException.php1
-rw-r--r--lib/public/Files/IAppData.php3
-rw-r--r--lib/public/Files/IHomeStorage.php1
-rw-r--r--lib/public/Files/InvalidCharacterInPathException.php1
-rw-r--r--lib/public/Files/InvalidContentException.php3
-rw-r--r--lib/public/Files/InvalidPathException.php3
-rw-r--r--lib/public/Files/NotEnoughSpaceException.php3
-rw-r--r--lib/public/Files/NotFoundException.php3
-rw-r--r--lib/public/Files/NotPermittedException.php3
-rw-r--r--lib/public/Files/ReservedWordException.php1
-rw-r--r--lib/public/Files/Search/ISearchOperator.php1
-rw-r--r--lib/public/Files/Storage/IDisableEncryptionStorage.php1
-rw-r--r--lib/public/Files/StorageBadConfigException.php1
-rw-r--r--lib/public/Files/StorageNotAvailableException.php1
-rw-r--r--lib/public/Files/UnseekableException.php3
-rw-r--r--lib/public/Files_FullTextSearch/Model/AFilesDocument.php1
-rw-r--r--lib/public/FullTextSearch/IFullTextSearchManager.php2
-rw-r--r--lib/public/FullTextSearch/IFullTextSearchPlatform.php2
-rw-r--r--lib/public/FullTextSearch/IFullTextSearchProvider.php1
-rw-r--r--lib/public/FullTextSearch/Model/IDocumentAccess.php1
-rw-r--r--lib/public/FullTextSearch/Model/IIndex.php4
-rw-r--r--lib/public/FullTextSearch/Model/IIndexDocument.php101
-rw-r--r--lib/public/FullTextSearch/Model/IIndexOptions.php1
-rw-r--r--lib/public/FullTextSearch/Model/IRunner.php4
-rw-r--r--lib/public/FullTextSearch/Model/ISearchOption.php1
-rw-r--r--lib/public/FullTextSearch/Model/ISearchRequest.php1
-rw-r--r--lib/public/FullTextSearch/Model/ISearchRequestSimpleQuery.php3
-rw-r--r--lib/public/FullTextSearch/Model/ISearchResult.php1
-rw-r--r--lib/public/FullTextSearch/Model/ISearchTemplate.php1
-rw-r--r--lib/public/FullTextSearch/Service/IIndexService.php1
-rw-r--r--lib/public/FullTextSearch/Service/IProviderService.php2
-rw-r--r--lib/public/FullTextSearch/Service/ISearchService.php1
-rw-r--r--lib/public/GlobalScale/IConfig.php1
-rw-r--r--lib/public/Group/Backend/IGetDisplayNameBackend.php1
-rw-r--r--lib/public/Group/Backend/ISetDisplayNameBackend.php1
-rw-r--r--lib/public/Group/Events/BeforeGroupCreatedEvent.php1
-rw-r--r--lib/public/Group/Events/BeforeGroupDeletedEvent.php1
-rw-r--r--lib/public/Group/Events/BeforeUserAddedEvent.php1
-rw-r--r--lib/public/Group/Events/BeforeUserRemovedEvent.php1
-rw-r--r--lib/public/Group/Events/GroupCreatedEvent.php1
-rw-r--r--lib/public/Group/Events/GroupDeletedEvent.php1
-rw-r--r--lib/public/Group/Events/UserAddedEvent.php1
-rw-r--r--lib/public/Group/Events/UserRemovedEvent.php1
-rw-r--r--lib/public/GroupInterface.php1
-rw-r--r--lib/public/IAvatarManager.php1
-rw-r--r--lib/public/ICacheFactory.php2
-rw-r--r--lib/public/IDBConnection.php1
-rw-r--r--lib/public/ISearch.php1
-rw-r--r--lib/public/ITags.php1
-rw-r--r--lib/public/IUserBackend.php1
-rw-r--r--lib/public/IUserManager.php12
-rw-r--r--lib/public/LDAP/ILDAPProvider.php1
-rw-r--r--lib/public/Lock/ManuallyLockedException.php1
-rw-r--r--lib/public/Log/IDataLogger.php1
-rw-r--r--lib/public/Log/RotationTrait.php1
-rw-r--r--lib/public/Mail/Events/BeforeMessageSent.php1
-rw-r--r--lib/public/Mail/IAttachment.php1
-rw-r--r--lib/public/Migration/IOutput.php1
-rw-r--r--lib/public/Migration/IRepairStep.php1
-rw-r--r--lib/public/Notification/AlreadyProcessedException.php1
-rw-r--r--lib/public/OCS/IDiscoveryService.php1
-rw-r--r--lib/public/PreConditionNotMetException.php3
-rw-r--r--lib/public/Route/IRouter.php1
-rw-r--r--lib/public/Security/Events/GenerateSecurePasswordEvent.php1
-rw-r--r--lib/public/Security/Events/ValidatePasswordPolicyEvent.php1
-rw-r--r--lib/public/Security/ICredentialsManager.php1
-rw-r--r--lib/public/Security/ISecureRandom.php1
-rw-r--r--lib/public/Session/Exceptions/SessionNotAvailableException.php1
-rw-r--r--lib/public/Settings/ISubAdminSettings.php1
-rw-r--r--lib/public/Share.php1
-rw-r--r--lib/public/Share/Exceptions/GenericShareException.php1
-rw-r--r--lib/public/Share/Exceptions/IllegalIDChangeException.php3
-rw-r--r--lib/public/Share/Exceptions/ShareNotFound.php1
-rw-r--r--lib/public/Share/IManager.php1
-rw-r--r--lib/public/Share_Backend.php1
-rw-r--r--lib/public/Share_Backend_File_Dependent.php1
-rw-r--r--lib/public/Support/CrashReport/ICollectBreadcrumbs.php1
-rw-r--r--lib/public/Support/CrashReport/IMessageReporter.php1
-rw-r--r--lib/public/SystemTag/ISystemTag.php1
-rw-r--r--lib/public/SystemTag/ISystemTagObjectMapper.php1
-rw-r--r--lib/public/SystemTag/ManagerEvent.php1
-rw-r--r--lib/public/SystemTag/MapperEvent.php1
-rw-r--r--lib/public/SystemTag/SystemTagsEntityEvent.php1
-rw-r--r--lib/public/SystemTag/TagAlreadyExistsException.php3
-rw-r--r--lib/public/User/Events/BeforePasswordUpdatedEvent.php1
-rw-r--r--lib/public/User/Events/BeforeUserCreatedEvent.php1
-rw-r--r--lib/public/User/Events/BeforeUserDeletedEvent.php1
-rw-r--r--lib/public/User/Events/BeforeUserLoggedInEvent.php1
-rw-r--r--lib/public/User/Events/BeforeUserLoggedInWithCookieEvent.php1
-rw-r--r--lib/public/User/Events/BeforeUserLoggedOutEvent.php1
-rw-r--r--lib/public/User/Events/CreateUserEvent.php1
-rw-r--r--lib/public/User/Events/PasswordUpdatedEvent.php1
-rw-r--r--lib/public/User/Events/UserChangedEvent.php2
-rw-r--r--lib/public/User/Events/UserCreatedEvent.php1
-rw-r--r--lib/public/User/Events/UserDeletedEvent.php1
-rw-r--r--lib/public/User/Events/UserLoggedInWithCookieEvent.php1
-rw-r--r--lib/public/User/Events/UserLoggedOutEvent.php1
-rw-r--r--lib/public/UserInterface.php1
-rw-r--r--lib/public/Util.php5
-rw-r--r--lib/public/WorkflowEngine/GenericEntityEvent.php4
-rw-r--r--lib/public/WorkflowEngine/IComplexOperation.php1
-rw-r--r--lib/public/WorkflowEngine/IEntity.php1
-rw-r--r--lib/public/WorkflowEngine/IEntityCheck.php1
-rw-r--r--lib/public/WorkflowEngine/IFileCheck.php1
-rw-r--r--lib/public/WorkflowEngine/IManager.php1
219 files changed, 165 insertions, 381 deletions
diff --git a/lib/public/Accounts/IAccount.php b/lib/public/Accounts/IAccount.php
index 6bf4988a9f1..a389ce5fddb 100644
--- a/lib/public/Accounts/IAccount.php
+++ b/lib/public/Accounts/IAccount.php
@@ -88,5 +88,4 @@ interface IAccount extends \JsonSerializable {
* @return IUser
*/
public function getUser(): IUser;
-
}
diff --git a/lib/public/Accounts/IAccountManager.php b/lib/public/Accounts/IAccountManager.php
index eaa394de8b8..9d02e0b43c0 100644
--- a/lib/public/Accounts/IAccountManager.php
+++ b/lib/public/Accounts/IAccountManager.php
@@ -65,5 +65,4 @@ interface IAccountManager {
* @return IAccount
*/
public function getAccount(IUser $user): IAccount;
-
}
diff --git a/lib/public/Accounts/IAccountProperty.php b/lib/public/Accounts/IAccountProperty.php
index c7213e278a6..0cab4d0203e 100644
--- a/lib/public/Accounts/IAccountProperty.php
+++ b/lib/public/Accounts/IAccountProperty.php
@@ -99,5 +99,4 @@ interface IAccountProperty extends \JsonSerializable {
* @return string
*/
public function getVerified(): string;
-
}
diff --git a/lib/public/Accounts/PropertyDoesNotExistException.php b/lib/public/Accounts/PropertyDoesNotExistException.php
index e9e57dd8779..dccdcea1887 100644
--- a/lib/public/Accounts/PropertyDoesNotExistException.php
+++ b/lib/public/Accounts/PropertyDoesNotExistException.php
@@ -40,5 +40,4 @@ class PropertyDoesNotExistException extends \Exception {
public function __construct($property) {
parent::__construct('Property ' . $property . ' does not exist.');
}
-
}
diff --git a/lib/public/Activity/IEventMerger.php b/lib/public/Activity/IEventMerger.php
index 90d9cecb756..b0e673dc848 100644
--- a/lib/public/Activity/IEventMerger.php
+++ b/lib/public/Activity/IEventMerger.php
@@ -61,5 +61,4 @@ interface IEventMerger {
* @since 11.0
*/
public function mergeEvents($mergeParameter, IEvent $event, IEvent $previousEvent = null);
-
}
diff --git a/lib/public/App/AppPathNotFoundException.php b/lib/public/App/AppPathNotFoundException.php
index 453a39b0af7..fca9d2bbbbf 100644
--- a/lib/public/App/AppPathNotFoundException.php
+++ b/lib/public/App/AppPathNotFoundException.php
@@ -30,4 +30,5 @@ namespace OCP\App;
* @package OCP\App
* @since 11.0.0
*/
-class AppPathNotFoundException extends \Exception {}
+class AppPathNotFoundException extends \Exception {
+}
diff --git a/lib/public/App/ManagerEvent.php b/lib/public/App/ManagerEvent.php
index 31aac535b27..e98ada424c6 100644
--- a/lib/public/App/ManagerEvent.php
+++ b/lib/public/App/ManagerEvent.php
@@ -32,7 +32,6 @@ use OCP\EventDispatcher\Event;
* @since 9.0.0
*/
class ManagerEvent extends Event {
-
const EVENT_APP_ENABLE = 'OCP\App\IAppManager::enableApp';
const EVENT_APP_ENABLE_FOR_GROUPS = 'OCP\App\IAppManager::enableAppForGroups';
const EVENT_APP_DISABLE = 'OCP\App\IAppManager::disableApp';
diff --git a/lib/public/AppFramework/ApiController.php b/lib/public/AppFramework/ApiController.php
index feae56fc2c0..e9fccd1990e 100644
--- a/lib/public/AppFramework/ApiController.php
+++ b/lib/public/AppFramework/ApiController.php
@@ -38,7 +38,6 @@ use OCP\IRequest;
* @since 7.0.0
*/
abstract class ApiController extends Controller {
-
private $corsMethods;
private $corsAllowedHeaders;
private $corsMaxAge;
@@ -79,7 +78,7 @@ abstract class ApiController extends Controller {
* @since 7.0.0
*/
public function preflightedCors() {
- if(isset($this->request->server['HTTP_ORIGIN'])) {
+ if (isset($this->request->server['HTTP_ORIGIN'])) {
$origin = $this->request->server['HTTP_ORIGIN'];
} else {
$origin = '*';
@@ -93,6 +92,4 @@ abstract class ApiController extends Controller {
$response->addHeader('Access-Control-Allow-Credentials', 'false');
return $response;
}
-
-
}
diff --git a/lib/public/AppFramework/Controller.php b/lib/public/AppFramework/Controller.php
index 487b6a854fe..5f6eca8b2f0 100644
--- a/lib/public/AppFramework/Controller.php
+++ b/lib/public/AppFramework/Controller.php
@@ -148,12 +148,10 @@ abstract class Controller {
* @since 7.0.0
*/
public function buildResponse($response, $format='json') {
- if(array_key_exists($format, $this->responders)) {
-
+ if (array_key_exists($format, $this->responders)) {
$responder = $this->responders[$format];
return $responder($response);
-
}
throw new \DomainException('No responder registered for format '.
$format . '!');
diff --git a/lib/public/AppFramework/Db/DoesNotExistException.php b/lib/public/AppFramework/Db/DoesNotExistException.php
index 36cab24db76..3605bdce274 100644
--- a/lib/public/AppFramework/Db/DoesNotExistException.php
+++ b/lib/public/AppFramework/Db/DoesNotExistException.php
@@ -42,5 +42,4 @@ class DoesNotExistException extends \Exception implements IMapperException {
public function __construct($msg) {
parent::__construct($msg);
}
-
}
diff --git a/lib/public/AppFramework/Db/Entity.php b/lib/public/AppFramework/Db/Entity.php
index 6221f96b375..954b8787c4c 100644
--- a/lib/public/AppFramework/Db/Entity.php
+++ b/lib/public/AppFramework/Db/Entity.php
@@ -34,7 +34,6 @@ use function substr;
* @since 7.0.0
*/
abstract class Entity {
-
public $id;
private $_updatedFields = [];
@@ -51,7 +50,7 @@ abstract class Entity {
public static function fromParams(array $params) {
$instance = new static();
- foreach($params as $key => $value) {
+ foreach ($params as $key => $value) {
$method = 'set' . ucfirst($key);
$instance->$method($value);
}
@@ -68,7 +67,7 @@ abstract class Entity {
public static function fromRow(array $row) {
$instance = new static();
- foreach($row as $key => $value){
+ foreach ($row as $key => $value) {
$prop = ucfirst($instance->columnToProperty($key));
$setter = 'set' . $prop;
$instance->$setter($value);
@@ -103,18 +102,17 @@ abstract class Entity {
*/
protected function setter($name, $args) {
// setters should only work for existing attributes
- if(property_exists($this, $name)){
- if($this->$name === $args[0]) {
+ if (property_exists($this, $name)) {
+ if ($this->$name === $args[0]) {
return;
}
$this->markFieldUpdated($name);
// if type definition exists, cast to correct type
- if($args[0] !== null && array_key_exists($name, $this->_fieldTypes)) {
+ if ($args[0] !== null && array_key_exists($name, $this->_fieldTypes)) {
settype($args[0], $this->_fieldTypes[$name]);
}
$this->$name = $args[0];
-
} else {
throw new \BadFunctionCallException($name .
' is not a valid attribute');
@@ -127,7 +125,7 @@ abstract class Entity {
*/
protected function getter($name) {
// getters should only work for existing attributes
- if(property_exists($this, $name)){
+ if (property_exists($this, $name)) {
return $this->$name;
} else {
throw new \BadFunctionCallException($name .
@@ -154,7 +152,6 @@ abstract class Entity {
throw new \BadFunctionCallException($methodName .
' does not exist');
}
-
}
/**
@@ -190,8 +187,8 @@ abstract class Entity {
$parts = explode('_', $columnName);
$property = null;
- foreach($parts as $part){
- if($property === null){
+ foreach ($parts as $part) {
+ if ($property === null) {
$property = $part;
} else {
$property .= ucfirst($part);
@@ -212,8 +209,8 @@ abstract class Entity {
$parts = preg_split('/(?=[A-Z])/', $property);
$column = null;
- foreach($parts as $part){
- if($column === null){
+ foreach ($parts as $part) {
+ if ($column === null) {
$column = $part;
} else {
$column .= '_' . lcfirst($part);
@@ -254,7 +251,7 @@ abstract class Entity {
*/
public function slugify($attributeName) {
// toSlug should only work for existing attributes
- if(property_exists($this, $attributeName)){
+ if (property_exists($this, $attributeName)) {
$value = $this->$attributeName;
// replace everything except alphanumeric with a single '-'
$value = preg_replace('/[^A-Za-z0-9]+/', '-', $value);
@@ -266,5 +263,4 @@ abstract class Entity {
' is not a valid attribute');
}
}
-
}
diff --git a/lib/public/AppFramework/Db/IMapperException.php b/lib/public/AppFramework/Db/IMapperException.php
index f8a1d96aa93..04f7e380f55 100644
--- a/lib/public/AppFramework/Db/IMapperException.php
+++ b/lib/public/AppFramework/Db/IMapperException.php
@@ -29,4 +29,5 @@ namespace OCP\AppFramework\Db;
/**
* @since 16.0.0
*/
-interface IMapperException {}
+interface IMapperException {
+}
diff --git a/lib/public/AppFramework/Db/Mapper.php b/lib/public/AppFramework/Db/Mapper.php
index 289ac1d684d..b1deaee5412 100644
--- a/lib/public/AppFramework/Db/Mapper.php
+++ b/lib/public/AppFramework/Db/Mapper.php
@@ -36,7 +36,6 @@ use OCP\IDBConnection;
* @deprecated 14.0.0 Move over to QBMapper
*/
abstract class Mapper {
-
protected $tableName;
protected $entityClass;
protected $db;
@@ -55,7 +54,7 @@ abstract class Mapper {
// if not given set the entity name to the class without the mapper part
// cache it here for later use since reflection is slow
- if($entityClass === null) {
+ if ($entityClass === null) {
$this->entityClass = str_replace('Mapper', '', get_class($this));
} else {
$this->entityClass = $entityClass;
@@ -105,7 +104,7 @@ abstract class Mapper {
// build the fields
$i = 0;
- foreach($properties as $property => $updated) {
+ foreach ($properties as $property => $updated) {
$column = $entity->propertyToColumn($property);
$getter = 'get' . ucfirst($property);
@@ -113,14 +112,13 @@ abstract class Mapper {
$values .= '?';
// only append colon if there are more entries
- if($i < count($properties)-1){
+ if ($i < count($properties)-1) {
$columns .= ',';
$values .= ',';
}
$params[] = $entity->$getter();
$i++;
-
}
$sql = 'INSERT INTO `' . $this->tableName . '`(' .
@@ -148,13 +146,13 @@ abstract class Mapper {
public function update(Entity $entity) {
// if entity wasn't changed it makes no sense to run a db query
$properties = $entity->getUpdatedFields();
- if(count($properties) === 0) {
+ if (count($properties) === 0) {
return $entity;
}
// entity needs an id
$id = $entity->getId();
- if($id === null){
+ if ($id === null) {
throw new \InvalidArgumentException(
'Entity which should be updated has no id');
}
@@ -169,15 +167,14 @@ abstract class Mapper {
// build the fields
$i = 0;
- foreach($properties as $property => $updated) {
-
+ foreach ($properties as $property => $updated) {
$column = $entity->propertyToColumn($property);
$getter = 'get' . ucfirst($property);
$columns .= '`' . $column . '` = ?';
// only append colon if there are more entries
- if($i < count($properties)-1){
+ if ($i < count($properties)-1) {
$columns .= ',';
}
@@ -275,7 +272,7 @@ abstract class Mapper {
$stmt = $this->execute($sql, $params, $limit, $offset);
$row = $stmt->fetch();
- if($row === false || $row === null){
+ if ($row === false || $row === null) {
$stmt->closeCursor();
$msg = $this->buildDebugMessage(
'Did expect one result but found none when executing', $sql, $params, $limit, $offset
@@ -285,7 +282,7 @@ abstract class Mapper {
$row2 = $stmt->fetch();
$stmt->closeCursor();
//MDB2 returns null, PDO and doctrine false when no row is available
- if(! ($row2 === false || $row2 === null)) {
+ if (! ($row2 === false || $row2 === null)) {
$msg = $this->buildDebugMessage(
'Did not expect more than one result when executing', $sql, $params, $limit, $offset
);
@@ -344,7 +341,7 @@ abstract class Mapper {
$entities = [];
- while($row = $stmt->fetch()){
+ while ($row = $stmt->fetch()) {
$entities[] = $this->mapRowToEntity($row);
}
@@ -370,6 +367,4 @@ abstract class Mapper {
protected function findEntity($sql, array $params=[], $limit=null, $offset=null) {
return $this->mapRowToEntity($this->findOneQuery($sql, $params, $limit, $offset));
}
-
-
}
diff --git a/lib/public/AppFramework/Db/MultipleObjectsReturnedException.php b/lib/public/AppFramework/Db/MultipleObjectsReturnedException.php
index a3f211194c4..6b1a2ca7918 100644
--- a/lib/public/AppFramework/Db/MultipleObjectsReturnedException.php
+++ b/lib/public/AppFramework/Db/MultipleObjectsReturnedException.php
@@ -42,5 +42,4 @@ class MultipleObjectsReturnedException extends \Exception implements IMapperExce
public function __construct($msg) {
parent::__construct($msg);
}
-
}
diff --git a/lib/public/AppFramework/Db/QBMapper.php b/lib/public/AppFramework/Db/QBMapper.php
index c7b4b877651..9b396965706 100644
--- a/lib/public/AppFramework/Db/QBMapper.php
+++ b/lib/public/AppFramework/Db/QBMapper.php
@@ -64,7 +64,7 @@ abstract class QBMapper {
// if not given set the entity name to the class without the mapper part
// cache it here for later use since reflection is slow
- if($entityClass === null) {
+ if ($entityClass === null) {
$this->entityClass = str_replace('Mapper', '', \get_class($this));
} else {
$this->entityClass = $entityClass;
@@ -117,7 +117,7 @@ abstract class QBMapper {
$qb->insert($this->tableName);
// build the fields
- foreach($properties as $property => $updated) {
+ foreach ($properties as $property => $updated) {
$column = $entity->propertyToColumn($property);
$getter = 'get' . ucfirst($property);
$value = $entity->$getter();
@@ -128,7 +128,7 @@ abstract class QBMapper {
$qb->execute();
- if($entity->id === null) {
+ if ($entity->id === null) {
// When autoincrement is used id is always an int
$entity->setId((int)$qb->getLastInsertId());
}
@@ -166,13 +166,13 @@ abstract class QBMapper {
public function update(Entity $entity): Entity {
// if entity wasn't changed it makes no sense to run a db query
$properties = $entity->getUpdatedFields();
- if(\count($properties) === 0) {
+ if (\count($properties) === 0) {
return $entity;
}
// entity needs an id
$id = $entity->getId();
- if($id === null){
+ if ($id === null) {
throw new \InvalidArgumentException(
'Entity which should be updated has no id');
}
@@ -186,7 +186,7 @@ abstract class QBMapper {
$qb->update($this->tableName);
// build the fields
- foreach($properties as $property => $updated) {
+ foreach ($properties as $property => $updated) {
$column = $entity->propertyToColumn($property);
$getter = 'get' . ucfirst($property);
$value = $entity->$getter();
@@ -217,11 +217,11 @@ abstract class QBMapper {
protected function getParameterTypeForProperty(Entity $entity, string $property): int {
$types = $entity->getFieldTypes();
- if(!isset($types[ $property ])) {
+ if (!isset($types[ $property ])) {
return IQueryBuilder::PARAM_STR;
}
- switch($types[ $property ]) {
+ switch ($types[ $property ]) {
case 'int':
case 'integer':
return IQueryBuilder::PARAM_INT;
@@ -251,7 +251,7 @@ abstract class QBMapper {
$cursor = $query->execute();
$row = $cursor->fetch();
- if($row === false) {
+ if ($row === false) {
$cursor->closeCursor();
$msg = $this->buildDebugMessage(
'Did expect one result but found none when executing', $query
@@ -261,7 +261,7 @@ abstract class QBMapper {
$row2 = $cursor->fetch();
$cursor->closeCursor();
- if($row2 !== false) {
+ if ($row2 !== false) {
$msg = $this->buildDebugMessage(
'Did not expect more than one result when executing', $query
);
@@ -308,7 +308,7 @@ abstract class QBMapper {
$entities = [];
- while($row = $cursor->fetch()){
+ while ($row = $cursor->fetch()) {
$entities[] = $this->mapRowToEntity($row);
}
@@ -331,5 +331,4 @@ abstract class QBMapper {
protected function findEntity(IQueryBuilder $query): Entity {
return $this->mapRowToEntity($this->findOneQuery($query));
}
-
}
diff --git a/lib/public/AppFramework/Http.php b/lib/public/AppFramework/Http.php
index df1d8a5b966..e0b910325a0 100644
--- a/lib/public/AppFramework/Http.php
+++ b/lib/public/AppFramework/Http.php
@@ -34,7 +34,6 @@ namespace OCP\AppFramework;
* @since 6.0.0
*/
class Http {
-
const STATUS_CONTINUE = 100;
const STATUS_SWITCHING_PROTOCOLS = 101;
const STATUS_PROCESSING = 102;
diff --git a/lib/public/AppFramework/Http/DataDisplayResponse.php b/lib/public/AppFramework/Http/DataDisplayResponse.php
index 8e14b231522..a000f919960 100644
--- a/lib/public/AppFramework/Http/DataDisplayResponse.php
+++ b/lib/public/AppFramework/Http/DataDisplayResponse.php
@@ -88,5 +88,4 @@ class DataDisplayResponse extends Response {
public function getData() {
return $this->data;
}
-
}
diff --git a/lib/public/AppFramework/Http/DataResponse.php b/lib/public/AppFramework/Http/DataResponse.php
index a978df49010..483b46ba5ab 100644
--- a/lib/public/AppFramework/Http/DataResponse.php
+++ b/lib/public/AppFramework/Http/DataResponse.php
@@ -83,6 +83,4 @@ class DataResponse extends Response {
public function getData() {
return $this->data;
}
-
-
}
diff --git a/lib/public/AppFramework/Http/DownloadResponse.php b/lib/public/AppFramework/Http/DownloadResponse.php
index c28550a0bbd..78381f0f08f 100644
--- a/lib/public/AppFramework/Http/DownloadResponse.php
+++ b/lib/public/AppFramework/Http/DownloadResponse.php
@@ -30,7 +30,6 @@ namespace OCP\AppFramework\Http;
* @since 7.0.0
*/
class DownloadResponse extends Response {
-
private $filename;
private $contentType;
@@ -49,6 +48,4 @@ class DownloadResponse extends Response {
$this->addHeader('Content-Disposition', 'attachment; filename="' . $filename . '"');
$this->addHeader('Content-Type', $contentType);
}
-
-
}
diff --git a/lib/public/AppFramework/Http/EmptyContentSecurityPolicy.php b/lib/public/AppFramework/Http/EmptyContentSecurityPolicy.php
index 01336088895..fc32a024592 100644
--- a/lib/public/AppFramework/Http/EmptyContentSecurityPolicy.php
+++ b/lib/public/AppFramework/Http/EmptyContentSecurityPolicy.php
@@ -436,77 +436,77 @@ class EmptyContentSecurityPolicy {
$policy .= "base-uri 'none';";
$policy .= "manifest-src 'self';";
- if(!empty($this->allowedScriptDomains) || $this->inlineScriptAllowed || $this->evalScriptAllowed) {
+ if (!empty($this->allowedScriptDomains) || $this->inlineScriptAllowed || $this->evalScriptAllowed) {
$policy .= 'script-src ';
- if(is_string($this->useJsNonce)) {
+ if (is_string($this->useJsNonce)) {
$policy .= '\'nonce-'.base64_encode($this->useJsNonce).'\'';
$allowedScriptDomains = array_flip($this->allowedScriptDomains);
unset($allowedScriptDomains['\'self\'']);
$this->allowedScriptDomains = array_flip($allowedScriptDomains);
- if(count($allowedScriptDomains) !== 0) {
+ if (count($allowedScriptDomains) !== 0) {
$policy .= ' ';
}
}
- if(is_array($this->allowedScriptDomains)) {
+ if (is_array($this->allowedScriptDomains)) {
$policy .= implode(' ', $this->allowedScriptDomains);
}
- if($this->inlineScriptAllowed) {
+ if ($this->inlineScriptAllowed) {
$policy .= ' \'unsafe-inline\'';
}
- if($this->evalScriptAllowed) {
+ if ($this->evalScriptAllowed) {
$policy .= ' \'unsafe-eval\'';
}
$policy .= ';';
}
- if(!empty($this->allowedStyleDomains) || $this->inlineStyleAllowed) {
+ if (!empty($this->allowedStyleDomains) || $this->inlineStyleAllowed) {
$policy .= 'style-src ';
- if(is_array($this->allowedStyleDomains)) {
+ if (is_array($this->allowedStyleDomains)) {
$policy .= implode(' ', $this->allowedStyleDomains);
}
- if($this->inlineStyleAllowed) {
+ if ($this->inlineStyleAllowed) {
$policy .= ' \'unsafe-inline\'';
}
$policy .= ';';
}
- if(!empty($this->allowedImageDomains)) {
+ if (!empty($this->allowedImageDomains)) {
$policy .= 'img-src ' . implode(' ', $this->allowedImageDomains);
$policy .= ';';
}
- if(!empty($this->allowedFontDomains)) {
+ if (!empty($this->allowedFontDomains)) {
$policy .= 'font-src ' . implode(' ', $this->allowedFontDomains);
$policy .= ';';
}
- if(!empty($this->allowedConnectDomains)) {
+ if (!empty($this->allowedConnectDomains)) {
$policy .= 'connect-src ' . implode(' ', $this->allowedConnectDomains);
$policy .= ';';
}
- if(!empty($this->allowedMediaDomains)) {
+ if (!empty($this->allowedMediaDomains)) {
$policy .= 'media-src ' . implode(' ', $this->allowedMediaDomains);
$policy .= ';';
}
- if(!empty($this->allowedObjectDomains)) {
+ if (!empty($this->allowedObjectDomains)) {
$policy .= 'object-src ' . implode(' ', $this->allowedObjectDomains);
$policy .= ';';
}
- if(!empty($this->allowedFrameDomains)) {
+ if (!empty($this->allowedFrameDomains)) {
$policy .= 'frame-src ';
$policy .= implode(' ', $this->allowedFrameDomains);
$policy .= ';';
}
- if(!empty($this->allowedChildSrcDomains)) {
+ if (!empty($this->allowedChildSrcDomains)) {
$policy .= 'child-src ' . implode(' ', $this->allowedChildSrcDomains);
$policy .= ';';
}
- if(!empty($this->allowedFrameAncestors)) {
+ if (!empty($this->allowedFrameAncestors)) {
$policy .= 'frame-ancestors ' . implode(' ', $this->allowedFrameAncestors);
$policy .= ';';
}
diff --git a/lib/public/AppFramework/Http/ICallbackResponse.php b/lib/public/AppFramework/Http/ICallbackResponse.php
index ca2f5f424ff..44be69548ca 100644
--- a/lib/public/AppFramework/Http/ICallbackResponse.php
+++ b/lib/public/AppFramework/Http/ICallbackResponse.php
@@ -40,5 +40,4 @@ interface ICallbackResponse {
* @since 8.1.0
*/
public function callback(IOutput $output);
-
}
diff --git a/lib/public/AppFramework/Http/IOutput.php b/lib/public/AppFramework/Http/IOutput.php
index 83d65857c16..888c9f45b23 100644
--- a/lib/public/AppFramework/Http/IOutput.php
+++ b/lib/public/AppFramework/Http/IOutput.php
@@ -75,5 +75,4 @@ interface IOutput {
* @since 8.1.0
*/
public function setCookie($name, $value, $expire, $path, $domain, $secure, $httpOnly);
-
}
diff --git a/lib/public/AppFramework/Http/JSONResponse.php b/lib/public/AppFramework/Http/JSONResponse.php
index 1d7a626d5cd..2827cd964ec 100644
--- a/lib/public/AppFramework/Http/JSONResponse.php
+++ b/lib/public/AppFramework/Http/JSONResponse.php
@@ -71,7 +71,7 @@ class JSONResponse extends Response {
*/
public function render() {
$response = json_encode($this->data, JSON_HEX_TAG);
- if($response === false) {
+ if ($response === false) {
throw new \Exception(sprintf('Could not json_encode due to invalid ' .
'non UTF-8 characters in the array: %s', var_export($this->data, true)));
}
@@ -101,5 +101,4 @@ class JSONResponse extends Response {
public function getData() {
return $this->data;
}
-
}
diff --git a/lib/public/AppFramework/Http/OCSResponse.php b/lib/public/AppFramework/Http/OCSResponse.php
index c80a300ca4f..39c3ad98819 100644
--- a/lib/public/AppFramework/Http/OCSResponse.php
+++ b/lib/public/AppFramework/Http/OCSResponse.php
@@ -37,7 +37,6 @@ namespace OCP\AppFramework\Http;
* @deprecated 9.2.0 To implement an OCS endpoint extend the OCSController
*/
class OCSResponse extends Response {
-
private $data;
private $format;
private $statuscode;
@@ -93,6 +92,4 @@ class OCSResponse extends Response {
return \OC_API::renderResult($this->format, $r->getMeta(), $r->getData());
}
-
-
}
diff --git a/lib/public/AppFramework/Http/RedirectResponse.php b/lib/public/AppFramework/Http/RedirectResponse.php
index dda90440d6d..28344866c03 100644
--- a/lib/public/AppFramework/Http/RedirectResponse.php
+++ b/lib/public/AppFramework/Http/RedirectResponse.php
@@ -33,7 +33,6 @@ use OCP\AppFramework\Http;
* @since 7.0.0
*/
class RedirectResponse extends Response {
-
private $redirectURL;
/**
@@ -57,6 +56,4 @@ class RedirectResponse extends Response {
public function getRedirectURL() {
return $this->redirectURL;
}
-
-
}
diff --git a/lib/public/AppFramework/Http/RedirectToDefaultAppResponse.php b/lib/public/AppFramework/Http/RedirectToDefaultAppResponse.php
index 9072ca8a059..f4b8f54f892 100644
--- a/lib/public/AppFramework/Http/RedirectToDefaultAppResponse.php
+++ b/lib/public/AppFramework/Http/RedirectToDefaultAppResponse.php
@@ -41,5 +41,4 @@ class RedirectToDefaultAppResponse extends RedirectResponse {
public function __construct() {
parent::__construct(\OC_Util::getDefaultPageUrl());
}
-
}
diff --git a/lib/public/AppFramework/Http/Response.php b/lib/public/AppFramework/Http/Response.php
index 0aacc2f3a58..a48580c789d 100644
--- a/lib/public/AppFramework/Http/Response.php
+++ b/lib/public/AppFramework/Http/Response.php
@@ -106,7 +106,7 @@ class Response {
* @since 6.0.0 - return value was added in 7.0.0
*/
public function cacheFor(int $cacheSeconds) {
- if($cacheSeconds > 0) {
+ if ($cacheSeconds > 0) {
$this->addHeader('Cache-Control', 'max-age=' . $cacheSeconds . ', must-revalidate');
// Old scool prama caching
@@ -173,7 +173,7 @@ class Response {
* @since 8.0.0
*/
public function invalidateCookies(array $cookieNames) {
- foreach($cookieNames as $cookieName) {
+ foreach ($cookieNames as $cookieName) {
$this->invalidateCookie($cookieName);
}
return $this;
@@ -198,10 +198,10 @@ class Response {
*/
public function addHeader($name, $value) {
$name = trim($name); // always remove leading and trailing whitespace
- // to be able to reliably check for security
- // headers
+ // to be able to reliably check for security
+ // headers
- if(is_null($value)) {
+ if (is_null($value)) {
unset($this->headers[$name]);
} else {
$this->headers[$name] = $value;
@@ -232,7 +232,7 @@ class Response {
public function getHeaders() {
$mergeWith = [];
- if($this->lastModified) {
+ if ($this->lastModified) {
$mergeWith['Last-Modified'] =
$this->lastModified->format(\DateTime::RFC2822);
}
@@ -240,7 +240,7 @@ class Response {
$this->headers['Content-Security-Policy'] = $this->getContentSecurityPolicy()->buildPolicy();
$this->headers['Feature-Policy'] = $this->getFeaturePolicy()->buildPolicy();
- if($this->ETag) {
+ if ($this->ETag) {
$mergeWith['ETag'] = '"' . $this->ETag . '"';
}
diff --git a/lib/public/AppFramework/Http/StandaloneTemplateResponse.php b/lib/public/AppFramework/Http/StandaloneTemplateResponse.php
index 544ad31f0d6..f07e82fc928 100644
--- a/lib/public/AppFramework/Http/StandaloneTemplateResponse.php
+++ b/lib/public/AppFramework/Http/StandaloneTemplateResponse.php
@@ -35,5 +35,4 @@ namespace OCP\AppFramework\Http;
* @since 16.0.0
*/
class StandaloneTemplateResponse extends TemplateResponse {
-
}
diff --git a/lib/public/AppFramework/Http/StreamResponse.php b/lib/public/AppFramework/Http/StreamResponse.php
index a228ed5566c..4deb4b4a859 100644
--- a/lib/public/AppFramework/Http/StreamResponse.php
+++ b/lib/public/AppFramework/Http/StreamResponse.php
@@ -65,5 +65,4 @@ class StreamResponse extends Response implements ICallbackResponse {
}
}
}
-
}
diff --git a/lib/public/AppFramework/Http/Template/IMenuAction.php b/lib/public/AppFramework/Http/Template/IMenuAction.php
index 703befd3e34..e2ab005a050 100644
--- a/lib/public/AppFramework/Http/Template/IMenuAction.php
+++ b/lib/public/AppFramework/Http/Template/IMenuAction.php
@@ -61,5 +61,4 @@ interface IMenuAction {
* @return string
*/
public function render(): string;
-
}
diff --git a/lib/public/AppFramework/Http/Template/PublicTemplateResponse.php b/lib/public/AppFramework/Http/Template/PublicTemplateResponse.php
index 67fe6165eef..8a8ac4242ce 100644
--- a/lib/public/AppFramework/Http/Template/PublicTemplateResponse.php
+++ b/lib/public/AppFramework/Http/Template/PublicTemplateResponse.php
@@ -35,7 +35,6 @@ use OCP\AppFramework\Http\TemplateResponse;
* @since 14.0.0
*/
class PublicTemplateResponse extends TemplateResponse {
-
private $headerTitle = '';
private $headerDetails = '';
private $headerActions = [];
@@ -156,5 +155,4 @@ class PublicTemplateResponse extends TemplateResponse {
$this->setParams($params);
return parent::render();
}
-
}
diff --git a/lib/public/AppFramework/Http/Template/SimpleMenuAction.php b/lib/public/AppFramework/Http/Template/SimpleMenuAction.php
index 6c45d9e4d9d..65880857bb6 100644
--- a/lib/public/AppFramework/Http/Template/SimpleMenuAction.php
+++ b/lib/public/AppFramework/Http/Template/SimpleMenuAction.php
@@ -123,5 +123,4 @@ class SimpleMenuAction implements IMenuAction {
Util::sanitizeHTML($this->id), Util::sanitizeHTML($this->link), Util::sanitizeHTML($this->icon), Util::sanitizeHTML($this->label), $detailContent
);
}
-
}
diff --git a/lib/public/AppFramework/Http/TemplateResponse.php b/lib/public/AppFramework/Http/TemplateResponse.php
index 504b4af93ff..283189a774a 100644
--- a/lib/public/AppFramework/Http/TemplateResponse.php
+++ b/lib/public/AppFramework/Http/TemplateResponse.php
@@ -38,7 +38,6 @@ namespace OCP\AppFramework\Http;
* @since 6.0.0
*/
class TemplateResponse extends Response {
-
const EVENT_LOAD_ADDITIONAL_SCRIPTS = self::class . '::loadAdditionalScripts';
const EVENT_LOAD_ADDITIONAL_SCRIPTS_LOGGEDIN = self::class . '::loadAdditionalScriptsLoggedIn';
@@ -160,11 +159,10 @@ class TemplateResponse extends Response {
$template = new \OCP\Template($this->appName, $this->templateName, $renderAs);
- foreach($this->params as $key => $value){
+ foreach ($this->params as $key => $value) {
$template->assign($key, $value);
}
return $template->fetchPage($this->params);
}
-
}
diff --git a/lib/public/AppFramework/IAppContainer.php b/lib/public/AppFramework/IAppContainer.php
index 68c30634fb2..5732a8b221e 100644
--- a/lib/public/AppFramework/IAppContainer.php
+++ b/lib/public/AppFramework/IAppContainer.php
@@ -62,5 +62,5 @@ interface IAppContainer extends IContainer {
* @param string $serviceName e.g. 'OCA\Files\Capabilities'
* @since 8.2.0
*/
- public function registerCapability($serviceName);
+ public function registerCapability($serviceName);
}
diff --git a/lib/public/AppFramework/Middleware.php b/lib/public/AppFramework/Middleware.php
index 2cf27fc14fd..73079614ec1 100644
--- a/lib/public/AppFramework/Middleware.php
+++ b/lib/public/AppFramework/Middleware.php
@@ -53,7 +53,6 @@ abstract class Middleware {
* @since 6.0.0
*/
public function beforeController($controller, $methodName) {
-
}
@@ -107,5 +106,4 @@ abstract class Middleware {
public function beforeOutput($controller, $methodName, $output) {
return $output;
}
-
}
diff --git a/lib/public/AppFramework/OCS/OCSBadRequestException.php b/lib/public/AppFramework/OCS/OCSBadRequestException.php
index eeea8ebaf47..d7d7c6e0439 100644
--- a/lib/public/AppFramework/OCS/OCSBadRequestException.php
+++ b/lib/public/AppFramework/OCS/OCSBadRequestException.php
@@ -43,5 +43,4 @@ class OCSBadRequestException extends OCSException {
public function __construct($message = '', Exception $previous = null) {
parent::__construct($message, Http::STATUS_BAD_REQUEST, $previous);
}
-
}
diff --git a/lib/public/AppFramework/OCS/OCSException.php b/lib/public/AppFramework/OCS/OCSException.php
index 6f776595fc2..0cf07e83b0c 100644
--- a/lib/public/AppFramework/OCS/OCSException.php
+++ b/lib/public/AppFramework/OCS/OCSException.php
@@ -31,4 +31,5 @@ use Exception;
* @package OCP\AppFramework
* @since 9.1.0
*/
-class OCSException extends Exception {}
+class OCSException extends Exception {
+}
diff --git a/lib/public/AppFramework/OCSController.php b/lib/public/AppFramework/OCSController.php
index d7243bb4d68..a800d31c6e9 100644
--- a/lib/public/AppFramework/OCSController.php
+++ b/lib/public/AppFramework/OCSController.php
@@ -110,5 +110,4 @@ abstract class OCSController extends ApiController {
}
return new \OC\AppFramework\OCS\V2Response($data, $format);
}
-
}
diff --git a/lib/public/AppFramework/PublicShareController.php b/lib/public/AppFramework/PublicShareController.php
index d7857073619..4548f885133 100644
--- a/lib/public/AppFramework/PublicShareController.php
+++ b/lib/public/AppFramework/PublicShareController.php
@@ -133,6 +133,5 @@ abstract class PublicShareController extends Controller {
* @since 14.0.0
*/
public function shareNotFound() {
-
}
}
diff --git a/lib/public/AppFramework/QueryException.php b/lib/public/AppFramework/QueryException.php
index b76a4914d90..fc00f275ae0 100644
--- a/lib/public/AppFramework/QueryException.php
+++ b/lib/public/AppFramework/QueryException.php
@@ -31,4 +31,5 @@ use Exception;
* @package OCP\AppFramework
* @since 8.1.0
*/
-class QueryException extends Exception {}
+class QueryException extends Exception {
+}
diff --git a/lib/public/AppFramework/Utility/IControllerMethodReflector.php b/lib/public/AppFramework/Utility/IControllerMethodReflector.php
index 0f82f0306c2..cac61960bef 100644
--- a/lib/public/AppFramework/Utility/IControllerMethodReflector.php
+++ b/lib/public/AppFramework/Utility/IControllerMethodReflector.php
@@ -72,5 +72,4 @@ interface IControllerMethodReflector {
* @since 8.0.0
*/
public function hasAnnotation(string $name): bool;
-
}
diff --git a/lib/public/AppFramework/Utility/ITimeFactory.php b/lib/public/AppFramework/Utility/ITimeFactory.php
index 2ab10986f19..ce09f10160f 100644
--- a/lib/public/AppFramework/Utility/ITimeFactory.php
+++ b/lib/public/AppFramework/Utility/ITimeFactory.php
@@ -46,5 +46,4 @@ interface ITimeFactory {
* @since 15.0.0
*/
public function getDateTime(string $time = 'now', \DateTimeZone $timezone = null): \DateTime;
-
}
diff --git a/lib/public/Authentication/Exceptions/CredentialsUnavailableException.php b/lib/public/Authentication/Exceptions/CredentialsUnavailableException.php
index d5684ade0cd..d2a7d505767 100644
--- a/lib/public/Authentication/Exceptions/CredentialsUnavailableException.php
+++ b/lib/public/Authentication/Exceptions/CredentialsUnavailableException.php
@@ -29,5 +29,4 @@ use Exception;
* @since 12
*/
class CredentialsUnavailableException extends Exception {
-
}
diff --git a/lib/public/Authentication/Exceptions/PasswordUnavailableException.php b/lib/public/Authentication/Exceptions/PasswordUnavailableException.php
index 935a626e91a..6b826966c87 100644
--- a/lib/public/Authentication/Exceptions/PasswordUnavailableException.php
+++ b/lib/public/Authentication/Exceptions/PasswordUnavailableException.php
@@ -29,5 +29,4 @@ use Exception;
* @since 12
*/
class PasswordUnavailableException extends Exception {
-
}
diff --git a/lib/public/Authentication/IApacheBackend.php b/lib/public/Authentication/IApacheBackend.php
index 946d4f06625..83b59b789c2 100644
--- a/lib/public/Authentication/IApacheBackend.php
+++ b/lib/public/Authentication/IApacheBackend.php
@@ -63,5 +63,4 @@ interface IApacheBackend {
* @since 6.0.0
*/
public function getCurrentUserId();
-
}
diff --git a/lib/public/Authentication/LoginCredentials/IStore.php b/lib/public/Authentication/LoginCredentials/IStore.php
index 7fb645862cf..22562103a72 100644
--- a/lib/public/Authentication/LoginCredentials/IStore.php
+++ b/lib/public/Authentication/LoginCredentials/IStore.php
@@ -42,5 +42,4 @@ interface IStore {
* @return ICredentials the login credentials of the current user
*/
public function getLoginCredentials(): ICredentials;
-
}
diff --git a/lib/public/Authentication/TwoFactorAuth/ALoginSetupController.php b/lib/public/Authentication/TwoFactorAuth/ALoginSetupController.php
index eaf72e0be78..d71150b3451 100644
--- a/lib/public/Authentication/TwoFactorAuth/ALoginSetupController.php
+++ b/lib/public/Authentication/TwoFactorAuth/ALoginSetupController.php
@@ -32,5 +32,4 @@ use OCP\AppFramework\Controller;
* @since 17.0.0
*/
abstract class ALoginSetupController extends Controller {
-
}
diff --git a/lib/public/Authentication/TwoFactorAuth/IActivatableAtLogin.php b/lib/public/Authentication/TwoFactorAuth/IActivatableAtLogin.php
index f2d70df487a..f1f67f3a4dc 100644
--- a/lib/public/Authentication/TwoFactorAuth/IActivatableAtLogin.php
+++ b/lib/public/Authentication/TwoFactorAuth/IActivatableAtLogin.php
@@ -41,5 +41,4 @@ interface IActivatableAtLogin extends IProvider {
* @since 17.0.0
*/
public function getLoginSetup(IUser $user): ILoginSetupProvider;
-
}
diff --git a/lib/public/Authentication/TwoFactorAuth/IActivatableByAdmin.php b/lib/public/Authentication/TwoFactorAuth/IActivatableByAdmin.php
index d48c407ca1b..98160d94647 100644
--- a/lib/public/Authentication/TwoFactorAuth/IActivatableByAdmin.php
+++ b/lib/public/Authentication/TwoFactorAuth/IActivatableByAdmin.php
@@ -47,5 +47,4 @@ interface IActivatableByAdmin extends IProvider {
* @since 15.0.0
*/
public function enableFor(IUser $user);
-
}
diff --git a/lib/public/Authentication/TwoFactorAuth/IDeactivatableByAdmin.php b/lib/public/Authentication/TwoFactorAuth/IDeactivatableByAdmin.php
index d85480b898f..0f8b527e34a 100644
--- a/lib/public/Authentication/TwoFactorAuth/IDeactivatableByAdmin.php
+++ b/lib/public/Authentication/TwoFactorAuth/IDeactivatableByAdmin.php
@@ -47,5 +47,4 @@ interface IDeactivatableByAdmin extends IProvider {
* @since 15.0.0
*/
public function disableFor(IUser $user);
-
}
diff --git a/lib/public/Authentication/TwoFactorAuth/ILoginSetupProvider.php b/lib/public/Authentication/TwoFactorAuth/ILoginSetupProvider.php
index 9cc3a7314cd..7165588566a 100644
--- a/lib/public/Authentication/TwoFactorAuth/ILoginSetupProvider.php
+++ b/lib/public/Authentication/TwoFactorAuth/ILoginSetupProvider.php
@@ -39,5 +39,4 @@ interface ILoginSetupProvider {
* @since 17.0.0
*/
public function getBody(): Template;
-
}
diff --git a/lib/public/Authentication/TwoFactorAuth/IPersonalProviderSettings.php b/lib/public/Authentication/TwoFactorAuth/IPersonalProviderSettings.php
index fe0bab8d64a..5178792b3ae 100644
--- a/lib/public/Authentication/TwoFactorAuth/IPersonalProviderSettings.php
+++ b/lib/public/Authentication/TwoFactorAuth/IPersonalProviderSettings.php
@@ -41,5 +41,4 @@ interface IPersonalProviderSettings {
* @since 15.0.0
*/
public function getBody(): Template;
-
}
diff --git a/lib/public/Authentication/TwoFactorAuth/IProvidesIcons.php b/lib/public/Authentication/TwoFactorAuth/IProvidesIcons.php
index 255f63cf0df..60315dc8030 100644
--- a/lib/public/Authentication/TwoFactorAuth/IProvidesIcons.php
+++ b/lib/public/Authentication/TwoFactorAuth/IProvidesIcons.php
@@ -51,5 +51,4 @@ interface IProvidesIcons extends IProvider {
* @since 15.0.0
*/
public function getDarkIcon(): String;
-
}
diff --git a/lib/public/Authentication/TwoFactorAuth/IProvidesPersonalSettings.php b/lib/public/Authentication/TwoFactorAuth/IProvidesPersonalSettings.php
index 7c1edd2163d..3668e60cd50 100644
--- a/lib/public/Authentication/TwoFactorAuth/IProvidesPersonalSettings.php
+++ b/lib/public/Authentication/TwoFactorAuth/IProvidesPersonalSettings.php
@@ -45,5 +45,4 @@ interface IProvidesPersonalSettings extends IProvider {
* @since 15.0.0
*/
public function getPersonalSettings(IUser $user): IPersonalProviderSettings;
-
}
diff --git a/lib/public/Authentication/TwoFactorAuth/IRegistry.php b/lib/public/Authentication/TwoFactorAuth/IRegistry.php
index 70026ca1dad..77aad28620b 100644
--- a/lib/public/Authentication/TwoFactorAuth/IRegistry.php
+++ b/lib/public/Authentication/TwoFactorAuth/IRegistry.php
@@ -39,8 +39,6 @@ use OCP\IUser;
* @since 14.0.0
*/
interface IRegistry {
-
-
const EVENT_PROVIDER_ENABLED = self::class . '::enable';
const EVENT_PROVIDER_DISABLED = self::class . '::disable';
@@ -81,5 +79,4 @@ interface IRegistry {
* @return void
*/
public function cleanUp(string $providerId);
-
}
diff --git a/lib/public/Authentication/TwoFactorAuth/TwoFactorException.php b/lib/public/Authentication/TwoFactorAuth/TwoFactorException.php
index f4735e9eb16..95ec88de99a 100644
--- a/lib/public/Authentication/TwoFactorAuth/TwoFactorException.php
+++ b/lib/public/Authentication/TwoFactorAuth/TwoFactorException.php
@@ -38,5 +38,4 @@ use Exception;
* @since 12
*/
class TwoFactorException extends Exception {
-
}
diff --git a/lib/public/Broadcast/Events/IBroadcastEvent.php b/lib/public/Broadcast/Events/IBroadcastEvent.php
index bed371e1247..95d52c5af8b 100644
--- a/lib/public/Broadcast/Events/IBroadcastEvent.php
+++ b/lib/public/Broadcast/Events/IBroadcastEvent.php
@@ -55,5 +55,4 @@ interface IBroadcastEvent {
* @since 18.0.0
*/
public function setBroadcasted(): void;
-
}
diff --git a/lib/public/Calendar/BackendTemporarilyUnavailableException.php b/lib/public/Calendar/BackendTemporarilyUnavailableException.php
index b564c80153b..41fb50f68da 100644
--- a/lib/public/Calendar/BackendTemporarilyUnavailableException.php
+++ b/lib/public/Calendar/BackendTemporarilyUnavailableException.php
@@ -29,4 +29,5 @@ namespace OCP\Calendar;
* @package OCP\Calendar
* @since 14.0.0
*/
-class BackendTemporarilyUnavailableException extends \Exception {}
+class BackendTemporarilyUnavailableException extends \Exception {
+}
diff --git a/lib/public/Capabilities/IPublicCapability.php b/lib/public/Capabilities/IPublicCapability.php
index b0f4b1efc46..7fda7037b3a 100644
--- a/lib/public/Capabilities/IPublicCapability.php
+++ b/lib/public/Capabilities/IPublicCapability.php
@@ -28,4 +28,5 @@ namespace OCP\Capabilities;
*
* @since 13.0.0
*/
-interface IPublicCapability extends ICapability {}
+interface IPublicCapability extends ICapability {
+}
diff --git a/lib/public/Collaboration/AutoComplete/AutoCompleteEvent.php b/lib/public/Collaboration/AutoComplete/AutoCompleteEvent.php
index 6b46d9157de..776bd46d407 100644
--- a/lib/public/Collaboration/AutoComplete/AutoCompleteEvent.php
+++ b/lib/public/Collaboration/AutoComplete/AutoCompleteEvent.php
@@ -98,5 +98,4 @@ class AutoCompleteEvent extends GenericEvent {
public function getLimit(): int {
return $this->getArgument('limit');
}
-
}
diff --git a/lib/public/Collaboration/Collaborators/SearchResultType.php b/lib/public/Collaboration/Collaborators/SearchResultType.php
index 3774640cebc..f8a130f1990 100644
--- a/lib/public/Collaboration/Collaborators/SearchResultType.php
+++ b/lib/public/Collaboration/Collaborators/SearchResultType.php
@@ -61,11 +61,11 @@ class SearchResultType {
protected function getValidatedType($type) {
$type = trim((string)$type);
- if($type === '') {
+ if ($type === '') {
throw new \InvalidArgumentException('Type must not be empty');
}
- if($type === 'exact') {
+ if ($type === 'exact') {
throw new \InvalidArgumentException('Provided type is a reserved word');
}
diff --git a/lib/public/Collaboration/Resources/CollectionException.php b/lib/public/Collaboration/Resources/CollectionException.php
index a1f7cd0836a..a7f05cdc939 100644
--- a/lib/public/Collaboration/Resources/CollectionException.php
+++ b/lib/public/Collaboration/Resources/CollectionException.php
@@ -30,5 +30,4 @@ namespace OCP\Collaboration\Resources;
* @since 16.0.0
*/
class CollectionException extends \RuntimeException {
-
}
diff --git a/lib/public/Collaboration/Resources/IProvider.php b/lib/public/Collaboration/Resources/IProvider.php
index 9bd5a8b9761..28bb06d2b85 100644
--- a/lib/public/Collaboration/Resources/IProvider.php
+++ b/lib/public/Collaboration/Resources/IProvider.php
@@ -60,5 +60,4 @@ interface IProvider {
* @since 16.0.0
*/
public function canAccessResource(IResource $resource, ?IUser $user): bool;
-
}
diff --git a/lib/public/Collaboration/Resources/ResourceException.php b/lib/public/Collaboration/Resources/ResourceException.php
index 8aa72447c95..562207f8e7b 100644
--- a/lib/public/Collaboration/Resources/ResourceException.php
+++ b/lib/public/Collaboration/Resources/ResourceException.php
@@ -30,5 +30,4 @@ namespace OCP\Collaboration\Resources;
* @since 16.0.0
*/
class ResourceException extends \RuntimeException {
-
}
diff --git a/lib/public/Comments/CommentsEntityEvent.php b/lib/public/Comments/CommentsEntityEvent.php
index 2bcc44f8b16..53ccd87f08d 100644
--- a/lib/public/Comments/CommentsEntityEvent.php
+++ b/lib/public/Comments/CommentsEntityEvent.php
@@ -32,7 +32,6 @@ use OCP\EventDispatcher\Event;
* @since 9.1.0
*/
class CommentsEntityEvent extends Event {
-
const EVENT_ENTITY = 'OCP\Comments\ICommentsManager::registerEntity';
/** @var string */
diff --git a/lib/public/Comments/CommentsEvent.php b/lib/public/Comments/CommentsEvent.php
index 3e12c03542a..b2116eb51ec 100644
--- a/lib/public/Comments/CommentsEvent.php
+++ b/lib/public/Comments/CommentsEvent.php
@@ -32,7 +32,6 @@ use OCP\EventDispatcher\Event;
* @since 9.0.0
*/
class CommentsEvent extends Event {
-
const EVENT_ADD = 'OCP\Comments\ICommentsManager::addComment';
const EVENT_PRE_UPDATE = 'OCP\Comments\ICommentsManager::preUpdateComment';
const EVENT_UPDATE = 'OCP\Comments\ICommentsManager::updateComment';
diff --git a/lib/public/Comments/IComment.php b/lib/public/Comments/IComment.php
index b98a015a30e..604aaefd890 100644
--- a/lib/public/Comments/IComment.php
+++ b/lib/public/Comments/IComment.php
@@ -279,5 +279,4 @@ interface IComment {
* @since 19.0.0
*/
public function setReferenceId(?string $referenceId): IComment;
-
}
diff --git a/lib/public/Comments/ICommentsManager.php b/lib/public/Comments/ICommentsManager.php
index 7c19b36e59a..bb3a6fe255c 100644
--- a/lib/public/Comments/ICommentsManager.php
+++ b/lib/public/Comments/ICommentsManager.php
@@ -322,5 +322,4 @@ interface ICommentsManager {
* provided ID is unknown. It must be ensured that a string is returned.
*/
public function resolveDisplayName($type, $id);
-
}
diff --git a/lib/public/Comments/IllegalIDChangeException.php b/lib/public/Comments/IllegalIDChangeException.php
index 5f8428a0f85..f821333800e 100644
--- a/lib/public/Comments/IllegalIDChangeException.php
+++ b/lib/public/Comments/IllegalIDChangeException.php
@@ -28,4 +28,5 @@ namespace OCP\Comments;
* Exception for illegal attempts to modify a comment ID
* @since 9.0.0
*/
-class IllegalIDChangeException extends \Exception {}
+class IllegalIDChangeException extends \Exception {
+}
diff --git a/lib/public/Comments/MessageTooLongException.php b/lib/public/Comments/MessageTooLongException.php
index 5b0bd96e468..bccf75adc1b 100644
--- a/lib/public/Comments/MessageTooLongException.php
+++ b/lib/public/Comments/MessageTooLongException.php
@@ -27,4 +27,5 @@ namespace OCP\Comments;
* Exception thrown when a comment message exceeds the allowed character limit
* @since 9.0.0
*/
-class MessageTooLongException extends \OverflowException {}
+class MessageTooLongException extends \OverflowException {
+}
diff --git a/lib/public/Comments/NotFoundException.php b/lib/public/Comments/NotFoundException.php
index 7a06447eb21..80bad3d6bec 100644
--- a/lib/public/Comments/NotFoundException.php
+++ b/lib/public/Comments/NotFoundException.php
@@ -28,4 +28,5 @@ namespace OCP\Comments;
* Exception for not found entity
* @since 9.0.0
*/
-class NotFoundException extends \Exception {}
+class NotFoundException extends \Exception {
+}
diff --git a/lib/public/Console/ConsoleEvent.php b/lib/public/Console/ConsoleEvent.php
index 457ead95ca7..0c3fa25f54f 100644
--- a/lib/public/Console/ConsoleEvent.php
+++ b/lib/public/Console/ConsoleEvent.php
@@ -32,7 +32,6 @@ use OCP\EventDispatcher\Event;
* @since 9.0.0
*/
class ConsoleEvent extends Event {
-
const EVENT_RUN = 'OC\Console\Application::run';
/** @var string */
diff --git a/lib/public/Contacts/ContactsMenu/IContactsStore.php b/lib/public/Contacts/ContactsMenu/IContactsStore.php
index 76d0f76a933..c64b95fb85d 100644
--- a/lib/public/Contacts/ContactsMenu/IContactsStore.php
+++ b/lib/public/Contacts/ContactsMenu/IContactsStore.php
@@ -48,5 +48,4 @@ interface IContactsStore {
* @since 13.0.0
*/
public function findOne(IUser $user, $shareType, $shareWith);
-
}
diff --git a/lib/public/Contacts/Events/ContactInteractedWithEvent.php b/lib/public/Contacts/Events/ContactInteractedWithEvent.php
index d2cf19a8d71..1888b7606bf 100644
--- a/lib/public/Contacts/Events/ContactInteractedWithEvent.php
+++ b/lib/public/Contacts/Events/ContactInteractedWithEvent.php
@@ -133,5 +133,4 @@ class ContactInteractedWithEvent extends Event {
$this->federatedCloudId = $federatedCloudId;
return $this;
}
-
}
diff --git a/lib/public/Dashboard/IDashboardManager.php b/lib/public/Dashboard/IDashboardManager.php
index 7805bc236e8..812338bfb30 100644
--- a/lib/public/Dashboard/IDashboardManager.php
+++ b/lib/public/Dashboard/IDashboardManager.php
@@ -127,5 +127,4 @@ interface IDashboardManager {
* @throws DashboardAppNotAvailableException
*/
public function createGlobalEvent(string $widgetId, array $payload, string $uniqueId = '');
-
}
diff --git a/lib/public/Dashboard/IDashboardWidget.php b/lib/public/Dashboard/IDashboardWidget.php
index 9010845355a..ef8b9c74d15 100644
--- a/lib/public/Dashboard/IDashboardWidget.php
+++ b/lib/public/Dashboard/IDashboardWidget.php
@@ -138,5 +138,4 @@ interface IDashboardWidget {
* @param IWidgetRequest $request
*/
public function requestWidget(IWidgetRequest $request);
-
}
diff --git a/lib/public/Dashboard/Model/IWidgetConfig.php b/lib/public/Dashboard/Model/IWidgetConfig.php
index bc33b37f544..41c9e233177 100644
--- a/lib/public/Dashboard/Model/IWidgetConfig.php
+++ b/lib/public/Dashboard/Model/IWidgetConfig.php
@@ -119,6 +119,4 @@ interface IWidgetConfig {
* @return bool
*/
public function isEnabled(): bool;
-
-
}
diff --git a/lib/public/Dashboard/Model/IWidgetRequest.php b/lib/public/Dashboard/Model/IWidgetRequest.php
index b646935978a..18ad855006c 100644
--- a/lib/public/Dashboard/Model/IWidgetRequest.php
+++ b/lib/public/Dashboard/Model/IWidgetRequest.php
@@ -127,5 +127,4 @@ interface IWidgetRequest {
* @return $this
*/
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 b20d8d68b38..27daa76cbdf 100644
--- a/lib/public/Dashboard/Model/WidgetSetting.php
+++ b/lib/public/Dashboard/Model/WidgetSetting.php
@@ -48,8 +48,6 @@ use JsonSerializable;
* @package OCP\Dashboard\Model
*/
final class WidgetSetting implements JsonSerializable {
-
-
const TYPE_INPUT = 'input';
const TYPE_CHECKBOX = 'checkbox';
@@ -231,6 +229,4 @@ final class WidgetSetting implements JsonSerializable {
'placeholder' => $this->getPlaceholder()
];
}
-
-
}
diff --git a/lib/public/Dashboard/Model/WidgetSetup.php b/lib/public/Dashboard/Model/WidgetSetup.php
index 80885705633..8a502b09e58 100644
--- a/lib/public/Dashboard/Model/WidgetSetup.php
+++ b/lib/public/Dashboard/Model/WidgetSetup.php
@@ -41,8 +41,6 @@ use JsonSerializable;
* @package OCP\Dashboard\Model
*/
final class WidgetSetup implements JsonSerializable {
-
-
const SIZE_TYPE_MIN = 'min';
const SIZE_TYPE_MAX = 'max';
const SIZE_TYPE_DEFAULT = 'default';
diff --git a/lib/public/Dashboard/Model/WidgetTemplate.php b/lib/public/Dashboard/Model/WidgetTemplate.php
index 979a49a342d..e25abb02540 100644
--- a/lib/public/Dashboard/Model/WidgetTemplate.php
+++ b/lib/public/Dashboard/Model/WidgetTemplate.php
@@ -308,6 +308,4 @@ final class WidgetTemplate implements JsonSerializable {
'settings' => $this->getSettings()
];
}
-
-
}
diff --git a/lib/public/Dashboard/Service/IEventsService.php b/lib/public/Dashboard/Service/IEventsService.php
index a9898f578e6..f79d1a28e5a 100644
--- a/lib/public/Dashboard/Service/IEventsService.php
+++ b/lib/public/Dashboard/Service/IEventsService.php
@@ -83,6 +83,4 @@ interface IEventsService {
* @param string $uniqueId
*/
public function createGlobalEvent(string $widgetId, array $payload, string $uniqueId);
-
-
}
diff --git a/lib/public/Dashboard/Service/IWidgetsService.php b/lib/public/Dashboard/Service/IWidgetsService.php
index dfa89ec1f59..dea20489e13 100644
--- a/lib/public/Dashboard/Service/IWidgetsService.php
+++ b/lib/public/Dashboard/Service/IWidgetsService.php
@@ -52,5 +52,4 @@ interface IWidgetsService {
* @return IWidgetConfig
*/
public function getWidgetConfig(string $widgetId, string $userId): IWidgetConfig;
-
}
diff --git a/lib/public/DirectEditing/ACreateEmpty.php b/lib/public/DirectEditing/ACreateEmpty.php
index 71a18c94e23..cbb17d5d3e2 100644
--- a/lib/public/DirectEditing/ACreateEmpty.php
+++ b/lib/public/DirectEditing/ACreateEmpty.php
@@ -73,6 +73,5 @@ abstract class ACreateEmpty {
* @param File $file
*/
public function create(File $file, string $creatorId = null, string $templateId = null): void {
-
}
}
diff --git a/lib/public/DirectEditing/ACreateFromTemplate.php b/lib/public/DirectEditing/ACreateFromTemplate.php
index e4aa461772a..43a21fdf4e9 100644
--- a/lib/public/DirectEditing/ACreateFromTemplate.php
+++ b/lib/public/DirectEditing/ACreateFromTemplate.php
@@ -35,5 +35,4 @@ abstract class ACreateFromTemplate extends ACreateEmpty {
* @return ATemplate[]
*/
abstract public function getTemplates(): array;
-
}
diff --git a/lib/public/DirectEditing/IManager.php b/lib/public/DirectEditing/IManager.php
index e9548a91e7a..6cdf656c015 100644
--- a/lib/public/DirectEditing/IManager.php
+++ b/lib/public/DirectEditing/IManager.php
@@ -85,5 +85,4 @@ interface IManager {
* @return int number of deleted tokens
*/
public function cleanup(): int;
-
}
diff --git a/lib/public/DirectEditing/IToken.php b/lib/public/DirectEditing/IToken.php
index 46c423053fe..511b12d4aed 100644
--- a/lib/public/DirectEditing/IToken.php
+++ b/lib/public/DirectEditing/IToken.php
@@ -80,5 +80,4 @@ interface IToken {
* @return string
*/
public function getUser(): string;
-
}
diff --git a/lib/public/DirectEditing/RegisterDirectEditorEvent.php b/lib/public/DirectEditing/RegisterDirectEditorEvent.php
index fe494e7fded..c9e04f23cfc 100644
--- a/lib/public/DirectEditing/RegisterDirectEditorEvent.php
+++ b/lib/public/DirectEditing/RegisterDirectEditorEvent.php
@@ -53,5 +53,4 @@ class RegisterDirectEditorEvent extends Event {
public function register(IEditor $editor): void {
$this->manager->registerDirectEditor($editor);
}
-
}
diff --git a/lib/public/Encryption/Exceptions/GenericEncryptionException.php b/lib/public/Encryption/Exceptions/GenericEncryptionException.php
index 2124e5effea..d19ff4b2724 100644
--- a/lib/public/Encryption/Exceptions/GenericEncryptionException.php
+++ b/lib/public/Encryption/Exceptions/GenericEncryptionException.php
@@ -49,5 +49,4 @@ class GenericEncryptionException extends HintException {
}
parent::__construct($message, $hint, $code, $previous);
}
-
}
diff --git a/lib/public/Encryption/IEncryptionModule.php b/lib/public/Encryption/IEncryptionModule.php
index 9646fb90e93..cd85b931a5c 100644
--- a/lib/public/Encryption/IEncryptionModule.php
+++ b/lib/public/Encryption/IEncryptionModule.php
@@ -193,5 +193,4 @@ interface IEncryptionModule {
* @return bool
*/
public function needDetailedAccessList();
-
}
diff --git a/lib/public/Encryption/IFile.php b/lib/public/Encryption/IFile.php
index f1da8f516b4..e01c7ec4cac 100644
--- a/lib/public/Encryption/IFile.php
+++ b/lib/public/Encryption/IFile.php
@@ -40,5 +40,4 @@ interface IFile {
* @since 8.1.0
*/
public function getAccessList($path);
-
}
diff --git a/lib/public/Encryption/IManager.php b/lib/public/Encryption/IManager.php
index bbac154ad4e..1d824ab6a62 100644
--- a/lib/public/Encryption/IManager.php
+++ b/lib/public/Encryption/IManager.php
@@ -97,5 +97,4 @@ interface IManager {
* @since 8.1.0
*/
public function setDefaultEncryptionModule($moduleId);
-
}
diff --git a/lib/public/EventDispatcher/ABroadcastedEvent.php b/lib/public/EventDispatcher/ABroadcastedEvent.php
index 53e11cd2e9d..5e6e18a80d4 100644
--- a/lib/public/EventDispatcher/ABroadcastedEvent.php
+++ b/lib/public/EventDispatcher/ABroadcastedEvent.php
@@ -69,5 +69,4 @@ abstract class ABroadcastedEvent extends Event implements JsonSerializable {
public function isBroadcasted(): bool {
return $this->broadcasted;
}
-
}
diff --git a/lib/public/EventDispatcher/Event.php b/lib/public/EventDispatcher/Event.php
index 6bc737f5ca7..8e6a5217af9 100644
--- a/lib/public/EventDispatcher/Event.php
+++ b/lib/public/EventDispatcher/Event.php
@@ -51,5 +51,4 @@ class Event extends SymfonyEvent {
*/
public function __construct() {
}
-
}
diff --git a/lib/public/EventDispatcher/IEventDispatcher.php b/lib/public/EventDispatcher/IEventDispatcher.php
index 045c8ed3601..997834ad7b5 100644
--- a/lib/public/EventDispatcher/IEventDispatcher.php
+++ b/lib/public/EventDispatcher/IEventDispatcher.php
@@ -79,5 +79,4 @@ interface IEventDispatcher {
* @since 18.0.0
*/
public function dispatchTyped(Event $event): void;
-
}
diff --git a/lib/public/EventDispatcher/IEventListener.php b/lib/public/EventDispatcher/IEventListener.php
index 349e718fa58..25906fa798e 100644
--- a/lib/public/EventDispatcher/IEventListener.php
+++ b/lib/public/EventDispatcher/IEventListener.php
@@ -37,5 +37,4 @@ interface IEventListener {
* @since 17.0.0
*/
public function handle(Event $event): void;
-
}
diff --git a/lib/public/Federation/Exceptions/ActionNotSupportedException.php b/lib/public/Federation/Exceptions/ActionNotSupportedException.php
index 169bf6afc25..a2d5b78ddb0 100644
--- a/lib/public/Federation/Exceptions/ActionNotSupportedException.php
+++ b/lib/public/Federation/Exceptions/ActionNotSupportedException.php
@@ -46,5 +46,4 @@ class ActionNotSupportedException extends HintException {
$hint = $l->t('Action "%s" not supported or implemented.', [$action]);
parent::__construct($message, $hint);
}
-
}
diff --git a/lib/public/Federation/Exceptions/AuthenticationFailedException.php b/lib/public/Federation/Exceptions/AuthenticationFailedException.php
index 36851c4610e..9a0a408bee9 100644
--- a/lib/public/Federation/Exceptions/AuthenticationFailedException.php
+++ b/lib/public/Federation/Exceptions/AuthenticationFailedException.php
@@ -46,5 +46,4 @@ class AuthenticationFailedException extends HintException {
$hint = $l->t('Authentication failed, wrong token or provider ID given');
parent::__construct($message, $hint);
}
-
}
diff --git a/lib/public/Federation/Exceptions/BadRequestException.php b/lib/public/Federation/Exceptions/BadRequestException.php
index c0ff5ab6892..4b373bba9f7 100644
--- a/lib/public/Federation/Exceptions/BadRequestException.php
+++ b/lib/public/Federation/Exceptions/BadRequestException.php
@@ -33,7 +33,6 @@ use OC\HintException;
* @since 14.0.0
*/
class BadRequestException extends HintException {
-
private $parameterList;
/**
@@ -75,5 +74,4 @@ class BadRequestException extends HintException {
return $result;
}
-
}
diff --git a/lib/public/Federation/Exceptions/ProviderAlreadyExistsException.php b/lib/public/Federation/Exceptions/ProviderAlreadyExistsException.php
index 9a3f616c559..8968371cd74 100644
--- a/lib/public/Federation/Exceptions/ProviderAlreadyExistsException.php
+++ b/lib/public/Federation/Exceptions/ProviderAlreadyExistsException.php
@@ -50,5 +50,4 @@ class ProviderAlreadyExistsException extends HintException {
$hint = $l->t('ID "%1$s" already used by cloud federation provider "%2$s"', [$newProviderId, $existingProviderName]);
parent::__construct($message, $hint);
}
-
}
diff --git a/lib/public/Federation/Exceptions/ProviderCouldNotAddShareException.php b/lib/public/Federation/Exceptions/ProviderCouldNotAddShareException.php
index f7abe030678..50827ea09ad 100644
--- a/lib/public/Federation/Exceptions/ProviderCouldNotAddShareException.php
+++ b/lib/public/Federation/Exceptions/ProviderCouldNotAddShareException.php
@@ -48,6 +48,4 @@ class ProviderCouldNotAddShareException extends HintException {
public function __construct($message, $hint = '', $code = Http::STATUS_BAD_REQUEST, \Exception $previous = null) {
parent::__construct($message, $hint, $code, $previous);
}
-
-
}
diff --git a/lib/public/Federation/Exceptions/ProviderDoesNotExistsException.php b/lib/public/Federation/Exceptions/ProviderDoesNotExistsException.php
index 771815d7706..30c591d31bf 100644
--- a/lib/public/Federation/Exceptions/ProviderDoesNotExistsException.php
+++ b/lib/public/Federation/Exceptions/ProviderDoesNotExistsException.php
@@ -47,5 +47,4 @@ class ProviderDoesNotExistsException extends HintException {
$hint = $l->t('Cloud Federation Provider with ID: "%s" does not exist.', [$providerId]);
parent::__construct($message, $hint);
}
-
}
diff --git a/lib/public/Federation/ICloudFederationProvider.php b/lib/public/Federation/ICloudFederationProvider.php
index c43bd984cea..f0bc305b160 100644
--- a/lib/public/Federation/ICloudFederationProvider.php
+++ b/lib/public/Federation/ICloudFederationProvider.php
@@ -88,5 +88,4 @@ interface ICloudFederationProvider {
* @since 14.0.0
*/
public function getSupportedShareTypes();
-
}
diff --git a/lib/public/Federation/ICloudFederationProviderManager.php b/lib/public/Federation/ICloudFederationProviderManager.php
index 0b78ff4da23..f29679ff7c0 100644
--- a/lib/public/Federation/ICloudFederationProviderManager.php
+++ b/lib/public/Federation/ICloudFederationProviderManager.php
@@ -105,6 +105,4 @@ interface ICloudFederationProviderManager {
* @since 14.0.0
*/
public function isReady();
-
-
}
diff --git a/lib/public/Federation/ICloudFederationShare.php b/lib/public/Federation/ICloudFederationShare.php
index 41ed440529c..ec5247f8eb4 100644
--- a/lib/public/Federation/ICloudFederationShare.php
+++ b/lib/public/Federation/ICloudFederationShare.php
@@ -248,5 +248,4 @@ interface ICloudFederationShare {
* @since 14.0.0
*/
public function getProtocol();
-
}
diff --git a/lib/public/Files/AlreadyExistsException.php b/lib/public/Files/AlreadyExistsException.php
index 83fa12add17..fe60a7d0a52 100644
--- a/lib/public/Files/AlreadyExistsException.php
+++ b/lib/public/Files/AlreadyExistsException.php
@@ -36,4 +36,5 @@ namespace OCP\Files;
* Exception for already existing files/folders
* @since 6.0.0
*/
-class AlreadyExistsException extends \Exception {}
+class AlreadyExistsException extends \Exception {
+}
diff --git a/lib/public/Files/EntityTooLargeException.php b/lib/public/Files/EntityTooLargeException.php
index 21d7b8e62ce..1846e595729 100644
--- a/lib/public/Files/EntityTooLargeException.php
+++ b/lib/public/Files/EntityTooLargeException.php
@@ -36,4 +36,5 @@ namespace OCP\Files;
* Exception for too large entity
* @since 6.0.0
*/
-class EntityTooLargeException extends \Exception {}
+class EntityTooLargeException extends \Exception {
+}
diff --git a/lib/public/Files/Events/BeforeFileScannedEvent.php b/lib/public/Files/Events/BeforeFileScannedEvent.php
index fbe228d7310..c233c9e4a0e 100644
--- a/lib/public/Files/Events/BeforeFileScannedEvent.php
+++ b/lib/public/Files/Events/BeforeFileScannedEvent.php
@@ -53,5 +53,4 @@ class BeforeFileScannedEvent extends Event {
public function getAbsolutePath(): string {
return $this->absolutePath;
}
-
}
diff --git a/lib/public/Files/Events/BeforeFolderScannedEvent.php b/lib/public/Files/Events/BeforeFolderScannedEvent.php
index 354b481cb07..5c8c05e9a21 100644
--- a/lib/public/Files/Events/BeforeFolderScannedEvent.php
+++ b/lib/public/Files/Events/BeforeFolderScannedEvent.php
@@ -53,5 +53,4 @@ class BeforeFolderScannedEvent extends Event {
public function getAbsolutePath(): string {
return $this->absolutePath;
}
-
}
diff --git a/lib/public/Files/Events/FileCacheUpdated.php b/lib/public/Files/Events/FileCacheUpdated.php
index 1bb8a3b39ab..f370aec1cf2 100644
--- a/lib/public/Files/Events/FileCacheUpdated.php
+++ b/lib/public/Files/Events/FileCacheUpdated.php
@@ -67,5 +67,4 @@ class FileCacheUpdated extends Event {
public function getPath(): string {
return $this->path;
}
-
}
diff --git a/lib/public/Files/Events/FileScannedEvent.php b/lib/public/Files/Events/FileScannedEvent.php
index fe0817130f7..69c0dd3c538 100644
--- a/lib/public/Files/Events/FileScannedEvent.php
+++ b/lib/public/Files/Events/FileScannedEvent.php
@@ -53,5 +53,4 @@ class FileScannedEvent extends Event {
public function getAbsolutePath(): string {
return $this->absolutePath;
}
-
}
diff --git a/lib/public/Files/Events/FolderScannedEvent.php b/lib/public/Files/Events/FolderScannedEvent.php
index d5dc0c97b55..642d14b4499 100644
--- a/lib/public/Files/Events/FolderScannedEvent.php
+++ b/lib/public/Files/Events/FolderScannedEvent.php
@@ -53,5 +53,4 @@ class FolderScannedEvent extends Event {
public function getAbsolutePath(): string {
return $this->absolutePath;
}
-
}
diff --git a/lib/public/Files/Events/NodeAddedToCache.php b/lib/public/Files/Events/NodeAddedToCache.php
index 631de66f9ef..f1ffd755f68 100644
--- a/lib/public/Files/Events/NodeAddedToCache.php
+++ b/lib/public/Files/Events/NodeAddedToCache.php
@@ -67,5 +67,4 @@ class NodeAddedToCache extends Event {
public function getPath(): string {
return $this->path;
}
-
}
diff --git a/lib/public/Files/Events/NodeRemovedFromCache.php b/lib/public/Files/Events/NodeRemovedFromCache.php
index 1d09e10bf6d..0437bc001a7 100644
--- a/lib/public/Files/Events/NodeRemovedFromCache.php
+++ b/lib/public/Files/Events/NodeRemovedFromCache.php
@@ -67,5 +67,4 @@ class NodeRemovedFromCache extends Event {
public function getPath(): string {
return $this->path;
}
-
}
diff --git a/lib/public/Files/GenericFileException.php b/lib/public/Files/GenericFileException.php
index fe71d91c18e..75f26f27132 100644
--- a/lib/public/Files/GenericFileException.php
+++ b/lib/public/Files/GenericFileException.php
@@ -30,5 +30,4 @@ namespace OCP\Files;
* @since 14.0.0
*/
class GenericFileException extends \Exception {
-
}
diff --git a/lib/public/Files/IAppData.php b/lib/public/Files/IAppData.php
index ca7bdc242b7..2ec5191aed1 100644
--- a/lib/public/Files/IAppData.php
+++ b/lib/public/Files/IAppData.php
@@ -31,6 +31,5 @@ use OCP\Files\SimpleFS\ISimpleRoot;
* @package OCP\Files
* @since 11.0.0
*/
-interface IAppData extends ISimpleRoot {
-
+interface IAppData extends ISimpleRoot {
}
diff --git a/lib/public/Files/IHomeStorage.php b/lib/public/Files/IHomeStorage.php
index d988e56ec17..6123e7fae4d 100644
--- a/lib/public/Files/IHomeStorage.php
+++ b/lib/public/Files/IHomeStorage.php
@@ -39,5 +39,4 @@ namespace OCP\Files;
* @since 7.0.0
*/
interface IHomeStorage {
-
}
diff --git a/lib/public/Files/InvalidCharacterInPathException.php b/lib/public/Files/InvalidCharacterInPathException.php
index 3e051e3f8ee..57fb2134bb0 100644
--- a/lib/public/Files/InvalidCharacterInPathException.php
+++ b/lib/public/Files/InvalidCharacterInPathException.php
@@ -37,5 +37,4 @@ namespace OCP\Files;
* @since 8.1.0
*/
class InvalidCharacterInPathException extends InvalidPathException {
-
}
diff --git a/lib/public/Files/InvalidContentException.php b/lib/public/Files/InvalidContentException.php
index 6c738ab4290..77ae8b78bee 100644
--- a/lib/public/Files/InvalidContentException.php
+++ b/lib/public/Files/InvalidContentException.php
@@ -36,4 +36,5 @@ namespace OCP\Files;
* Exception for invalid content
* @since 6.0.0
*/
-class InvalidContentException extends \Exception {}
+class InvalidContentException extends \Exception {
+}
diff --git a/lib/public/Files/InvalidPathException.php b/lib/public/Files/InvalidPathException.php
index 4af71733167..64805cdcced 100644
--- a/lib/public/Files/InvalidPathException.php
+++ b/lib/public/Files/InvalidPathException.php
@@ -36,4 +36,5 @@ namespace OCP\Files;
* Exception for invalid path
* @since 6.0.0
*/
-class InvalidPathException extends \Exception {}
+class InvalidPathException extends \Exception {
+}
diff --git a/lib/public/Files/NotEnoughSpaceException.php b/lib/public/Files/NotEnoughSpaceException.php
index cc45ea60a1a..97ef3ddb9ee 100644
--- a/lib/public/Files/NotEnoughSpaceException.php
+++ b/lib/public/Files/NotEnoughSpaceException.php
@@ -36,4 +36,5 @@ namespace OCP\Files;
* Exception for not enough space
* @since 6.0.0
*/
-class NotEnoughSpaceException extends \Exception {}
+class NotEnoughSpaceException extends \Exception {
+}
diff --git a/lib/public/Files/NotFoundException.php b/lib/public/Files/NotFoundException.php
index 01c9c03f00a..7faf6690141 100644
--- a/lib/public/Files/NotFoundException.php
+++ b/lib/public/Files/NotFoundException.php
@@ -36,4 +36,5 @@ namespace OCP\Files;
* Exception for not found entity
* @since 6.0.0
*/
-class NotFoundException extends \Exception {}
+class NotFoundException extends \Exception {
+}
diff --git a/lib/public/Files/NotPermittedException.php b/lib/public/Files/NotPermittedException.php
index 59be76beec7..4c7bf589620 100644
--- a/lib/public/Files/NotPermittedException.php
+++ b/lib/public/Files/NotPermittedException.php
@@ -36,4 +36,5 @@ namespace OCP\Files;
* Exception for not permitted action
* @since 6.0.0
*/
-class NotPermittedException extends \Exception {}
+class NotPermittedException extends \Exception {
+}
diff --git a/lib/public/Files/ReservedWordException.php b/lib/public/Files/ReservedWordException.php
index 2fc286a361f..81f25fb4366 100644
--- a/lib/public/Files/ReservedWordException.php
+++ b/lib/public/Files/ReservedWordException.php
@@ -37,5 +37,4 @@ namespace OCP\Files;
* @since 8.1.0
*/
class ReservedWordException extends InvalidPathException {
-
}
diff --git a/lib/public/Files/Search/ISearchOperator.php b/lib/public/Files/Search/ISearchOperator.php
index e86ceda07c1..a443c2744cf 100644
--- a/lib/public/Files/Search/ISearchOperator.php
+++ b/lib/public/Files/Search/ISearchOperator.php
@@ -27,5 +27,4 @@ namespace OCP\Files\Search;
* @since 12.0.0
*/
interface ISearchOperator {
-
}
diff --git a/lib/public/Files/Storage/IDisableEncryptionStorage.php b/lib/public/Files/Storage/IDisableEncryptionStorage.php
index b1172640b26..761f636b068 100644
--- a/lib/public/Files/Storage/IDisableEncryptionStorage.php
+++ b/lib/public/Files/Storage/IDisableEncryptionStorage.php
@@ -30,5 +30,4 @@ namespace OCP\Files\Storage;
* @since 16.0.0
*/
interface IDisableEncryptionStorage {
-
}
diff --git a/lib/public/Files/StorageBadConfigException.php b/lib/public/Files/StorageBadConfigException.php
index 94ab6356899..2b0e362389f 100644
--- a/lib/public/Files/StorageBadConfigException.php
+++ b/lib/public/Files/StorageBadConfigException.php
@@ -41,5 +41,4 @@ class StorageBadConfigException extends StorageNotAvailableException {
$l = \OC::$server->getL10N('core');
parent::__construct($l->t('Storage incomplete configuration. %s', [$message]), self::STATUS_INCOMPLETE_CONF, $previous);
}
-
}
diff --git a/lib/public/Files/StorageNotAvailableException.php b/lib/public/Files/StorageNotAvailableException.php
index 052a6b5ad78..1a0465bda13 100644
--- a/lib/public/Files/StorageNotAvailableException.php
+++ b/lib/public/Files/StorageNotAvailableException.php
@@ -44,7 +44,6 @@ use OC\HintException;
* @since 6.0.0 - since 8.2.1 based on HintException
*/
class StorageNotAvailableException extends HintException {
-
const STATUS_SUCCESS = 0;
const STATUS_ERROR = 1;
const STATUS_INDETERMINATE = 2;
diff --git a/lib/public/Files/UnseekableException.php b/lib/public/Files/UnseekableException.php
index 302a6b2686b..1e4e19be111 100644
--- a/lib/public/Files/UnseekableException.php
+++ b/lib/public/Files/UnseekableException.php
@@ -35,4 +35,5 @@ namespace OCP\Files;
* Exception for seek problem
* @since 9.1.0
*/
-class UnseekableException extends \Exception {}
+class UnseekableException extends \Exception {
+}
diff --git a/lib/public/Files_FullTextSearch/Model/AFilesDocument.php b/lib/public/Files_FullTextSearch/Model/AFilesDocument.php
index 1ca6bff98c9..33558a632e9 100644
--- a/lib/public/Files_FullTextSearch/Model/AFilesDocument.php
+++ b/lib/public/Files_FullTextSearch/Model/AFilesDocument.php
@@ -100,5 +100,4 @@ abstract class AFilesDocument extends IndexDocument {
* @return string
*/
abstract public function getPath(): string;
-
}
diff --git a/lib/public/FullTextSearch/IFullTextSearchManager.php b/lib/public/FullTextSearch/IFullTextSearchManager.php
index e420e91f3a1..c66712dbe1f 100644
--- a/lib/public/FullTextSearch/IFullTextSearchManager.php
+++ b/lib/public/FullTextSearch/IFullTextSearchManager.php
@@ -184,6 +184,4 @@ interface IFullTextSearchManager {
* @return ISearchResult[]
*/
public function search(array $request, string $userId = ''): array;
-
-
}
diff --git a/lib/public/FullTextSearch/IFullTextSearchPlatform.php b/lib/public/FullTextSearch/IFullTextSearchPlatform.php
index 797c179082e..4fea8aba173 100644
--- a/lib/public/FullTextSearch/IFullTextSearchPlatform.php
+++ b/lib/public/FullTextSearch/IFullTextSearchPlatform.php
@@ -215,6 +215,4 @@ interface IFullTextSearchPlatform {
* @return IIndexDocument
*/
public function getDocument(string $providerId, string $documentId): IIndexDocument;
-
-
}
diff --git a/lib/public/FullTextSearch/IFullTextSearchProvider.php b/lib/public/FullTextSearch/IFullTextSearchProvider.php
index 4a37001754a..34b9bdfc512 100644
--- a/lib/public/FullTextSearch/IFullTextSearchProvider.php
+++ b/lib/public/FullTextSearch/IFullTextSearchProvider.php
@@ -315,5 +315,4 @@ interface IFullTextSearchProvider {
* @since 15.0.0
*/
public function unloadProvider();
-
}
diff --git a/lib/public/FullTextSearch/Model/IDocumentAccess.php b/lib/public/FullTextSearch/Model/IDocumentAccess.php
index 478072593aa..93fd7ae6e75 100644
--- a/lib/public/FullTextSearch/Model/IDocumentAccess.php
+++ b/lib/public/FullTextSearch/Model/IDocumentAccess.php
@@ -254,5 +254,4 @@ interface IDocumentAccess {
* @return array
*/
public function getLinks(): array;
-
}
diff --git a/lib/public/FullTextSearch/Model/IIndex.php b/lib/public/FullTextSearch/Model/IIndex.php
index 7078962d99e..fb279336c55 100644
--- a/lib/public/FullTextSearch/Model/IIndex.php
+++ b/lib/public/FullTextSearch/Model/IIndex.php
@@ -45,8 +45,6 @@ namespace OCP\FullTextSearch\Model;
* @package OCP\FullTextSearch\Model
*/
interface IIndex {
-
-
const INDEX_OK = 1;
const INDEX_IGNORE = 2;
@@ -282,6 +280,4 @@ interface IIndex {
* @return int
*/
public function getLastIndex(): int;
-
-
}
diff --git a/lib/public/FullTextSearch/Model/IIndexDocument.php b/lib/public/FullTextSearch/Model/IIndexDocument.php
index 667d2c15c7f..c7af11d7472 100644
--- a/lib/public/FullTextSearch/Model/IIndexDocument.php
+++ b/lib/public/FullTextSearch/Model/IIndexDocument.php
@@ -43,8 +43,6 @@ namespace OCP\FullTextSearch\Model;
* @package OC\FullTextSearch\Model
*/
interface IIndexDocument {
-
-
const NOT_ENCODED = 0;
const ENCODED_BASE64 = 1;
@@ -67,7 +65,7 @@ interface IIndexDocument {
*
* @return string
*/
- public function getProviderId(): string;
+ public function getProviderId(): string;
/**
@@ -81,7 +79,7 @@ interface IIndexDocument {
*
* @return IIndexDocument
*/
- public function setIndex(IIndex $index): IIndexDocument;
+ public function setIndex(IIndex $index): IIndexDocument;
/**
* Get the Index.
@@ -90,7 +88,7 @@ interface IIndexDocument {
*
* @return IIndex
*/
- public function getIndex(): IIndex;
+ public function getIndex(): IIndex;
/**
* return if Index is defined.
@@ -111,7 +109,7 @@ interface IIndexDocument {
*
* @return IIndexDocument
*/
- public function setModifiedTime(int $modifiedTime): IIndexDocument;
+ public function setModifiedTime(int $modifiedTime): IIndexDocument;
/**
* Get the modified time of the original document.
@@ -120,7 +118,7 @@ interface IIndexDocument {
*
* @return int
*/
- public function getModifiedTime(): int;
+ public function getModifiedTime(): int;
/**
* Check if the original document of the IIndexDocument is older than $time.
@@ -131,7 +129,7 @@ interface IIndexDocument {
*
* @return bool
*/
- public function isOlderThan(int $time): bool;
+ public function isOlderThan(int $time): bool;
/**
@@ -145,7 +143,7 @@ interface IIndexDocument {
*
* @return $this
*/
- public function setAccess(IDocumentAccess $access): IIndexDocument;
+ public function setAccess(IDocumentAccess $access): IIndexDocument;
/**
* Get the IDocumentAccess related to the original document.
@@ -154,7 +152,7 @@ interface IIndexDocument {
*
* @return IDocumentAccess
*/
- public function getAccess(): IDocumentAccess;
+ public function getAccess(): IDocumentAccess;
/**
@@ -166,7 +164,7 @@ interface IIndexDocument {
*
* @return IIndexDocument
*/
- public function addTag(string $tag): IIndexDocument;
+ public function addTag(string $tag): IIndexDocument;
/**
* Set the list of tags assigned to the original document.
@@ -177,7 +175,7 @@ interface IIndexDocument {
*
* @return IIndexDocument
*/
- public function setTags(array $tags): IIndexDocument;
+ public function setTags(array $tags): IIndexDocument;
/**
* Get the list of tags assigned to the original document.
@@ -186,7 +184,7 @@ interface IIndexDocument {
*
* @return array
*/
- public function getTags(): array;
+ public function getTags(): array;
/**
@@ -198,7 +196,7 @@ interface IIndexDocument {
*
* @return IIndexDocument
*/
- public function addMetaTag(string $tag): IIndexDocument;
+ public function addMetaTag(string $tag): IIndexDocument;
/**
* Set the list of meta tags assigned to the original document.
@@ -209,7 +207,7 @@ interface IIndexDocument {
*
* @return IIndexDocument
*/
- public function setMetaTags(array $tags): IIndexDocument;
+ public function setMetaTags(array $tags): IIndexDocument;
/**
* Get the list of meta tags assigned to the original document.
@@ -218,7 +216,7 @@ interface IIndexDocument {
*
* @return array
*/
- public function getMetaTags(): array;
+ public function getMetaTags(): array;
/**
@@ -231,7 +229,7 @@ interface IIndexDocument {
*
* @return IIndexDocument
*/
- public function addSubTag(string $sub, string $tag): IIndexDocument;
+ public function addSubTag(string $sub, string $tag): IIndexDocument;
/**
* Set the list of sub tags assigned to the original document.
@@ -242,7 +240,7 @@ interface IIndexDocument {
*
* @return IIndexDocument
*/
- public function setSubTags(array $tags): IIndexDocument;
+ public function setSubTags(array $tags): IIndexDocument;
/**
* Get the list of sub tags assigned to the original document.
@@ -255,7 +253,7 @@ interface IIndexDocument {
*
* @return array
*/
- public function getSubTags(bool $formatted = false): array;
+ public function getSubTags(bool $formatted = false): array;
/**
@@ -267,7 +265,7 @@ interface IIndexDocument {
*
* @return IIndexDocument
*/
- public function setSource(string $source): IIndexDocument;
+ public function setSource(string $source): IIndexDocument;
/**
* Get the source of the original document.
@@ -276,7 +274,7 @@ interface IIndexDocument {
*
* @return string
*/
- public function getSource(): string;
+ public function getSource(): string;
/**
@@ -288,7 +286,7 @@ interface IIndexDocument {
*
* @return IIndexDocument
*/
- public function setTitle(string $title): IIndexDocument;
+ public function setTitle(string $title): IIndexDocument;
/**
* Get the title of the original document.
@@ -297,7 +295,7 @@ interface IIndexDocument {
*
* @return string
*/
- public function getTitle(): string;
+ public function getTitle(): string;
/**
@@ -312,7 +310,7 @@ interface IIndexDocument {
*
* @return IIndexDocument
*/
- public function setContent(string $content, int $encoded = 0): IIndexDocument;
+ public function setContent(string $content, int $encoded = 0): IIndexDocument;
/**
* Get the content of the original document.
@@ -321,7 +319,7 @@ interface IIndexDocument {
*
* @return string
*/
- public function getContent(): string;
+ public function getContent(): string;
/**
* Returns the type of the encoding on the content.
@@ -330,7 +328,7 @@ interface IIndexDocument {
*
* @return int
*/
- public function isContentEncoded(): int;
+ public function isContentEncoded(): int;
/**
* Return the size of the content.
@@ -339,7 +337,7 @@ interface IIndexDocument {
*
* @return int
*/
- public function getContentSize(): int;
+ public function getContentSize(): int;
/**
@@ -349,7 +347,7 @@ interface IIndexDocument {
*
* @return IIndexDocument
*/
- public function initHash(): IIndexDocument;
+ public function initHash(): IIndexDocument;
/**
* Set the hash of the original document.
@@ -360,7 +358,7 @@ interface IIndexDocument {
*
* @return IIndexDocument
*/
- public function setHash(string $hash): IIndexDocument;
+ public function setHash(string $hash): IIndexDocument;
/**
* Get the hash of the original document.
@@ -369,7 +367,7 @@ interface IIndexDocument {
*
* @return string
*/
- public function getHash(): string;
+ public function getHash(): string;
/**
@@ -385,7 +383,7 @@ interface IIndexDocument {
*
* @return IIndexDocument
*/
- public function addPart(string $part, string $content): IIndexDocument;
+ public function addPart(string $part, string $content): IIndexDocument;
/**
* Set all parts and their content.
@@ -396,7 +394,7 @@ interface IIndexDocument {
*
* @return IIndexDocument
*/
- public function setParts(array $parts): IIndexDocument;
+ public function setParts(array $parts): IIndexDocument;
/**
* Get all parts of the IIndexDocument.
@@ -405,7 +403,7 @@ interface IIndexDocument {
*
* @return array
*/
- public function getParts(): array;
+ public function getParts(): array;
/**
@@ -417,7 +415,7 @@ interface IIndexDocument {
*
* @return IIndexDocument
*/
- public function setLink(string $link): IIndexDocument;
+ public function setLink(string $link): IIndexDocument;
/**
* Get the link.
@@ -426,7 +424,7 @@ interface IIndexDocument {
*
* @return string
*/
- public function getLink(): string;
+ public function getLink(): string;
/**
@@ -438,7 +436,7 @@ interface IIndexDocument {
*
* @return IIndexDocument
*/
- public function setMore(array $more): IIndexDocument;
+ public function setMore(array $more): IIndexDocument;
/**
* Get more information.
@@ -447,7 +445,7 @@ interface IIndexDocument {
*
* @return array
*/
- public function getMore(): array;
+ public function getMore(): array;
/**
@@ -461,7 +459,7 @@ interface IIndexDocument {
*
* @return IIndexDocument
*/
- public function addExcerpt(string $source, string $excerpt): IIndexDocument;
+ public function addExcerpt(string $source, string $excerpt): IIndexDocument;
/**
* Set all excerpts of the content of the original document.
@@ -472,7 +470,7 @@ interface IIndexDocument {
*
* @return IIndexDocument
*/
- public function setExcerpts(array $excerpts): IIndexDocument;
+ public function setExcerpts(array $excerpts): IIndexDocument;
/**
* Get all excerpts of the content of the original document.
@@ -481,7 +479,7 @@ interface IIndexDocument {
*
* @return array
*/
- public function getExcerpts(): array;
+ public function getExcerpts(): array;
/**
@@ -494,7 +492,7 @@ interface IIndexDocument {
*
* @return IIndexDocument
*/
- public function setScore(string $score): IIndexDocument;
+ public function setScore(string $score): IIndexDocument;
/**
* Get the score.
@@ -503,7 +501,7 @@ interface IIndexDocument {
*
* @return string
*/
- public function getScore(): string;
+ public function getScore(): string;
/**
@@ -520,7 +518,7 @@ interface IIndexDocument {
*
* @return IIndexDocument
*/
- public function setInfo(string $info, string $value): IIndexDocument;
+ public function setInfo(string $info, string $value): IIndexDocument;
/**
* Get an information about a document. (string)
@@ -532,7 +530,7 @@ interface IIndexDocument {
*
* @return string
*/
- public function getInfo(string $info, string $default = ''): string;
+ public function getInfo(string $info, string $default = ''): string;
/**
* Set some information about the original document that will be available
@@ -548,7 +546,7 @@ interface IIndexDocument {
*
* @return IIndexDocument
*/
- public function setInfoArray(string $info, array $value): IIndexDocument;
+ public function setInfoArray(string $info, array $value): IIndexDocument;
/**
* Get an information about a document. (array)
@@ -560,7 +558,7 @@ interface IIndexDocument {
*
* @return array
*/
- public function getInfoArray(string $info, array $default = []): array;
+ public function getInfoArray(string $info, array $default = []): array;
/**
* Set some information about the original document that will be available
@@ -576,7 +574,7 @@ interface IIndexDocument {
*
* @return IIndexDocument
*/
- public function setInfoInt(string $info, int $value): IIndexDocument;
+ public function setInfoInt(string $info, int $value): IIndexDocument;
/**
* Get an information about a document. (int)
@@ -588,7 +586,7 @@ interface IIndexDocument {
*
* @return int
*/
- public function getInfoInt(string $info, int $default = 0): int;
+ public function getInfoInt(string $info, int $default = 0): int;
/**
* Set some information about the original document that will be available
@@ -604,7 +602,7 @@ interface IIndexDocument {
*
* @return IIndexDocument
*/
- public function setInfoBool(string $info, bool $value): IIndexDocument;
+ public function setInfoBool(string $info, bool $value): IIndexDocument;
/**
* Get an information about a document. (bool)
@@ -616,7 +614,7 @@ interface IIndexDocument {
*
* @return bool
*/
- public function getInfoBool(string $info, bool $default = false): bool;
+ public function getInfoBool(string $info, bool $default = false): bool;
/**
* Get all info.
@@ -625,6 +623,5 @@ interface IIndexDocument {
*
* @return array
*/
- public function getInfoAll(): array;
-
+ public function getInfoAll(): array;
}
diff --git a/lib/public/FullTextSearch/Model/IIndexOptions.php b/lib/public/FullTextSearch/Model/IIndexOptions.php
index 8719289d746..336456c9ae0 100644
--- a/lib/public/FullTextSearch/Model/IIndexOptions.php
+++ b/lib/public/FullTextSearch/Model/IIndexOptions.php
@@ -76,5 +76,4 @@ interface IIndexOptions {
* @return bool
*/
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 d92eb789d64..230e9932c46 100644
--- a/lib/public/FullTextSearch/Model/IRunner.php
+++ b/lib/public/FullTextSearch/Model/IRunner.php
@@ -41,8 +41,6 @@ namespace OCP\FullTextSearch\Model;
* @package OCP\FullTextSearch\Model
*/
interface IRunner {
-
-
const RESULT_TYPE_SUCCESS = 1;
const RESULT_TYPE_WARNING = 4;
const RESULT_TYPE_FAIL = 9;
@@ -131,6 +129,4 @@ interface IRunner {
* @param int $type
*/
public function newIndexResult(IIndex $index, string $message, string $status, int $type);
-
-
}
diff --git a/lib/public/FullTextSearch/Model/ISearchOption.php b/lib/public/FullTextSearch/Model/ISearchOption.php
index 3f893c516d9..7d57f9eb3f9 100644
--- a/lib/public/FullTextSearch/Model/ISearchOption.php
+++ b/lib/public/FullTextSearch/Model/ISearchOption.php
@@ -162,5 +162,4 @@ interface ISearchOption {
* @return string
*/
public function getPlaceholder(): string;
-
}
diff --git a/lib/public/FullTextSearch/Model/ISearchRequest.php b/lib/public/FullTextSearch/Model/ISearchRequest.php
index d48b74288fd..c45a58c8c0c 100644
--- a/lib/public/FullTextSearch/Model/ISearchRequest.php
+++ b/lib/public/FullTextSearch/Model/ISearchRequest.php
@@ -358,5 +358,4 @@ interface ISearchRequest {
* @since 17.0.0
*/
public function getSimpleQueries(): array;
-
}
diff --git a/lib/public/FullTextSearch/Model/ISearchRequestSimpleQuery.php b/lib/public/FullTextSearch/Model/ISearchRequestSimpleQuery.php
index c72d15a6930..f9ddde86a0d 100644
--- a/lib/public/FullTextSearch/Model/ISearchRequestSimpleQuery.php
+++ b/lib/public/FullTextSearch/Model/ISearchRequestSimpleQuery.php
@@ -39,8 +39,6 @@ namespace OCP\FullTextSearch\Model;
* @package OCP\FullTextSearch\Model
*/
interface ISearchRequestSimpleQuery {
-
-
const COMPARE_TYPE_TEXT = 1;
const COMPARE_TYPE_KEYWORD = 2;
const COMPARE_TYPE_INT_EQ = 3;
@@ -129,5 +127,4 @@ interface ISearchRequestSimpleQuery {
* @since 17.0.0
*/
public function addValueBool(bool $value): ISearchRequestSimpleQuery;
-
}
diff --git a/lib/public/FullTextSearch/Model/ISearchResult.php b/lib/public/FullTextSearch/Model/ISearchResult.php
index 1d8cb5d8037..cde996bc37c 100644
--- a/lib/public/FullTextSearch/Model/ISearchResult.php
+++ b/lib/public/FullTextSearch/Model/ISearchResult.php
@@ -187,5 +187,4 @@ interface ISearchResult {
* @return ISearchResult
*/
public function setTimedOut(bool $timedOut): ISearchResult;
-
}
diff --git a/lib/public/FullTextSearch/Model/ISearchTemplate.php b/lib/public/FullTextSearch/Model/ISearchTemplate.php
index b63bae43a0a..f1579871482 100644
--- a/lib/public/FullTextSearch/Model/ISearchTemplate.php
+++ b/lib/public/FullTextSearch/Model/ISearchTemplate.php
@@ -168,5 +168,4 @@ interface ISearchTemplate {
* @return array
*/
public function getNavigationOptions(): array;
-
}
diff --git a/lib/public/FullTextSearch/Service/IIndexService.php b/lib/public/FullTextSearch/Service/IIndexService.php
index f660909c9ca..6cce5267b2c 100644
--- a/lib/public/FullTextSearch/Service/IIndexService.php
+++ b/lib/public/FullTextSearch/Service/IIndexService.php
@@ -102,5 +102,4 @@ interface IIndexService {
* @param array $indexes
*/
public function updateIndexes(array $indexes);
-
}
diff --git a/lib/public/FullTextSearch/Service/IProviderService.php b/lib/public/FullTextSearch/Service/IProviderService.php
index 50c32649357..2666511e60d 100644
--- a/lib/public/FullTextSearch/Service/IProviderService.php
+++ b/lib/public/FullTextSearch/Service/IProviderService.php
@@ -54,6 +54,4 @@ interface IProviderService {
* @since 15.0.0
*/
public function addJavascriptAPI();
-
-
}
diff --git a/lib/public/FullTextSearch/Service/ISearchService.php b/lib/public/FullTextSearch/Service/ISearchService.php
index 89fa1a444e2..abe7e4c5f9d 100644
--- a/lib/public/FullTextSearch/Service/ISearchService.php
+++ b/lib/public/FullTextSearch/Service/ISearchService.php
@@ -78,5 +78,4 @@ interface ISearchService {
* @return ISearchResult[]
*/
public function search(string $userId, ISearchRequest $searchRequest): array;
-
}
diff --git a/lib/public/GlobalScale/IConfig.php b/lib/public/GlobalScale/IConfig.php
index 943680c44d2..65080ef7fc1 100644
--- a/lib/public/GlobalScale/IConfig.php
+++ b/lib/public/GlobalScale/IConfig.php
@@ -48,5 +48,4 @@ interface IConfig {
* @return bool
*/
public function onlyInternalFederation();
-
}
diff --git a/lib/public/Group/Backend/IGetDisplayNameBackend.php b/lib/public/Group/Backend/IGetDisplayNameBackend.php
index 4a27a29ff7f..13e9ca204f2 100644
--- a/lib/public/Group/Backend/IGetDisplayNameBackend.php
+++ b/lib/public/Group/Backend/IGetDisplayNameBackend.php
@@ -38,5 +38,4 @@ interface IGetDisplayNameBackend {
* @since 17.0.0
*/
public function getDisplayName(string $gid): string;
-
}
diff --git a/lib/public/Group/Backend/ISetDisplayNameBackend.php b/lib/public/Group/Backend/ISetDisplayNameBackend.php
index f29d6e5704e..244fa5c351c 100644
--- a/lib/public/Group/Backend/ISetDisplayNameBackend.php
+++ b/lib/public/Group/Backend/ISetDisplayNameBackend.php
@@ -38,5 +38,4 @@ interface ISetDisplayNameBackend {
* @since 18.0.0
*/
public function setDisplayName(string $gid, string $displayName): bool;
-
}
diff --git a/lib/public/Group/Events/BeforeGroupCreatedEvent.php b/lib/public/Group/Events/BeforeGroupCreatedEvent.php
index 3385d1a9397..5ed5a5311e5 100644
--- a/lib/public/Group/Events/BeforeGroupCreatedEvent.php
+++ b/lib/public/Group/Events/BeforeGroupCreatedEvent.php
@@ -51,5 +51,4 @@ class BeforeGroupCreatedEvent extends Event {
public function getName(): string {
return $this->name;
}
-
}
diff --git a/lib/public/Group/Events/BeforeGroupDeletedEvent.php b/lib/public/Group/Events/BeforeGroupDeletedEvent.php
index 8cfe28cf9d9..af44d4c054e 100644
--- a/lib/public/Group/Events/BeforeGroupDeletedEvent.php
+++ b/lib/public/Group/Events/BeforeGroupDeletedEvent.php
@@ -52,5 +52,4 @@ class BeforeGroupDeletedEvent extends Event {
public function getGroup(): IGroup {
return $this->group;
}
-
}
diff --git a/lib/public/Group/Events/BeforeUserAddedEvent.php b/lib/public/Group/Events/BeforeUserAddedEvent.php
index 2e6d6d58d7a..c8ebc24e3d9 100644
--- a/lib/public/Group/Events/BeforeUserAddedEvent.php
+++ b/lib/public/Group/Events/BeforeUserAddedEvent.php
@@ -65,5 +65,4 @@ class BeforeUserAddedEvent extends Event {
public function getUser(): IUser {
return $this->user;
}
-
}
diff --git a/lib/public/Group/Events/BeforeUserRemovedEvent.php b/lib/public/Group/Events/BeforeUserRemovedEvent.php
index 570297e46f8..cc657f952e6 100644
--- a/lib/public/Group/Events/BeforeUserRemovedEvent.php
+++ b/lib/public/Group/Events/BeforeUserRemovedEvent.php
@@ -65,5 +65,4 @@ class BeforeUserRemovedEvent extends Event {
public function getUser(): IUser {
return $this->user;
}
-
}
diff --git a/lib/public/Group/Events/GroupCreatedEvent.php b/lib/public/Group/Events/GroupCreatedEvent.php
index 3f19c1fec27..ac9af26307e 100644
--- a/lib/public/Group/Events/GroupCreatedEvent.php
+++ b/lib/public/Group/Events/GroupCreatedEvent.php
@@ -52,5 +52,4 @@ class GroupCreatedEvent extends Event {
public function getGroup(): IGroup {
return $this->group;
}
-
}
diff --git a/lib/public/Group/Events/GroupDeletedEvent.php b/lib/public/Group/Events/GroupDeletedEvent.php
index a4b921fc18b..267eb806264 100644
--- a/lib/public/Group/Events/GroupDeletedEvent.php
+++ b/lib/public/Group/Events/GroupDeletedEvent.php
@@ -52,5 +52,4 @@ class GroupDeletedEvent extends Event {
public function getGroup(): IGroup {
return $this->group;
}
-
}
diff --git a/lib/public/Group/Events/UserAddedEvent.php b/lib/public/Group/Events/UserAddedEvent.php
index 7f487844943..e88487a02cf 100644
--- a/lib/public/Group/Events/UserAddedEvent.php
+++ b/lib/public/Group/Events/UserAddedEvent.php
@@ -65,5 +65,4 @@ class UserAddedEvent extends Event {
public function getUser(): IUser {
return $this->user;
}
-
}
diff --git a/lib/public/Group/Events/UserRemovedEvent.php b/lib/public/Group/Events/UserRemovedEvent.php
index e66be62fe6d..953bb5f220f 100644
--- a/lib/public/Group/Events/UserRemovedEvent.php
+++ b/lib/public/Group/Events/UserRemovedEvent.php
@@ -65,5 +65,4 @@ class UserRemovedEvent extends Event {
public function getUser(): IUser {
return $this->user;
}
-
}
diff --git a/lib/public/GroupInterface.php b/lib/public/GroupInterface.php
index 58eaa9a4ec9..8960a791b83 100644
--- a/lib/public/GroupInterface.php
+++ b/lib/public/GroupInterface.php
@@ -123,5 +123,4 @@ interface GroupInterface {
* @since 4.5.0
*/
public function usersInGroup($gid, $search = '', $limit = -1, $offset = 0);
-
}
diff --git a/lib/public/IAvatarManager.php b/lib/public/IAvatarManager.php
index 4d9b3a6e546..75ea886c16a 100644
--- a/lib/public/IAvatarManager.php
+++ b/lib/public/IAvatarManager.php
@@ -56,5 +56,4 @@ interface IAvatarManager {
* @since 16.0.0
*/
public function getGuestAvatar(string $name): IAvatar;
-
}
diff --git a/lib/public/ICacheFactory.php b/lib/public/ICacheFactory.php
index d94f8fb6680..655aabd6809 100644
--- a/lib/public/ICacheFactory.php
+++ b/lib/public/ICacheFactory.php
@@ -33,7 +33,7 @@ namespace OCP;
* @package OCP
* @since 7.0.0
*/
-interface ICacheFactory{
+interface ICacheFactory {
/**
* Get a distributed memory cache instance
*
diff --git a/lib/public/IDBConnection.php b/lib/public/IDBConnection.php
index 405b4ba1b04..a8822ad7e5c 100644
--- a/lib/public/IDBConnection.php
+++ b/lib/public/IDBConnection.php
@@ -49,7 +49,6 @@ use OCP\DB\QueryBuilder\IQueryBuilder;
* @since 6.0.0
*/
interface IDBConnection {
-
const ADD_MISSING_INDEXES_EVENT = self::class . '::ADD_MISSING_INDEXES';
const CHECK_MISSING_INDEXES_EVENT = self::class . '::CHECK_MISSING_INDEXES';
const ADD_MISSING_COLUMNS_EVENT = self::class . '::ADD_MISSING_COLUMNS';
diff --git a/lib/public/ISearch.php b/lib/public/ISearch.php
index fa6fc49c976..8acbb7b70e5 100644
--- a/lib/public/ISearch.php
+++ b/lib/public/ISearch.php
@@ -64,5 +64,4 @@ interface ISearch {
* @since 7.0.0
*/
public function clearProviders();
-
}
diff --git a/lib/public/ITags.php b/lib/public/ITags.php
index f35b684af5c..a21788260d1 100644
--- a/lib/public/ITags.php
+++ b/lib/public/ITags.php
@@ -233,5 +233,4 @@ interface ITags {
* @since 6.0.0
*/
public function delete($names);
-
}
diff --git a/lib/public/IUserBackend.php b/lib/public/IUserBackend.php
index 93ec41da86a..e96211fac2f 100644
--- a/lib/public/IUserBackend.php
+++ b/lib/public/IUserBackend.php
@@ -46,5 +46,4 @@ interface IUserBackend {
* @since 8.0.0
*/
public function getBackendName();
-
}
diff --git a/lib/public/IUserManager.php b/lib/public/IUserManager.php
index a8df1a1af7e..bacfba90ff9 100644
--- a/lib/public/IUserManager.php
+++ b/lib/public/IUserManager.php
@@ -48,12 +48,12 @@ namespace OCP;
* @since 8.0.0
*/
interface IUserManager {
- /**
- * register a user backend
- *
- * @param \OCP\UserInterface $backend
- * @since 8.0.0
- */
+ /**
+ * register a user backend
+ *
+ * @param \OCP\UserInterface $backend
+ * @since 8.0.0
+ */
public function registerBackend($backend);
/**
diff --git a/lib/public/LDAP/ILDAPProvider.php b/lib/public/LDAP/ILDAPProvider.php
index 491906e5556..69d4aabaf66 100644
--- a/lib/public/LDAP/ILDAPProvider.php
+++ b/lib/public/LDAP/ILDAPProvider.php
@@ -157,5 +157,4 @@ interface ILDAPProvider {
* @since 13.0.0
*/
public function getLDAPGroupMemberAssoc($gid);
-
}
diff --git a/lib/public/Lock/ManuallyLockedException.php b/lib/public/Lock/ManuallyLockedException.php
index 1609727f4e8..0f5cd6281fd 100644
--- a/lib/public/Lock/ManuallyLockedException.php
+++ b/lib/public/Lock/ManuallyLockedException.php
@@ -85,5 +85,4 @@ class ManuallyLockedException extends LockedException {
public function getOwner(): ?string {
return $this->owner;
}
-
}
diff --git a/lib/public/Log/IDataLogger.php b/lib/public/Log/IDataLogger.php
index c6a7d289357..20cf88a4abc 100644
--- a/lib/public/Log/IDataLogger.php
+++ b/lib/public/Log/IDataLogger.php
@@ -40,5 +40,4 @@ interface IDataLogger {
* @since 18.0.1
*/
public function logData(string $message, array $data, array $context = []): void;
-
}
diff --git a/lib/public/Log/RotationTrait.php b/lib/public/Log/RotationTrait.php
index 0b86b7c42e3..299bbbcb555 100644
--- a/lib/public/Log/RotationTrait.php
+++ b/lib/public/Log/RotationTrait.php
@@ -67,5 +67,4 @@ trait RotationTrait {
}
return false;
}
-
}
diff --git a/lib/public/Mail/Events/BeforeMessageSent.php b/lib/public/Mail/Events/BeforeMessageSent.php
index 0fb59adc2b7..f9dc834c9b6 100644
--- a/lib/public/Mail/Events/BeforeMessageSent.php
+++ b/lib/public/Mail/Events/BeforeMessageSent.php
@@ -53,5 +53,4 @@ class BeforeMessageSent extends Event {
public function getMessage(): IMessage {
return $this->message;
}
-
}
diff --git a/lib/public/Mail/IAttachment.php b/lib/public/Mail/IAttachment.php
index 5fed79b30e7..5cceb06655e 100644
--- a/lib/public/Mail/IAttachment.php
+++ b/lib/public/Mail/IAttachment.php
@@ -55,5 +55,4 @@ interface IAttachment {
* @since 13.0.0
*/
public function setBody(string $body): IAttachment;
-
}
diff --git a/lib/public/Migration/IOutput.php b/lib/public/Migration/IOutput.php
index 21e26acf79e..b5d6b585366 100644
--- a/lib/public/Migration/IOutput.php
+++ b/lib/public/Migration/IOutput.php
@@ -62,5 +62,4 @@ interface IOutput {
* @since 9.1.0
*/
public function finishProgress();
-
}
diff --git a/lib/public/Migration/IRepairStep.php b/lib/public/Migration/IRepairStep.php
index df7398a8cb9..afb601b2a14 100644
--- a/lib/public/Migration/IRepairStep.php
+++ b/lib/public/Migration/IRepairStep.php
@@ -47,5 +47,4 @@ interface IRepairStep {
* @since 9.1.0
*/
public function run(IOutput $output);
-
}
diff --git a/lib/public/Notification/AlreadyProcessedException.php b/lib/public/Notification/AlreadyProcessedException.php
index 251221004c9..3100e433608 100644
--- a/lib/public/Notification/AlreadyProcessedException.php
+++ b/lib/public/Notification/AlreadyProcessedException.php
@@ -37,5 +37,4 @@ class AlreadyProcessedException extends \RuntimeException {
public function __construct() {
parent::__construct('Notification is processed already');
}
-
}
diff --git a/lib/public/OCS/IDiscoveryService.php b/lib/public/OCS/IDiscoveryService.php
index dd8e007b541..510915ffbc4 100644
--- a/lib/public/OCS/IDiscoveryService.php
+++ b/lib/public/OCS/IDiscoveryService.php
@@ -51,5 +51,4 @@ interface IDiscoveryService {
* @return array
*/
public function discover(string $remote, string $service, bool $skipCache = false): array;
-
}
diff --git a/lib/public/PreConditionNotMetException.php b/lib/public/PreConditionNotMetException.php
index 7a6528e76e7..12245df33fc 100644
--- a/lib/public/PreConditionNotMetException.php
+++ b/lib/public/PreConditionNotMetException.php
@@ -30,4 +30,5 @@ namespace OCP;
* Exception if the precondition of the config update method isn't met
* @since 8.0.0
*/
-class PreConditionNotMetException extends \Exception {}
+class PreConditionNotMetException extends \Exception {
+}
diff --git a/lib/public/Route/IRouter.php b/lib/public/Route/IRouter.php
index 121a9f14178..386098a8e32 100644
--- a/lib/public/Route/IRouter.php
+++ b/lib/public/Route/IRouter.php
@@ -124,5 +124,4 @@ interface IRouter {
* @deprecated 9.0.0
*/
public function generate($name, $parameters = [], $absolute = false);
-
}
diff --git a/lib/public/Security/Events/GenerateSecurePasswordEvent.php b/lib/public/Security/Events/GenerateSecurePasswordEvent.php
index bf0a751c299..ba3c5a63e11 100644
--- a/lib/public/Security/Events/GenerateSecurePasswordEvent.php
+++ b/lib/public/Security/Events/GenerateSecurePasswordEvent.php
@@ -49,5 +49,4 @@ class GenerateSecurePasswordEvent extends Event {
public function setPassword(string $password): void {
$this->password = $password;
}
-
}
diff --git a/lib/public/Security/Events/ValidatePasswordPolicyEvent.php b/lib/public/Security/Events/ValidatePasswordPolicyEvent.php
index 681102dbbe0..1eab7780723 100644
--- a/lib/public/Security/Events/ValidatePasswordPolicyEvent.php
+++ b/lib/public/Security/Events/ValidatePasswordPolicyEvent.php
@@ -50,5 +50,4 @@ class ValidatePasswordPolicyEvent extends Event {
public function getPassword(): string {
return $this->password;
}
-
}
diff --git a/lib/public/Security/ICredentialsManager.php b/lib/public/Security/ICredentialsManager.php
index 50e565e251d..b1daad30c9f 100644
--- a/lib/public/Security/ICredentialsManager.php
+++ b/lib/public/Security/ICredentialsManager.php
@@ -68,5 +68,4 @@ interface ICredentialsManager {
* @since 8.2.0
*/
public function erase($userId);
-
}
diff --git a/lib/public/Security/ISecureRandom.php b/lib/public/Security/ISecureRandom.php
index 3fbc6c8ee10..956026bc9e3 100644
--- a/lib/public/Security/ISecureRandom.php
+++ b/lib/public/Security/ISecureRandom.php
@@ -66,5 +66,4 @@ interface ISecureRandom {
*/
public function generate(int $length,
string $characters = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/'): string;
-
}
diff --git a/lib/public/Session/Exceptions/SessionNotAvailableException.php b/lib/public/Session/Exceptions/SessionNotAvailableException.php
index efb91851555..b7c7b993614 100644
--- a/lib/public/Session/Exceptions/SessionNotAvailableException.php
+++ b/lib/public/Session/Exceptions/SessionNotAvailableException.php
@@ -28,5 +28,4 @@ use Exception;
* @since 9.1.0
*/
class SessionNotAvailableException extends Exception {
-
}
diff --git a/lib/public/Settings/ISubAdminSettings.php b/lib/public/Settings/ISubAdminSettings.php
index 95887576965..d7f55eddfb0 100644
--- a/lib/public/Settings/ISubAdminSettings.php
+++ b/lib/public/Settings/ISubAdminSettings.php
@@ -32,5 +32,4 @@ namespace OCP\Settings;
* @since 17.0.0
*/
interface ISubAdminSettings extends ISettings {
-
}
diff --git a/lib/public/Share.php b/lib/public/Share.php
index 622a6718924..931296e4dec 100644
--- a/lib/public/Share.php
+++ b/lib/public/Share.php
@@ -122,7 +122,6 @@ class Share extends \OC\Share\Constants {
*/
public static function getItemShared($itemType, $itemSource, $format = self::FORMAT_NONE,
$parameters = null, $includeCollections = false) {
-
return \OC\Share\Share::getItemShared($itemType, $itemSource, $format, $parameters, $includeCollections);
}
diff --git a/lib/public/Share/Exceptions/GenericShareException.php b/lib/public/Share/Exceptions/GenericShareException.php
index 3714edbfc33..90d93d04269 100644
--- a/lib/public/Share/Exceptions/GenericShareException.php
+++ b/lib/public/Share/Exceptions/GenericShareException.php
@@ -47,5 +47,4 @@ class GenericShareException extends HintException {
}
parent::__construct($message, $hint, $code, $previous);
}
-
}
diff --git a/lib/public/Share/Exceptions/IllegalIDChangeException.php b/lib/public/Share/Exceptions/IllegalIDChangeException.php
index da34cf64b0b..14121dd8934 100644
--- a/lib/public/Share/Exceptions/IllegalIDChangeException.php
+++ b/lib/public/Share/Exceptions/IllegalIDChangeException.php
@@ -26,4 +26,5 @@ namespace OCP\Share\Exceptions;
* Exception for illegal attempts to modify an id of a share
* @since 9.1.0
*/
-class IllegalIDChangeException extends GenericShareException {}
+class IllegalIDChangeException extends GenericShareException {
+}
diff --git a/lib/public/Share/Exceptions/ShareNotFound.php b/lib/public/Share/Exceptions/ShareNotFound.php
index d37fe2708ef..c3e65684f19 100644
--- a/lib/public/Share/Exceptions/ShareNotFound.php
+++ b/lib/public/Share/Exceptions/ShareNotFound.php
@@ -29,5 +29,4 @@ namespace OCP\Share\Exceptions;
* @since 9.0.0
*/
class ShareNotFound extends GenericShareException {
-
}
diff --git a/lib/public/Share/IManager.php b/lib/public/Share/IManager.php
index df82e785afe..1eb7c789048 100644
--- a/lib/public/Share/IManager.php
+++ b/lib/public/Share/IManager.php
@@ -428,5 +428,4 @@ interface IManager {
* @since 18.0.0
*/
public function getAllShares(): iterable;
-
}
diff --git a/lib/public/Share_Backend.php b/lib/public/Share_Backend.php
index 0f5f4a4e9d9..cb49ce8e844 100644
--- a/lib/public/Share_Backend.php
+++ b/lib/public/Share_Backend.php
@@ -95,5 +95,4 @@ interface Share_Backend {
* @since 8.0.0
*/
public function isShareTypeAllowed($shareType);
-
}
diff --git a/lib/public/Share_Backend_File_Dependent.php b/lib/public/Share_Backend_File_Dependent.php
index cf08042e595..f49c0b18f7e 100644
--- a/lib/public/Share_Backend_File_Dependent.php
+++ b/lib/public/Share_Backend_File_Dependent.php
@@ -41,5 +41,4 @@ interface Share_Backend_File_Dependent extends Share_Backend {
* @since 5.0.0
*/
public function getFilePath($itemSource, $uidOwner);
-
}
diff --git a/lib/public/Support/CrashReport/ICollectBreadcrumbs.php b/lib/public/Support/CrashReport/ICollectBreadcrumbs.php
index 59dc6857e55..f74afe52193 100644
--- a/lib/public/Support/CrashReport/ICollectBreadcrumbs.php
+++ b/lib/public/Support/CrashReport/ICollectBreadcrumbs.php
@@ -41,5 +41,4 @@ interface ICollectBreadcrumbs extends IReporter {
* @since 15.0.0
*/
public function collect(string $message, string $category, array $context = []);
-
}
diff --git a/lib/public/Support/CrashReport/IMessageReporter.php b/lib/public/Support/CrashReport/IMessageReporter.php
index ae173329a60..425900db0a6 100644
--- a/lib/public/Support/CrashReport/IMessageReporter.php
+++ b/lib/public/Support/CrashReport/IMessageReporter.php
@@ -40,5 +40,4 @@ interface IMessageReporter extends IReporter {
* @since 17.0.0
*/
public function reportMessage(string $message, array $context = []): void;
-
}
diff --git a/lib/public/SystemTag/ISystemTag.php b/lib/public/SystemTag/ISystemTag.php
index 76895679bbf..afd8d2d701a 100644
--- a/lib/public/SystemTag/ISystemTag.php
+++ b/lib/public/SystemTag/ISystemTag.php
@@ -68,5 +68,4 @@ interface ISystemTag {
* @since 9.0.0
*/
public function isUserAssignable(): bool;
-
}
diff --git a/lib/public/SystemTag/ISystemTagObjectMapper.php b/lib/public/SystemTag/ISystemTagObjectMapper.php
index b8f296981dd..f2562e723ef 100644
--- a/lib/public/SystemTag/ISystemTagObjectMapper.php
+++ b/lib/public/SystemTag/ISystemTagObjectMapper.php
@@ -131,5 +131,4 @@ interface ISystemTagObjectMapper {
* @since 9.0.0
*/
public function haveTag($objIds, string $objectType, string $tagId, bool $all = true): bool;
-
}
diff --git a/lib/public/SystemTag/ManagerEvent.php b/lib/public/SystemTag/ManagerEvent.php
index 2c3dc203ac5..290d4f4c129 100644
--- a/lib/public/SystemTag/ManagerEvent.php
+++ b/lib/public/SystemTag/ManagerEvent.php
@@ -37,7 +37,6 @@ use OCP\EventDispatcher\Event;
* @since 9.0.0
*/
class ManagerEvent extends Event {
-
const EVENT_CREATE = 'OCP\SystemTag\ISystemTagManager::createTag';
const EVENT_UPDATE = 'OCP\SystemTag\ISystemTagManager::updateTag';
const EVENT_DELETE = 'OCP\SystemTag\ISystemTagManager::deleteTag';
diff --git a/lib/public/SystemTag/MapperEvent.php b/lib/public/SystemTag/MapperEvent.php
index 6c4b1065933..38268fed1da 100644
--- a/lib/public/SystemTag/MapperEvent.php
+++ b/lib/public/SystemTag/MapperEvent.php
@@ -36,7 +36,6 @@ use OCP\EventDispatcher\Event;
* @since 9.0.0
*/
class MapperEvent extends Event {
-
const EVENT_ASSIGN = 'OCP\SystemTag\ISystemTagObjectMapper::assignTags';
const EVENT_UNASSIGN = 'OCP\SystemTag\ISystemTagObjectMapper::unassignTags';
diff --git a/lib/public/SystemTag/SystemTagsEntityEvent.php b/lib/public/SystemTag/SystemTagsEntityEvent.php
index 057080eaa9a..011f7d09fc0 100644
--- a/lib/public/SystemTag/SystemTagsEntityEvent.php
+++ b/lib/public/SystemTag/SystemTagsEntityEvent.php
@@ -36,7 +36,6 @@ use OCP\EventDispatcher\Event;
* @since 9.1.0
*/
class SystemTagsEntityEvent extends Event {
-
const EVENT_ENTITY = 'OCP\SystemTag\ISystemTagManager::registerEntity';
/** @var string */
diff --git a/lib/public/SystemTag/TagAlreadyExistsException.php b/lib/public/SystemTag/TagAlreadyExistsException.php
index eea1a5d9b96..25459cce2b8 100644
--- a/lib/public/SystemTag/TagAlreadyExistsException.php
+++ b/lib/public/SystemTag/TagAlreadyExistsException.php
@@ -30,4 +30,5 @@ namespace OCP\SystemTag;
*
* @since 9.0.0
*/
-class TagAlreadyExistsException extends \RuntimeException {}
+class TagAlreadyExistsException extends \RuntimeException {
+}
diff --git a/lib/public/User/Events/BeforePasswordUpdatedEvent.php b/lib/public/User/Events/BeforePasswordUpdatedEvent.php
index 11221d97009..85d609e672f 100644
--- a/lib/public/User/Events/BeforePasswordUpdatedEvent.php
+++ b/lib/public/User/Events/BeforePasswordUpdatedEvent.php
@@ -81,5 +81,4 @@ class BeforePasswordUpdatedEvent extends Event {
public function getRecoveryPassword(): ?string {
return $this->recoveryPassword;
}
-
}
diff --git a/lib/public/User/Events/BeforeUserCreatedEvent.php b/lib/public/User/Events/BeforeUserCreatedEvent.php
index 1a00a167dbb..ace929b8ee0 100644
--- a/lib/public/User/Events/BeforeUserCreatedEvent.php
+++ b/lib/public/User/Events/BeforeUserCreatedEvent.php
@@ -62,5 +62,4 @@ class BeforeUserCreatedEvent extends Event {
public function getPassword(): string {
return $this->password;
}
-
}
diff --git a/lib/public/User/Events/BeforeUserDeletedEvent.php b/lib/public/User/Events/BeforeUserDeletedEvent.php
index dd4103c29bf..84e912a9520 100644
--- a/lib/public/User/Events/BeforeUserDeletedEvent.php
+++ b/lib/public/User/Events/BeforeUserDeletedEvent.php
@@ -53,5 +53,4 @@ class BeforeUserDeletedEvent extends Event {
public function getUser(): IUser {
return $this->user;
}
-
}
diff --git a/lib/public/User/Events/BeforeUserLoggedInEvent.php b/lib/public/User/Events/BeforeUserLoggedInEvent.php
index 3f64bf7ce3d..7de1883e17f 100644
--- a/lib/public/User/Events/BeforeUserLoggedInEvent.php
+++ b/lib/public/User/Events/BeforeUserLoggedInEvent.php
@@ -63,5 +63,4 @@ class BeforeUserLoggedInEvent extends Event {
public function getPassword(): string {
return $this->password;
}
-
}
diff --git a/lib/public/User/Events/BeforeUserLoggedInWithCookieEvent.php b/lib/public/User/Events/BeforeUserLoggedInWithCookieEvent.php
index 1bcf3231829..7a4ff823f8a 100644
--- a/lib/public/User/Events/BeforeUserLoggedInWithCookieEvent.php
+++ b/lib/public/User/Events/BeforeUserLoggedInWithCookieEvent.php
@@ -50,5 +50,4 @@ class BeforeUserLoggedInWithCookieEvent extends Event {
public function getUsername(): string {
return $this->username;
}
-
}
diff --git a/lib/public/User/Events/BeforeUserLoggedOutEvent.php b/lib/public/User/Events/BeforeUserLoggedOutEvent.php
index 2d521dc1a94..d470ec5de7f 100644
--- a/lib/public/User/Events/BeforeUserLoggedOutEvent.php
+++ b/lib/public/User/Events/BeforeUserLoggedOutEvent.php
@@ -51,5 +51,4 @@ class BeforeUserLoggedOutEvent extends Event {
public function getUser(): ?IUser {
return $this->user;
}
-
}
diff --git a/lib/public/User/Events/CreateUserEvent.php b/lib/public/User/Events/CreateUserEvent.php
index 37525deb55f..e5c5f8af026 100644
--- a/lib/public/User/Events/CreateUserEvent.php
+++ b/lib/public/User/Events/CreateUserEvent.php
@@ -62,5 +62,4 @@ class CreateUserEvent extends Event {
public function getPassword(): string {
return $this->password;
}
-
}
diff --git a/lib/public/User/Events/PasswordUpdatedEvent.php b/lib/public/User/Events/PasswordUpdatedEvent.php
index 7169448e0cd..8913dc4c53a 100644
--- a/lib/public/User/Events/PasswordUpdatedEvent.php
+++ b/lib/public/User/Events/PasswordUpdatedEvent.php
@@ -81,5 +81,4 @@ class PasswordUpdatedEvent extends Event {
public function getRecoveryPassword(): ?string {
return $this->recoveryPassword;
}
-
}
diff --git a/lib/public/User/Events/UserChangedEvent.php b/lib/public/User/Events/UserChangedEvent.php
index 8bb93d857b5..095e0d17c0b 100644
--- a/lib/public/User/Events/UserChangedEvent.php
+++ b/lib/public/User/Events/UserChangedEvent.php
@@ -91,6 +91,4 @@ class UserChangedEvent extends Event {
public function getOldValue() {
return $this->oldValue;
}
-
-
}
diff --git a/lib/public/User/Events/UserCreatedEvent.php b/lib/public/User/Events/UserCreatedEvent.php
index 9c14c30981a..4d5bb2c5b79 100644
--- a/lib/public/User/Events/UserCreatedEvent.php
+++ b/lib/public/User/Events/UserCreatedEvent.php
@@ -70,5 +70,4 @@ class UserCreatedEvent extends Event {
public function getPassword(): string {
return $this->password;
}
-
}
diff --git a/lib/public/User/Events/UserDeletedEvent.php b/lib/public/User/Events/UserDeletedEvent.php
index 22c0e17c218..8e081c44407 100644
--- a/lib/public/User/Events/UserDeletedEvent.php
+++ b/lib/public/User/Events/UserDeletedEvent.php
@@ -53,5 +53,4 @@ class UserDeletedEvent extends Event {
public function getUser(): IUser {
return $this->user;
}
-
}
diff --git a/lib/public/User/Events/UserLoggedInWithCookieEvent.php b/lib/public/User/Events/UserLoggedInWithCookieEvent.php
index 57a8c54c87c..2827af3f90c 100644
--- a/lib/public/User/Events/UserLoggedInWithCookieEvent.php
+++ b/lib/public/User/Events/UserLoggedInWithCookieEvent.php
@@ -62,5 +62,4 @@ class UserLoggedInWithCookieEvent extends Event {
public function getPassword(): ?string {
return $this->password;
}
-
}
diff --git a/lib/public/User/Events/UserLoggedOutEvent.php b/lib/public/User/Events/UserLoggedOutEvent.php
index 4bd18fac2d2..3b1f8745dfe 100644
--- a/lib/public/User/Events/UserLoggedOutEvent.php
+++ b/lib/public/User/Events/UserLoggedOutEvent.php
@@ -51,5 +51,4 @@ class UserLoggedOutEvent extends Event {
public function getUser(): ?IUser {
return $this->user;
}
-
}
diff --git a/lib/public/UserInterface.php b/lib/public/UserInterface.php
index 326432ea103..0ef978a514f 100644
--- a/lib/public/UserInterface.php
+++ b/lib/public/UserInterface.php
@@ -106,5 +106,4 @@ interface UserInterface {
* @since 4.5.0
*/
public function hasUserListings();
-
}
diff --git a/lib/public/Util.php b/lib/public/Util.php
index 4427e39b24b..46d818fc497 100644
--- a/lib/public/Util.php
+++ b/lib/public/Util.php
@@ -98,7 +98,8 @@ class Util {
/** @var \OCP\Support\Subscription\IRegistry */
$subscriptionRegistry = \OC::$server->query(\OCP\Support\Subscription\IRegistry::class);
return $subscriptionRegistry->delegateHasExtendedSupport();
- } catch (AppFramework\QueryException $e) {}
+ } catch (AppFramework\QueryException $e) {
+ }
return \OC::$server->getConfig()->getSystemValueBool('extendedSupport', false);
}
@@ -366,7 +367,7 @@ class Util {
* @since 4.5.0
*/
public static function callRegister() {
- if(self::$token === '') {
+ if (self::$token === '') {
self::$token = \OC::$server->getCsrfTokenManager()->getToken()->getEncryptedValue();
}
return self::$token;
diff --git a/lib/public/WorkflowEngine/GenericEntityEvent.php b/lib/public/WorkflowEngine/GenericEntityEvent.php
index 08786aecad4..2b8cbe04716 100644
--- a/lib/public/WorkflowEngine/GenericEntityEvent.php
+++ b/lib/public/WorkflowEngine/GenericEntityEvent.php
@@ -47,10 +47,10 @@ class GenericEntityEvent implements IEntityEvent {
* @since 18.0.0
*/
public function __construct(string $displayName, string $eventName) {
- if(trim($displayName) === '') {
+ if (trim($displayName) === '') {
throw new \InvalidArgumentException('DisplayName must not be empty');
}
- if(trim($eventName) === '') {
+ if (trim($eventName) === '') {
throw new \InvalidArgumentException('EventName must not be empty');
}
diff --git a/lib/public/WorkflowEngine/IComplexOperation.php b/lib/public/WorkflowEngine/IComplexOperation.php
index 476175187f7..679a5c1e078 100644
--- a/lib/public/WorkflowEngine/IComplexOperation.php
+++ b/lib/public/WorkflowEngine/IComplexOperation.php
@@ -54,5 +54,4 @@ interface IComplexOperation extends IOperation {
* @since 18.0.0
*/
public function getTriggerHint(): string;
-
}
diff --git a/lib/public/WorkflowEngine/IEntity.php b/lib/public/WorkflowEngine/IEntity.php
index 2aec5e76e40..173e696a6e4 100644
--- a/lib/public/WorkflowEngine/IEntity.php
+++ b/lib/public/WorkflowEngine/IEntity.php
@@ -83,5 +83,4 @@ interface IEntity {
* @since 18.0.0
*/
public function isLegitimatedForUserId(string $userId): bool;
-
}
diff --git a/lib/public/WorkflowEngine/IEntityCheck.php b/lib/public/WorkflowEngine/IEntityCheck.php
index 88b9352424d..46dab0d5691 100644
--- a/lib/public/WorkflowEngine/IEntityCheck.php
+++ b/lib/public/WorkflowEngine/IEntityCheck.php
@@ -49,5 +49,4 @@ interface IEntityCheck {
* @since 18.0.0
*/
public function setEntitySubject(IEntity $entity, $subject): void;
-
}
diff --git a/lib/public/WorkflowEngine/IFileCheck.php b/lib/public/WorkflowEngine/IFileCheck.php
index d11a5011367..f8f4bf2dd0c 100644
--- a/lib/public/WorkflowEngine/IFileCheck.php
+++ b/lib/public/WorkflowEngine/IFileCheck.php
@@ -43,5 +43,4 @@ interface IFileCheck extends IEntityCheck {
* @since 18.0.0
*/
public function setFileInfo(IStorage $storage, string $path, bool $isDir = false): void;
-
}
diff --git a/lib/public/WorkflowEngine/IManager.php b/lib/public/WorkflowEngine/IManager.php
index 0eb504242df..b9ce157c222 100644
--- a/lib/public/WorkflowEngine/IManager.php
+++ b/lib/public/WorkflowEngine/IManager.php
@@ -32,7 +32,6 @@ namespace OCP\WorkflowEngine;
* @since 9.1
*/
interface IManager {
-
const SCOPE_ADMIN = 0;
const SCOPE_USER = 1;