Passed
Push — master ( 6e18a2...4e76b5 )
by Blizzz
12:30
created
apps/federatedfilesharing/lib/Settings/Personal.php 2 patches
Indentation   +56 added lines, -56 removed lines patch added patch discarded remove patch
@@ -33,65 +33,65 @@
 block discarded – undo
33 33
 
34 34
 class Personal implements ISettings {
35 35
 
36
-	/** @var FederatedShareProvider */
37
-	private $federatedShareProvider;
38
-	/** @var IUserSession */
39
-	private $userSession;
40
-	/** @var IL10N */
41
-	private $l;
42
-	/** @var \OC_Defaults */
43
-	private $defaults;
36
+    /** @var FederatedShareProvider */
37
+    private $federatedShareProvider;
38
+    /** @var IUserSession */
39
+    private $userSession;
40
+    /** @var IL10N */
41
+    private $l;
42
+    /** @var \OC_Defaults */
43
+    private $defaults;
44 44
 
45
-	public function __construct(
46
-		FederatedShareProvider $federatedShareProvider, #
47
-		IUserSession $userSession,
48
-		IL10N $l,
49
-		\OC_Defaults $defaults
50
-	) {
51
-		$this->federatedShareProvider = $federatedShareProvider;
52
-		$this->userSession = $userSession;
53
-		$this->l = $l;
54
-		$this->defaults = $defaults;
55
-	}
45
+    public function __construct(
46
+        FederatedShareProvider $federatedShareProvider, #
47
+        IUserSession $userSession,
48
+        IL10N $l,
49
+        \OC_Defaults $defaults
50
+    ) {
51
+        $this->federatedShareProvider = $federatedShareProvider;
52
+        $this->userSession = $userSession;
53
+        $this->l = $l;
54
+        $this->defaults = $defaults;
55
+    }
56 56
 
57
-	/**
58
-	 * @return TemplateResponse returns the instance with all parameters set, ready to be rendered
59
-	 * @since 9.1
60
-	 */
61
-	public function getForm() {
62
-		$cloudID = $this->userSession->getUser()->getCloudId();
63
-		$url = 'https://nextcloud.com/sharing#' . $cloudID;
57
+    /**
58
+     * @return TemplateResponse returns the instance with all parameters set, ready to be rendered
59
+     * @since 9.1
60
+     */
61
+    public function getForm() {
62
+        $cloudID = $this->userSession->getUser()->getCloudId();
63
+        $url = 'https://nextcloud.com/sharing#' . $cloudID;
64 64
 
65
-		$parameters = [
66
-			'outgoingServer2serverShareEnabled' => $this->federatedShareProvider->isOutgoingServer2serverShareEnabled(),
67
-			'message_with_URL' => $this->l->t('Share with me through my #Nextcloud Federated Cloud ID, see %s', [$url]),
68
-			'message_without_URL' => $this->l->t('Share with me through my #Nextcloud Federated Cloud ID', [$cloudID]),
69
-			'logoPath' => $this->defaults->getLogo(),
70
-			'reference' => $url,
71
-			'cloudId' => $cloudID,
72
-			'color' => $this->defaults->getColorPrimary(),
73
-			'textColor' => "#ffffff",
74
-		];
75
-		return new TemplateResponse('federatedfilesharing', 'settings-personal', $parameters, '');
76
-	}
65
+        $parameters = [
66
+            'outgoingServer2serverShareEnabled' => $this->federatedShareProvider->isOutgoingServer2serverShareEnabled(),
67
+            'message_with_URL' => $this->l->t('Share with me through my #Nextcloud Federated Cloud ID, see %s', [$url]),
68
+            'message_without_URL' => $this->l->t('Share with me through my #Nextcloud Federated Cloud ID', [$cloudID]),
69
+            'logoPath' => $this->defaults->getLogo(),
70
+            'reference' => $url,
71
+            'cloudId' => $cloudID,
72
+            'color' => $this->defaults->getColorPrimary(),
73
+            'textColor' => "#ffffff",
74
+        ];
75
+        return new TemplateResponse('federatedfilesharing', 'settings-personal', $parameters, '');
76
+    }
77 77
 
78
-	/**
79
-	 * @return string the section ID, e.g. 'sharing'
80
-	 * @since 9.1
81
-	 */
82
-	public function getSection() {
83
-		return 'sharing';
84
-	}
78
+    /**
79
+     * @return string the section ID, e.g. 'sharing'
80
+     * @since 9.1
81
+     */
82
+    public function getSection() {
83
+        return 'sharing';
84
+    }
85 85
 
86
-	/**
87
-	 * @return int whether the form should be rather on the top or bottom of
88
-	 * the admin section. The forms are arranged in ascending order of the
89
-	 * priority values. It is required to return a value between 0 and 100.
90
-	 *
91
-	 * E.g.: 70
92
-	 * @since 9.1
93
-	 */
94
-	public function getPriority() {
95
-		return 40;
96
-	}
86
+    /**
87
+     * @return int whether the form should be rather on the top or bottom of
88
+     * the admin section. The forms are arranged in ascending order of the
89
+     * priority values. It is required to return a value between 0 and 100.
90
+     *
91
+     * E.g.: 70
92
+     * @since 9.1
93
+     */
94
+    public function getPriority() {
95
+        return 40;
96
+    }
97 97
 }
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -60,7 +60,7 @@
 block discarded – undo
60 60
 	 */
61 61
 	public function getForm() {
62 62
 		$cloudID = $this->userSession->getUser()->getCloudId();
63
-		$url = 'https://nextcloud.com/sharing#' . $cloudID;
63
+		$url = 'https://nextcloud.com/sharing#'.$cloudID;
64 64
 
65 65
 		$parameters = [
66 66
 			'outgoingServer2serverShareEnabled' => $this->federatedShareProvider->isOutgoingServer2serverShareEnabled(),
Please login to merge, or discard this patch.