]> source.dussan.org Git - nextcloud-server.git/commitdiff
Make adjustments based on the review
authorHamid Dehnavi <hamid.dev.pro@gmail.com>
Wed, 19 Jul 2023 12:38:54 +0000 (16:08 +0330)
committerCôme Chilliet <91878298+come-nc@users.noreply.github.com>
Tue, 2 Jan 2024 15:54:54 +0000 (16:54 +0100)
Co-authored-by: Louis Chemineau <louis@chmn.me>
Signed-off-by: Hamid Dehnavi <hamid.dev.pro@gmail.com>
lib/private/Notification/Action.php
lib/private/Notification/Notification.php

index f0e40f6e1d6acfe16d74a0a3dbfb53ce96b317f3..9590d28af4ab7b3f52dc243846f01b75ec6c808f 100644 (file)
@@ -27,22 +27,16 @@ namespace OC\Notification;
 use OCP\Notification\IAction;
 
 class Action implements IAction {
-       /** @var string */
        protected string $label;
 
-       /** @var string */
        protected string $labelParsed;
 
-       /** @var string */
        protected string $link;
 
-       /** @var string */
        protected string $requestType;
 
-       /** @var string */
        protected string $icon;
 
-       /** @var bool */
        protected bool $primary;
 
        public function __construct() {
index 1ae75a6b4664350c6c78947e0dcff99fa0fe22b1..9222f3cb0e36028f224746c078aff7c17b6de0a2 100644 (file)
@@ -32,67 +32,46 @@ use OCP\RichObjectStrings\InvalidObjectExeption;
 use OCP\RichObjectStrings\IValidator;
 
 class Notification implements INotification {
-       /** @var string */
        protected string $app;
 
-       /** @var string */
        protected string $user;
 
-       /** @var \DateTime */
        protected \DateTime $dateTime;
 
-       /** @var string */
        protected string $objectType;
 
-       /** @var string */
        protected string $objectId;
 
-       /** @var string */
        protected string $subject;
 
-       /** @var array */
        protected array $subjectParameters;
 
-       /** @var string */
        protected string $subjectParsed;
 
-       /** @var string */
        protected string $subjectRich;
 
-       /** @var array */
        protected array $subjectRichParameters;
 
-       /** @var string */
        protected string $message;
 
-       /** @var array */
        protected array $messageParameters;
 
-       /** @var string */
        protected string $messageParsed;
 
-       /** @var string */
        protected string $messageRich;
 
-       /** @var array */
        protected array $messageRichParameters;
 
-       /** @var string */
        protected string $link;
 
-       /** @var string */
        protected string $icon;
 
-       /** @var array */
        protected array $actions;
 
-       /** @var array */
        protected array $actionsParsed;
 
-       /** @var bool */
        protected bool $hasPrimaryAction;
 
-       /** @var bool */
        protected bool $hasPrimaryParsedAction;
 
        public function __construct(