@@ -4,12 +4,12 @@ |
||
| 4 | 4 | * @see http://www.php-fig.org/psr/psr-4/examples/ |
| 5 | 5 | */ |
| 6 | 6 | spl_autoload_register( |
| 7 | - static function ($class) { |
|
| 7 | + static function($class) { |
|
| 8 | 8 | // project-specific namespace prefix |
| 9 | 9 | $prefix = 'XoopsModules\\' . \ucfirst(\basename(\dirname(__DIR__))); |
| 10 | 10 | |
| 11 | 11 | // base directory for the namespace prefix |
| 12 | - $baseDir = \dirname(__DIR__) . '/class/'; |
|
| 12 | + $baseDir = \dirname(__DIR__) . '/class/'; |
|
| 13 | 13 | |
| 14 | 14 | // does the class use the namespace prefix? |
| 15 | 15 | $len = \mb_strlen($prefix); |
@@ -86,9 +86,9 @@ discard block |
||
| 86 | 86 | $Handler = $helper->getHandler('Versions'); |
| 87 | 87 | $_select = new \XoopsFormSelect(\_AM_WGSITENOTICE_CONT_VERSION_ID, 'cont_version_id', $this->getVar('cont_version_id')); |
| 88 | 88 | $_select->addOptionArray($Handler->getList()); |
| 89 | - $form->addElement( $_select ); |
|
| 89 | + $form->addElement($_select); |
|
| 90 | 90 | // Form cont_header |
| 91 | - $form->addElement( new \XoopsFormText(\_AM_WGSITENOTICE_CONT_HEADER, 'cont_header', 50, 255, $this->getVar('cont_header')), true ); |
|
| 91 | + $form->addElement(new \XoopsFormText(\_AM_WGSITENOTICE_CONT_HEADER, 'cont_header', 50, 255, $this->getVar('cont_header')), true); |
|
| 92 | 92 | // Form cont_text |
| 93 | 93 | $editor_configs = array(); |
| 94 | 94 | $editor_configs['name'] = 'cont_text'; |
@@ -98,10 +98,10 @@ discard block |
||
| 98 | 98 | $editor_configs['width'] = '100%'; |
| 99 | 99 | $editor_configs['height'] = '400px'; |
| 100 | 100 | $editor_configs['editor'] = $helper->getConfig('wgsitenotice_editor'); |
| 101 | - $form->addElement( new \XoopsFormEditor(\_AM_WGSITENOTICE_CONT_TEXT, 'cont_text', $editor_configs) ); |
|
| 101 | + $form->addElement(new \XoopsFormEditor(\_AM_WGSITENOTICE_CONT_TEXT, 'cont_text', $editor_configs)); |
|
| 102 | 102 | // Form Text cont_weight |
| 103 | 103 | $cont_weight = $this->isNew() ? 1 : $this->getVar('cont_weight'); |
| 104 | - $form->addElement( new \XoopsFormText(\_AM_WGSITENOTICE_CONT_WEIGHT, 'cont_weight', 50, 255, $cont_weight), true ); |
|
| 104 | + $form->addElement(new \XoopsFormText(\_AM_WGSITENOTICE_CONT_WEIGHT, 'cont_weight', 50, 255, $cont_weight), true); |
|
| 105 | 105 | // Form Text Date Select |
| 106 | 106 | //$form->addElement( new \XoopsFormTextDateSelect(\_AM_WGSITENOTICE_CONT_DATE, 'cont_date', '', $this->getVar('cont_date')), true ); |
| 107 | 107 | // Send |