Passed
Pull Request — master (#145)
by Goffy
04:27
created
admin/about.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -19,10 +19,10 @@
 block discarded – undo
19 19
  *
20 20
  * @author          Txmod Xoops http://www.txmodxoops.org
21 21
  */
22
-include __DIR__ . '/header.php';
22
+include __DIR__.'/header.php';
23 23
 
24 24
 $adminObject->displayNavigation(basename(__FILE__));
25 25
 $adminObject::setPaypal('[email protected]');
26 26
 $adminObject->displayAbout(false);
27 27
 
28
-include __DIR__ . '/footer.php';
28
+include __DIR__.'/footer.php';
Please login to merge, or discard this patch.
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/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.
class/Form/FormRadio.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -51,11 +51,11 @@  discard block
 block discarded – undo
51 51
                 }
52 52
                 $ret .= '<td class="radio">';
53 53
             }
54
-            $ret .= '<input type="radio" name="' . $ele_name . '" id="' . $ele_name . '[' . $value . ']' . $id_ele . '" title = "' . htmlspecialchars($ele_title, ENT_QUOTES) . '" value="' . htmlspecialchars($value, ENT_QUOTES) . '"';
54
+            $ret .= '<input type="radio" name="'.$ele_name.'" id="'.$ele_name.'['.$value.']'.$id_ele.'" title = "'.htmlspecialchars($ele_title, ENT_QUOTES).'" value="'.htmlspecialchars($value, ENT_QUOTES).'"';
55 55
             if (isset($ele_value) && $value == $ele_value) {
56 56
                 $ret .= ' checked';
57 57
             }
58
-            $ret .= $ele_extra . ' />' . "<label name='xolb_{$ele_name}' for='" . $ele_name . '[' . $value . ']' . $id_ele . "'><span><span></span></span>" . $name . '</label>' . $ele_delimeter;
58
+            $ret .= $ele_extra.' />'."<label name='xolb_{$ele_name}' for='".$ele_name.'['.$value.']'.$id_ele."'><span><span></span></span>".$name.'</label>'.$ele_delimeter;
59 59
             if (!empty($this->columns)) {
60 60
                 $ret .= '</td>';
61 61
                 if (0 == ++$i % $this->columns) {
@@ -66,7 +66,7 @@  discard block
 block discarded – undo
66 66
         if (!empty($this->columns)) {
67 67
             $span = $i % $this->columns;
68 68
             if ($span) {
69
-                $ret .= '<td colspan="' . ($this->columns - $span) . '"></td></tr>';
69
+                $ret .= '<td colspan="'.($this->columns - $span).'"></td></tr>';
70 70
             }
71 71
             $ret .= '</table>';
72 72
         }
Please login to merge, or discard this patch.