style(legacy): fix code format with php-cs-fixer (#1674)

This commit is contained in:
Jonas L 2022-03-14 11:15:04 +01:00 committed by GitHub
parent e1dc69af9e
commit 69d8eae845
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
111 changed files with 1163 additions and 1163 deletions

View file

@ -20,7 +20,7 @@ class Application_Form_GeneralPreferences extends Zend_Form_SubForm
$defaultFadeIn = Application_Model_Preference::GetDefaultFadeIn();
$defaultFadeOut = Application_Model_Preference::GetDefaultFadeOut();
//Station name
// Station name
$this->addElement('text', 'stationName', [
'class' => 'input_text',
'label' => _('Station Name'),
@ -57,7 +57,7 @@ class Application_Form_GeneralPreferences extends Zend_Form_SubForm
$stationLogoRemove->setAttrib('onclick', 'removeLogo();');
$this->addElement($stationLogoRemove);
//Default station crossfade duration
// Default station crossfade duration
$this->addElement('text', 'stationDefaultCrossfadeDuration', [
'class' => 'input_text',
'label' => _('Default Crossfade Duration (s):'),
@ -71,7 +71,7 @@ class Application_Form_GeneralPreferences extends Zend_Form_SubForm
'value' => Application_Model_Preference::GetDefaultCrossfadeDuration(),
]);
//Default station fade in
// Default station fade in
$this->addElement('text', 'stationDefaultFadeIn', [
'class' => 'input_text',
'label' => _('Default Fade In (s):'),
@ -85,7 +85,7 @@ class Application_Form_GeneralPreferences extends Zend_Form_SubForm
'value' => $defaultFadeIn,
]);
//Default station fade out
// Default station fade out
$this->addElement('text', 'stationDefaultFadeOut', [
'class' => 'input_text',
'label' => _('Default Fade Out (s):'),
@ -126,7 +126,7 @@ class Application_Form_GeneralPreferences extends Zend_Form_SubForm
]);
$podcast_album_override->setValue(Application_Model_Preference::GetPodcastAlbumOverride());
$podcast_album_override->setDescription(_('Enabling this feature will cause podcast episode tracks to have their Artist, Title, and Album metatags set from podcast feed values. Note that enabling this feature is recommended in order to ensure reliable scheduling of episodes via smartblocks.'));
$podcast_album_override->setSeparator(' '); //No <br> between radio buttons
$podcast_album_override->setSeparator(' '); // No <br> between radio buttons
$podcast_album_override->addDecorator('HtmlTag', ['tag' => 'dd',
'id' => 'podcastAlbumOverride-element',
'class' => 'radio-inline-list',
@ -141,14 +141,14 @@ class Application_Form_GeneralPreferences extends Zend_Form_SubForm
]);
$podcast_auto_smartblock->setValue(Application_Model_Preference::GetPodcastAutoSmartblock());
$podcast_auto_smartblock->setDescription(_('If this option is enabled, a new smartblock and playlist matching the newest track of a podcast will be generated immediately upon creation of a new podcast. Note that the "Overwrite Podcast Episode Metatags" feature must also be enabled in order for smartblocks to reliably find episodes.'));
$podcast_auto_smartblock->setSeparator(' '); //No <br> between radio buttons
$podcast_auto_smartblock->setSeparator(' '); // No <br> between radio buttons
$podcast_auto_smartblock->addDecorator('HtmlTag', ['tag' => 'dd',
'id' => 'podcastAutoSmartblock-element',
'class' => 'radio-inline-list',
]);
$this->addElement($podcast_auto_smartblock);
//TODO add and insert Podcast Smartblock and Playlist autogenerate options
// TODO add and insert Podcast Smartblock and Playlist autogenerate options
$third_party_api = new Zend_Form_Element_Radio('thirdPartyApi');
$third_party_api->setLabel(_('Public LibreTime API'));
@ -160,8 +160,8 @@ class Application_Form_GeneralPreferences extends Zend_Form_SubForm
$third_party_api->setValue(Application_Model_Preference::GetAllow3rdPartyApi());
$third_party_api->setDescription(_('Enabling this feature will allow LibreTime to provide schedule data
to external widgets that can be embedded in your website.'));
$third_party_api->setSeparator(' '); //No <br> between radio buttons
//$third_party_api->addDecorator(new Zend_Form_Decorator_Label(array('tag' => 'dd', 'class' => 'radio-inline-list')));
$third_party_api->setSeparator(' '); // No <br> between radio buttons
// $third_party_api->addDecorator(new Zend_Form_Decorator_Label(array('tag' => 'dd', 'class' => 'radio-inline-list')));
$third_party_api->addDecorator('HtmlTag', ['tag' => 'dd',
'id' => 'thirdPartyApi-element',
'class' => 'radio-inline-list',
@ -218,7 +218,7 @@ class Application_Form_GeneralPreferences extends Zend_Form_SubForm
]);
$feature_preview_mode->setValue(Application_Model_Preference::GetFeaturePreviewMode());
$feature_preview_mode->setDescription(_('Enable this to opt-in to test new features.'));
$feature_preview_mode->setSeparator(' '); //No <br> between radio buttons
$feature_preview_mode->setSeparator(' '); // No <br> between radio buttons
$feature_preview_mode->addDecorator('HtmlTag', ['tag' => 'dd',
'id' => 'featurePreviewMode-element',
'class' => 'radio-inline-list',