Format code using php-cs-fixer
This commit is contained in:
parent
43d7dc92cd
commit
d52c6184b9
352 changed files with 17473 additions and 17041 deletions
|
@ -4,9 +4,9 @@ class Application_Form_AddShowAutoPlaylist extends Zend_Form_SubForm
|
|||
{
|
||||
public function init()
|
||||
{
|
||||
$this->setDecorators(array(
|
||||
array('ViewScript', array('viewScript' => 'form/add-show-autoplaylist.phtml'))
|
||||
));
|
||||
$this->setDecorators([
|
||||
['ViewScript', ['viewScript' => 'form/add-show-autoplaylist.phtml']],
|
||||
]);
|
||||
|
||||
$notEmptyValidator = Application_Form_Helper_ValidationTypes::overrideNotEmptyValidator();
|
||||
// retrieves the length limit for each char field
|
||||
|
@ -14,26 +14,26 @@ class Application_Form_AddShowAutoPlaylist extends Zend_Form_SubForm
|
|||
$maxLens = Application_Model_Show::getMaxLengths();
|
||||
|
||||
// Add autoplaylist checkbox element
|
||||
$this->addElement('checkbox', 'add_show_has_autoplaylist', array(
|
||||
'label' => _('Add Autoloading Playlist ?'),
|
||||
'required' => false,
|
||||
'class' => 'input_text',
|
||||
'decorators' => array('ViewHelper')
|
||||
));
|
||||
|
||||
$autoPlaylistSelect = new Zend_Form_Element_Select("add_show_autoplaylist_id");
|
||||
$autoPlaylistSelect->setLabel(_("Select Playlist"));
|
||||
$this->addElement('checkbox', 'add_show_has_autoplaylist', [
|
||||
'label' => _('Add Autoloading Playlist ?'),
|
||||
'required' => false,
|
||||
'class' => 'input_text',
|
||||
'decorators' => ['ViewHelper'],
|
||||
]);
|
||||
|
||||
$autoPlaylistSelect = new Zend_Form_Element_Select('add_show_autoplaylist_id');
|
||||
$autoPlaylistSelect->setLabel(_('Select Playlist'));
|
||||
$autoPlaylistSelect->setMultiOptions(Application_Model_Library::getPlaylistNames(true));
|
||||
$autoPlaylistSelect->setValue(null);
|
||||
$autoPlaylistSelect->setDecorators(array('ViewHelper'));
|
||||
$autoPlaylistSelect->setDecorators(['ViewHelper']);
|
||||
$this->addElement($autoPlaylistSelect);
|
||||
// Add autoplaylist checkbox element
|
||||
$this->addElement('checkbox', 'add_show_autoplaylist_repeat', array(
|
||||
'label' => _('Repeat Playlist Until Show is Full ?'),
|
||||
'required' => false,
|
||||
'class' => 'input_text',
|
||||
'decorators' => array('ViewHelper')
|
||||
));
|
||||
$this->addElement('checkbox', 'add_show_autoplaylist_repeat', [
|
||||
'label' => _('Repeat Playlist Until Show is Full ?'),
|
||||
'required' => false,
|
||||
'class' => 'input_text',
|
||||
'decorators' => ['ViewHelper'],
|
||||
]);
|
||||
}
|
||||
|
||||
public function disable()
|
||||
|
@ -41,7 +41,7 @@ class Application_Form_AddShowAutoPlaylist extends Zend_Form_SubForm
|
|||
$elements = $this->getElements();
|
||||
foreach ($elements as $element) {
|
||||
if ($element->getType() != 'Zend_Form_Element_Hidden') {
|
||||
$element->setAttrib('disabled','disabled');
|
||||
$element->setAttrib('disabled', 'disabled');
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -51,7 +51,7 @@ class Application_Form_AddShowAutoPlaylist extends Zend_Form_SubForm
|
|||
$elements = $this->getElements();
|
||||
foreach ($elements as $element) {
|
||||
if ($element->getType() != 'Zend_Form_Element_Hidden') {
|
||||
$element->setAttrib('readonly','readonly');
|
||||
$element->setAttrib('readonly', 'readonly');
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue