Completed
Push — master ( 2d4977...3189d6 )
by Michael
10:50
created
admin/adsense.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -59,7 +59,7 @@  discard block
 block discarded – undo
59 59
 switch ($op) {
60 60
     case 'mod':
61 61
 
62
-        $adsenseid = isset($_GET['adsenseid']) ? (int)$_GET['adsenseid'] : 0;
62
+        $adsenseid = isset($_GET['adsenseid']) ? (int) $_GET['adsenseid'] : 0;
63 63
 
64 64
         smart_xoops_cp_header();
65 65
         echo $indexAdmin->addNavigation(basename(__FILE__));
@@ -69,7 +69,7 @@  discard block
 block discarded – undo
69 69
 
70 70
     case 'clone':
71 71
 
72
-        $adsenseid = isset($_GET['adsenseid']) ? (int)$_GET['adsenseid'] : 0;
72
+        $adsenseid = isset($_GET['adsenseid']) ? (int) $_GET['adsenseid'] : 0;
73 73
 
74 74
         smart_xoops_cp_header();
75 75
         echo $indexAdmin->addNavigation(basename(__FILE__));
Please login to merge, or discard this patch.
admin/customtag.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -61,7 +61,7 @@  discard block
 block discarded – undo
61 61
 switch ($op) {
62 62
     case 'mod':
63 63
 
64
-        $customtagid = isset($_GET['customtagid']) ? (int)$_GET['customtagid'] : 0;
64
+        $customtagid = isset($_GET['customtagid']) ? (int) $_GET['customtagid'] : 0;
65 65
 
66 66
         smart_xoops_cp_header();
67 67
         echo $indexAdmin->addNavigation(basename(__FILE__));
@@ -71,7 +71,7 @@  discard block
 block discarded – undo
71 71
 
72 72
     case 'clone':
73 73
 
74
-        $customtagid = isset($_GET['customtagid']) ? (int)$_GET['customtagid'] : 0;
74
+        $customtagid = isset($_GET['customtagid']) ? (int) $_GET['customtagid'] : 0;
75 75
 
76 76
         smart_xoops_cp_header();
77 77
         echo $indexAdmin->addNavigation(basename(__FILE__));
Please login to merge, or discard this patch.
admin/menu.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@
 block discarded – undo
12 12
 include_once $path . '/mainfile.php';
13 13
 
14 14
 $dirname         = basename(dirname(__DIR__));
15
-$moduleHandler  = xoops_getHandler('module');
15
+$moduleHandler = xoops_getHandler('module');
16 16
 $module          = $moduleHandler->getByDirname($dirname);
17 17
 $pathIcon32      = $module->getInfo('icons32');
18 18
 $pathModuleAdmin = $module->getInfo('dirmoduleadmin');
Please login to merge, or discard this patch.
admin/currency.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -51,7 +51,7 @@  discard block
 block discarded – undo
51 51
 
52 52
 switch ($op) {
53 53
     case 'mod':
54
-        $currencyid = isset($_GET['currencyid']) ? (int)$_GET['currencyid'] : 0;
54
+        $currencyid = isset($_GET['currencyid']) ? (int) $_GET['currencyid'] : 0;
55 55
 
56 56
         smart_xoops_cp_header();
57 57
 
@@ -67,7 +67,7 @@  discard block
 block discarded – undo
67 67
 
68 68
         if (isset($_POST['default_currency'])) {
69 69
             $newDefaultCurrency = $_POST['default_currency'];
70
-            $sql                  = 'UPDATE ' . $smartobjectCurrencyHandler->table . ' SET default_currency=0';
70
+            $sql = 'UPDATE ' . $smartobjectCurrencyHandler->table . ' SET default_currency=0';
71 71
             $smartobjectCurrencyHandler->query($sql);
72 72
             $sql = 'UPDATE ' . $smartobjectCurrencyHandler->table . ' SET default_currency=1 WHERE currencyid=' . $newDefaultCurrency;
73 73
             $smartobjectCurrencyHandler->query($sql);
Please login to merge, or discard this patch.
admin/update.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -207,7 +207,7 @@  discard block
 block discarded – undo
207 207
     $ret = array();
208 208
     global $xoopsDB;
209 209
     $catHandler = xoops_getModuleHandler('category', 'wfdownloads');
210
-    $result      = $xoopsDB->query('SHOW COLUMNS FROM ' . $catHandler->table);
210
+    $result = $xoopsDB->query('SHOW COLUMNS FROM ' . $catHandler->table);
211 211
     while ($existing_field = $xoopsDB->fetchArray($result)) {
212 212
         $fields[$existing_field['field']] = $existing_field['type'];
213 213
     }
@@ -328,7 +328,7 @@  discard block
 block discarded – undo
328 328
     //return $fields;
329 329
 }
330 330
 
331
-$op = isset($_REQUEST['op']) ? (int)$_REQUEST['op'] : 0;
331
+$op = isset($_REQUEST['op']) ? (int) $_REQUEST['op'] : 0;
332 332
 switch ($op) {
333 333
     case 1:
334 334
         // Make sure that nohtml is properly changed to dohtml
@@ -351,7 +351,7 @@  discard block
 block discarded – undo
351 351
         $form = new XoopsThemeForm('Upgrade WF-Downloads', 'form', $_SERVER['REQUEST_URI']);
352 352
 
353 353
         //Is MyDownloads installed?
354
-        $moduleHandler    = xoops_getHandler('module');
354
+        $moduleHandler = xoops_getHandler('module');
355 355
         $mydownloadsModule = $moduleHandler->getByDirname('mydownloads');
356 356
         if (is_object($mydownloadsModule)) {
357 357
             $mydownloadsButton = new XoopsFormButton('Import data from MyDownloads', 'myd_button', 'Import', 'submit');
Please login to merge, or discard this patch.
admin/admin_header.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -37,6 +37,6 @@
 block discarded – undo
37 37
 
38 38
 $pathIcon16      = '../' . $xoopsModule->getInfo('icons16');
39 39
 $pathIcon32      = '../' . $xoopsModule->getInfo('icons32');
40
-$pathModuleAdmin =& $xoopsModule->getInfo('dirmoduleadmin');
40
+$pathModuleAdmin = & $xoopsModule->getInfo('dirmoduleadmin');
41 41
 
42 42
 include_once $GLOBALS['xoops']->path($pathModuleAdmin . '/moduleadmin.php');
Please login to merge, or discard this patch.
class/smartobjecthandler.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -197,7 +197,7 @@  discard block
 block discarded – undo
197 197
     public function setGrantedObjectsCriteria(&$criteria, $perm_name)
198 198
     {
199 199
         $smartPermissionsHandler = new SmartobjectPermissionHandler($this);
200
-        $grantedItems             = $smartPermissionsHandler->getGrantedItems($perm_name);
200
+        $grantedItems = $smartPermissionsHandler->getGrantedItems($perm_name);
201 201
         if (count($grantedItems) > 0) {
202 202
             $criteria->add(new Criteria($this->keyName, '(' . implode(', ', $grantedItems) . ')', 'IN'));
203 203
 
@@ -235,7 +235,7 @@  discard block
 block discarded – undo
235 235
         $obj = new $this->className($this);
236 236
         $obj->setImageDir($this->getImageUrl(), $this->getImagePath());
237 237
         if (!$obj->handler) {
238
-            $obj->handler =& $this;
238
+            $obj->handler = & $this;
239 239
         }
240 240
 
241 241
         if ($isNew === true) {
@@ -312,7 +312,7 @@  discard block
 block discarded – undo
312 312
         }
313 313
 
314 314
         if (count($obj_array) != 1) {
315
-            $obj =& $this->create();
315
+            $obj = & $this->create();
316 316
 
317 317
             return $obj;
318 318
         }
@@ -460,22 +460,22 @@  discard block
 block discarded – undo
460 460
     {
461 461
         $ret = array();
462 462
         while ($myrow = $this->db->fetchArray($result)) {
463
-            $obj =& $this->create(false);
463
+            $obj = & $this->create(false);
464 464
             $obj->assignVars($myrow);
465 465
             if (!$id_as_key) {
466 466
                 if ($as_object) {
467
-                    $ret[] =& $obj;
467
+                    $ret[] = & $obj;
468 468
                 } else {
469 469
                     $ret[] = $obj->toArray();
470 470
                 }
471 471
             } else {
472 472
                 if ($as_object) {
473
-                    $value =& $obj;
473
+                    $value = & $obj;
474 474
                 } else {
475 475
                     $value = $obj->toArray();
476 476
                 }
477 477
                 if ($id_as_key === 'parentid') {
478
-                    $ret[$obj->getVar('parentid', 'e')][$obj->getVar($this->keyName)] =& $value;
478
+                    $ret[$obj->getVar('parentid', 'e')][$obj->getVar($this->keyName)] = & $value;
479 479
                 } else {
480 480
                     $ret[$obj->getVar($this->keyName)] = $value;
481 481
                 }
@@ -748,7 +748,7 @@  discard block
 block discarded – undo
748 748
         $fieldsToStoreInDB = array();
749 749
         foreach ($obj->cleanVars as $k => $v) {
750 750
             if ($obj->vars[$k]['data_type'] == XOBJ_DTYPE_INT) {
751
-                $cleanvars[$k] = (int)$v;
751
+                $cleanvars[$k] = (int) $v;
752 752
             } elseif (is_array($v)) {
753 753
                 $cleanvars[$k] = $this->db->quoteString(implode(',', $v));
754 754
             } else {
Please login to merge, or discard this patch.
class/smartaddto.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -20,13 +20,13 @@
 block discarded – undo
20 20
      */
21 21
     public function __construct($layout = 0, $method = 1)
22 22
     {
23
-        $layout = (int)$layout;
23
+        $layout = (int) $layout;
24 24
         if ($layout < 0 || $layout > 3) {
25 25
             $layout = 0;
26 26
         }
27 27
         $this->_layout = $layout;
28 28
 
29
-        $method = (int)$method;
29
+        $method = (int) $method;
30 30
         if ($method < 0 || $method > 1) {
31 31
             $method = 1;
32 32
         }
Please login to merge, or discard this patch.
class/smartobjectcontroller.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -107,7 +107,7 @@  discard block
 block discarded – undo
107 107
                         $value = strtotime($_POST[$key]);
108 108
                         //if strtotime returns false, the value is already a time stamp
109 109
                         if (!$value) {
110
-                            $value = (int)$_POST[$key];
110
+                            $value = (int) $_POST[$key];
111 111
                         }
112 112
                     }
113 113
                     $smartObj->setVar($key, $value);
@@ -220,7 +220,7 @@  discard block
 block discarded – undo
220 220
      */
221 221
     public function storeFromDefaultForm($created_success_msg, $modified_success_msg, $redirect_page = false, $debug = false, $x_param = false)
222 222
     {
223
-        $objectid = isset($_POST[$this->handler->keyName]) ? (int)$_POST[$this->handler->keyName] : 0;
223
+        $objectid = isset($_POST[$this->handler->keyName]) ? (int) $_POST[$this->handler->keyName] : 0;
224 224
         if ($debug) {
225 225
             if ($x_param) {
226 226
                 $smartObj = $this->handler->getD($objectid, true, $x_param);
@@ -296,7 +296,7 @@  discard block
 block discarded – undo
296 296
     {
297 297
         global $smart_previous_page;
298 298
 
299
-        $objectid = isset($_REQUEST[$this->handler->keyName]) ? (int)$_REQUEST[$this->handler->keyName] : 0;
299
+        $objectid = isset($_REQUEST[$this->handler->keyName]) ? (int) $_REQUEST[$this->handler->keyName] : 0;
300 300
         $smartObj = $this->handler->get($objectid);
301 301
 
302 302
         if ($smartObj->isNew()) {
@@ -335,7 +335,7 @@  discard block
 block discarded – undo
335 335
     {
336 336
         global $smart_previous_page, $xoopsTpl;
337 337
 
338
-        $objectid = isset($_REQUEST[$this->handler->keyName]) ? (int)$_REQUEST[$this->handler->keyName] : 0;
338
+        $objectid = isset($_REQUEST[$this->handler->keyName]) ? (int) $_REQUEST[$this->handler->keyName] : 0;
339 339
         $smartObj = $this->handler->get($objectid);
340 340
 
341 341
         if ($smartObj->isNew()) {
Please login to merge, or discard this patch.