aboutsummaryrefslogtreecommitdiffstats
path: root/lib/public
diff options
context:
space:
mode:
authorprovokateurin <kate@provokateurin.de>2024-09-19 11:10:31 +0200
committerprovokateurin <kate@provokateurin.de>2024-09-19 14:21:20 +0200
commit9836e9b16484582d309c8437ab46d82e34956941 (patch)
treed3da87bb7dfd1a8877ed25072ecf609def844089 /lib/public
parent8c60ffa0f21414e6e671c567d664a9b9e5253e26 (diff)
downloadnextcloud-server-9836e9b16484582d309c8437ab46d82e34956941.tar.gz
nextcloud-server-9836e9b16484582d309c8437ab46d82e34956941.zip
chore(deps): Update nextcloud/coding-standard to v1.3.1
Signed-off-by: provokateurin <kate@provokateurin.de>
Diffstat (limited to 'lib/public')
-rw-r--r--lib/public/App/IAppManager.php2
-rw-r--r--lib/public/AppFramework/AuthPublicShareController.php2
-rw-r--r--lib/public/AppFramework/Controller.php2
-rw-r--r--lib/public/AppFramework/Db/QBMapper.php2
-rw-r--r--lib/public/AppFramework/Http/Attribute/AuthorizedAdminSetting.php2
-rw-r--r--lib/public/AppFramework/Http/Attribute/BruteForceProtection.php2
-rw-r--r--lib/public/AppFramework/Http/EmptyContentSecurityPolicy.php2
-rw-r--r--lib/public/AppFramework/Http/Events/BeforeLoginTemplateRenderedEvent.php4
-rw-r--r--lib/public/AppFramework/Http/Response.php2
-rw-r--r--lib/public/Authentication/TwoFactorAuth/TwoFactorProviderChallengeFailed.php3
-rw-r--r--lib/public/Authentication/TwoFactorAuth/TwoFactorProviderChallengePassed.php3
-rw-r--r--lib/public/AutoloadNotAllowedException.php2
-rw-r--r--lib/public/Comments/ICommentsManager.php8
-rw-r--r--lib/public/Files/Events/Node/AbstractNodeEvent.php2
-rw-r--r--lib/public/Files/Events/Node/AbstractNodesEvent.php2
-rw-r--r--lib/public/Files/Lock/LockContext.php2
-rw-r--r--lib/public/Files/Template/Field.php2
-rw-r--r--lib/public/Files/Template/FieldFactory.php2
-rw-r--r--lib/public/Files/Template/RegisterTemplateCreatorEvent.php2
-rw-r--r--lib/public/Files/Template/TemplateFileCreator.php2
-rw-r--r--lib/public/FilesMetadata/AMetadataEvent.php2
-rw-r--r--lib/public/FilesMetadata/Event/MetadataNamedEvent.php2
-rw-r--r--lib/public/FilesMetadata/IFilesMetadataManager.php4
-rw-r--r--lib/public/INavigationManager.php2
-rw-r--r--lib/public/Log/RotationTrait.php2
-rw-r--r--lib/public/Mail/Provider/Address.php6
-rw-r--r--lib/public/Mail/Provider/Attachment.php8
-rw-r--r--lib/public/Mail/Provider/IAddress.php4
-rw-r--r--lib/public/Mail/Provider/IAttachment.php6
-rw-r--r--lib/public/Mail/Provider/IManager.php6
-rw-r--r--lib/public/Mail/Provider/IMessage.php12
-rw-r--r--lib/public/Mail/Provider/IProvider.php4
-rw-r--r--lib/public/Mail/Provider/Message.php12
-rw-r--r--lib/public/Migration/Attributes/GenericMigrationAttribute.php2
-rw-r--r--lib/public/Preview/IMimeIconProvider.php2
-rw-r--r--lib/public/Settings/Events/DeclarativeSettingsRegisterFormEvent.php4
-rw-r--r--lib/public/Share/IShare.php2
-rw-r--r--lib/public/TaskProcessing/Events/AbstractTaskProcessingEvent.php2
-rw-r--r--lib/public/TaskProcessing/IManager.php2
-rw-r--r--lib/public/Teams/Team.php6
-rw-r--r--lib/public/TextProcessing/Events/AbstractTextProcessingEvent.php2
-rw-r--r--lib/public/TextToImage/Events/AbstractTextToImageEvent.php2
-rw-r--r--lib/public/Translation/LanguageTuple.php2
-rw-r--r--lib/public/User/Events/OutOfOfficeChangedEvent.php4
-rw-r--r--lib/public/User/Events/OutOfOfficeClearedEvent.php4
-rw-r--r--lib/public/User/Events/OutOfOfficeEndedEvent.php4
-rw-r--r--lib/public/User/Events/OutOfOfficeScheduledEvent.php4
-rw-r--r--lib/public/User/Events/OutOfOfficeStartedEvent.php4
-rw-r--r--lib/public/UserMigration/IMigrator.php6
-rw-r--r--lib/public/UserMigration/TMigratorBasicVersionHandling.php2
-rw-r--r--lib/public/Util.php4
51 files changed, 99 insertions, 79 deletions
diff --git a/lib/public/App/IAppManager.php b/lib/public/App/IAppManager.php
index 580288fbff7..1182f611b29 100644
--- a/lib/public/App/IAppManager.php
+++ b/lib/public/App/IAppManager.php
@@ -51,7 +51,7 @@ interface IAppManager {
* @return string|null
* @since 29.0.0
*/
- public function getAppIcon(string $appId, bool $dark = false): string|null;
+ public function getAppIcon(string $appId, bool $dark = false): ?string;
/**
* Check if an app is enabled for user
diff --git a/lib/public/AppFramework/AuthPublicShareController.php b/lib/public/AppFramework/AuthPublicShareController.php
index b79f530dc4d..28a92fedcc9 100644
--- a/lib/public/AppFramework/AuthPublicShareController.php
+++ b/lib/public/AppFramework/AuthPublicShareController.php
@@ -192,7 +192,7 @@ abstract class AuthPublicShareController extends PublicShareController {
if (str_ends_with($class, 'Controller')) {
$class = substr($class, 0, -10);
}
- return $app .'.'. $class .'.'. $function;
+ return $app . '.' . $class . '.' . $function;
}
/**
diff --git a/lib/public/AppFramework/Controller.php b/lib/public/AppFramework/Controller.php
index 99fed5350e5..7c25b3382e7 100644
--- a/lib/public/AppFramework/Controller.php
+++ b/lib/public/AppFramework/Controller.php
@@ -135,7 +135,7 @@ abstract class Controller {
return $responder($response);
}
- throw new \DomainException('No responder registered for format '.
+ throw new \DomainException('No responder registered for format ' .
$format . '!');
}
}
diff --git a/lib/public/AppFramework/Db/QBMapper.php b/lib/public/AppFramework/Db/QBMapper.php
index cd09a6b11b6..ef4516221e6 100644
--- a/lib/public/AppFramework/Db/QBMapper.php
+++ b/lib/public/AppFramework/Db/QBMapper.php
@@ -296,7 +296,7 @@ abstract class QBMapper {
*/
protected function mapRowToEntity(array $row): Entity {
unset($row['DOCTRINE_ROWNUM']); // remove doctrine/dbal helper column
- return \call_user_func($this->entityClass .'::fromRow', $row);
+ return \call_user_func($this->entityClass . '::fromRow', $row);
}
diff --git a/lib/public/AppFramework/Http/Attribute/AuthorizedAdminSetting.php b/lib/public/AppFramework/Http/Attribute/AuthorizedAdminSetting.php
index e81f195b298..83101143fc9 100644
--- a/lib/public/AppFramework/Http/Attribute/AuthorizedAdminSetting.php
+++ b/lib/public/AppFramework/Http/Attribute/AuthorizedAdminSetting.php
@@ -25,7 +25,7 @@ class AuthorizedAdminSetting {
* @since 27.0.0
*/
public function __construct(
- protected string $settings
+ protected string $settings,
) {
}
diff --git a/lib/public/AppFramework/Http/Attribute/BruteForceProtection.php b/lib/public/AppFramework/Http/Attribute/BruteForceProtection.php
index 9fd97cdc3ed..0fc1a3b9b6d 100644
--- a/lib/public/AppFramework/Http/Attribute/BruteForceProtection.php
+++ b/lib/public/AppFramework/Http/Attribute/BruteForceProtection.php
@@ -23,7 +23,7 @@ class BruteForceProtection {
* @since 27.0.0
*/
public function __construct(
- protected string $action
+ protected string $action,
) {
}
diff --git a/lib/public/AppFramework/Http/EmptyContentSecurityPolicy.php b/lib/public/AppFramework/Http/EmptyContentSecurityPolicy.php
index 0a6258be941..584191b9aaa 100644
--- a/lib/public/AppFramework/Http/EmptyContentSecurityPolicy.php
+++ b/lib/public/AppFramework/Http/EmptyContentSecurityPolicy.php
@@ -448,7 +448,7 @@ class EmptyContentSecurityPolicy {
if ($this->strictDynamicAllowed) {
$scriptSrc .= '\'strict-dynamic\' ';
}
- $scriptSrc .= '\'nonce-'.$this->jsNonce.'\'';
+ $scriptSrc .= '\'nonce-' . $this->jsNonce . '\'';
$allowedScriptDomains = array_flip($this->allowedScriptDomains);
unset($allowedScriptDomains['\'self\'']);
$this->allowedScriptDomains = array_flip($allowedScriptDomains);
diff --git a/lib/public/AppFramework/Http/Events/BeforeLoginTemplateRenderedEvent.php b/lib/public/AppFramework/Http/Events/BeforeLoginTemplateRenderedEvent.php
index d18cad25acc..b724b3a72ad 100644
--- a/lib/public/AppFramework/Http/Events/BeforeLoginTemplateRenderedEvent.php
+++ b/lib/public/AppFramework/Http/Events/BeforeLoginTemplateRenderedEvent.php
@@ -20,7 +20,9 @@ class BeforeLoginTemplateRenderedEvent extends Event {
/**
* @since 28.0.0
*/
- public function __construct(private TemplateResponse $response) {
+ public function __construct(
+ private TemplateResponse $response,
+ ) {
parent::__construct();
}
diff --git a/lib/public/AppFramework/Http/Response.php b/lib/public/AppFramework/Http/Response.php
index 940f0f124e8..d1860402359 100644
--- a/lib/public/AppFramework/Http/Response.php
+++ b/lib/public/AppFramework/Http/Response.php
@@ -96,7 +96,7 @@ class Response {
/** @var ITimeFactory $time */
$time = \OCP\Server::get(ITimeFactory::class);
$expires->setTimestamp($time->getTime());
- $expires->add(new \DateInterval('PT'.$cacheSeconds.'S'));
+ $expires->add(new \DateInterval('PT' . $cacheSeconds . 'S'));
$this->addHeader('Expires', $expires->format(\DateTimeInterface::RFC2822));
} else {
$this->addHeader('Cache-Control', 'no-cache, no-store, must-revalidate');
diff --git a/lib/public/Authentication/TwoFactorAuth/TwoFactorProviderChallengeFailed.php b/lib/public/Authentication/TwoFactorAuth/TwoFactorProviderChallengeFailed.php
index 15e5ed92509..42ca855df35 100644
--- a/lib/public/Authentication/TwoFactorAuth/TwoFactorProviderChallengeFailed.php
+++ b/lib/public/Authentication/TwoFactorAuth/TwoFactorProviderChallengeFailed.php
@@ -20,7 +20,8 @@ class TwoFactorProviderChallengeFailed extends Event {
*/
public function __construct(
private IUser $user,
- private IProvider $provider) {
+ private IProvider $provider,
+ ) {
parent::__construct();
}
diff --git a/lib/public/Authentication/TwoFactorAuth/TwoFactorProviderChallengePassed.php b/lib/public/Authentication/TwoFactorAuth/TwoFactorProviderChallengePassed.php
index 2dc91a98880..396fbf9e9a5 100644
--- a/lib/public/Authentication/TwoFactorAuth/TwoFactorProviderChallengePassed.php
+++ b/lib/public/Authentication/TwoFactorAuth/TwoFactorProviderChallengePassed.php
@@ -20,7 +20,8 @@ class TwoFactorProviderChallengePassed extends Event {
*/
public function __construct(
private IUser $user,
- private IProvider $provider) {
+ private IProvider $provider,
+ ) {
parent::__construct();
}
diff --git a/lib/public/AutoloadNotAllowedException.php b/lib/public/AutoloadNotAllowedException.php
index 6e897b49406..a296ea3356a 100644
--- a/lib/public/AutoloadNotAllowedException.php
+++ b/lib/public/AutoloadNotAllowedException.php
@@ -18,6 +18,6 @@ class AutoloadNotAllowedException extends \DomainException {
* @since 8.2.0
*/
public function __construct($path) {
- parent::__construct('Autoload path not allowed: '.$path);
+ parent::__construct('Autoload path not allowed: ' . $path);
}
}
diff --git a/lib/public/Comments/ICommentsManager.php b/lib/public/Comments/ICommentsManager.php
index af9d0fe61f0..0ff762e51d0 100644
--- a/lib/public/Comments/ICommentsManager.php
+++ b/lib/public/Comments/ICommentsManager.php
@@ -97,7 +97,7 @@ interface ICommentsManager {
$objectId,
$limit = 0,
$offset = 0,
- ?\DateTime $notOlderThan = null
+ ?\DateTime $notOlderThan = null,
);
/**
@@ -118,7 +118,7 @@ interface ICommentsManager {
int $lastKnownCommentId,
string $sortDirection = 'asc',
int $limit = 30,
- bool $includeLastKnown = false
+ bool $includeLastKnown = false,
): array;
/**
@@ -140,7 +140,7 @@ interface ICommentsManager {
int $lastKnownCommentId,
string $sortDirection = 'asc',
int $limit = 30,
- bool $includeLastKnown = false
+ bool $includeLastKnown = false,
): array;
/**
@@ -240,7 +240,7 @@ interface ICommentsManager {
string $objectId,
string $verb,
string $actorType,
- array $actors
+ array $actors,
): array;
/**
diff --git a/lib/public/Files/Events/Node/AbstractNodeEvent.php b/lib/public/Files/Events/Node/AbstractNodeEvent.php
index 64b0e3a3aa5..7afb71277f6 100644
--- a/lib/public/Files/Events/Node/AbstractNodeEvent.php
+++ b/lib/public/Files/Events/Node/AbstractNodeEvent.php
@@ -21,7 +21,7 @@ abstract class AbstractNodeEvent extends Event implements IWebhookCompatibleEven
* @since 20.0.0
*/
public function __construct(
- private Node $node
+ private Node $node,
) {
}
diff --git a/lib/public/Files/Events/Node/AbstractNodesEvent.php b/lib/public/Files/Events/Node/AbstractNodesEvent.php
index 7941a9e596a..8fa8795d1df 100644
--- a/lib/public/Files/Events/Node/AbstractNodesEvent.php
+++ b/lib/public/Files/Events/Node/AbstractNodesEvent.php
@@ -22,7 +22,7 @@ abstract class AbstractNodesEvent extends Event implements IWebhookCompatibleEve
*/
public function __construct(
private Node $source,
- private Node $target
+ private Node $target,
) {
}
diff --git a/lib/public/Files/Lock/LockContext.php b/lib/public/Files/Lock/LockContext.php
index 48d9f804fc4..5e61d3e2ec5 100644
--- a/lib/public/Files/Lock/LockContext.php
+++ b/lib/public/Files/Lock/LockContext.php
@@ -33,7 +33,7 @@ final class LockContext {
public function __construct(
Node $node,
int $type,
- string $owner
+ string $owner,
) {
$this->node = $node;
$this->type = $type;
diff --git a/lib/public/Files/Template/Field.php b/lib/public/Files/Template/Field.php
index dd65ef857ea..ec195ca3504 100644
--- a/lib/public/Files/Template/Field.php
+++ b/lib/public/Files/Template/Field.php
@@ -22,7 +22,7 @@ abstract class Field implements \JsonSerializable {
*/
public function __construct(
private string $index,
- private FieldType $type
+ private FieldType $type,
) {
}
diff --git a/lib/public/Files/Template/FieldFactory.php b/lib/public/Files/Template/FieldFactory.php
index 4c0fff6b46f..f14d44a8573 100644
--- a/lib/public/Files/Template/FieldFactory.php
+++ b/lib/public/Files/Template/FieldFactory.php
@@ -21,7 +21,7 @@ class FieldFactory {
*/
public static function createField(
string $index,
- FieldType $type
+ FieldType $type,
): Field {
return match ($type) {
FieldType::RichText => new RichTextField($index, $type),
diff --git a/lib/public/Files/Template/RegisterTemplateCreatorEvent.php b/lib/public/Files/Template/RegisterTemplateCreatorEvent.php
index 4f739b1f9d3..c931f3e2a78 100644
--- a/lib/public/Files/Template/RegisterTemplateCreatorEvent.php
+++ b/lib/public/Files/Template/RegisterTemplateCreatorEvent.php
@@ -17,7 +17,7 @@ class RegisterTemplateCreatorEvent extends Event {
* @since 30.0.0
*/
public function __construct(
- private ITemplateManager $templateManager
+ private ITemplateManager $templateManager,
) {
}
diff --git a/lib/public/Files/Template/TemplateFileCreator.php b/lib/public/Files/Template/TemplateFileCreator.php
index b8174ec3ea0..9a4bd2fae43 100644
--- a/lib/public/Files/Template/TemplateFileCreator.php
+++ b/lib/public/Files/Template/TemplateFileCreator.php
@@ -34,7 +34,7 @@ final class TemplateFileCreator implements \JsonSerializable {
* @since 21.0.0
*/
public function __construct(
- string $appId, string $actionName, string $fileExtension
+ string $appId, string $actionName, string $fileExtension,
) {
$this->appId = $appId;
$this->actionName = $actionName;
diff --git a/lib/public/FilesMetadata/AMetadataEvent.php b/lib/public/FilesMetadata/AMetadataEvent.php
index 637073a2ffd..8fef0d85db9 100644
--- a/lib/public/FilesMetadata/AMetadataEvent.php
+++ b/lib/public/FilesMetadata/AMetadataEvent.php
@@ -23,7 +23,7 @@ abstract class AMetadataEvent extends Event {
*/
public function __construct(
protected Node $node,
- protected IFilesMetadata $metadata
+ protected IFilesMetadata $metadata,
) {
parent::__construct();
}
diff --git a/lib/public/FilesMetadata/Event/MetadataNamedEvent.php b/lib/public/FilesMetadata/Event/MetadataNamedEvent.php
index 6b40bc2f379..453eae1d6af 100644
--- a/lib/public/FilesMetadata/Event/MetadataNamedEvent.php
+++ b/lib/public/FilesMetadata/Event/MetadataNamedEvent.php
@@ -38,7 +38,7 @@ class MetadataNamedEvent extends AMetadataEvent {
public function __construct(
Node $node,
IFilesMetadata $metadata,
- private string $name = ''
+ private string $name = '',
) {
parent::__construct($node, $metadata);
}
diff --git a/lib/public/FilesMetadata/IFilesMetadataManager.php b/lib/public/FilesMetadata/IFilesMetadataManager.php
index ba2a5bd2450..4b1a6d32e8e 100644
--- a/lib/public/FilesMetadata/IFilesMetadataManager.php
+++ b/lib/public/FilesMetadata/IFilesMetadataManager.php
@@ -50,7 +50,7 @@ interface IFilesMetadataManager {
public function refreshMetadata(
Node $node,
int $process = self::PROCESS_LIVE,
- string $namedEvent = ''
+ string $namedEvent = '',
): IFilesMetadata;
/**
@@ -112,7 +112,7 @@ interface IFilesMetadataManager {
public function getMetadataQuery(
IQueryBuilder $qb,
string $fileTableAlias,
- string $fileIdField
+ string $fileIdField,
): IMetadataQuery;
/**
diff --git a/lib/public/INavigationManager.php b/lib/public/INavigationManager.php
index d22e96aa9d3..2bd70c04d65 100644
--- a/lib/public/INavigationManager.php
+++ b/lib/public/INavigationManager.php
@@ -87,7 +87,7 @@ interface INavigationManager {
* @param string $id ID of the navigation entry
* @since 31.0.0
*/
- public function get(string $id): array|null;
+ public function get(string $id): ?array;
/**
* Returns the id of the user's default entry
diff --git a/lib/public/Log/RotationTrait.php b/lib/public/Log/RotationTrait.php
index 1481ed71833..03100613c4c 100644
--- a/lib/public/Log/RotationTrait.php
+++ b/lib/public/Log/RotationTrait.php
@@ -29,7 +29,7 @@ trait RotationTrait {
* @since 14.0.0
*/
protected function rotate():string {
- $rotatedFile = $this->filePath.'.1';
+ $rotatedFile = $this->filePath . '.1';
rename($this->filePath, $rotatedFile);
return $rotatedFile;
}
diff --git a/lib/public/Mail/Provider/Address.php b/lib/public/Mail/Provider/Address.php
index 44a5544ee4b..751fb99d930 100644
--- a/lib/public/Mail/Provider/Address.php
+++ b/lib/public/Mail/Provider/Address.php
@@ -28,7 +28,7 @@ class Address implements \OCP\Mail\Provider\IAddress {
*/
public function __construct(
protected ?string $address = null,
- protected ?string $label = null
+ protected ?string $label = null,
) {
}
@@ -53,7 +53,7 @@ class Address implements \OCP\Mail\Provider\IAddress {
*
* @return string|null returns the mail address or null if one is not set
*/
- public function getAddress(): string|null {
+ public function getAddress(): ?string {
return $this->address;
}
@@ -78,7 +78,7 @@ class Address implements \OCP\Mail\Provider\IAddress {
*
* @return string|null returns the mail address label/name or null if one is not set
*/
- public function getLabel(): string|null {
+ public function getLabel(): ?string {
return $this->label;
}
diff --git a/lib/public/Mail/Provider/Attachment.php b/lib/public/Mail/Provider/Attachment.php
index cb7b9b0d241..af7340a3ccf 100644
--- a/lib/public/Mail/Provider/Attachment.php
+++ b/lib/public/Mail/Provider/Attachment.php
@@ -32,7 +32,7 @@ class Attachment implements \OCP\Mail\Provider\IAttachment {
protected ?string $contents,
protected ?string $name,
protected ?string $type,
- protected bool $embedded = false
+ protected bool $embedded = false,
) {
}
@@ -57,7 +57,7 @@ class Attachment implements \OCP\Mail\Provider\IAttachment {
*
* @return string | null returns the attachment file name or null if not set
*/
- public function getName(): string|null {
+ public function getName(): ?string {
return $this->name;
}
@@ -82,7 +82,7 @@ class Attachment implements \OCP\Mail\Provider\IAttachment {
*
* @return string | null returns the attachment mime type or null if not set
*/
- public function getType(): string|null {
+ public function getType(): ?string {
return $this->type;
}
@@ -107,7 +107,7 @@ class Attachment implements \OCP\Mail\Provider\IAttachment {
*
* @return string | null returns the attachment contents or null if not set
*/
- public function getContents(): string|null {
+ public function getContents(): ?string {
return $this->contents;
}
diff --git a/lib/public/Mail/Provider/IAddress.php b/lib/public/Mail/Provider/IAddress.php
index b5748a51cc0..121467390dc 100644
--- a/lib/public/Mail/Provider/IAddress.php
+++ b/lib/public/Mail/Provider/IAddress.php
@@ -36,7 +36,7 @@ interface IAddress {
*
* @return string returns the mail address
*/
- public function getAddress(): string|null;
+ public function getAddress(): ?string;
/**
* sets the mail address label/name
@@ -56,6 +56,6 @@ interface IAddress {
*
* @return string returns the mail address label/name
*/
- public function getLabel(): string|null;
+ public function getLabel(): ?string;
}
diff --git a/lib/public/Mail/Provider/IAttachment.php b/lib/public/Mail/Provider/IAttachment.php
index e27f5ee066b..ff266994919 100644
--- a/lib/public/Mail/Provider/IAttachment.php
+++ b/lib/public/Mail/Provider/IAttachment.php
@@ -36,7 +36,7 @@ interface IAttachment {
*
* @return string | null returns the attachment file name or null if one is not set
*/
- public function getName(): string|null;
+ public function getName(): ?string;
/**
* sets the attachment mime type
@@ -56,7 +56,7 @@ interface IAttachment {
*
* @return string | null returns the attachment mime type or null if not set
*/
- public function getType(): string|null;
+ public function getType(): ?string;
/**
* sets the attachment contents (actual data)
@@ -76,7 +76,7 @@ interface IAttachment {
*
* @return string | null returns the attachment contents or null if not set
*/
- public function getContents(): string|null;
+ public function getContents(): ?string;
/**
* sets the embedded status of the attachment
diff --git a/lib/public/Mail/Provider/IManager.php b/lib/public/Mail/Provider/IManager.php
index ff01f93d2a4..3c639ef21ef 100644
--- a/lib/public/Mail/Provider/IManager.php
+++ b/lib/public/Mail/Provider/IManager.php
@@ -63,7 +63,7 @@ interface IManager {
*
* @return IProvider|null
*/
- public function findProviderById(string $providerId): IProvider|null;
+ public function findProviderById(string $providerId): ?IProvider;
/**
* retrieve all services for all registered mail providers
@@ -87,7 +87,7 @@ interface IManager {
*
* @return IService|null returns service object or null if none found
*/
- public function findServiceById(string $userId, string $serviceId, ?string $providerId = null): IService|null;
+ public function findServiceById(string $userId, string $serviceId, ?string $providerId = null): ?IService;
/**
* retrieve a service for a specific mail address
@@ -101,6 +101,6 @@ interface IManager {
*
* @return IService|null returns service object or null if none found
*/
- public function findServiceByAddress(string $userId, string $address, ?string $providerId = null): IService|null;
+ public function findServiceByAddress(string $userId, string $address, ?string $providerId = null): ?IService;
}
diff --git a/lib/public/Mail/Provider/IMessage.php b/lib/public/Mail/Provider/IMessage.php
index 2ad3b422b9d..e3dfbe6981d 100644
--- a/lib/public/Mail/Provider/IMessage.php
+++ b/lib/public/Mail/Provider/IMessage.php
@@ -45,7 +45,7 @@ interface IMessage {
*
* @return IAddress|null sender's mail address object
*/
- public function getFrom(): IAddress|null;
+ public function getFrom(): ?IAddress;
/**
* sets the sender's reply to address of this message
@@ -65,7 +65,7 @@ interface IMessage {
*
* @return IAddress|null sender's reply to mail address object
*/
- public function getReplyTo(): IAddress|null;
+ public function getReplyTo(): ?IAddress;
/**
* sets the recipient(s) of this message
@@ -145,7 +145,7 @@ interface IMessage {
*
* @return string|null subject of message or null if one is not set
*/
- public function getSubject(): string|null;
+ public function getSubject(): ?string;
/**
* sets the plain text or html body of this message
@@ -168,7 +168,7 @@ interface IMessage {
*
* @return string|null html/plain body of this message or null if one is not set
*/
- public function getBody(): string|null;
+ public function getBody(): ?string;
/**
* sets the html body of this message
@@ -188,7 +188,7 @@ interface IMessage {
*
* @return string|null html body of this message or null if one is not set
*/
- public function getBodyHtml(): string|null;
+ public function getBodyHtml(): ?string;
/**
* sets the plain text body of this message
@@ -208,7 +208,7 @@ interface IMessage {
*
* @return string|null plain text body of this message or null if one is not set
*/
- public function getBodyPlain(): string|null;
+ public function getBodyPlain(): ?string;
/**
* sets the attachments of this message
diff --git a/lib/public/Mail/Provider/IProvider.php b/lib/public/Mail/Provider/IProvider.php
index e94ee73217a..d89022d7cbf 100644
--- a/lib/public/Mail/Provider/IProvider.php
+++ b/lib/public/Mail/Provider/IProvider.php
@@ -68,7 +68,7 @@ interface IProvider {
*
* @return IService|null returns service object or null if none found
*/
- public function findServiceById(string $userId, string $serviceId): IService|null;
+ public function findServiceById(string $userId, string $serviceId): ?IService;
/**
* retrieve a service for a specific mail address
@@ -80,7 +80,7 @@ interface IProvider {
*
* @return IService|null returns service object or null if none found
*/
- public function findServiceByAddress(string $userId, string $address): IService|null;
+ public function findServiceByAddress(string $userId, string $address): ?IService;
/**
* construct a new empty service object
diff --git a/lib/public/Mail/Provider/Message.php b/lib/public/Mail/Provider/Message.php
index 7814fb849d5..f7a21c05ed3 100644
--- a/lib/public/Mail/Provider/Message.php
+++ b/lib/public/Mail/Provider/Message.php
@@ -65,7 +65,7 @@ class Message implements \OCP\Mail\Provider\IMessage {
*
* @return IAddress|null sender's mail address object
*/
- public function getFrom(): IAddress|null {
+ public function getFrom(): ?IAddress {
// evaluate if data store field exists and return value(s) or null otherwise
return (isset($this->data['from'])) ? $this->data['from'] : null;
}
@@ -93,7 +93,7 @@ class Message implements \OCP\Mail\Provider\IMessage {
*
* @return IAddress|null sender's reply to mail address object
*/
- public function getReplyTo(): IAddress|null {
+ public function getReplyTo(): ?IAddress {
// evaluate if data store field exists and return value(s) or null otherwise
return (isset($this->data['replyTo'])) ? $this->data['replyTo'] : null;
}
@@ -205,7 +205,7 @@ class Message implements \OCP\Mail\Provider\IMessage {
*
* @return string|null subject of message or null if one is not set
*/
- public function getSubject(): string|null {
+ public function getSubject(): ?string {
// evaluate if data store field exists and return value(s) or null otherwise
return (isset($this->data['subject'])) ? $this->data['subject'] : null;
}
@@ -240,7 +240,7 @@ class Message implements \OCP\Mail\Provider\IMessage {
*
* @return string|null html/plain body of this message or null if one is not set
*/
- public function getBody(): string|null {
+ public function getBody(): ?string {
// evaluate if data store field(s) exists and return value
if (isset($this->data['bodyHtml'])) {
return $this->data['bodyHtml'];
@@ -274,7 +274,7 @@ class Message implements \OCP\Mail\Provider\IMessage {
*
* @return string|null html body of this message or null if one is not set
*/
- public function getBodyHtml(): string|null {
+ public function getBodyHtml(): ?string {
// evaluate if data store field exists and return value(s) or null otherwise
return (isset($this->data['bodyHtml'])) ? $this->data['bodyHtml'] : null;
}
@@ -302,7 +302,7 @@ class Message implements \OCP\Mail\Provider\IMessage {
*
* @return string|null plain text body of this message or null if one is not set
*/
- public function getBodyPlain(): string|null {
+ public function getBodyPlain(): ?string {
// evaluate if data store field exists and return value(s) or null otherwise
return (isset($this->data['bodyPlain'])) ? $this->data['bodyPlain'] : null;
}
diff --git a/lib/public/Migration/Attributes/GenericMigrationAttribute.php b/lib/public/Migration/Attributes/GenericMigrationAttribute.php
index 6f187635ff7..e63f78088e8 100644
--- a/lib/public/Migration/Attributes/GenericMigrationAttribute.php
+++ b/lib/public/Migration/Attributes/GenericMigrationAttribute.php
@@ -22,7 +22,7 @@ class GenericMigrationAttribute extends MigrationAttribute implements JsonSerial
* @since 30.0.0
*/
public function __construct(
- private readonly array $details = []
+ private readonly array $details = [],
) {
parent::__construct(
$details['table'] ?? '',
diff --git a/lib/public/Preview/IMimeIconProvider.php b/lib/public/Preview/IMimeIconProvider.php
index da4896bec87..4a407f48577 100644
--- a/lib/public/Preview/IMimeIconProvider.php
+++ b/lib/public/Preview/IMimeIconProvider.php
@@ -18,5 +18,5 @@ interface IMimeIconProvider {
* if no preview is available.
* @since 28.0.0
*/
- public function getMimeIconUrl(string $mime): string|null;
+ public function getMimeIconUrl(string $mime): ?string;
}
diff --git a/lib/public/Settings/Events/DeclarativeSettingsRegisterFormEvent.php b/lib/public/Settings/Events/DeclarativeSettingsRegisterFormEvent.php
index 951e4ad9298..e861afdd580 100644
--- a/lib/public/Settings/Events/DeclarativeSettingsRegisterFormEvent.php
+++ b/lib/public/Settings/Events/DeclarativeSettingsRegisterFormEvent.php
@@ -22,7 +22,9 @@ class DeclarativeSettingsRegisterFormEvent extends Event {
/**
* @since 29.0.0
*/
- public function __construct(private IDeclarativeManager $manager) {
+ public function __construct(
+ private IDeclarativeManager $manager,
+ ) {
parent::__construct();
}
diff --git a/lib/public/Share/IShare.php b/lib/public/Share/IShare.php
index c2843c078e3..cdad084ac92 100644
--- a/lib/public/Share/IShare.php
+++ b/lib/public/Share/IShare.php
@@ -368,7 +368,7 @@ interface IShare {
* @return \OCP\Share\IShare The modified object
* @since 9.0.0
*/
- public function setExpirationDate(\DateTime|null $expireDate);
+ public function setExpirationDate(?\DateTime $expireDate);
/**
* Get the expiration date
diff --git a/lib/public/TaskProcessing/Events/AbstractTaskProcessingEvent.php b/lib/public/TaskProcessing/Events/AbstractTaskProcessingEvent.php
index 84dbb8915f8..55f33327e9f 100644
--- a/lib/public/TaskProcessing/Events/AbstractTaskProcessingEvent.php
+++ b/lib/public/TaskProcessing/Events/AbstractTaskProcessingEvent.php
@@ -19,7 +19,7 @@ abstract class AbstractTaskProcessingEvent extends Event {
* @since 30.0.0
*/
public function __construct(
- private readonly Task $task
+ private readonly Task $task,
) {
parent::__construct();
}
diff --git a/lib/public/TaskProcessing/IManager.php b/lib/public/TaskProcessing/IManager.php
index c26a5d67339..2d5fe1d9ba6 100644
--- a/lib/public/TaskProcessing/IManager.php
+++ b/lib/public/TaskProcessing/IManager.php
@@ -182,7 +182,7 @@ interface IManager {
*/
public function getTasks(
?string $userId, ?string $taskTypeId = null, ?string $appId = null, ?string $customId = null,
- ?int $status = null, ?int $scheduleAfter = null, ?int $endedBefore = null
+ ?int $status = null, ?int $scheduleAfter = null, ?int $endedBefore = null,
): array;
/**
diff --git a/lib/public/Teams/Team.php b/lib/public/Teams/Team.php
index 07fc3f9ccd3..8ece28bf648 100644
--- a/lib/public/Teams/Team.php
+++ b/lib/public/Teams/Team.php
@@ -18,7 +18,11 @@ class Team implements \JsonSerializable {
/**
* @since 29.0.0
*/
- public function __construct(private string $teamId, private string $displayName, private ?string $link) {
+ public function __construct(
+ private string $teamId,
+ private string $displayName,
+ private ?string $link,
+ ) {
}
/**
diff --git a/lib/public/TextProcessing/Events/AbstractTextProcessingEvent.php b/lib/public/TextProcessing/Events/AbstractTextProcessingEvent.php
index e42f64ca28c..8b944254020 100644
--- a/lib/public/TextProcessing/Events/AbstractTextProcessingEvent.php
+++ b/lib/public/TextProcessing/Events/AbstractTextProcessingEvent.php
@@ -20,7 +20,7 @@ abstract class AbstractTextProcessingEvent extends Event {
* @since 27.1.0
*/
public function __construct(
- private Task $task
+ private Task $task,
) {
parent::__construct();
}
diff --git a/lib/public/TextToImage/Events/AbstractTextToImageEvent.php b/lib/public/TextToImage/Events/AbstractTextToImageEvent.php
index 75920487412..df850e1be33 100644
--- a/lib/public/TextToImage/Events/AbstractTextToImageEvent.php
+++ b/lib/public/TextToImage/Events/AbstractTextToImageEvent.php
@@ -21,7 +21,7 @@ abstract class AbstractTextToImageEvent extends Event {
* @since 28.0.0
*/
public function __construct(
- private Task $task
+ private Task $task,
) {
parent::__construct();
}
diff --git a/lib/public/Translation/LanguageTuple.php b/lib/public/Translation/LanguageTuple.php
index 883daa01da3..07507ece687 100644
--- a/lib/public/Translation/LanguageTuple.php
+++ b/lib/public/Translation/LanguageTuple.php
@@ -24,7 +24,7 @@ class LanguageTuple implements JsonSerializable {
private string $from,
private string $fromLabel,
private string $to,
- private string $toLabel
+ private string $toLabel,
) {
}
diff --git a/lib/public/User/Events/OutOfOfficeChangedEvent.php b/lib/public/User/Events/OutOfOfficeChangedEvent.php
index b1cdb3abdd7..10865ef7ed5 100644
--- a/lib/public/User/Events/OutOfOfficeChangedEvent.php
+++ b/lib/public/User/Events/OutOfOfficeChangedEvent.php
@@ -21,7 +21,9 @@ class OutOfOfficeChangedEvent extends Event {
/**
* @since 28.0.0
*/
- public function __construct(private IOutOfOfficeData $data) {
+ public function __construct(
+ private IOutOfOfficeData $data,
+ ) {
parent::__construct();
}
diff --git a/lib/public/User/Events/OutOfOfficeClearedEvent.php b/lib/public/User/Events/OutOfOfficeClearedEvent.php
index 3eb8a9016e7..4153ce98ab5 100644
--- a/lib/public/User/Events/OutOfOfficeClearedEvent.php
+++ b/lib/public/User/Events/OutOfOfficeClearedEvent.php
@@ -21,7 +21,9 @@ class OutOfOfficeClearedEvent extends Event {
/**
* @since 28.0.0
*/
- public function __construct(private IOutOfOfficeData $data) {
+ public function __construct(
+ private IOutOfOfficeData $data,
+ ) {
parent::__construct();
}
diff --git a/lib/public/User/Events/OutOfOfficeEndedEvent.php b/lib/public/User/Events/OutOfOfficeEndedEvent.php
index e5cbc174d09..0817994f069 100644
--- a/lib/public/User/Events/OutOfOfficeEndedEvent.php
+++ b/lib/public/User/Events/OutOfOfficeEndedEvent.php
@@ -19,7 +19,9 @@ class OutOfOfficeEndedEvent extends Event {
/**
* @since 28.0.0
*/
- public function __construct(private IOutOfOfficeData $data) {
+ public function __construct(
+ private IOutOfOfficeData $data,
+ ) {
parent::__construct();
}
diff --git a/lib/public/User/Events/OutOfOfficeScheduledEvent.php b/lib/public/User/Events/OutOfOfficeScheduledEvent.php
index 0cf071baf59..f830d2af209 100644
--- a/lib/public/User/Events/OutOfOfficeScheduledEvent.php
+++ b/lib/public/User/Events/OutOfOfficeScheduledEvent.php
@@ -21,7 +21,9 @@ class OutOfOfficeScheduledEvent extends Event {
/**
* @since 28.0.0
*/
- public function __construct(private IOutOfOfficeData $data) {
+ public function __construct(
+ private IOutOfOfficeData $data,
+ ) {
parent::__construct();
}
diff --git a/lib/public/User/Events/OutOfOfficeStartedEvent.php b/lib/public/User/Events/OutOfOfficeStartedEvent.php
index 9550f5072e0..1b5c69b3cfb 100644
--- a/lib/public/User/Events/OutOfOfficeStartedEvent.php
+++ b/lib/public/User/Events/OutOfOfficeStartedEvent.php
@@ -19,7 +19,9 @@ class OutOfOfficeStartedEvent extends Event {
/**
* @since 28.0.0
*/
- public function __construct(private IOutOfOfficeData $data) {
+ public function __construct(
+ private IOutOfOfficeData $data,
+ ) {
parent::__construct();
}
diff --git a/lib/public/UserMigration/IMigrator.php b/lib/public/UserMigration/IMigrator.php
index 3083233a4c4..8ce2cca8f98 100644
--- a/lib/public/UserMigration/IMigrator.php
+++ b/lib/public/UserMigration/IMigrator.php
@@ -25,7 +25,7 @@ interface IMigrator {
public function export(
IUser $user,
IExportDestination $exportDestination,
- OutputInterface $output
+ OutputInterface $output,
): void;
/**
@@ -37,7 +37,7 @@ interface IMigrator {
public function import(
IUser $user,
IImportSource $importSource,
- OutputInterface $output
+ OutputInterface $output,
): void;
/**
@@ -75,6 +75,6 @@ interface IMigrator {
* @since 24.0.0
*/
public function canImport(
- IImportSource $importSource
+ IImportSource $importSource,
): bool;
}
diff --git a/lib/public/UserMigration/TMigratorBasicVersionHandling.php b/lib/public/UserMigration/TMigratorBasicVersionHandling.php
index f679c8e87ae..b33425a023d 100644
--- a/lib/public/UserMigration/TMigratorBasicVersionHandling.php
+++ b/lib/public/UserMigration/TMigratorBasicVersionHandling.php
@@ -31,7 +31,7 @@ trait TMigratorBasicVersionHandling {
* @since 24.0.0
*/
public function canImport(
- IImportSource $importSource
+ IImportSource $importSource,
): bool {
$version = $importSource->getMigratorVersion($this->getId());
if ($version === null) {
diff --git a/lib/public/Util.php b/lib/public/Util.php
index 4bd2c61dfbe..520e4616de5 100644
--- a/lib/public/Util.php
+++ b/lib/public/Util.php
@@ -302,7 +302,7 @@ class Util {
$user_part = $config->getSystemValueString('mail_from_address', $user_part);
$host_name = self::getServerHostName();
$host_name = $config->getSystemValueString('mail_domain', $host_name);
- $defaultEmailAddress = $user_part.'@'.$host_name;
+ $defaultEmailAddress = $user_part . '@' . $host_name;
$mailer = \OC::$server->get(IMailer::class);
if ($mailer->validateMailAddress($defaultEmailAddress)) {
@@ -310,7 +310,7 @@ class Util {
}
// in case we cannot build a valid email address from the hostname let's fallback to 'localhost.localdomain'
- return $user_part.'@localhost.localdomain';
+ return $user_part . '@localhost.localdomain';
}
/**