Completed
Pull Request — master (#8575)
by John
25:04 queued 07:52
created
apps/files_sharing/lib/Template/ExternalShareMenuAction.php 2 patches
Indentation   +37 added lines, -37 removed lines patch added patch discarded remove patch
@@ -28,45 +28,45 @@
 block discarded – undo
28 28
 
29 29
 class ExternalShareMenuAction extends SimpleMenuAction {
30 30
 
31
-	/** @var string */
32
-	private $owner;
31
+    /** @var string */
32
+    private $owner;
33 33
 
34
-	/** @var string */
35
-	private $displayname;
34
+    /** @var string */
35
+    private $displayname;
36 36
 
37
-	/** @var string */
38
-	private $shareName;
37
+    /** @var string */
38
+    private $shareName;
39 39
 
40
-	/**
41
-	 * ExternalShareMenuAction constructor.
42
-	 *
43
-	 * @param string $label
44
-	 * @param string $icon
45
-	 * @param string $owner
46
-	 * @param string $displayname
47
-	 * @param string $shareName
48
-	 */
49
-	public function __construct(string $label, string $icon, string $owner, string $displayname, string $shareName) {
50
-		parent::__construct('save', $label, $icon);
51
-		$this->owner = $owner;
52
-		$this->displayname = $displayname;
53
-		$this->shareName = $shareName;
54
-	}
40
+    /**
41
+     * ExternalShareMenuAction constructor.
42
+     *
43
+     * @param string $label
44
+     * @param string $icon
45
+     * @param string $owner
46
+     * @param string $displayname
47
+     * @param string $shareName
48
+     */
49
+    public function __construct(string $label, string $icon, string $owner, string $displayname, string $shareName) {
50
+        parent::__construct('save', $label, $icon);
51
+        $this->owner = $owner;
52
+        $this->displayname = $displayname;
53
+        $this->shareName = $shareName;
54
+    }
55 55
 
56
-	public function render(): string {
57
-		return '<li>' .
58
-			'<a id="save" data-protected="false" data-owner-display-name="' . Util::sanitizeHTML($this->displayname) . '" data-owner="' . Util::sanitizeHTML($this->owner) . '" data-name="' . Util::sanitizeHTML($this->shareName) . '">' .
59
-			'<span class="icon ' . Util::sanitizeHTML($this->getIcon()) . '"></span>' .
60
-			'<label for="remote_address">' . Util::sanitizeHTML($this->getLabel()) . '</label>' .
61
-			'</a>' .
62
-			'</li>' .
63
-			'<li>' .
64
-			'<span class="menuitem">' .
65
-			'<form class="save-form" action="#">' .
66
-			'<input type="text" id="remote_address" placeholder="[email protected]">' .
67
-			'<input type="submit" value=" " id="save-button-confirm" class="icon-confirm" disabled="disabled"></button>' .
68
-			'</form>' .
69
-			'</span>' .
70
-			'</li>';
71
-	}
56
+    public function render(): string {
57
+        return '<li>' .
58
+            '<a id="save" data-protected="false" data-owner-display-name="' . Util::sanitizeHTML($this->displayname) . '" data-owner="' . Util::sanitizeHTML($this->owner) . '" data-name="' . Util::sanitizeHTML($this->shareName) . '">' .
59
+            '<span class="icon ' . Util::sanitizeHTML($this->getIcon()) . '"></span>' .
60
+            '<label for="remote_address">' . Util::sanitizeHTML($this->getLabel()) . '</label>' .
61
+            '</a>' .
62
+            '</li>' .
63
+            '<li>' .
64
+            '<span class="menuitem">' .
65
+            '<form class="save-form" action="#">' .
66
+            '<input type="text" id="remote_address" placeholder="[email protected]">' .
67
+            '<input type="submit" value=" " id="save-button-confirm" class="icon-confirm" disabled="disabled"></button>' .
68
+            '</form>' .
69
+            '</span>' .
70
+            '</li>';
71
+    }
72 72
 }
Please login to merge, or discard this patch.
Spacing   +13 added lines, -13 removed lines patch added patch discarded remove patch
@@ -54,19 +54,19 @@
 block discarded – undo
54 54
 	}
55 55
 
56 56
 	public function render(): string {
57
-		return '<li>' .
58
-			'<a id="save" data-protected="false" data-owner-display-name="' . Util::sanitizeHTML($this->displayname) . '" data-owner="' . Util::sanitizeHTML($this->owner) . '" data-name="' . Util::sanitizeHTML($this->shareName) . '">' .
59
-			'<span class="icon ' . Util::sanitizeHTML($this->getIcon()) . '"></span>' .
60
-			'<label for="remote_address">' . Util::sanitizeHTML($this->getLabel()) . '</label>' .
61
-			'</a>' .
62
-			'</li>' .
63
-			'<li>' .
64
-			'<span class="menuitem">' .
65
-			'<form class="save-form" action="#">' .
66
-			'<input type="text" id="remote_address" placeholder="[email protected]">' .
67
-			'<input type="submit" value=" " id="save-button-confirm" class="icon-confirm" disabled="disabled"></button>' .
68
-			'</form>' .
69
-			'</span>' .
57
+		return '<li>'.
58
+			'<a id="save" data-protected="false" data-owner-display-name="'.Util::sanitizeHTML($this->displayname).'" data-owner="'.Util::sanitizeHTML($this->owner).'" data-name="'.Util::sanitizeHTML($this->shareName).'">'.
59
+			'<span class="icon '.Util::sanitizeHTML($this->getIcon()).'"></span>'.
60
+			'<label for="remote_address">'.Util::sanitizeHTML($this->getLabel()).'</label>'.
61
+			'</a>'.
62
+			'</li>'.
63
+			'<li>'.
64
+			'<span class="menuitem">'.
65
+			'<form class="save-form" action="#">'.
66
+			'<input type="text" id="remote_address" placeholder="[email protected]">'.
67
+			'<input type="submit" value=" " id="save-button-confirm" class="icon-confirm" disabled="disabled"></button>'.
68
+			'</form>'.
69
+			'</span>'.
70 70
 			'</li>';
71 71
 	}
72 72
 }
Please login to merge, or discard this patch.