Passed
Push — master ( 4d64ec...0e99d3 )
by Christoph
14:52 queued 12s
created
core/Notification/CoreNotifier.php 1 patch
Indentation   +46 added lines, -46 removed lines patch added patch discarded remove patch
@@ -35,57 +35,57 @@
 block discarded – undo
35 35
 use OCP\Notification\INotifier;
36 36
 
37 37
 class CoreNotifier implements INotifier {
38
-	/** @var IFactory */
39
-	private $l10nFactory;
40
-	/** @var IURLGenerator */
41
-	private $url;
38
+    /** @var IFactory */
39
+    private $l10nFactory;
40
+    /** @var IURLGenerator */
41
+    private $url;
42 42
 
43
-	public function __construct(IFactory $factory, IURLGenerator $url) {
44
-		$this->l10nFactory = $factory;
45
-		$this->url = $url;
46
-	}
43
+    public function __construct(IFactory $factory, IURLGenerator $url) {
44
+        $this->l10nFactory = $factory;
45
+        $this->url = $url;
46
+    }
47 47
 
48
-	/**
49
-	 * Identifier of the notifier, only use [a-z0-9_]
50
-	 *
51
-	 * @return string
52
-	 * @since 17.0.0
53
-	 */
54
-	public function getID(): string {
55
-		return 'core';
56
-	}
48
+    /**
49
+     * Identifier of the notifier, only use [a-z0-9_]
50
+     *
51
+     * @return string
52
+     * @since 17.0.0
53
+     */
54
+    public function getID(): string {
55
+        return 'core';
56
+    }
57 57
 
58
-	/**
59
-	 * Human readable name describing the notifier
60
-	 *
61
-	 * @return string
62
-	 * @since 17.0.0
63
-	 */
64
-	public function getName(): string {
65
-		return $this->l10nFactory->get('core')->t('Nextcloud Server');
66
-	}
58
+    /**
59
+     * Human readable name describing the notifier
60
+     *
61
+     * @return string
62
+     * @since 17.0.0
63
+     */
64
+    public function getName(): string {
65
+        return $this->l10nFactory->get('core')->t('Nextcloud Server');
66
+    }
67 67
 
68
-	public function prepare(INotification $notification, string $languageCode): INotification {
69
-		if ($notification->getApp() !== 'core') {
70
-			throw new \InvalidArgumentException();
71
-		}
72
-		$l = $this->l10nFactory->get('core', $languageCode);
68
+    public function prepare(INotification $notification, string $languageCode): INotification {
69
+        if ($notification->getApp() !== 'core') {
70
+            throw new \InvalidArgumentException();
71
+        }
72
+        $l = $this->l10nFactory->get('core', $languageCode);
73 73
 
74
-		if ($notification->getSubject() === 'repair_exposing_links') {
75
-			$notification->setParsedSubject($l->t('Some of your link shares have been removed'));
76
-			$notification->setParsedMessage($l->t('Due to a security bug we had to remove some of your link shares. Please see the link for more information.'));
77
-			$notification->setLink('https://nextcloud.com/security/advisory/?id=NC-SA-2019-003');
78
-			return $notification;
79
-		}
74
+        if ($notification->getSubject() === 'repair_exposing_links') {
75
+            $notification->setParsedSubject($l->t('Some of your link shares have been removed'));
76
+            $notification->setParsedMessage($l->t('Due to a security bug we had to remove some of your link shares. Please see the link for more information.'));
77
+            $notification->setLink('https://nextcloud.com/security/advisory/?id=NC-SA-2019-003');
78
+            return $notification;
79
+        }
80 80
 
81
-		if ($notification->getSubject() === 'user_limit_reached') {
82
-			$notification->setParsedSubject($l->t('The user limit of this instance is reached.'));
83
-			$notification->setParsedMessage($l->t('Enter your subscription key to increase the user limit. For more information about Nextcloud Enterprise see our website.'));
84
-			$notification->setLink('https://nextcloud.com/enterprise/');
85
-			$notification->setIcon($this->url->getAbsoluteURL($this->url->imagePath('core', 'places/contacts.svg')));
86
-			return $notification;
87
-		}
81
+        if ($notification->getSubject() === 'user_limit_reached') {
82
+            $notification->setParsedSubject($l->t('The user limit of this instance is reached.'));
83
+            $notification->setParsedMessage($l->t('Enter your subscription key to increase the user limit. For more information about Nextcloud Enterprise see our website.'));
84
+            $notification->setLink('https://nextcloud.com/enterprise/');
85
+            $notification->setIcon($this->url->getAbsoluteURL($this->url->imagePath('core', 'places/contacts.svg')));
86
+            return $notification;
87
+        }
88 88
 
89
-		throw new \InvalidArgumentException('Invalid subject');
90
-	}
89
+        throw new \InvalidArgumentException('Invalid subject');
90
+    }
91 91
 }
Please login to merge, or discard this patch.