Completed
Pull Request — master (#144)
by Michael
03:08
created
class/helper0.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -123,7 +123,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
     /*
Please login to merge, or discard this patch.
class/MoreFiles.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -131,7 +131,7 @@
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
class/Helper.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -72,7 +72,7 @@
 block discarded – undo
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
         }
Please login to merge, or discard this patch.
class/Files/Assets/Css/CssSelectors.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -69,14 +69,14 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
class/Files/Templates/user/Header.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -81,10 +81,10 @@
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
class/Files/CreateHtmlSmartyCodes.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -92,7 +92,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
class/Files/Language/LanguageHelp.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -110,9 +110,9 @@
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
class/Files/Language/LanguageMailTpl.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -101,7 +101,7 @@
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
class/Form/SimpleForm.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -41,16 +41,16 @@
 block discarded – undo
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
     }
Please login to merge, or discard this patch.