for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php declare(strict_types=1);
/**
* ownCloud - Music app
*
* This file is licensed under the Affero General Public License version 3 or
* later. See the COPYING file.
* @author Pauli Järvinen <[email protected]>
* @copyright Pauli Järvinen 2023
*/
namespace OCA\Music\Utility;
* Minimal mocked user preferences needed to support the Ample client
class AmpachePreferences {
private const SETTINGS = [
[
'id' => 122,
'name' => 'album_release_type',
'level' => 100,
'description' => 'Album - Group per release type',
'value' => '0',
'type' => 'boolean',
'category' => 'interface',
'subcategory' => 'library'
],
'id' => 130,
'name' => 'album_release_type_sort',
'description' => 'Album - Group per release type sort',
'value' => 'album,ep,live,single',
'type' => 'string',
]
];
public static function getAll() : array {
return self::SETTINGS;
}
public static function get(string $name) : ?array {
return \array_column(self::SETTINGS, null, 'name')[$name] ?? null;