@@ -123,7 +123,7 @@ discard block |
||
| 123 | 123 | |
| 124 | 124 | return false; |
| 125 | 125 | } |
| 126 | - $this->addLog("Getting config '{$name}' : " . $this->config[$name]); |
|
| 126 | + $this->addLog("Getting config '{$name}' : ".$this->config[$name]); |
|
| 127 | 127 | |
| 128 | 128 | return $this->config[$name]; |
| 129 | 129 | } |
@@ -146,7 +146,7 @@ discard block |
||
| 146 | 146 | $this->initConfig(); |
| 147 | 147 | } |
| 148 | 148 | $this->config[$name] = $value; |
| 149 | - $this->addLog("Setting config '{$name}' : " . $this->config[$name]); |
|
| 149 | + $this->addLog("Setting config '{$name}' : ".$this->config[$name]); |
|
| 150 | 150 | |
| 151 | 151 | return $this->config[$name]; |
| 152 | 152 | } |
@@ -163,12 +163,12 @@ discard block |
||
| 163 | 163 | */ |
| 164 | 164 | public function &getHandler($name) |
| 165 | 165 | { |
| 166 | - if (!isset($this->handler[$name . 'Handler'])) { |
|
| 166 | + if (!isset($this->handler[$name.'Handler'])) { |
|
| 167 | 167 | $this->initHandler($name); |
| 168 | 168 | } |
| 169 | 169 | $this->addLog("Getting handler '{$name}'"); |
| 170 | 170 | |
| 171 | - return $this->handler[$name . 'Handler']; |
|
| 171 | + return $this->handler[$name.'Handler']; |
|
| 172 | 172 | } |
| 173 | 173 | |
| 174 | 174 | /* |
@@ -208,8 +208,8 @@ discard block |
||
| 208 | 208 | */ |
| 209 | 209 | public function initHandler($name) |
| 210 | 210 | { |
| 211 | - $this->addLog('INIT ' . $name . ' HANDLER'); |
|
| 212 | - $this->handler[$name . 'Handler'] = xoops_getModuleHandler($name, $this->dirname); |
|
| 211 | + $this->addLog('INIT '.$name.' HANDLER'); |
|
| 212 | + $this->handler[$name.'Handler'] = xoops_getModuleHandler($name, $this->dirname); |
|
| 213 | 213 | } |
| 214 | 214 | |
| 215 | 215 | /* |
@@ -131,7 +131,7 @@ |
||
| 131 | 131 | $form->addElement($fileInfolder, true); |
| 132 | 132 | |
| 133 | 133 | $form->addElement(new \XoopsFormHidden('op', 'save')); |
| 134 | - $form->addElement(new \XoopsFormButton(_REQUIRED . ' <sup class="red bold">*</sup>', 'submit', _SUBMIT, 'submit')); |
|
| 134 | + $form->addElement(new \XoopsFormButton(_REQUIRED.' <sup class="red bold">*</sup>', 'submit', _SUBMIT, 'submit')); |
|
| 135 | 135 | |
| 136 | 136 | return $form; |
| 137 | 137 | } |
@@ -72,7 +72,7 @@ |
||
| 72 | 72 | { |
| 73 | 73 | $ret = false; |
| 74 | 74 | |
| 75 | - $class = '\\XoopsModules\\' . ucfirst(mb_strtolower(basename(dirname(__DIR__)))) . '\\' . $name . 'Handler'; |
|
| 75 | + $class = '\\XoopsModules\\'.ucfirst(mb_strtolower(basename(dirname(__DIR__)))).'\\'.$name.'Handler'; |
|
| 76 | 76 | if (!class_exists($class)) { |
| 77 | 77 | throw new \RuntimeException("Class '$class' not found"); |
| 78 | 78 | } |
@@ -69,14 +69,14 @@ |
||
| 69 | 69 | { |
| 70 | 70 | $ret = ''; |
| 71 | 71 | if (is_array($selector)) { |
| 72 | - $ret .= $t . implode("\n", $selector) . ' {'; |
|
| 72 | + $ret .= $t.implode("\n", $selector).' {'; |
|
| 73 | 73 | } else { |
| 74 | - $ret .= $selector . ' {'; |
|
| 74 | + $ret .= $selector.' {'; |
|
| 75 | 75 | } |
| 76 | 76 | if (is_array($content)) { |
| 77 | - $ret .= $t . implode("\n", $content) . ';'; |
|
| 77 | + $ret .= $t.implode("\n", $content).';'; |
|
| 78 | 78 | } else { |
| 79 | - $ret .= $content . ';'; |
|
| 79 | + $ret .= $content.';'; |
|
| 80 | 80 | } |
| 81 | 81 | $ret = '}'; |
| 82 | 82 | |
@@ -81,10 +81,10 @@ |
||
| 81 | 81 | */ |
| 82 | 82 | public function getTemplatesUserHeader($moduleDirname) |
| 83 | 83 | { |
| 84 | - $ret = $this->htmlcode->getSmartyIncludeFile($moduleDirname, 'breadcrumbs', false, true) . PHP_EOL; |
|
| 84 | + $ret = $this->htmlcode->getSmartyIncludeFile($moduleDirname, 'breadcrumbs', false, true).PHP_EOL; |
|
| 85 | 85 | $var = $this->htmlcode->getSmartySingleVar('ads'); |
| 86 | - $div = $this->htmlcode->getHtmlDiv($var, 'center') . PHP_EOL; |
|
| 87 | - $ret .= $this->htmlcode->getSmartyConditions('ads', ' != ', '\'\'', $div) . PHP_EOL; |
|
| 86 | + $div = $this->htmlcode->getHtmlDiv($var, 'center').PHP_EOL; |
|
| 87 | + $ret .= $this->htmlcode->getSmartyConditions('ads', ' != ', '\'\'', $div).PHP_EOL; |
|
| 88 | 88 | |
| 89 | 89 | return $ret; |
| 90 | 90 | } |
@@ -92,7 +92,7 @@ |
||
| 92 | 92 | $str = ''; |
| 93 | 93 | foreach ($attributes as $name => $value) { |
| 94 | 94 | if ('_' !== $name) { |
| 95 | - $str .= ' ' . $name . '="' . $value . '"'; |
|
| 95 | + $str .= ' '.$name.'="'.$value.'"'; |
|
| 96 | 96 | } |
| 97 | 97 | } |
| 98 | 98 | |
@@ -110,9 +110,9 @@ |
||
| 110 | 110 | </div> |
| 111 | 111 | EOT; |
| 112 | 112 | if ('english' !== $language) { |
| 113 | - $this->create($moduleDirname, 'language/' . $language . '/help', $filename, $content, _AM_TDMCREATE_FILE_CREATED, _AM_TDMCREATE_FILE_NOTCREATED); |
|
| 113 | + $this->create($moduleDirname, 'language/'.$language.'/help', $filename, $content, _AM_TDMCREATE_FILE_CREATED, _AM_TDMCREATE_FILE_NOTCREATED); |
|
| 114 | 114 | } |
| 115 | - $this->create($moduleDirname, 'language/' . $GLOBALS['xoopsConfig']['language'] . '/help', $filename, $content, _AM_TDMCREATE_FILE_CREATED, _AM_TDMCREATE_FILE_NOTCREATED); |
|
| 115 | + $this->create($moduleDirname, 'language/'.$GLOBALS['xoopsConfig']['language'].'/help', $filename, $content, _AM_TDMCREATE_FILE_CREATED, _AM_TDMCREATE_FILE_NOTCREATED); |
|
| 116 | 116 | |
| 117 | 117 | return $this->renderFile(); |
| 118 | 118 | } |
@@ -101,7 +101,7 @@ |
||
| 101 | 101 | webmaster |
| 102 | 102 | {X_ADMINMAIL} |
| 103 | 103 | EOT; |
| 104 | - $this->create($moduleDirname, 'language/' . $GLOBALS['xoopsConfig']['language'] . '/mail_template', $filename, $content, _AM_TDMCREATE_FILE_CREATED, _AM_TDMCREATE_FILE_NOTCREATED); |
|
| 104 | + $this->create($moduleDirname, 'language/'.$GLOBALS['xoopsConfig']['language'].'/mail_template', $filename, $content, _AM_TDMCREATE_FILE_CREATED, _AM_TDMCREATE_FILE_NOTCREATED); |
|
| 105 | 105 | |
| 106 | 106 | return $this->renderFile(); |
| 107 | 107 | } |
@@ -41,16 +41,16 @@ |
||
| 41 | 41 | */ |
| 42 | 42 | public function render() |
| 43 | 43 | { |
| 44 | - $ret = ($this->getTitle() ? '<div class=" center head ">' . $this->getTitle() . '</div>' : ''); |
|
| 45 | - $ret .= '<form name="' . $this->getName() . '" id="' . $this->getName() . '" action="' . $this->getAction() . '" method="' . $this->getMethod() . '"' . $this->getExtra() . '>' . NWLINE; |
|
| 44 | + $ret = ($this->getTitle() ? '<div class=" center head ">'.$this->getTitle().'</div>' : ''); |
|
| 45 | + $ret .= '<form name="'.$this->getName().'" id="'.$this->getName().'" action="'.$this->getAction().'" method="'.$this->getMethod().'"'.$this->getExtra().'>'.NWLINE; |
|
| 46 | 46 | foreach ($this->getElements() as $ele) { |
| 47 | 47 | if (!$ele->isHidden()) { |
| 48 | - $ret .= '<div class="' . $ele->getClass() . '"><strong>' . $ele->getCaption() . '</strong>' . $ele->render() . '</div>' . NWLINE; |
|
| 48 | + $ret .= '<div class="'.$ele->getClass().'"><strong>'.$ele->getCaption().'</strong>'.$ele->render().'</div>'.NWLINE; |
|
| 49 | 49 | } else { |
| 50 | 50 | $ret .= $ele->render(); |
| 51 | 51 | } |
| 52 | 52 | } |
| 53 | - $ret .= NWLINE . '</form>'; |
|
| 53 | + $ret .= NWLINE.'</form>'; |
|
| 54 | 54 | |
| 55 | 55 | return $ret; |
| 56 | 56 | } |