Completed
Pull Request — master (#5137)
by Julius
13:31
created
lib/public/Activity/IManager.php 1 patch
Indentation   +219 added lines, -219 removed lines patch added patch discarded remove patch
@@ -39,250 +39,250 @@
 block discarded – undo
39 39
  * @since 6.0.0
40 40
  */
41 41
 interface IManager {
42
-	/**
43
-	 * Generates a new IEvent object
44
-	 *
45
-	 * Make sure to call at least the following methods before sending it to the
46
-	 * app with via the publish() method:
47
-	 *  - setApp()
48
-	 *  - setType()
49
-	 *  - setAffectedUser()
50
-	 *  - setSubject()
51
-	 *
52
-	 * @return IEvent
53
-	 * @since 8.2.0
54
-	 */
55
-	public function generateEvent();
42
+    /**
43
+     * Generates a new IEvent object
44
+     *
45
+     * Make sure to call at least the following methods before sending it to the
46
+     * app with via the publish() method:
47
+     *  - setApp()
48
+     *  - setType()
49
+     *  - setAffectedUser()
50
+     *  - setSubject()
51
+     *
52
+     * @return IEvent
53
+     * @since 8.2.0
54
+     */
55
+    public function generateEvent();
56 56
 
57
-	/**
58
-	 * Publish an event to the activity consumers
59
-	 *
60
-	 * Make sure to call at least the following methods before sending an Event:
61
-	 *  - setApp()
62
-	 *  - setType()
63
-	 *  - setAffectedUser()
64
-	 *  - setSubject()
65
-	 *
66
-	 * @param IEvent $event
67
-	 * @throws \BadMethodCallException if required values have not been set
68
-	 * @since 8.2.0
69
-	 */
70
-	public function publish(IEvent $event);
57
+    /**
58
+     * Publish an event to the activity consumers
59
+     *
60
+     * Make sure to call at least the following methods before sending an Event:
61
+     *  - setApp()
62
+     *  - setType()
63
+     *  - setAffectedUser()
64
+     *  - setSubject()
65
+     *
66
+     * @param IEvent $event
67
+     * @throws \BadMethodCallException if required values have not been set
68
+     * @since 8.2.0
69
+     */
70
+    public function publish(IEvent $event);
71 71
 
72
-	/**
73
-	 * @param string $app           The app where this event is associated with
74
-	 * @param string $subject       A short description of the event
75
-	 * @param array  $subjectParams Array with parameters that are filled in the subject
76
-	 * @param string $message       A longer description of the event
77
-	 * @param array  $messageParams Array with parameters that are filled in the message
78
-	 * @param string $file          The file including path where this event is associated with
79
-	 * @param string $link          A link where this event is associated with
80
-	 * @param string $affectedUser  Recipient of the activity
81
-	 * @param string $type          Type of the notification
82
-	 * @param int    $priority      Priority of the notification
83
-	 * @since 6.0.0
84
-	 * @deprecated 8.2.0 Grab an IEvent from generateEvent() instead and use the publish() method
85
-	 */
86
-	public function publishActivity($app, $subject, $subjectParams, $message, $messageParams, $file, $link, $affectedUser, $type, $priority);
72
+    /**
73
+     * @param string $app           The app where this event is associated with
74
+     * @param string $subject       A short description of the event
75
+     * @param array  $subjectParams Array with parameters that are filled in the subject
76
+     * @param string $message       A longer description of the event
77
+     * @param array  $messageParams Array with parameters that are filled in the message
78
+     * @param string $file          The file including path where this event is associated with
79
+     * @param string $link          A link where this event is associated with
80
+     * @param string $affectedUser  Recipient of the activity
81
+     * @param string $type          Type of the notification
82
+     * @param int    $priority      Priority of the notification
83
+     * @since 6.0.0
84
+     * @deprecated 8.2.0 Grab an IEvent from generateEvent() instead and use the publish() method
85
+     */
86
+    public function publishActivity($app, $subject, $subjectParams, $message, $messageParams, $file, $link, $affectedUser, $type, $priority);
87 87
 
88
-	/**
89
-	 * In order to improve lazy loading a closure can be registered which will be called in case
90
-	 * activity consumers are actually requested
91
-	 *
92
-	 * $callable has to return an instance of \OCP\Activity\IConsumer
93
-	 *
94
-	 * @param \Closure $callable
95
-	 * @return void
96
-	 * @since 6.0.0
97
-	 */
98
-	public function registerConsumer(\Closure $callable);
88
+    /**
89
+     * In order to improve lazy loading a closure can be registered which will be called in case
90
+     * activity consumers are actually requested
91
+     *
92
+     * $callable has to return an instance of \OCP\Activity\IConsumer
93
+     *
94
+     * @param \Closure $callable
95
+     * @return void
96
+     * @since 6.0.0
97
+     */
98
+    public function registerConsumer(\Closure $callable);
99 99
 
100
-	/**
101
-	 * In order to improve lazy loading a closure can be registered which will be called in case
102
-	 * activity consumers are actually requested
103
-	 *
104
-	 * $callable has to return an instance of \OCP\Activity\IExtension
105
-	 *
106
-	 * @param \Closure $callable
107
-	 * @return void
108
-	 * @since 8.0.0
109
-	 */
110
-	public function registerExtension(\Closure $callable);
100
+    /**
101
+     * In order to improve lazy loading a closure can be registered which will be called in case
102
+     * activity consumers are actually requested
103
+     *
104
+     * $callable has to return an instance of \OCP\Activity\IExtension
105
+     *
106
+     * @param \Closure $callable
107
+     * @return void
108
+     * @since 8.0.0
109
+     */
110
+    public function registerExtension(\Closure $callable);
111 111
 
112
-	/**
113
-	 * @param string $filter Class must implement OCA\Activity\IFilter
114
-	 * @return void
115
-	 * @since 11.0.0
116
-	 */
117
-	public function registerFilter($filter);
112
+    /**
113
+     * @param string $filter Class must implement OCA\Activity\IFilter
114
+     * @return void
115
+     * @since 11.0.0
116
+     */
117
+    public function registerFilter($filter);
118 118
 
119
-	/**
120
-	 * @return IFilter[]
121
-	 * @since 11.0.0
122
-	 */
123
-	public function getFilters();
119
+    /**
120
+     * @return IFilter[]
121
+     * @since 11.0.0
122
+     */
123
+    public function getFilters();
124 124
 
125
-	/**
126
-	 * @param string $id
127
-	 * @return IFilter
128
-	 * @throws \InvalidArgumentException when the filter was not found
129
-	 * @since 11.0.0
130
-	 */
131
-	public function getFilterById($id);
125
+    /**
126
+     * @param string $id
127
+     * @return IFilter
128
+     * @throws \InvalidArgumentException when the filter was not found
129
+     * @since 11.0.0
130
+     */
131
+    public function getFilterById($id);
132 132
 
133
-	/**
134
-	 * @param string $setting Class must implement OCA\Activity\ISetting
135
-	 * @return void
136
-	 * @since 11.0.0
137
-	 */
138
-	public function registerSetting($setting);
133
+    /**
134
+     * @param string $setting Class must implement OCA\Activity\ISetting
135
+     * @return void
136
+     * @since 11.0.0
137
+     */
138
+    public function registerSetting($setting);
139 139
 
140
-	/**
141
-	 * @return ISetting[]
142
-	 * @since 11.0.0
143
-	 */
144
-	public function getSettings();
140
+    /**
141
+     * @return ISetting[]
142
+     * @since 11.0.0
143
+     */
144
+    public function getSettings();
145 145
 
146
-	/**
147
-	 * @param string $provider Class must implement OCA\Activity\IProvider
148
-	 * @return void
149
-	 * @since 11.0.0
150
-	 */
151
-	public function registerProvider($provider);
146
+    /**
147
+     * @param string $provider Class must implement OCA\Activity\IProvider
148
+     * @return void
149
+     * @since 11.0.0
150
+     */
151
+    public function registerProvider($provider);
152 152
 
153
-	/**
154
-	 * @return IProvider[]
155
-	 * @since 11.0.0
156
-	 */
157
-	public function getProviders();
153
+    /**
154
+     * @return IProvider[]
155
+     * @since 11.0.0
156
+     */
157
+    public function getProviders();
158 158
 
159
-	/**
160
-	 * @param string $id
161
-	 * @return ISetting
162
-	 * @throws \InvalidArgumentException when the setting was not found
163
-	 * @since 11.0.0
164
-	 */
165
-	public function getSettingById($id);
159
+    /**
160
+     * @param string $id
161
+     * @return ISetting
162
+     * @throws \InvalidArgumentException when the setting was not found
163
+     * @since 11.0.0
164
+     */
165
+    public function getSettingById($id);
166 166
 
167
-	/**
168
-	 * Will return additional notification types as specified by other apps
169
-	 *
170
-	 * @param string $languageCode
171
-	 * @return array Array "stringID of the type" => "translated string description for the setting"
172
-	 * 				or Array "stringID of the type" => [
173
-	 * 					'desc' => "translated string description for the setting"
174
-	 * 					'methods' => [\OCP\Activity\IExtension::METHOD_*],
175
-	 * 				]
176
-	 * @since 8.0.0 - 8.2.0: Added support to allow limiting notifications to certain methods
177
-	 * @deprecated 11.0.0 - Use getSettings() instead
178
-	 */
179
-	public function getNotificationTypes($languageCode);
167
+    /**
168
+     * Will return additional notification types as specified by other apps
169
+     *
170
+     * @param string $languageCode
171
+     * @return array Array "stringID of the type" => "translated string description for the setting"
172
+     * 				or Array "stringID of the type" => [
173
+     * 					'desc' => "translated string description for the setting"
174
+     * 					'methods' => [\OCP\Activity\IExtension::METHOD_*],
175
+     * 				]
176
+     * @since 8.0.0 - 8.2.0: Added support to allow limiting notifications to certain methods
177
+     * @deprecated 11.0.0 - Use getSettings() instead
178
+     */
179
+    public function getNotificationTypes($languageCode);
180 180
 
181
-	/**
182
-	 * @param string $method
183
-	 * @return array
184
-	 * @since 8.0.0
185
-	 * @deprecated 11.0.0 - Use getSettings()->isDefaulEnabled<method>() instead
186
-	 */
187
-	public function getDefaultTypes($method);
181
+    /**
182
+     * @param string $method
183
+     * @return array
184
+     * @since 8.0.0
185
+     * @deprecated 11.0.0 - Use getSettings()->isDefaulEnabled<method>() instead
186
+     */
187
+    public function getDefaultTypes($method);
188 188
 
189
-	/**
190
-	 * @param string $type
191
-	 * @return string
192
-	 * @since 8.0.0
193
-	 */
194
-	public function getTypeIcon($type);
189
+    /**
190
+     * @param string $type
191
+     * @return string
192
+     * @since 8.0.0
193
+     */
194
+    public function getTypeIcon($type);
195 195
 
196
-	/**
197
-	 * @param string $type
198
-	 * @param int $id
199
-	 * @since 8.2.0
200
-	 */
201
-	public function setFormattingObject($type, $id);
196
+    /**
197
+     * @param string $type
198
+     * @param int $id
199
+     * @since 8.2.0
200
+     */
201
+    public function setFormattingObject($type, $id);
202 202
 
203
-	/**
204
-	 * @return bool
205
-	 * @since 8.2.0
206
-	 */
207
-	public function isFormattingFilteredObject();
203
+    /**
204
+     * @return bool
205
+     * @since 8.2.0
206
+     */
207
+    public function isFormattingFilteredObject();
208 208
 
209
-	/**
210
-	 * @param string $app
211
-	 * @param string $text
212
-	 * @param array $params
213
-	 * @param boolean $stripPath
214
-	 * @param boolean $highlightParams
215
-	 * @param string $languageCode
216
-	 * @return string|false
217
-	 * @since 8.0.0
218
-	 */
219
-	public function translate($app, $text, $params, $stripPath, $highlightParams, $languageCode);
209
+    /**
210
+     * @param string $app
211
+     * @param string $text
212
+     * @param array $params
213
+     * @param boolean $stripPath
214
+     * @param boolean $highlightParams
215
+     * @param string $languageCode
216
+     * @return string|false
217
+     * @since 8.0.0
218
+     */
219
+    public function translate($app, $text, $params, $stripPath, $highlightParams, $languageCode);
220 220
 
221
-	/**
222
-	 * @param string $app
223
-	 * @param string $text
224
-	 * @return array|false
225
-	 * @since 8.0.0
226
-	 */
227
-	public function getSpecialParameterList($app, $text);
221
+    /**
222
+     * @param string $app
223
+     * @param string $text
224
+     * @return array|false
225
+     * @since 8.0.0
226
+     */
227
+    public function getSpecialParameterList($app, $text);
228 228
 
229
-	/**
230
-	 * @param array $activity
231
-	 * @return integer|false
232
-	 * @since 8.0.0
233
-	 */
234
-	public function getGroupParameter($activity);
229
+    /**
230
+     * @param array $activity
231
+     * @return integer|false
232
+     * @since 8.0.0
233
+     */
234
+    public function getGroupParameter($activity);
235 235
 
236 236
 
237
-	/**
238
-	 * Set the user we need to use
239
-	 *
240
-	 * @param string|null $currentUserId
241
-	 * @throws \UnexpectedValueException If the user is invalid
242
-	 * @since 9.0.1
243
-	 */
244
-	public function setCurrentUserId($currentUserId);
237
+    /**
238
+     * Set the user we need to use
239
+     *
240
+     * @param string|null $currentUserId
241
+     * @throws \UnexpectedValueException If the user is invalid
242
+     * @since 9.0.1
243
+     */
244
+    public function setCurrentUserId($currentUserId);
245 245
 
246
-	/**
247
-	 * Get the user we need to use
248
-	 *
249
-	 * Either the user is logged in, or we try to get it from the token
250
-	 *
251
-	 * @return string
252
-	 * @throws \UnexpectedValueException If the token is invalid, does not exist or is not unique
253
-	 * @since 8.1.0
254
-	 */
255
-	public function getCurrentUserId();
246
+    /**
247
+     * Get the user we need to use
248
+     *
249
+     * Either the user is logged in, or we try to get it from the token
250
+     *
251
+     * @return string
252
+     * @throws \UnexpectedValueException If the token is invalid, does not exist or is not unique
253
+     * @since 8.1.0
254
+     */
255
+    public function getCurrentUserId();
256 256
 
257
-	/**
258
-	 * @return array
259
-	 * @since 8.0.0
260
-	 * @deprecated 11.0.0 - Use getFilters() instead
261
-	 */
262
-	public function getNavigation();
257
+    /**
258
+     * @return array
259
+     * @since 8.0.0
260
+     * @deprecated 11.0.0 - Use getFilters() instead
261
+     */
262
+    public function getNavigation();
263 263
 
264
-	/**
265
-	 * @param string $filterValue
266
-	 * @return boolean
267
-	 * @since 8.0.0
268
-	 * @deprecated 11.0.0 - Use getFilterById() instead
269
-	 */
270
-	public function isFilterValid($filterValue);
264
+    /**
265
+     * @param string $filterValue
266
+     * @return boolean
267
+     * @since 8.0.0
268
+     * @deprecated 11.0.0 - Use getFilterById() instead
269
+     */
270
+    public function isFilterValid($filterValue);
271 271
 
272
-	/**
273
-	 * @param array $types
274
-	 * @param string $filter
275
-	 * @return array
276
-	 * @since 8.0.0
277
-	 * @deprecated 11.0.0 - Use getFilterById()->filterTypes() instead
278
-	 */
279
-	public function filterNotificationTypes($types, $filter);
272
+    /**
273
+     * @param array $types
274
+     * @param string $filter
275
+     * @return array
276
+     * @since 8.0.0
277
+     * @deprecated 11.0.0 - Use getFilterById()->filterTypes() instead
278
+     */
279
+    public function filterNotificationTypes($types, $filter);
280 280
 
281
-	/**
282
-	 * @param string $filter
283
-	 * @return array
284
-	 * @since 8.0.0
285
-	 * @deprecated 11.0.0 - Use getFilterById() instead
286
-	 */
287
-	public function getQueryForFilter($filter);
281
+    /**
282
+     * @param string $filter
283
+     * @return array
284
+     * @since 8.0.0
285
+     * @deprecated 11.0.0 - Use getFilterById() instead
286
+     */
287
+    public function getQueryForFilter($filter);
288 288
 }
Please login to merge, or discard this patch.
lib/public/Activity/ISetting.php 1 patch
Indentation   +37 added lines, -37 removed lines patch added patch discarded remove patch
@@ -29,48 +29,48 @@
 block discarded – undo
29 29
  */
30 30
 interface ISetting {
31 31
 
32
-	/**
33
-	 * @return string Lowercase a-z and underscore only identifier
34
-	 * @since 11.0.0
35
-	 */
36
-	public function getIdentifier();
32
+    /**
33
+     * @return string Lowercase a-z and underscore only identifier
34
+     * @since 11.0.0
35
+     */
36
+    public function getIdentifier();
37 37
 
38
-	/**
39
-	 * @return string A translated string
40
-	 * @since 11.0.0
41
-	 */
42
-	public function getName();
38
+    /**
39
+     * @return string A translated string
40
+     * @since 11.0.0
41
+     */
42
+    public function getName();
43 43
 
44
-	/**
45
-	 * @return int whether the filter should be rather on the top or bottom of
46
-	 * the admin section. The filters are arranged in ascending order of the
47
-	 * priority values. It is required to return a value between 0 and 100.
48
-	 * @since 11.0.0
49
-	 */
50
-	public function getPriority();
44
+    /**
45
+     * @return int whether the filter should be rather on the top or bottom of
46
+     * the admin section. The filters are arranged in ascending order of the
47
+     * priority values. It is required to return a value between 0 and 100.
48
+     * @since 11.0.0
49
+     */
50
+    public function getPriority();
51 51
 
52
-	/**
53
-	 * @return bool True when the option can be changed for the stream
54
-	 * @since 11.0.0
55
-	 */
56
-	public function canChangeStream();
52
+    /**
53
+     * @return bool True when the option can be changed for the stream
54
+     * @since 11.0.0
55
+     */
56
+    public function canChangeStream();
57 57
 
58
-	/**
59
-	 * @return bool True when the option can be changed for the stream
60
-	 * @since 11.0.0
61
-	 */
62
-	public function isDefaultEnabledStream();
58
+    /**
59
+     * @return bool True when the option can be changed for the stream
60
+     * @since 11.0.0
61
+     */
62
+    public function isDefaultEnabledStream();
63 63
 
64
-	/**
65
-	 * @return bool True when the option can be changed for the mail
66
-	 * @since 11.0.0
67
-	 */
68
-	public function canChangeMail();
64
+    /**
65
+     * @return bool True when the option can be changed for the mail
66
+     * @since 11.0.0
67
+     */
68
+    public function canChangeMail();
69 69
 
70
-	/**
71
-	 * @return bool True when the option can be changed for the stream
72
-	 * @since 11.0.0
73
-	 */
74
-	public function isDefaultEnabledMail();
70
+    /**
71
+     * @return bool True when the option can be changed for the stream
72
+     * @since 11.0.0
73
+     */
74
+    public function isDefaultEnabledMail();
75 75
 }
76 76
 
Please login to merge, or discard this patch.
lib/public/Activity/IProvider.php 1 patch
Indentation   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -28,15 +28,15 @@
 block discarded – undo
28 28
  * @since 11.0.0
29 29
  */
30 30
 interface IProvider {
31
-	/**
32
-	 * @param string $language The language which should be used for translating, e.g. "en"
33
-	 * @param IEvent $event The current event which should be parsed
34
-	 * @param IEvent|null $previousEvent A potential previous event which you can combine with the current one.
35
-	 *                                   To do so, simply use setChildEvent($previousEvent) after setting the
36
-	 *                                   combined subject on the current event.
37
-	 * @return IEvent
38
-	 * @throws \InvalidArgumentException Should be thrown if your provider does not know this event
39
-	 * @since 11.0.0
40
-	 */
41
-	public function parse($language, IEvent $event, IEvent $previousEvent = null);
31
+    /**
32
+     * @param string $language The language which should be used for translating, e.g. "en"
33
+     * @param IEvent $event The current event which should be parsed
34
+     * @param IEvent|null $previousEvent A potential previous event which you can combine with the current one.
35
+     *                                   To do so, simply use setChildEvent($previousEvent) after setting the
36
+     *                                   combined subject on the current event.
37
+     * @return IEvent
38
+     * @throws \InvalidArgumentException Should be thrown if your provider does not know this event
39
+     * @since 11.0.0
40
+     */
41
+    public function parse($language, IEvent $event, IEvent $previousEvent = null);
42 42
 }
Please login to merge, or discard this patch.
lib/public/Activity/IConsumer.php 1 patch
Indentation   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -38,12 +38,12 @@
 block discarded – undo
38 38
  * @since 6.0.0
39 39
  */
40 40
 interface IConsumer {
41
-	/**
42
-	 * @param IEvent $event
43
-	 * @return null
44
-	 * @since 6.0.0
45
-	 * @since 8.2.0 Replaced the parameters with an IEvent object
46
-	 */
47
-	public function receive(IEvent $event);
41
+    /**
42
+     * @param IEvent $event
43
+     * @return null
44
+     * @since 6.0.0
45
+     * @since 8.2.0 Replaced the parameters with an IEvent object
46
+     */
47
+    public function receive(IEvent $event);
48 48
 }
49 49
 
Please login to merge, or discard this patch.
lib/public/IMemcacheTTL.php 1 patch
Indentation   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -29,12 +29,12 @@
 block discarded – undo
29 29
  * @since 8.2.2
30 30
  */
31 31
 interface IMemcacheTTL extends IMemcache {
32
-	/**
33
-	 * Set the ttl for an existing value
34
-	 *
35
-	 * @param string $key
36
-	 * @param int $ttl time to live in seconds
37
-	 * @since 8.2.2
38
-	 */
39
-	public function setTTL($key, $ttl);
32
+    /**
33
+     * Set the ttl for an existing value
34
+     *
35
+     * @param string $key
36
+     * @param int $ttl time to live in seconds
37
+     * @since 8.2.2
38
+     */
39
+    public function setTTL($key, $ttl);
40 40
 }
Please login to merge, or discard this patch.
lib/public/IUserSession.php 1 patch
Indentation   +36 added lines, -36 removed lines patch added patch discarded remove patch
@@ -40,44 +40,44 @@
 block discarded – undo
40 40
  * @since 6.0.0
41 41
  */
42 42
 interface IUserSession {
43
-	/**
44
-	 * Do a user login
45
-	 * @param string $user the username
46
-	 * @param string $password the password
47
-	 * @return bool true if successful
48
-	 * @since 6.0.0
49
-	 */
50
-	public function login($user, $password);
43
+    /**
44
+     * Do a user login
45
+     * @param string $user the username
46
+     * @param string $password the password
47
+     * @return bool true if successful
48
+     * @since 6.0.0
49
+     */
50
+    public function login($user, $password);
51 51
 
52
-	/**
53
-	 * Logs the user out including all the session data
54
-	 * Logout, destroys session
55
-	 * @return void
56
-	 * @since 6.0.0
57
-	 */
58
-	public function logout();
52
+    /**
53
+     * Logs the user out including all the session data
54
+     * Logout, destroys session
55
+     * @return void
56
+     * @since 6.0.0
57
+     */
58
+    public function logout();
59 59
 
60
-	/**
61
-	 * set the currently active user
62
-	 *
63
-	 * @param \OCP\IUser|null $user
64
-	 * @since 8.0.0
65
-	 */
66
-	public function setUser($user);
60
+    /**
61
+     * set the currently active user
62
+     *
63
+     * @param \OCP\IUser|null $user
64
+     * @since 8.0.0
65
+     */
66
+    public function setUser($user);
67 67
 
68
-	/**
69
-	 * get the current active user
70
-	 *
71
-	 * @return \OCP\IUser|null Current user, otherwise null
72
-	 * @since 8.0.0
73
-	 */
74
-	public function getUser();
68
+    /**
69
+     * get the current active user
70
+     *
71
+     * @return \OCP\IUser|null Current user, otherwise null
72
+     * @since 8.0.0
73
+     */
74
+    public function getUser();
75 75
 
76
-	/**
77
-	 * Checks whether the user is logged in
78
-	 *
79
-	 * @return bool if logged in
80
-	 * @since 8.0.0
81
-	 */
82
-	public function isLoggedIn();
76
+    /**
77
+     * Checks whether the user is logged in
78
+     *
79
+     * @return bool if logged in
80
+     * @since 8.0.0
81
+     */
82
+    public function isLoggedIn();
83 83
 }
Please login to merge, or discard this patch.
lib/public/IDateTimeZone.php 1 patch
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -30,10 +30,10 @@
 block discarded – undo
30 30
  * @since 8.0.0
31 31
  */
32 32
 interface IDateTimeZone {
33
-	/**
34
-	 * @param bool|int $timestamp
35
-	 * @return \DateTimeZone
36
-	 * @since 8.0.0 - parameter $timestamp was added in 8.1.0
37
-	 */
38
-	public function getTimeZone($timestamp = false);
33
+    /**
34
+     * @param bool|int $timestamp
35
+     * @return \DateTimeZone
36
+     * @since 8.0.0 - parameter $timestamp was added in 8.1.0
37
+     */
38
+    public function getTimeZone($timestamp = false);
39 39
 }
Please login to merge, or discard this patch.
lib/public/Security/StringUtils.php 1 patch
Indentation   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -31,18 +31,18 @@
 block discarded – undo
31 31
  * @since 8.0.0
32 32
  */
33 33
 class StringUtils {
34
-	/**
35
-	 * Compares whether two strings are equal. To prevent guessing of the string
36
-	 * length this is done by comparing two hashes against each other and afterwards
37
-	 * a comparison of the real string to prevent against the unlikely chance of
38
-	 * collisions.
39
-	 * @param string $expected The expected value
40
-	 * @param string $input The input to compare against
41
-	 * @return bool True if the two strings are equal, otherwise false.
42
-	 * @since 8.0.0
43
-	 * @deprecated 9.0.0 Use hash_equals
44
-	 */
45
-	public static function equals($expected, $input) {
46
-		return hash_equals($expected, $input);
47
-	}
34
+    /**
35
+     * Compares whether two strings are equal. To prevent guessing of the string
36
+     * length this is done by comparing two hashes against each other and afterwards
37
+     * a comparison of the real string to prevent against the unlikely chance of
38
+     * collisions.
39
+     * @param string $expected The expected value
40
+     * @param string $input The input to compare against
41
+     * @return bool True if the two strings are equal, otherwise false.
42
+     * @since 8.0.0
43
+     * @deprecated 9.0.0 Use hash_equals
44
+     */
45
+    public static function equals($expected, $input) {
46
+        return hash_equals($expected, $input);
47
+    }
48 48
 }
Please login to merge, or discard this patch.
lib/public/Security/ICredentialsManager.php 1 patch
Indentation   +35 added lines, -35 removed lines patch added patch discarded remove patch
@@ -30,43 +30,43 @@
 block discarded – undo
30 30
  */
31 31
 interface ICredentialsManager {
32 32
 
33
-	/**
34
-	 * Store a set of credentials
35
-	 *
36
-	 * @param string|null $userId Null for system-wide credentials
37
-	 * @param string $identifier
38
-	 * @param mixed $credentials
39
-	 * @since 8.2.0
40
-	 */
41
-	public function store($userId, $identifier, $credentials);
33
+    /**
34
+     * Store a set of credentials
35
+     *
36
+     * @param string|null $userId Null for system-wide credentials
37
+     * @param string $identifier
38
+     * @param mixed $credentials
39
+     * @since 8.2.0
40
+     */
41
+    public function store($userId, $identifier, $credentials);
42 42
 
43
-	/**
44
-	 * Retrieve a set of credentials
45
-	 *
46
-	 * @param string|null $userId Null for system-wide credentials
47
-	 * @param string $identifier
48
-	 * @return mixed
49
-	 * @since 8.2.0
50
-	 */
51
-	public function retrieve($userId, $identifier);
43
+    /**
44
+     * Retrieve a set of credentials
45
+     *
46
+     * @param string|null $userId Null for system-wide credentials
47
+     * @param string $identifier
48
+     * @return mixed
49
+     * @since 8.2.0
50
+     */
51
+    public function retrieve($userId, $identifier);
52 52
 
53
-	/**
54
-	 * Delete a set of credentials
55
-	 *
56
-	 * @param string|null $userId Null for system-wide credentials
57
-	 * @param string $identifier
58
-	 * @return int rows removed
59
-	 * @since 8.2.0
60
-	 */
61
-	public function delete($userId, $identifier);
53
+    /**
54
+     * Delete a set of credentials
55
+     *
56
+     * @param string|null $userId Null for system-wide credentials
57
+     * @param string $identifier
58
+     * @return int rows removed
59
+     * @since 8.2.0
60
+     */
61
+    public function delete($userId, $identifier);
62 62
 
63
-	/**
64
-	 * Erase all credentials stored for a user
65
-	 *
66
-	 * @param string $userId
67
-	 * @return int rows removed
68
-	 * @since 8.2.0
69
-	 */
70
-	public function erase($userId);
63
+    /**
64
+     * Erase all credentials stored for a user
65
+     *
66
+     * @param string $userId
67
+     * @return int rows removed
68
+     * @since 8.2.0
69
+     */
70
+    public function erase($userId);
71 71
 
72 72
 }
Please login to merge, or discard this patch.