Completed
Pull Request — master (#6552)
by Julius
25:19 queued 07:44
created
lib/public/RichObjectStrings/Definitions.php 1 patch
Indentation   +392 added lines, -392 removed lines patch added patch discarded remove patch
@@ -29,398 +29,398 @@
 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
-				'name' => [
261
-					'since' => '13.0.0',
262
-					'required' => true,
263
-					'description' => 'The string that should be highlighted.',
264
-					'example' => 'Hello World',
265
-				],
266
-				'link' => [
267
-					'since' => '13.0.0',
268
-					'required' => false,
269
-					'description' => 'The full URL that should be opened when clicking the highlighted text.',
270
-					'example' => 'http://localhost/index.php/f/42',
271
-				],
272
-			],
273
-		],
274
-		'open-graph' => [
275
-			'author' => 'Maxence Lange',
276
-			'app' => 'mood',
277
-			'since' => '12.0.0',
278
-			'parameters' => [
279
-				'id' => [
280
-					'since' => '12.0.0',
281
-					'required' => true,
282
-					'description' => 'The id used to identify the open graph data on the instance',
283
-					'example' => '42',
284
-				],
285
-				'name' => [
286
-					'since' => '12.0.0',
287
-					'required' => true,
288
-					'description' => 'The open graph title of the website',
289
-					'example' => 'This is a website',
290
-				],
291
-				'description' => [
292
-					'since' => '12.0.0',
293
-					'required' => false,
294
-					'description' => 'The open graph description from the website',
295
-					'example' => 'This is the description of the website',
296
-				],
297
-				'thumb' => [
298
-					'since' => '12.0.0',
299
-					'required' => false,
300
-					'description' => 'The full URL of the open graph thumbnail',
301
-					'example' => 'http://localhost/index.php/apps/mood/data/image?url=https%3A%2F%2Fthumb.example.com%2Fimage.png',
302
-				],
303
-				'website' => [
304
-					'since' => '12.0.0',
305
-					'required' => false,
306
-					'description' => 'The name of the described website',
307
-					'example' => 'Nextcloud - App Store',
308
-				],
309
-				'link' => [
310
-					'since' => '12.0.0',
311
-					'required' => false,
312
-					'description' => 'The full link to the website',
313
-					'example' => 'https://apps.nextcloud.com/apps/mood',
314
-				],
315
-			],
316
-		],
317
-		'pending-federated-share' => [
318
-			'author' => 'Nextcloud',
319
-			'app' => 'dav',
320
-			'since' => '11.0.0',
321
-			'parameters' => [
322
-				'id' => [
323
-					'since' => '11.0.0',
324
-					'required' => true,
325
-					'description' => 'The id used to identify the federated share on the instance',
326
-					'example' => '42',
327
-				],
328
-				'name' => [
329
-					'since' => '11.0.0',
330
-					'required' => true,
331
-					'description' => 'The name of the shared item which should be used in the visual representation',
332
-					'example' => 'file.txt',
333
-				],
334
-			],
335
-		],
336
-		'systemtag' => [
337
-			'author' => 'Nextcloud',
338
-			'app' => 'core',
339
-			'since' => '11.0.0',
340
-			'parameters' => [
341
-				'id' => [
342
-					'since' => '11.0.0',
343
-					'required' => true,
344
-					'description' => 'The id used to identify the systemtag on the instance',
345
-					'example' => '23',
346
-				],
347
-				'name' => [
348
-					'since' => '11.0.0',
349
-					'required' => true,
350
-					'description' => 'The display name of the systemtag which should be used in the visual representation',
351
-					'example' => 'Project 1',
352
-				],
353
-				'visibility' => [
354
-					'since' => '11.0.0',
355
-					'required' => true,
356
-					'description' => 'If the user can see the systemtag',
357
-					'example' => '1',
358
-				],
359
-				'assignable' => [
360
-					'since' => '11.0.0',
361
-					'required' => true,
362
-					'description' => 'If the user can assign the systemtag',
363
-					'example' => '0',
364
-				],
365
-			],
366
-		],
367
-		'user' => [
368
-			'author' => 'Nextcloud',
369
-			'app' => 'core',
370
-			'since' => '11.0.0',
371
-			'parameters' => [
372
-				'id' => [
373
-					'since' => '11.0.0',
374
-					'required' => true,
375
-					'description' => 'The id used to identify the user on the instance',
376
-					'example' => 'johndoe',
377
-				],
378
-				'name' => [
379
-					'since' => '11.0.0',
380
-					'required' => true,
381
-					'description' => 'The display name of the user which should be used in the visual representation',
382
-					'example' => 'John Doe',
383
-				],
384
-				'server' => [
385
-					'since' => '11.0.0',
386
-					'required' => false,
387
-					'description' => 'The URL of the instance the user lives on',
388
-					'example' => 'localhost',
389
-				],
390
-			],
391
-		],
392
-		'user-group' => [
393
-			'author' => 'Nextcloud',
394
-			'app' => 'core',
395
-			'since' => '11.0.0',
396
-			'parameters' => [
397
-				'id' => [
398
-					'since' => '11.0.0',
399
-					'required' => true,
400
-					'description' => 'The id used to identify the group on the instance',
401
-					'example' => 'supportteam',
402
-				],
403
-				'name' => [
404
-					'since' => '11.0.0',
405
-					'required' => true,
406
-					'description' => 'The display name of the group which should be used in the visual representation',
407
-					'example' => 'Support Team',
408
-				],
409
-			],
410
-		],
411
-	];
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
+                'name' => [
261
+                    'since' => '13.0.0',
262
+                    'required' => true,
263
+                    'description' => 'The string that should be highlighted.',
264
+                    'example' => 'Hello World',
265
+                ],
266
+                'link' => [
267
+                    'since' => '13.0.0',
268
+                    'required' => false,
269
+                    'description' => 'The full URL that should be opened when clicking the highlighted text.',
270
+                    'example' => 'http://localhost/index.php/f/42',
271
+                ],
272
+            ],
273
+        ],
274
+        'open-graph' => [
275
+            'author' => 'Maxence Lange',
276
+            'app' => 'mood',
277
+            'since' => '12.0.0',
278
+            'parameters' => [
279
+                'id' => [
280
+                    'since' => '12.0.0',
281
+                    'required' => true,
282
+                    'description' => 'The id used to identify the open graph data on the instance',
283
+                    'example' => '42',
284
+                ],
285
+                'name' => [
286
+                    'since' => '12.0.0',
287
+                    'required' => true,
288
+                    'description' => 'The open graph title of the website',
289
+                    'example' => 'This is a website',
290
+                ],
291
+                'description' => [
292
+                    'since' => '12.0.0',
293
+                    'required' => false,
294
+                    'description' => 'The open graph description from the website',
295
+                    'example' => 'This is the description of the website',
296
+                ],
297
+                'thumb' => [
298
+                    'since' => '12.0.0',
299
+                    'required' => false,
300
+                    'description' => 'The full URL of the open graph thumbnail',
301
+                    'example' => 'http://localhost/index.php/apps/mood/data/image?url=https%3A%2F%2Fthumb.example.com%2Fimage.png',
302
+                ],
303
+                'website' => [
304
+                    'since' => '12.0.0',
305
+                    'required' => false,
306
+                    'description' => 'The name of the described website',
307
+                    'example' => 'Nextcloud - App Store',
308
+                ],
309
+                'link' => [
310
+                    'since' => '12.0.0',
311
+                    'required' => false,
312
+                    'description' => 'The full link to the website',
313
+                    'example' => 'https://apps.nextcloud.com/apps/mood',
314
+                ],
315
+            ],
316
+        ],
317
+        'pending-federated-share' => [
318
+            'author' => 'Nextcloud',
319
+            'app' => 'dav',
320
+            'since' => '11.0.0',
321
+            'parameters' => [
322
+                'id' => [
323
+                    'since' => '11.0.0',
324
+                    'required' => true,
325
+                    'description' => 'The id used to identify the federated share on the instance',
326
+                    'example' => '42',
327
+                ],
328
+                'name' => [
329
+                    'since' => '11.0.0',
330
+                    'required' => true,
331
+                    'description' => 'The name of the shared item which should be used in the visual representation',
332
+                    'example' => 'file.txt',
333
+                ],
334
+            ],
335
+        ],
336
+        'systemtag' => [
337
+            'author' => 'Nextcloud',
338
+            'app' => 'core',
339
+            'since' => '11.0.0',
340
+            'parameters' => [
341
+                'id' => [
342
+                    'since' => '11.0.0',
343
+                    'required' => true,
344
+                    'description' => 'The id used to identify the systemtag on the instance',
345
+                    'example' => '23',
346
+                ],
347
+                'name' => [
348
+                    'since' => '11.0.0',
349
+                    'required' => true,
350
+                    'description' => 'The display name of the systemtag which should be used in the visual representation',
351
+                    'example' => 'Project 1',
352
+                ],
353
+                'visibility' => [
354
+                    'since' => '11.0.0',
355
+                    'required' => true,
356
+                    'description' => 'If the user can see the systemtag',
357
+                    'example' => '1',
358
+                ],
359
+                'assignable' => [
360
+                    'since' => '11.0.0',
361
+                    'required' => true,
362
+                    'description' => 'If the user can assign the systemtag',
363
+                    'example' => '0',
364
+                ],
365
+            ],
366
+        ],
367
+        'user' => [
368
+            'author' => 'Nextcloud',
369
+            'app' => 'core',
370
+            'since' => '11.0.0',
371
+            'parameters' => [
372
+                'id' => [
373
+                    'since' => '11.0.0',
374
+                    'required' => true,
375
+                    'description' => 'The id used to identify the user on the instance',
376
+                    'example' => 'johndoe',
377
+                ],
378
+                'name' => [
379
+                    'since' => '11.0.0',
380
+                    'required' => true,
381
+                    'description' => 'The display name of the user which should be used in the visual representation',
382
+                    'example' => 'John Doe',
383
+                ],
384
+                'server' => [
385
+                    'since' => '11.0.0',
386
+                    'required' => false,
387
+                    'description' => 'The URL of the instance the user lives on',
388
+                    'example' => 'localhost',
389
+                ],
390
+            ],
391
+        ],
392
+        'user-group' => [
393
+            'author' => 'Nextcloud',
394
+            'app' => 'core',
395
+            'since' => '11.0.0',
396
+            'parameters' => [
397
+                'id' => [
398
+                    'since' => '11.0.0',
399
+                    'required' => true,
400
+                    'description' => 'The id used to identify the group on the instance',
401
+                    'example' => 'supportteam',
402
+                ],
403
+                'name' => [
404
+                    'since' => '11.0.0',
405
+                    'required' => true,
406
+                    'description' => 'The display name of the group which should be used in the visual representation',
407
+                    'example' => 'Support Team',
408
+                ],
409
+            ],
410
+        ],
411
+    ];
412 412
 
413
-	/**
414
-	 * @param string $type
415
-	 * @return array
416
-	 * @throws InvalidObjectExeption
417
-	 * @since 11.0.0
418
-	 */
419
-	public function getDefinition($type) {
420
-		if (isset($this->definitions[$type])) {
421
-			return $this->definitions[$type];
422
-		}
413
+    /**
414
+     * @param string $type
415
+     * @return array
416
+     * @throws InvalidObjectExeption
417
+     * @since 11.0.0
418
+     */
419
+    public function getDefinition($type) {
420
+        if (isset($this->definitions[$type])) {
421
+            return $this->definitions[$type];
422
+        }
423 423
 
424
-		throw new InvalidObjectExeption('Object type is undefined');
425
-	}
424
+        throw new InvalidObjectExeption('Object type is undefined');
425
+    }
426 426
 }
Please login to merge, or discard this patch.