Completed
Pull Request — master (#6552)
by Julius
44:08 queued 30:39
created
lib/public/RichObjectStrings/Definitions.php 1 patch
Indentation   +398 added lines, -398 removed lines patch added patch discarded remove patch
@@ -29,404 +29,404 @@
 block discarded – undo
29 29
  * @since 11.0.0
30 30
  */
31 31
 class Definitions {
32
-	/**
33
-	 * @var array
34
-	 * @since 11.0.0
35
-	 */
36
-	public $definitions = [
37
-		'addressbook' => [
38
-			'author' => 'Nextcloud',
39
-			'app' => 'dav',
40
-			'since' => '11.0.0',
41
-			'parameters' => [
42
-				'id' => [
43
-					'since' => '11.0.0',
44
-					'required' => true,
45
-					'description' => 'The id used to identify the addressbook on the instance',
46
-					'example' => '42',
47
-				],
48
-				'name' => [
49
-					'since' => '11.0.0',
50
-					'required' => true,
51
-					'description' => 'The display name of the addressbook which should be used in the visual representation',
52
-					'example' => 'Contacts',
53
-				],
54
-			],
55
-		],
56
-		'addressbook-contact' => [
57
-			'author' => 'Nextcloud',
58
-			'app' => 'dav',
59
-			'since' => '11.0.0',
60
-			'parameters' => [
61
-				'id' => [
62
-					'since' => '11.0.0',
63
-					'required' => true,
64
-					'description' => 'The id used to identify the contact on the instance',
65
-					'example' => '42',
66
-				],
67
-				'name' => [
68
-					'since' => '11.0.0',
69
-					'required' => true,
70
-					'description' => 'The display name of the contact which should be used in the visual representation',
71
-					'example' => 'John Doe',
72
-				],
73
-			],
74
-		],
75
-		'announcement' => [
76
-			'author' => 'Joas Schilling',
77
-			'app' => 'announcementcenter',
78
-			'since' => '11.0.0',
79
-			'parameters' => [
80
-				'id' => [
81
-					'since' => '11.0.0',
82
-					'required' => true, 'description' => 'The id used to identify the announcement on the instance',
83
-					'example' => '42',
84
-				],
85
-				'name' => [
86
-					'since' => '11.0.0',
87
-					'required' => true,
88
-					'description' => 'The announcement subject which should be used in the visual representation',
89
-					'example' => 'file.txt',
90
-				],
91
-				'link' => [
92
-					'since' => '11.0.0',
93
-					'required' => false,
94
-					'description' => 'The full URL to the file',
95
-					'example' => 'http://localhost/index.php/apps/announcements/#23',
96
-				],
97
-			],
98
-		],
99
-		'app' => [
100
-			'author' => 'Nextcloud',
101
-			'app' => 'updatenotification',
102
-			'since' => '11.0.0',
103
-			'parameters' => [
104
-				'id' => [
105
-					'since' => '11.0.0',
106
-					'required' => true, 'description' => 'The app id',
107
-					'example' => 'updatenotification',
108
-				],
109
-				'name' => [
110
-					'since' => '11.0.0',
111
-					'required' => true,
112
-					'description' => 'The name of the app which should be used in the visual representation',
113
-					'example' => 'Update notification',
114
-				],
115
-			],
116
-		],
117
-		'calendar' => [
118
-			'author' => 'Nextcloud',
119
-			'app' => 'dav',
120
-			'since' => '11.0.0',
121
-			'parameters' => [
122
-				'id' => [
123
-					'since' => '11.0.0',
124
-					'required' => true,
125
-					'description' => 'The id used to identify the calendar on the instance',
126
-					'example' => '42',
127
-				],
128
-				'name' => [
129
-					'since' => '11.0.0',
130
-					'required' => true,
131
-					'description' => 'The display name of the calendar which should be used in the visual representation',
132
-					'example' => 'Personal',
133
-				],
134
-			],
135
-		],
136
-		'calendar-event' => [
137
-			'author' => 'Nextcloud',
138
-			'app' => 'dav',
139
-			'since' => '11.0.0',
140
-			'parameters' => [
141
-				'id' => [
142
-					'since' => '11.0.0',
143
-					'required' => true,
144
-					'description' => 'The id used to identify the event on the instance',
145
-					'example' => '42',
146
-				],
147
-				'name' => [
148
-					'since' => '11.0.0',
149
-					'required' => true,
150
-					'description' => 'The display name of the event which should be used in the visual representation',
151
-					'example' => 'Workout',
152
-				],
153
-			],
154
-		],
155
-		'call' => [
156
-			'author' => 'Nextcloud',
157
-			'app' => 'spreed',
158
-			'since' => '11.0.2',
159
-			'parameters' => [
160
-				'id' => [
161
-					'since' => '11.0.2',
162
-					'required' => true,
163
-					'description' => 'The id used to identify the call on the instance',
164
-					'example' => '42',
165
-				],
166
-				'name' => [
167
-					'since' => '11.0.2',
168
-					'required' => true,
169
-					'description' => 'The display name of the call which should be used in the visual representation',
170
-					'example' => 'Company call',
171
-				],
172
-				'call-type' => [
173
-					'since' => '11.0.2',
174
-					'required' => true,
175
-					'description' => 'The type of the call: one2one, group or public',
176
-					'example' => 'one2one',
177
-				],
178
-			],
179
-		],
180
-		'circle' => [
181
-			'author' => 'Maxence Lange',
182
-			'app' => 'circles',
183
-			'since' => '12.0.0',
184
-			'parameters' => [
185
-				'id' => [
186
-					'since' => '12.0.0',
187
-					'required' => true,
188
-					'description' => 'The id used to identify the circle on the instance',
189
-					'example' => '42',
190
-				],
191
-				'name' => [
192
-					'since' => '12.0.0',
193
-					'required' => true,
194
-					'description' => 'The display name of the circle which should be used in the visual representation',
195
-					'example' => 'My friends',
196
-				],
197
-				'link' => [
198
-					'since' => '12.0.0',
199
-					'required' => true,
200
-					'description' => 'The full URL to the circle',
201
-					'example' => 'http://localhost/index.php/apps/circles/#42',
202
-				],
203
-			],
204
-		],
205
-		'email' => [
206
-			'author' => 'Nextcloud',
207
-			'app' => 'sharebymail',
208
-			'since' => '11.0.0',
209
-			'parameters' => [
210
-				'id' => [
211
-					'since' => '11.0.0',
212
-					'required' => true,
213
-					'description' => 'The mail-address used to identify the event on the instance',
214
-					'example' => 'test@localhost',
215
-				],
216
-				'name' => [
217
-					'since' => '11.0.0',
218
-					'required' => true,
219
-					'description' => 'The display name of a matching contact or the email (fallback) which should be used in the visual representation',
220
-					'example' => 'Foo Bar',
221
-				],
222
-			],
223
-		],
224
-		'file' => [
225
-			'author' => 'Nextcloud',
226
-			'app' => 'dav',
227
-			'since' => '11.0.0',
228
-			'parameters' => [
229
-				'id' => [
230
-					'since' => '11.0.0',
231
-					'required' => true,
232
-					'description' => 'The id used to identify the file on the instance',
233
-					'example' => '42',
234
-				],
235
-				'name' => [
236
-					'since' => '11.0.0',
237
-					'required' => true,
238
-					'description' => 'The file name which should be used in the visual representation',
239
-					'example' => 'file.txt',
240
-				],
241
-				'path' => [
242
-					'since' => '11.0.0',
243
-					'required' => true,
244
-					'description' => 'The full path of the file for the user, should not start with a slash',
245
-					'example' => 'path/to/file.txt',
246
-				],
247
-				'link' => [
248
-					'since' => '11.0.0',
249
-					'required' => false,
250
-					'description' => 'The full URL to the file',
251
-					'example' => 'http://localhost/index.php/f/42',
252
-				],
253
-			],
254
-		],
255
-		'highlight' => [
256
-			'author' => 'Nextcloud',
257
-			'app' => 'core',
258
-			'since' => '13.0.0',
259
-			'parameters' => [
260
-				'id' => [
261
-					'since' => '13.0.0',
262
-					'required' => true,
263
-					'description' => 'The id used to identify the highlighted object on the instance',
264
-					'example' => '42',
265
-				],
266
-				'name' => [
267
-					'since' => '13.0.0',
268
-					'required' => true,
269
-					'description' => 'The string that should be highlighted.',
270
-					'example' => 'Hello World',
271
-				],
272
-				'link' => [
273
-					'since' => '13.0.0',
274
-					'required' => false,
275
-					'description' => 'The full URL that should be opened when clicking the highlighted text.',
276
-					'example' => 'http://localhost/index.php/f/42',
277
-				],
278
-			],
279
-		],
280
-		'open-graph' => [
281
-			'author' => 'Maxence Lange',
282
-			'app' => 'mood',
283
-			'since' => '12.0.0',
284
-			'parameters' => [
285
-				'id' => [
286
-					'since' => '12.0.0',
287
-					'required' => true,
288
-					'description' => 'The id used to identify the open graph data on the instance',
289
-					'example' => '42',
290
-				],
291
-				'name' => [
292
-					'since' => '12.0.0',
293
-					'required' => true,
294
-					'description' => 'The open graph title of the website',
295
-					'example' => 'This is a website',
296
-				],
297
-				'description' => [
298
-					'since' => '12.0.0',
299
-					'required' => false,
300
-					'description' => 'The open graph description from the website',
301
-					'example' => 'This is the description of the website',
302
-				],
303
-				'thumb' => [
304
-					'since' => '12.0.0',
305
-					'required' => false,
306
-					'description' => 'The full URL of the open graph thumbnail',
307
-					'example' => 'http://localhost/index.php/apps/mood/data/image?url=https%3A%2F%2Fthumb.example.com%2Fimage.png',
308
-				],
309
-				'website' => [
310
-					'since' => '12.0.0',
311
-					'required' => false,
312
-					'description' => 'The name of the described website',
313
-					'example' => 'Nextcloud - App Store',
314
-				],
315
-				'link' => [
316
-					'since' => '12.0.0',
317
-					'required' => false,
318
-					'description' => 'The full link to the website',
319
-					'example' => 'https://apps.nextcloud.com/apps/mood',
320
-				],
321
-			],
322
-		],
323
-		'pending-federated-share' => [
324
-			'author' => 'Nextcloud',
325
-			'app' => 'dav',
326
-			'since' => '11.0.0',
327
-			'parameters' => [
328
-				'id' => [
329
-					'since' => '11.0.0',
330
-					'required' => true,
331
-					'description' => 'The id used to identify the federated share on the instance',
332
-					'example' => '42',
333
-				],
334
-				'name' => [
335
-					'since' => '11.0.0',
336
-					'required' => true,
337
-					'description' => 'The name of the shared item which should be used in the visual representation',
338
-					'example' => 'file.txt',
339
-				],
340
-			],
341
-		],
342
-		'systemtag' => [
343
-			'author' => 'Nextcloud',
344
-			'app' => 'core',
345
-			'since' => '11.0.0',
346
-			'parameters' => [
347
-				'id' => [
348
-					'since' => '11.0.0',
349
-					'required' => true,
350
-					'description' => 'The id used to identify the systemtag on the instance',
351
-					'example' => '23',
352
-				],
353
-				'name' => [
354
-					'since' => '11.0.0',
355
-					'required' => true,
356
-					'description' => 'The display name of the systemtag which should be used in the visual representation',
357
-					'example' => 'Project 1',
358
-				],
359
-				'visibility' => [
360
-					'since' => '11.0.0',
361
-					'required' => true,
362
-					'description' => 'If the user can see the systemtag',
363
-					'example' => '1',
364
-				],
365
-				'assignable' => [
366
-					'since' => '11.0.0',
367
-					'required' => true,
368
-					'description' => 'If the user can assign the systemtag',
369
-					'example' => '0',
370
-				],
371
-			],
372
-		],
373
-		'user' => [
374
-			'author' => 'Nextcloud',
375
-			'app' => 'core',
376
-			'since' => '11.0.0',
377
-			'parameters' => [
378
-				'id' => [
379
-					'since' => '11.0.0',
380
-					'required' => true,
381
-					'description' => 'The id used to identify the user on the instance',
382
-					'example' => 'johndoe',
383
-				],
384
-				'name' => [
385
-					'since' => '11.0.0',
386
-					'required' => true,
387
-					'description' => 'The display name of the user which should be used in the visual representation',
388
-					'example' => 'John Doe',
389
-				],
390
-				'server' => [
391
-					'since' => '11.0.0',
392
-					'required' => false,
393
-					'description' => 'The URL of the instance the user lives on',
394
-					'example' => 'localhost',
395
-				],
396
-			],
397
-		],
398
-		'user-group' => [
399
-			'author' => 'Nextcloud',
400
-			'app' => 'core',
401
-			'since' => '11.0.0',
402
-			'parameters' => [
403
-				'id' => [
404
-					'since' => '11.0.0',
405
-					'required' => true,
406
-					'description' => 'The id used to identify the group on the instance',
407
-					'example' => 'supportteam',
408
-				],
409
-				'name' => [
410
-					'since' => '11.0.0',
411
-					'required' => true,
412
-					'description' => 'The display name of the group which should be used in the visual representation',
413
-					'example' => 'Support Team',
414
-				],
415
-			],
416
-		],
417
-	];
32
+    /**
33
+     * @var array
34
+     * @since 11.0.0
35
+     */
36
+    public $definitions = [
37
+        'addressbook' => [
38
+            'author' => 'Nextcloud',
39
+            'app' => 'dav',
40
+            'since' => '11.0.0',
41
+            'parameters' => [
42
+                'id' => [
43
+                    'since' => '11.0.0',
44
+                    'required' => true,
45
+                    'description' => 'The id used to identify the addressbook on the instance',
46
+                    'example' => '42',
47
+                ],
48
+                'name' => [
49
+                    'since' => '11.0.0',
50
+                    'required' => true,
51
+                    'description' => 'The display name of the addressbook which should be used in the visual representation',
52
+                    'example' => 'Contacts',
53
+                ],
54
+            ],
55
+        ],
56
+        'addressbook-contact' => [
57
+            'author' => 'Nextcloud',
58
+            'app' => 'dav',
59
+            'since' => '11.0.0',
60
+            'parameters' => [
61
+                'id' => [
62
+                    'since' => '11.0.0',
63
+                    'required' => true,
64
+                    'description' => 'The id used to identify the contact on the instance',
65
+                    'example' => '42',
66
+                ],
67
+                'name' => [
68
+                    'since' => '11.0.0',
69
+                    'required' => true,
70
+                    'description' => 'The display name of the contact which should be used in the visual representation',
71
+                    'example' => 'John Doe',
72
+                ],
73
+            ],
74
+        ],
75
+        'announcement' => [
76
+            'author' => 'Joas Schilling',
77
+            'app' => 'announcementcenter',
78
+            'since' => '11.0.0',
79
+            'parameters' => [
80
+                'id' => [
81
+                    'since' => '11.0.0',
82
+                    'required' => true, 'description' => 'The id used to identify the announcement on the instance',
83
+                    'example' => '42',
84
+                ],
85
+                'name' => [
86
+                    'since' => '11.0.0',
87
+                    'required' => true,
88
+                    'description' => 'The announcement subject which should be used in the visual representation',
89
+                    'example' => 'file.txt',
90
+                ],
91
+                'link' => [
92
+                    'since' => '11.0.0',
93
+                    'required' => false,
94
+                    'description' => 'The full URL to the file',
95
+                    'example' => 'http://localhost/index.php/apps/announcements/#23',
96
+                ],
97
+            ],
98
+        ],
99
+        'app' => [
100
+            'author' => 'Nextcloud',
101
+            'app' => 'updatenotification',
102
+            'since' => '11.0.0',
103
+            'parameters' => [
104
+                'id' => [
105
+                    'since' => '11.0.0',
106
+                    'required' => true, 'description' => 'The app id',
107
+                    'example' => 'updatenotification',
108
+                ],
109
+                'name' => [
110
+                    'since' => '11.0.0',
111
+                    'required' => true,
112
+                    'description' => 'The name of the app which should be used in the visual representation',
113
+                    'example' => 'Update notification',
114
+                ],
115
+            ],
116
+        ],
117
+        'calendar' => [
118
+            'author' => 'Nextcloud',
119
+            'app' => 'dav',
120
+            'since' => '11.0.0',
121
+            'parameters' => [
122
+                'id' => [
123
+                    'since' => '11.0.0',
124
+                    'required' => true,
125
+                    'description' => 'The id used to identify the calendar on the instance',
126
+                    'example' => '42',
127
+                ],
128
+                'name' => [
129
+                    'since' => '11.0.0',
130
+                    'required' => true,
131
+                    'description' => 'The display name of the calendar which should be used in the visual representation',
132
+                    'example' => 'Personal',
133
+                ],
134
+            ],
135
+        ],
136
+        'calendar-event' => [
137
+            'author' => 'Nextcloud',
138
+            'app' => 'dav',
139
+            'since' => '11.0.0',
140
+            'parameters' => [
141
+                'id' => [
142
+                    'since' => '11.0.0',
143
+                    'required' => true,
144
+                    'description' => 'The id used to identify the event on the instance',
145
+                    'example' => '42',
146
+                ],
147
+                'name' => [
148
+                    'since' => '11.0.0',
149
+                    'required' => true,
150
+                    'description' => 'The display name of the event which should be used in the visual representation',
151
+                    'example' => 'Workout',
152
+                ],
153
+            ],
154
+        ],
155
+        'call' => [
156
+            'author' => 'Nextcloud',
157
+            'app' => 'spreed',
158
+            'since' => '11.0.2',
159
+            'parameters' => [
160
+                'id' => [
161
+                    'since' => '11.0.2',
162
+                    'required' => true,
163
+                    'description' => 'The id used to identify the call on the instance',
164
+                    'example' => '42',
165
+                ],
166
+                'name' => [
167
+                    'since' => '11.0.2',
168
+                    'required' => true,
169
+                    'description' => 'The display name of the call which should be used in the visual representation',
170
+                    'example' => 'Company call',
171
+                ],
172
+                'call-type' => [
173
+                    'since' => '11.0.2',
174
+                    'required' => true,
175
+                    'description' => 'The type of the call: one2one, group or public',
176
+                    'example' => 'one2one',
177
+                ],
178
+            ],
179
+        ],
180
+        'circle' => [
181
+            'author' => 'Maxence Lange',
182
+            'app' => 'circles',
183
+            'since' => '12.0.0',
184
+            'parameters' => [
185
+                'id' => [
186
+                    'since' => '12.0.0',
187
+                    'required' => true,
188
+                    'description' => 'The id used to identify the circle on the instance',
189
+                    'example' => '42',
190
+                ],
191
+                'name' => [
192
+                    'since' => '12.0.0',
193
+                    'required' => true,
194
+                    'description' => 'The display name of the circle which should be used in the visual representation',
195
+                    'example' => 'My friends',
196
+                ],
197
+                'link' => [
198
+                    'since' => '12.0.0',
199
+                    'required' => true,
200
+                    'description' => 'The full URL to the circle',
201
+                    'example' => 'http://localhost/index.php/apps/circles/#42',
202
+                ],
203
+            ],
204
+        ],
205
+        'email' => [
206
+            'author' => 'Nextcloud',
207
+            'app' => 'sharebymail',
208
+            'since' => '11.0.0',
209
+            'parameters' => [
210
+                'id' => [
211
+                    'since' => '11.0.0',
212
+                    'required' => true,
213
+                    'description' => 'The mail-address used to identify the event on the instance',
214
+                    'example' => 'test@localhost',
215
+                ],
216
+                'name' => [
217
+                    'since' => '11.0.0',
218
+                    'required' => true,
219
+                    'description' => 'The display name of a matching contact or the email (fallback) which should be used in the visual representation',
220
+                    'example' => 'Foo Bar',
221
+                ],
222
+            ],
223
+        ],
224
+        'file' => [
225
+            'author' => 'Nextcloud',
226
+            'app' => 'dav',
227
+            'since' => '11.0.0',
228
+            'parameters' => [
229
+                'id' => [
230
+                    'since' => '11.0.0',
231
+                    'required' => true,
232
+                    'description' => 'The id used to identify the file on the instance',
233
+                    'example' => '42',
234
+                ],
235
+                'name' => [
236
+                    'since' => '11.0.0',
237
+                    'required' => true,
238
+                    'description' => 'The file name which should be used in the visual representation',
239
+                    'example' => 'file.txt',
240
+                ],
241
+                'path' => [
242
+                    'since' => '11.0.0',
243
+                    'required' => true,
244
+                    'description' => 'The full path of the file for the user, should not start with a slash',
245
+                    'example' => 'path/to/file.txt',
246
+                ],
247
+                'link' => [
248
+                    'since' => '11.0.0',
249
+                    'required' => false,
250
+                    'description' => 'The full URL to the file',
251
+                    'example' => 'http://localhost/index.php/f/42',
252
+                ],
253
+            ],
254
+        ],
255
+        'highlight' => [
256
+            'author' => 'Nextcloud',
257
+            'app' => 'core',
258
+            'since' => '13.0.0',
259
+            'parameters' => [
260
+                'id' => [
261
+                    'since' => '13.0.0',
262
+                    'required' => true,
263
+                    'description' => 'The id used to identify the highlighted object on the instance',
264
+                    'example' => '42',
265
+                ],
266
+                'name' => [
267
+                    'since' => '13.0.0',
268
+                    'required' => true,
269
+                    'description' => 'The string that should be highlighted.',
270
+                    'example' => 'Hello World',
271
+                ],
272
+                'link' => [
273
+                    'since' => '13.0.0',
274
+                    'required' => false,
275
+                    'description' => 'The full URL that should be opened when clicking the highlighted text.',
276
+                    'example' => 'http://localhost/index.php/f/42',
277
+                ],
278
+            ],
279
+        ],
280
+        'open-graph' => [
281
+            'author' => 'Maxence Lange',
282
+            'app' => 'mood',
283
+            'since' => '12.0.0',
284
+            'parameters' => [
285
+                'id' => [
286
+                    'since' => '12.0.0',
287
+                    'required' => true,
288
+                    'description' => 'The id used to identify the open graph data on the instance',
289
+                    'example' => '42',
290
+                ],
291
+                'name' => [
292
+                    'since' => '12.0.0',
293
+                    'required' => true,
294
+                    'description' => 'The open graph title of the website',
295
+                    'example' => 'This is a website',
296
+                ],
297
+                'description' => [
298
+                    'since' => '12.0.0',
299
+                    'required' => false,
300
+                    'description' => 'The open graph description from the website',
301
+                    'example' => 'This is the description of the website',
302
+                ],
303
+                'thumb' => [
304
+                    'since' => '12.0.0',
305
+                    'required' => false,
306
+                    'description' => 'The full URL of the open graph thumbnail',
307
+                    'example' => 'http://localhost/index.php/apps/mood/data/image?url=https%3A%2F%2Fthumb.example.com%2Fimage.png',
308
+                ],
309
+                'website' => [
310
+                    'since' => '12.0.0',
311
+                    'required' => false,
312
+                    'description' => 'The name of the described website',
313
+                    'example' => 'Nextcloud - App Store',
314
+                ],
315
+                'link' => [
316
+                    'since' => '12.0.0',
317
+                    'required' => false,
318
+                    'description' => 'The full link to the website',
319
+                    'example' => 'https://apps.nextcloud.com/apps/mood',
320
+                ],
321
+            ],
322
+        ],
323
+        'pending-federated-share' => [
324
+            'author' => 'Nextcloud',
325
+            'app' => 'dav',
326
+            'since' => '11.0.0',
327
+            'parameters' => [
328
+                'id' => [
329
+                    'since' => '11.0.0',
330
+                    'required' => true,
331
+                    'description' => 'The id used to identify the federated share on the instance',
332
+                    'example' => '42',
333
+                ],
334
+                'name' => [
335
+                    'since' => '11.0.0',
336
+                    'required' => true,
337
+                    'description' => 'The name of the shared item which should be used in the visual representation',
338
+                    'example' => 'file.txt',
339
+                ],
340
+            ],
341
+        ],
342
+        'systemtag' => [
343
+            'author' => 'Nextcloud',
344
+            'app' => 'core',
345
+            'since' => '11.0.0',
346
+            'parameters' => [
347
+                'id' => [
348
+                    'since' => '11.0.0',
349
+                    'required' => true,
350
+                    'description' => 'The id used to identify the systemtag on the instance',
351
+                    'example' => '23',
352
+                ],
353
+                'name' => [
354
+                    'since' => '11.0.0',
355
+                    'required' => true,
356
+                    'description' => 'The display name of the systemtag which should be used in the visual representation',
357
+                    'example' => 'Project 1',
358
+                ],
359
+                'visibility' => [
360
+                    'since' => '11.0.0',
361
+                    'required' => true,
362
+                    'description' => 'If the user can see the systemtag',
363
+                    'example' => '1',
364
+                ],
365
+                'assignable' => [
366
+                    'since' => '11.0.0',
367
+                    'required' => true,
368
+                    'description' => 'If the user can assign the systemtag',
369
+                    'example' => '0',
370
+                ],
371
+            ],
372
+        ],
373
+        'user' => [
374
+            'author' => 'Nextcloud',
375
+            'app' => 'core',
376
+            'since' => '11.0.0',
377
+            'parameters' => [
378
+                'id' => [
379
+                    'since' => '11.0.0',
380
+                    'required' => true,
381
+                    'description' => 'The id used to identify the user on the instance',
382
+                    'example' => 'johndoe',
383
+                ],
384
+                'name' => [
385
+                    'since' => '11.0.0',
386
+                    'required' => true,
387
+                    'description' => 'The display name of the user which should be used in the visual representation',
388
+                    'example' => 'John Doe',
389
+                ],
390
+                'server' => [
391
+                    'since' => '11.0.0',
392
+                    'required' => false,
393
+                    'description' => 'The URL of the instance the user lives on',
394
+                    'example' => 'localhost',
395
+                ],
396
+            ],
397
+        ],
398
+        'user-group' => [
399
+            'author' => 'Nextcloud',
400
+            'app' => 'core',
401
+            'since' => '11.0.0',
402
+            'parameters' => [
403
+                'id' => [
404
+                    'since' => '11.0.0',
405
+                    'required' => true,
406
+                    'description' => 'The id used to identify the group on the instance',
407
+                    'example' => 'supportteam',
408
+                ],
409
+                'name' => [
410
+                    'since' => '11.0.0',
411
+                    'required' => true,
412
+                    'description' => 'The display name of the group which should be used in the visual representation',
413
+                    'example' => 'Support Team',
414
+                ],
415
+            ],
416
+        ],
417
+    ];
418 418
 
419
-	/**
420
-	 * @param string $type
421
-	 * @return array
422
-	 * @throws InvalidObjectExeption
423
-	 * @since 11.0.0
424
-	 */
425
-	public function getDefinition($type) {
426
-		if (isset($this->definitions[$type])) {
427
-			return $this->definitions[$type];
428
-		}
419
+    /**
420
+     * @param string $type
421
+     * @return array
422
+     * @throws InvalidObjectExeption
423
+     * @since 11.0.0
424
+     */
425
+    public function getDefinition($type) {
426
+        if (isset($this->definitions[$type])) {
427
+            return $this->definitions[$type];
428
+        }
429 429
 
430
-		throw new InvalidObjectExeption('Object type is undefined');
431
-	}
430
+        throw new InvalidObjectExeption('Object type is undefined');
431
+    }
432 432
 }
Please login to merge, or discard this patch.