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