Completed
Pull Request — master (#628)
by Richard
19:02 queued 04:58
created
htdocs/modules/userconfigs/admin/index.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -16,10 +16,10 @@
 block discarded – undo
16 16
  * @version         $Id: about.php 8065 2011-11-06 02:02:32Z beckmi $
17 17
  */
18 18
 
19
-require __DIR__ . '/admin_header.php';
19
+require __DIR__.'/admin_header.php';
20 20
 
21 21
 $indexAdmin = new \Xoops\Module\Admin();
22 22
 $indexAdmin->displayNavigation('index.php');
23 23
 $indexAdmin->displayIndex();
24 24
 
25
-require __DIR__ . '/admin_footer.php';
25
+require __DIR__.'/admin_footer.php';
Please login to merge, or discard this patch.
htdocs/modules/userconfigs/xoops_version.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -43,7 +43,7 @@
 block discarded – undo
43 43
 // paypal
44 44
 $modversion['paypal'] = array(
45 45
     'business'      => '[email protected]',
46
-    'item_name'     => 'Donation : ' . _MI_USERCONFIGS_NAME,
46
+    'item_name'     => 'Donation : '._MI_USERCONFIGS_NAME,
47 47
     'amount'        => 0,
48 48
     'currency_code' => 'USD',
49 49
 );
Please login to merge, or discard this patch.
htdocs/modules/userconfigs/preloads/preload.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -35,7 +35,7 @@
 block discarded – undo
35 35
     {
36 36
         $path = dirname(__DIR__);
37 37
         XoopsLoad::addMap(array(
38
-            'userconfigs' => $path . '/class/helper.php',
38
+            'userconfigs' => $path.'/class/helper.php',
39 39
         ));
40 40
     }
41 41
 
Please login to merge, or discard this patch.
htdocs/modules/userconfigs/language/english/modinfo.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -4,8 +4,8 @@
 block discarded – undo
4 4
 //  E-Mail: [email protected]
5 5
 
6 6
 // Module Info
7
-define('_MI_USERCONFIGS_NAME',"User Configs");
8
-define('_MI_USERCONFIGS_DSC',"Allows users to manage module configs");
7
+define('_MI_USERCONFIGS_NAME', "User Configs");
8
+define('_MI_USERCONFIGS_DSC', "Allows users to manage module configs");
9 9
 
10
-define('_MI_USERCONFIGS_ADMENU1','Home');
11
-define('_MI_USERCONFIGS_ADMENU2','About');
10
+define('_MI_USERCONFIGS_ADMENU1', 'Home');
11
+define('_MI_USERCONFIGS_ADMENU2', 'About');
Please login to merge, or discard this patch.
htdocs/modules/userconfigs/language/english/main.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -16,11 +16,11 @@
 block discarded – undo
16 16
  * @version         $Id$
17 17
  */
18 18
 
19
-define('_MD_USERCONFIGS_NOACCESS',"Sorry, you are not allowed to access this page!");
19
+define('_MD_USERCONFIGS_NOACCESS', "Sorry, you are not allowed to access this page!");
20 20
 //define('_MD_USERCONFIGS_NOPLUGINS',"Sorry, there is nothing to display!");
21
-define('_MD_USERCONFIGS_NOPLUGIN',"Sorry, there is nothing to display!");
22
-define('_MD_USERCONFIGS_NOMOD',"Sorry, the selected module is not supported!");
23
-define('_MD_USERCONFIGS_UPDATED',"Your settings were updated!");
24
-define('_MD_USERCONFIGS_CONFIGS',"Settings");
25
-define('_MD_USERCONFIGS_CHOOSE_MODULE',"Choose settings :");
26
-define('_MD_USERCONFIGS_WELCOME',"Hello %s, welcome to your settings page!");
21
+define('_MD_USERCONFIGS_NOPLUGIN', "Sorry, there is nothing to display!");
22
+define('_MD_USERCONFIGS_NOMOD', "Sorry, the selected module is not supported!");
23
+define('_MD_USERCONFIGS_UPDATED', "Your settings were updated!");
24
+define('_MD_USERCONFIGS_CONFIGS', "Settings");
25
+define('_MD_USERCONFIGS_CHOOSE_MODULE', "Choose settings :");
26
+define('_MD_USERCONFIGS_WELCOME', "Hello %s, welcome to your settings page!");
Please login to merge, or discard this patch.
htdocs/modules/userconfigs/class/plugin/usermenu.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@
 block discarded – undo
31 31
                     $mHelper = Xoops::getModuleHelper($dirName);
32 32
                     $subMenu[] = [
33 33
                         'name' => $mHelper->getModule()->getVar('name'),
34
-                        'link' => 'index.php?op=showmod&mid=' . $mHelper->getModule()->getVar('mid')
34
+                        'link' => 'index.php?op=showmod&mid='.$mHelper->getModule()->getVar('mid')
35 35
                     ];
36 36
                 }
37 37
             }
Please login to merge, or discard this patch.
htdocs/modules/userconfigs/class/plugin/menus.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@
 block discarded – undo
38 38
             foreach (array_keys($plugins) as $dirname) {
39 39
                 $mHelper = $xoops->getModuleHelper($dirname);
40 40
                 $ret[$dirname]['name'] = $mHelper->getModule()->getVar('name');
41
-                $ret[$dirname]['url'] = 'index.php?op=showmod&mid=' . $mHelper->getModule()->getVar('mid');
41
+                $ret[$dirname]['url'] = 'index.php?op=showmod&mid='.$mHelper->getModule()->getVar('mid');
42 42
             }
43 43
         }
44 44
 
Please login to merge, or discard this patch.
htdocs/modules/userconfigs/class/plugin/mainmenu.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@
 block discarded – undo
31 31
                     $mHelper = $xoops->getModuleHelper($dirname);
32 32
                     $subMenu[] = [
33 33
                         'name' => $mHelper->getModule()->getVar('name'),
34
-                        'link' => $helper->url('index.php?op=showmod&mid=' . $mHelper->getModule()->getVar('mid'))
34
+                        'link' => $helper->url('index.php?op=showmod&mid='.$mHelper->getModule()->getVar('mid'))
35 35
                     ];
36 36
                 }
37 37
             }
Please login to merge, or discard this patch.
htdocs/modules/userconfigs/class/item.php 1 patch
Switch Indentation   +27 added lines, -27 removed lines patch added patch discarded remove patch
@@ -161,21 +161,21 @@  discard block
 block discarded – undo
161 161
     public function getConfValueForOutput()
162 162
     {
163 163
         switch ($this->getVar('conf_valuetype')) {
164
-        case 'int':
165
-            return (int)($this->getVar('conf_value', 'n'));
166
-            break;
167
-        case 'array':
168
-            $value = @unserialize($this->getVar('conf_value', 'n'));
169
-            return $value ? $value : array();
170
-        case 'float':
171
-            $value = $this->getVar('conf_value', 'n');
172
-            return (float)$value;
173
-            break;
174
-        case 'textarea':
175
-            return $this->getVar('conf_value');
176
-        default:
177
-            return $this->getVar('conf_value', 'n');
178
-            break;
164
+            case 'int':
165
+                return (int)($this->getVar('conf_value', 'n'));
166
+                break;
167
+            case 'array':
168
+                $value = @unserialize($this->getVar('conf_value', 'n'));
169
+                return $value ? $value : array();
170
+            case 'float':
171
+                $value = $this->getVar('conf_value', 'n');
172
+                return (float)$value;
173
+                break;
174
+            case 'textarea':
175
+                return $this->getVar('conf_value');
176
+            default:
177
+                return $this->getVar('conf_value', 'n');
178
+                break;
179 179
         }
180 180
     }
181 181
 
@@ -187,18 +187,18 @@  discard block
 block discarded – undo
187 187
     public function setConfValueForInput(&$value)
188 188
     {
189 189
         switch ($this->getVar('conf_valuetype')) {
190
-        case 'array':
191
-            if (!is_array($value)) {
192
-                $value = explode('|', trim($value));
193
-            }
194
-            $this->setVar('conf_value', serialize($value));
195
-            break;
196
-        case 'text':
197
-            $this->setVar('conf_value', trim($value));
198
-            break;
199
-        default:
200
-            $this->setVar('conf_value', $value);
201
-            break;
190
+            case 'array':
191
+                if (!is_array($value)) {
192
+                    $value = explode('|', trim($value));
193
+                }
194
+                $this->setVar('conf_value', serialize($value));
195
+                break;
196
+            case 'text':
197
+                $this->setVar('conf_value', trim($value));
198
+                break;
199
+            default:
200
+                $this->setVar('conf_value', $value);
201
+                break;
202 202
         }
203 203
     }
204 204
 
Please login to merge, or discard this patch.