Completed
Push — master ( 0c98dc...038288 )
by Richard
15s queued 11s
created
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.
htdocs/modules/logger/preloads/preload.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -97,7 +97,7 @@  discard block
 block discarded – undo
97 97
     {
98 98
         $path = dirname(__DIR__);
99 99
         XoopsLoad::addMap(array(
100
-            'legacylogger' => $path . '/class/legacylogger.php',
100
+            'legacylogger' => $path.'/class/legacylogger.php',
101 101
         ));
102 102
     }
103 103
 
@@ -111,7 +111,7 @@  discard block
 block discarded – undo
111 111
     public static function eventCoreIncludeCommonStart($args)
112 112
     {
113 113
         if (class_exists('LegacyLogger')) {
114
-            LegacyLogger::getInstance()->enable();//until we get a db connection debug is enabled
114
+            LegacyLogger::getInstance()->enable(); //until we get a db connection debug is enabled
115 115
             LegacyLogger::getInstance()->startTime();
116 116
             LegacyLogger::getInstance()->startTime('XOOPS Boot');
117 117
         }
@@ -291,7 +291,7 @@  discard block
 block discarded – undo
291 291
     {
292 292
         /* @var $block XoopsBlock */
293 293
         $block = $args[0];
294
-        $isCached= $args[1];
294
+        $isCached = $args[1];
295 295
         LegacyLogger::getInstance()->addBlock($block->getVar('name'), $isCached, $block->getVar('bcachetime'));
296 296
     }
297 297
 
@@ -430,6 +430,6 @@  discard block
 block discarded – undo
430 430
      */
431 431
     public static function eventSystemPreferencesSave($args)
432 432
     {
433
-        XoopsLoad::addMap(array('legacylogger' => dirname(__DIR__) . '/class/legacylogger.php'));
433
+        XoopsLoad::addMap(array('legacylogger' => dirname(__DIR__).'/class/legacylogger.php'));
434 434
     }
435 435
 }
Please login to merge, or discard this patch.
htdocs/modules/logger/language/english/modinfo.php 1 patch
Spacing   +13 added lines, -13 removed lines patch added patch discarded remove patch
@@ -16,20 +16,20 @@
 block discarded – undo
16 16
  * @version         $Id$
17 17
  */
18 18
 
19
-define('_MI_LOGGER_NAME','Logger');
20
-define('_MI_LOGGER_DSC','Legacy style error reporting and performance analysis');
19
+define('_MI_LOGGER_NAME', 'Logger');
20
+define('_MI_LOGGER_DSC', 'Legacy style error reporting and performance analysis');
21 21
 
22
-define('_MI_LOGGER_ENABLE',"Display Legacy Logger");
23
-define('_MI_LOGGER_POPUP',"Use Popup Window");
24
-define('_MI_LOGGER_SMARTYDEBUG',"Enable Smarty Debug");
22
+define('_MI_LOGGER_ENABLE', "Display Legacy Logger");
23
+define('_MI_LOGGER_POPUP', "Use Popup Window");
24
+define('_MI_LOGGER_SMARTYDEBUG', "Enable Smarty Debug");
25 25
 
26
-define('_MI_LOGGER_UCONF_CAT_OPT','Options');
27
-define('_MI_LOGGER_UCONF_CAT_OPT_DESC','Legacy Logger Options');
26
+define('_MI_LOGGER_UCONF_CAT_OPT', 'Options');
27
+define('_MI_LOGGER_UCONF_CAT_OPT_DESC', 'Legacy Logger Options');
28 28
 
29
-define('_MI_LOGGER_UCONF_ENABLE_BAR','Display Legacy Logger');
30
-define('_MI_LOGGER_UCONF_POPUP',"Use Popup Window");
31
-define('_MI_LOGGER_UCONF_ENABLE_SMARTY','Enable Smarty Debug');
29
+define('_MI_LOGGER_UCONF_ENABLE_BAR', 'Display Legacy Logger');
30
+define('_MI_LOGGER_UCONF_POPUP', "Use Popup Window");
31
+define('_MI_LOGGER_UCONF_ENABLE_SMARTY', 'Enable Smarty Debug');
32 32
 
33
-define('_MI_LOGGER_ADMENU1','Home');
34
-define('_MI_LOGGER_ADMENU2','About');
35
-define('_MI_LOGGER_ADMENU3','Permissions');
33
+define('_MI_LOGGER_ADMENU1', 'Home');
34
+define('_MI_LOGGER_ADMENU2', 'About');
35
+define('_MI_LOGGER_ADMENU3', 'Permissions');
Please login to merge, or discard this patch.
htdocs/modules/logger/language/english/admin.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -16,7 +16,7 @@
 block discarded – undo
16 16
  * @version         $Id$
17 17
  */
18 18
 
19
-define('_MA_LOGGER_PERMISSION_FORM','Legacy Logger Usage Permissions');
20
-define('_MA_LOGGER_PERMISSION_GROUPS','Select groups that may use the Logger');
21
-define('_MA_LOGGER_FORM_SUBMIT','Save');
22
-define('_MA_LOGGER_FORM_PROCESSED','Permissions updated.');
19
+define('_MA_LOGGER_PERMISSION_FORM', 'Legacy Logger Usage Permissions');
20
+define('_MA_LOGGER_PERMISSION_GROUPS', 'Select groups that may use the Logger');
21
+define('_MA_LOGGER_FORM_SUBMIT', 'Save');
22
+define('_MA_LOGGER_FORM_PROCESSED', 'Permissions updated.');
Please login to merge, or discard this patch.
htdocs/modules/logger/class/plugin/userconfigs.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -58,7 +58,7 @@  discard block
 block discarded – undo
58 58
      */
59 59
     public function configs()
60 60
     {
61
-        $config[]=array(
61
+        $config[] = array(
62 62
             'name' => 'logger_enable',
63 63
             'title' => '_MI_LOGGER_UCONF_ENABLE_BAR',
64 64
             'description' => '',
@@ -80,7 +80,7 @@  discard block
 block discarded – undo
80 80
             'category' => 'cat_options'
81 81
         );
82 82
 
83
-        $config[]=array(
83
+        $config[] = array(
84 84
             'name' => 'debug_smarty_enable',
85 85
             'title' => '_MI_LOGGER_UCONF_ENABLE_SMARTY',
86 86
             'description' => '',
Please login to merge, or discard this patch.