Completed
Push — master ( 593857...53cd45 )
by Richard
25s queued 10s
created
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.
htdocs/modules/userconfigs/class/form/configs.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -51,7 +51,7 @@  discard block
 block discarded – undo
51 51
             $configs = $plugin->configs();
52 52
             $configNames = array();
53 53
             foreach (array_keys($configs) as $i) {
54
-                $configNames[$configs[$i]['name']] =& $configs[$i];
54
+                $configNames[$configs[$i]['name']] = & $configs[$i];
55 55
             }
56 56
             $configCats = $plugin->categories();
57 57
             if (!$configCats) {
@@ -79,7 +79,7 @@  discard block
 block discarded – undo
79 79
             $tabTray = new Xoops\Form\TabTray('', 'pref_tabtay');
80 80
             $tabs = array();
81 81
             foreach ($configCats as $name => $info) {
82
-                $tabs[$name] = new Xoops\Form\Tab($info['name'], 'pref_tab_' . $name);
82
+                $tabs[$name] = new Xoops\Form\Tab($info['name'], 'pref_tab_'.$name);
83 83
                 if (isset($info['description']) && $info['description'] != '') {
84 84
                     $tabs[$name]->addElement(new Xoops\Form\Label('', $info['description']));
85 85
                 }
@@ -214,7 +214,7 @@  discard block
 block discarded – undo
214 214
                             $ele = new Xoops\Form\ElementTray($title, '<br />');
215 215
                             foreach (array_keys($modules) as $mid) {
216 216
                                 $c_val = isset($currrent_val[$mid]) ? (int)($currrent_val[$mid]) : null;
217
-                                $selform = new Xoops\Form\Select($modules[$mid]->getVar('name'), $obj[$i]->getVar('conf_name') . "[$mid]", $c_val);
217
+                                $selform = new Xoops\Form\Select($modules[$mid]->getVar('name'), $obj[$i]->getVar('conf_name')."[$mid]", $c_val);
218 218
                                 $selform->addOptionArray($cache_options);
219 219
                                 $ele->addElement($selform);
220 220
                                 unset($selform);
Please login to merge, or discard this patch.
htdocs/modules/userconfigs/index.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@
 block discarded – undo
21 21
  * @version         $Id$
22 22
  */
23 23
 
24
-include dirname(dirname(__DIR__)) . '/mainfile.php';
24
+include dirname(dirname(__DIR__)).'/mainfile.php';
25 25
 
26 26
 $xoops = Xoops::getInstance();
27 27
 $helper = Userconfigs::getInstance();
Please login to merge, or discard this patch.
htdocs/modules/logger/admin/menu.php 1 patch
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -17,22 +17,22 @@
 block discarded – undo
17 17
  * @author       XOOPS Development Team
18 18
  */
19 19
 
20
-$adminmenu=array();
20
+$adminmenu = array();
21 21
 
22 22
 $adminmenu[] = array(
23
-    'title'	=> _MI_LOGGER_ADMENU1 ,
24
-    'link'	=> 'admin/index.php' ,
23
+    'title'	=> _MI_LOGGER_ADMENU1,
24
+    'link'	=> 'admin/index.php',
25 25
     'icon'	=> 'home.png'
26
-) ;
26
+);
27 27
 
28 28
 $adminmenu[] = array(
29
-    'title'	=> _MI_LOGGER_ADMENU2 ,
30
-    'link'	=> 'admin/about.php' ,
29
+    'title'	=> _MI_LOGGER_ADMENU2,
30
+    'link'	=> 'admin/about.php',
31 31
     'icon'	=> 'about.png'
32
-) ;
32
+);
33 33
 
34 34
 $adminmenu[] = array(
35
-    'title'	=> _MI_LOGGER_ADMENU3 ,
36
-    'link'	=> 'admin/permissions.php' ,
35
+    'title'	=> _MI_LOGGER_ADMENU3,
36
+    'link'	=> 'admin/permissions.php',
37 37
     'icon'	=> 'permissions.png'
38
-) ;
38
+);
Please login to merge, or discard this patch.
htdocs/modules/logger/admin/permissions.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@  discard block
 block discarded – undo
21 21
 use Xmf\Module\Helper;
22 22
 use Xmf\Module\Helper\Permission;
23 23
 
24
-include_once __DIR__ . '/admin_header.php';
24
+include_once __DIR__.'/admin_header.php';
25 25
 
26 26
 $moduleAdmin = new \Xoops\Module\Admin();
27 27
 $moduleAdmin->displayNavigation('permissions.php');
@@ -30,13 +30,13 @@  discard block
 block discarded – undo
30 30
 $permHelper = new Permission();
31 31
 if ($permHelper) {
32 32
     // this is the name and item we are going to work with
33
-    $gperm_name='use_logger';
34
-    $gperm_itemid=0;
33
+    $gperm_name = 'use_logger';
34
+    $gperm_itemid = 0;
35 35
 
36 36
     // if this is a post operation get our variables
37
-    if ('POST'===Request::getMethod()) {
38
-        $name=$permHelper->defaultFieldName($gperm_name, $gperm_itemid);
39
-        $groups=Request::getVar($name, array(), 'POST');
37
+    if ('POST' === Request::getMethod()) {
38
+        $name = $permHelper->defaultFieldName($gperm_name, $gperm_itemid);
39
+        $groups = Request::getVar($name, array(), 'POST');
40 40
         $permHelper->savePermissionForItem($gperm_name, $gperm_itemid, $groups);
41 41
         echo $xoops->alert('success', _MA_LOGGER_FORM_PROCESSED, _MA_LOGGER_PERMISSION_FORM);
42 42
     }
@@ -56,4 +56,4 @@  discard block
 block discarded – undo
56 56
     echo $form->render();
57 57
 }
58 58
 
59
-include_once __DIR__ . '/admin_footer.php';
59
+include_once __DIR__.'/admin_footer.php';
Please login to merge, or discard this patch.