chore(legacy): format code

This commit is contained in:
jo 2022-09-12 13:16:14 +02:00 committed by Jonas L
parent da52f495b4
commit 63d9e430e1
33 changed files with 111 additions and 102 deletions

View file

@ -849,8 +849,9 @@ class Application_Form_SmartBlockCriteria extends Zend_Form_SubForm
$element->addError(_("'Length' should be in '00:00:00' format"));
$isValid = false;
}
// this looks up the column type for the criteria the modified time, upload time etc.
} elseif ($column->getType() == PropelColumnTypes::TIMESTAMP) {
}
// this looks up the column type for the criteria the modified time, upload time etc.
elseif ($column->getType() == PropelColumnTypes::TIMESTAMP) {
// need to check for relative modifiers first - bypassing currently
if (in_array($d['sp_criteria_modifier'], ['before', 'after', 'between'])) {
if (!preg_match('/^[1-9][0-9]*$|0/', $d['sp_criteria_value'])) {

View file

@ -66,7 +66,7 @@ class Application_Form_StreamSettingSubForm extends Zend_Form_SubForm
$output
->setLabel(_('Service Type:'))
->setAttrib('readonly', true)
->setValue((isset($setting[$prefix . '_output']) ? $setting[$prefix . '_output'] : 'icecast'))
->setValue(isset($setting[$prefix . '_output']) ? $setting[$prefix . '_output'] : 'icecast')
->setDecorators(['ViewHelper']);
$this->addElement($output);
@ -82,7 +82,7 @@ class Application_Form_StreamSettingSubForm extends Zend_Form_SubForm
$host
->setLabel(_('Server'))
->setAttrib('readonly', true)
->setValue((isset($setting[$prefix . '_host']) ? $setting[$prefix . '_host'] : ''))
->setValue(isset($setting[$prefix . '_host']) ? $setting[$prefix . '_host'] : '')
->setDecorators(['ViewHelper']);
$host->setAttrib('alt', 'domain');
$this->addElement($host);
@ -91,7 +91,7 @@ class Application_Form_StreamSettingSubForm extends Zend_Form_SubForm
$port
->setLabel(_('Port'))
->setAttrib('readonly', true)
->setValue((isset($setting[$prefix . '_port']) ? $setting[$prefix . '_port'] : ''))
->setValue(isset($setting[$prefix . '_port']) ? $setting[$prefix . '_port'] : '')
->setDecorators(['ViewHelper']);
$this->addElement($port);
@ -99,7 +99,7 @@ class Application_Form_StreamSettingSubForm extends Zend_Form_SubForm
$mount
->setLabel(_('Mount Point'))
->setAttrib('readonly', true)
->setValue((isset($setting[$prefix . '_mount']) ? $setting[$prefix . '_mount'] : ''))
->setValue(isset($setting[$prefix . '_mount']) ? $setting[$prefix . '_mount'] : '')
->setDecorators(['ViewHelper']);
$mount->setAttrib('alt', 'regular_text');
$this->addElement($mount);