style(legacy): fix code format with php-cs-fixer (#1674)
This commit is contained in:
parent
e1dc69af9e
commit
69d8eae845
111 changed files with 1163 additions and 1163 deletions
|
@ -14,7 +14,7 @@ class Config
|
|||
$CC_CONFIG = [];
|
||||
|
||||
// General
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
// //////////////////////////////////////////////////////////////////////////////
|
||||
$CC_CONFIG['apiKey'] = [$values['general']['api_key']];
|
||||
|
||||
// Base URL
|
||||
|
@ -34,7 +34,7 @@ class Config
|
|||
$CC_CONFIG['staticBaseDir'] = $values['general']['static_base_dir'] ?? '/';
|
||||
|
||||
// Database
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
// //////////////////////////////////////////////////////////////////////////////
|
||||
$CC_CONFIG['dsn']['phptype'] = 'pgsql';
|
||||
$CC_CONFIG['dsn']['host'] = $values['database']['host'] ?? 'localhost';
|
||||
$CC_CONFIG['dsn']['port'] = $values['database']['port'] ?? 5432;
|
||||
|
@ -43,7 +43,7 @@ class Config
|
|||
$CC_CONFIG['dsn']['password'] = $values['database']['password'] ?? 'libretime';
|
||||
|
||||
// RabbitMQ
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
// //////////////////////////////////////////////////////////////////////////////
|
||||
$CC_CONFIG['rabbitmq']['host'] = $values['rabbitmq']['host'] ?? 'localhost';
|
||||
$CC_CONFIG['rabbitmq']['port'] = $values['rabbitmq']['port'] ?? 5672;
|
||||
$CC_CONFIG['rabbitmq']['vhost'] = $values['rabbitmq']['vhost'] ?? '/libretime';
|
||||
|
@ -51,11 +51,11 @@ class Config
|
|||
$CC_CONFIG['rabbitmq']['password'] = $values['rabbitmq']['password'] ?? 'libretime';
|
||||
|
||||
// Storage
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
// //////////////////////////////////////////////////////////////////////////////
|
||||
$CC_CONFIG['current_backend'] = $values['current_backend']['storage_backend'] ?? 'file';
|
||||
|
||||
// Facebook (DEPRECATED)
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
// //////////////////////////////////////////////////////////////////////////////
|
||||
if (isset($values['facebook']['facebook_app_id'])) {
|
||||
$CC_CONFIG['facebook-app-id'] = $values['facebook']['facebook_app_id'];
|
||||
$CC_CONFIG['facebook-app-url'] = $values['facebook']['facebook_app_url'];
|
||||
|
@ -63,7 +63,7 @@ class Config
|
|||
}
|
||||
|
||||
// LDAP
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
// //////////////////////////////////////////////////////////////////////////////
|
||||
if (array_key_exists('ldap', $values)) {
|
||||
$CC_CONFIG['ldap_hostname'] = $values['ldap']['hostname'];
|
||||
$CC_CONFIG['ldap_binddn'] = $values['ldap']['binddn'];
|
||||
|
@ -79,7 +79,7 @@ class Config
|
|||
}
|
||||
|
||||
// Demo
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
// //////////////////////////////////////////////////////////////////////////////
|
||||
if (isset($values['demo']['demo'])) {
|
||||
$CC_CONFIG['demo'] = $values['demo']['demo'];
|
||||
}
|
||||
|
|
|
@ -110,14 +110,14 @@ define('MDATA_KEY_TRACK_TYPE', 'track_type');
|
|||
define('UI_MDATA_VALUE_FORMAT_FILE', 'File');
|
||||
define('UI_MDATA_VALUE_FORMAT_STREAM', 'live stream');
|
||||
|
||||
//User types
|
||||
// User types
|
||||
define('UTYPE_HOST', 'H');
|
||||
define('UTYPE_ADMIN', 'A');
|
||||
define('UTYPE_SUPERADMIN', 'S');
|
||||
define('UTYPE_GUEST', 'G');
|
||||
define('UTYPE_PROGRAM_MANAGER', 'P');
|
||||
|
||||
//Constants for playout history template fields
|
||||
// Constants for playout history template fields
|
||||
define('TEMPLATE_DATE', 'date');
|
||||
define('TEMPLATE_TIME', 'time');
|
||||
define('TEMPLATE_DATETIME', 'datetime');
|
||||
|
@ -131,7 +131,7 @@ define('UI_PLAYLISTCONTROLLER_OBJ_SESSNAME', 'PLAYLISTCONTROLLER_OBJ');
|
|||
/*define('UI_PLAYLIST_SESSNAME', 'PLAYLIST');
|
||||
define('UI_BLOCK_SESSNAME', 'BLOCK');*/
|
||||
|
||||
//TuneIn integration
|
||||
// TuneIn integration
|
||||
define('TUNEIN_API_URL', 'http://air.radiotime.com/Playing.ashx');
|
||||
|
||||
// Celery
|
||||
|
@ -146,7 +146,7 @@ define('PODCAST_SERVICE_NAME', 'podcast');
|
|||
define('STATION_PODCAST_SERVICE_NAME', 'station_podcast');
|
||||
|
||||
// Podcast Types
|
||||
//define('STATION_PODCAST', 0);
|
||||
//define('IMPORTED_PODCAST', 1);
|
||||
// define('STATION_PODCAST', 0);
|
||||
// define('IMPORTED_PODCAST', 1);
|
||||
|
||||
define('ITUNES_XML_NAMESPACE_URL', 'http://www.itunes.com/dtds/podcast-1.0.dtd');
|
||||
|
|
|
@ -191,5 +191,5 @@ $pages[] = [
|
|||
$container = new Zend_Navigation($pages);
|
||||
$container->id = 'nav';
|
||||
|
||||
//store it in the registry:
|
||||
// store it in the registry:
|
||||
Zend_Registry::set('Zend_Navigation', $container);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue