Completed
Pull Request — master (#8051)
by Julius
17:00
created
lib/public/AppFramework/Http/Template/SimpleMenuAction.php 1 patch
Indentation   +137 added lines, -137 removed lines patch added patch discarded remove patch
@@ -33,142 +33,142 @@
 block discarded – undo
33 33
  */
34 34
 class SimpleMenuAction implements IMenuAction {
35 35
 
36
-	/** @var string */
37
-	private $id;
38
-
39
-	/** @var string */
40
-	private $label;
41
-
42
-	/** @var string */
43
-	private $icon;
44
-
45
-	/** @var string */
46
-	private $link;
47
-
48
-	/** @var int */
49
-	private $priority;
50
-
51
-	/** @var string */
52
-	private $detail;
53
-
54
-	/**
55
-	 * SimpleMenuAction constructor.
56
-	 *
57
-	 * @param string $id
58
-	 * @param string $label
59
-	 * @param string $icon
60
-	 * @param string $link
61
-	 * @param int $priority
62
-	 * @param string $detail
63
-	 * @since 14.0.0
64
-	 */
65
-	public function __construct(string $id, string $label, string $icon, string $link = '', int $priority = 100, string $detail = '') {
66
-		$this->id = $id;
67
-		$this->label = $label;
68
-		$this->icon = $icon;
69
-		$this->link = $link;
70
-		$this->priority = $priority;
71
-		$this->detail = $detail;
72
-	}
73
-
74
-	/**
75
-	 * @param string $id
76
-	 * @since 14.0.0
77
-	 */
78
-	public function setId(string $id) {
79
-		$this->id = $id;
80
-	}
81
-
82
-	/**
83
-	 * @param string $label
84
-	 * @since 14.0.0
85
-	 */
86
-	public function setLabel(string $label) {
87
-		$this->label = $label;
88
-	}
89
-
90
-	/**
91
-	 * @param string $detail
92
-	 * @since 14.0.0
93
-	 */
94
-	public function setDetail(string $detail) {
95
-		$this->detail = $detail;
96
-	}
97
-
98
-	/**
99
-	 * @param string $icon
100
-	 * @since 14.0.0
101
-	 */
102
-	public function setIcon(string $icon) {
103
-		$this->icon = $icon;
104
-	}
105
-
106
-	/**
107
-	 * @param string $link
108
-	 * @since 14.0.0
109
-	 */
110
-	public function setLink(string $link) {
111
-		$this->link = $link;
112
-	}
113
-
114
-	/**
115
-	 * @param int $priority
116
-	 * @since 14.0.0
117
-	 */
118
-	public function setPriority(int $priority) {
119
-		$this->priority = $priority;
120
-	}
121
-
122
-	/**
123
-	 * @return string
124
-	 * @since 14.0.0
125
-	 */
126
-	public function getId(): string {
127
-		return $this->id;
128
-	}
129
-
130
-	/**
131
-	 * @return string
132
-	 * @since 14.0.0
133
-	 */
134
-	public function getLabel(): string {
135
-		return $this->label;
136
-	}
137
-
138
-	/**
139
-	 * @return string
140
-	 * @since 14.0.0
141
-	 */
142
-	public function getIcon(): string {
143
-		return $this->icon;
144
-	}
145
-
146
-	/**
147
-	 * @return string
148
-	 * @since 14.0.0
149
-	 */
150
-	public function getLink(): string {
151
-		return $this->link;
152
-	}
153
-
154
-	/**
155
-	 * @return int
156
-	 * @since 14.0.0
157
-	 */
158
-	public function getPriority(): int {
159
-		return $this->priority;
160
-	}
161
-
162
-	/**
163
-	 * @return string
164
-	 * @since 14.0.0
165
-	 */
166
-	public function render(): string {
167
-		$detailContent = ($this->detail !== '') ? '&nbsp;<span class="download-size">(' . Util::sanitizeHTML($this->detail) . ')</span>' : '';
168
-		return sprintf(
169
-			'<li id="%s"><a href="%s"><span class="icon %s"></span>%s %s</a></li>',
170
-			Util::sanitizeHTML($this->id), Util::sanitizeHTML($this->link), Util::sanitizeHTML($this->icon), Util::sanitizeHTML($this->label), $detailContent
171
-		);
172
-	}
36
+    /** @var string */
37
+    private $id;
38
+
39
+    /** @var string */
40
+    private $label;
41
+
42
+    /** @var string */
43
+    private $icon;
44
+
45
+    /** @var string */
46
+    private $link;
47
+
48
+    /** @var int */
49
+    private $priority;
50
+
51
+    /** @var string */
52
+    private $detail;
53
+
54
+    /**
55
+     * SimpleMenuAction constructor.
56
+     *
57
+     * @param string $id
58
+     * @param string $label
59
+     * @param string $icon
60
+     * @param string $link
61
+     * @param int $priority
62
+     * @param string $detail
63
+     * @since 14.0.0
64
+     */
65
+    public function __construct(string $id, string $label, string $icon, string $link = '', int $priority = 100, string $detail = '') {
66
+        $this->id = $id;
67
+        $this->label = $label;
68
+        $this->icon = $icon;
69
+        $this->link = $link;
70
+        $this->priority = $priority;
71
+        $this->detail = $detail;
72
+    }
73
+
74
+    /**
75
+     * @param string $id
76
+     * @since 14.0.0
77
+     */
78
+    public function setId(string $id) {
79
+        $this->id = $id;
80
+    }
81
+
82
+    /**
83
+     * @param string $label
84
+     * @since 14.0.0
85
+     */
86
+    public function setLabel(string $label) {
87
+        $this->label = $label;
88
+    }
89
+
90
+    /**
91
+     * @param string $detail
92
+     * @since 14.0.0
93
+     */
94
+    public function setDetail(string $detail) {
95
+        $this->detail = $detail;
96
+    }
97
+
98
+    /**
99
+     * @param string $icon
100
+     * @since 14.0.0
101
+     */
102
+    public function setIcon(string $icon) {
103
+        $this->icon = $icon;
104
+    }
105
+
106
+    /**
107
+     * @param string $link
108
+     * @since 14.0.0
109
+     */
110
+    public function setLink(string $link) {
111
+        $this->link = $link;
112
+    }
113
+
114
+    /**
115
+     * @param int $priority
116
+     * @since 14.0.0
117
+     */
118
+    public function setPriority(int $priority) {
119
+        $this->priority = $priority;
120
+    }
121
+
122
+    /**
123
+     * @return string
124
+     * @since 14.0.0
125
+     */
126
+    public function getId(): string {
127
+        return $this->id;
128
+    }
129
+
130
+    /**
131
+     * @return string
132
+     * @since 14.0.0
133
+     */
134
+    public function getLabel(): string {
135
+        return $this->label;
136
+    }
137
+
138
+    /**
139
+     * @return string
140
+     * @since 14.0.0
141
+     */
142
+    public function getIcon(): string {
143
+        return $this->icon;
144
+    }
145
+
146
+    /**
147
+     * @return string
148
+     * @since 14.0.0
149
+     */
150
+    public function getLink(): string {
151
+        return $this->link;
152
+    }
153
+
154
+    /**
155
+     * @return int
156
+     * @since 14.0.0
157
+     */
158
+    public function getPriority(): int {
159
+        return $this->priority;
160
+    }
161
+
162
+    /**
163
+     * @return string
164
+     * @since 14.0.0
165
+     */
166
+    public function render(): string {
167
+        $detailContent = ($this->detail !== '') ? '&nbsp;<span class="download-size">(' . Util::sanitizeHTML($this->detail) . ')</span>' : '';
168
+        return sprintf(
169
+            '<li id="%s"><a href="%s"><span class="icon %s"></span>%s %s</a></li>',
170
+            Util::sanitizeHTML($this->id), Util::sanitizeHTML($this->link), Util::sanitizeHTML($this->icon), Util::sanitizeHTML($this->label), $detailContent
171
+        );
172
+    }
173 173
 
174 174
 }
175 175
\ No newline at end of file
Please login to merge, or discard this patch.