Completed
Push — master ( bf34f3...88111b )
by Michael
03:08
created
class/SmartobjectCustomtagHandler.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -63,8 +63,8 @@
 block discarded – undo
63 63
             $granted_ids                   = $smartobjectPermissionsHandler->getGrantedItems('view');
64 64
 
65 65
             if ($granted_ids && count($granted_ids) > 0) {
66
-                $criteria->add(new \Criteria('customtagid', '(' . implode(', ', $granted_ids) . ')', 'IN'));
67
-                $customtagsObj =& $this->getObjects($criteria, true);
66
+                $criteria->add(new \Criteria('customtagid', '('.implode(', ', $granted_ids).')', 'IN'));
67
+                $customtagsObj = & $this->getObjects($criteria, true);
68 68
                 foreach ($customtagsObj as $customtagObj) {
69 69
                     $ret[$customtagObj->getVar('name')] = $customtagObj;
70 70
                 }
Please login to merge, or discard this patch.
class/SmartobjectCurrency.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@  discard block
 block discarded – undo
23 23
 // defined('XOOPS_ROOT_PATH') || die('Restricted access');
24 24
 
25 25
 //require_once XOOPS_ROOT_PATH . '/modules/smartobject/class/smartobject.php';
26
-require_once XOOPS_ROOT_PATH . '/class/xoopsformloader.php';
26
+require_once XOOPS_ROOT_PATH.'/class/xoopsformloader.php';
27 27
 
28 28
 /**
29 29
  * Class SmartobjectCurrency
@@ -131,7 +131,7 @@  discard block
 block discarded – undo
131 131
      */
132 132
     public function getDefaultCurrencyControl()
133 133
     {
134
-        $radio_box = '<input name="default_currency" value="' . $this->getVar('currencyid') . '" type="radio"';
134
+        $radio_box = '<input name="default_currency" value="'.$this->getVar('currencyid').'" type="radio"';
135 135
         if ($this->getVar('default_currency', 'e')) {
136 136
             $radio_box .= 'checked';
137 137
         }
Please login to merge, or discard this patch.
class/SmartAddTo.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -21,13 +21,13 @@  discard block
 block discarded – undo
21 21
      */
22 22
     public function __construct($layout = 0, $method = 1)
23 23
     {
24
-        $layout = (int)$layout;
24
+        $layout = (int) $layout;
25 25
         if ($layout < 0 || $layout > 3) {
26 26
             $layout = 0;
27 27
         }
28 28
         $this->_layout = $layout;
29 29
 
30
-        $method = (int)$method;
30
+        $method = (int) $method;
31 31
         if ($method < 0 || $method > 1) {
32 32
             $method = 1;
33 33
         }
@@ -42,12 +42,12 @@  discard block
 block discarded – undo
42 42
     {
43 43
         global $xoTheme, $xoopsTpl;
44 44
 
45
-        $xoTheme->addStylesheet(SMARTOBJECT_URL . 'include/addto/addto.css');
45
+        $xoTheme->addStylesheet(SMARTOBJECT_URL.'include/addto/addto.css');
46 46
 
47 47
         $xoopsTpl->assign('smartobject_addto_method', $this->_method);
48 48
         $xoopsTpl->assign('smartobject_addto_layout', $this->_layout);
49 49
 
50
-        $xoopsTpl->assign('smartobject_addto_url', SMARTOBJECT_URL . 'include/addto/');
50
+        $xoopsTpl->assign('smartobject_addto_url', SMARTOBJECT_URL.'include/addto/');
51 51
 
52 52
         if ($fetchOnly) {
53 53
             return $xoopsTpl->fetch('db:smartobject_addto.tpl');
@@ -63,12 +63,12 @@  discard block
 block discarded – undo
63 63
     {
64 64
         global $xoTheme;
65 65
 
66
-        $xoTheme->addStylesheet(SMARTOBJECT_URL . 'include/addto/addto.css');
66
+        $xoTheme->addStylesheet(SMARTOBJECT_URL.'include/addto/addto.css');
67 67
 
68 68
         $block                             = [];
69 69
         $block['smartobject_addto_method'] = $this->_method;
70 70
         $block['smartobject_addto_layout'] = $this->_layout;
71
-        $block['smartobject_addto_url']    = SMARTOBJECT_URL . 'include/addto/';
71
+        $block['smartobject_addto_url']    = SMARTOBJECT_URL.'include/addto/';
72 72
 
73 73
         return $block;
74 74
     }
Please login to merge, or discard this patch.
class/SmartobjectCurrencyHandler.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@  discard block
 block discarded – undo
23 23
 // defined('XOOPS_ROOT_PATH') || die('Restricted access');
24 24
 
25 25
 //require_once XOOPS_ROOT_PATH . '/modules/smartobject/class/smartobject.php';
26
-require_once XOOPS_ROOT_PATH . '/class/xoopsformloader.php';
26
+require_once XOOPS_ROOT_PATH.'/class/xoopsformloader.php';
27 27
 
28 28
 /**
29 29
  * Class SmartObjectCurrencyHandler
@@ -44,7 +44,7 @@  discard block
 block discarded – undo
44 44
      */
45 45
     public function getCurrencies()
46 46
     {
47
-        $currenciesObj =& $this->getObjects(null, true);
47
+        $currenciesObj = & $this->getObjects(null, true);
48 48
 
49 49
         return $currenciesObj;
50 50
     }
Please login to merge, or discard this patch.
class/SmartJax.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@  discard block
 block discarded – undo
23 23
 
24 24
 // defined('XOOPS_ROOT_PATH') || die('Restricted access');
25 25
 
26
-require_once XOOPS_ROOT_PATH . '/modules/smartobject/include/projax/projax.php';
26
+require_once XOOPS_ROOT_PATH.'/modules/smartobject/include/projax/projax.php';
27 27
 
28 28
 /**
29 29
  * Class SmartJax
@@ -33,7 +33,7 @@  discard block
 block discarded – undo
33 33
     public function initiateFromUserside()
34 34
     {
35 35
         global $xoTheme;
36
-        $xoTheme->addScript(SMARTOBJECT_URL . 'include/projax/js/prototype.js');
37
-        $xoTheme->addScript(SMARTOBJECT_URL . 'include/projax/js/scriptaculous.js');
36
+        $xoTheme->addScript(SMARTOBJECT_URL.'include/projax/js/prototype.js');
37
+        $xoTheme->addScript(SMARTOBJECT_URL.'include/projax/js/scriptaculous.js');
38 38
     }
39 39
 }
Please login to merge, or discard this patch.
class/SmartObjectTable.php 1 patch
Spacing   +43 added lines, -43 removed lines patch added patch discarded remove patch
@@ -97,7 +97,7 @@  discard block
 block discarded – undo
97 97
      */
98 98
     public function addActionButton($op, $caption = false, $text = false)
99 99
     {
100
-        $action                 = [
100
+        $action = [
101 101
             'op'      => $op,
102 102
             'caption' => $caption,
103 103
             'text'    => $text
@@ -132,7 +132,7 @@  discard block
 block discarded – undo
132 132
     {
133 133
         $current_urls               = smart_getCurrentUrls();
134 134
         $current_url                = $current_urls['full'];
135
-        $this->_printerFriendlyPage = $current_url . '&print';
135
+        $this->_printerFriendlyPage = $current_url.'&print';
136 136
     }
137 137
 
138 138
     /**
@@ -165,7 +165,7 @@  discard block
 block discarded – undo
165 165
      */
166 166
     public function addDefaultIntroButton($caption)
167 167
     {
168
-        $this->addIntroButton($this->_objectHandler->_itemname, $this->_objectHandler->_page . '?op=mod', $caption);
168
+        $this->addIntroButton($this->_objectHandler->_itemname, $this->_objectHandler->_page.'?op=mod', $caption);
169 169
     }
170 170
 
171 171
     /**
@@ -190,9 +190,9 @@  discard block
 block discarded – undo
190 190
     public function getDefaultSort()
191 191
     {
192 192
         if ($this->_sortsel) {
193
-            return smart_getCookieVar($_SERVER['PHP_SELF'] . '_' . $this->_id . '_sortsel', $this->_sortsel);
193
+            return smart_getCookieVar($_SERVER['PHP_SELF'].'_'.$this->_id.'_sortsel', $this->_sortsel);
194 194
         } else {
195
-            return smart_getCookieVar($_SERVER['PHP_SELF'] . '_' . $this->_id . '_sortsel', $this->_objectHandler->identifierName);
195
+            return smart_getCookieVar($_SERVER['PHP_SELF'].'_'.$this->_id.'_sortsel', $this->_objectHandler->identifierName);
196 196
         }
197 197
     }
198 198
 
@@ -210,9 +210,9 @@  discard block
 block discarded – undo
210 210
     public function getDefaultOrder()
211 211
     {
212 212
         if ($this->_ordersel) {
213
-            return smart_getCookieVar($_SERVER['PHP_SELF'] . '_' . $this->_id . '_ordersel', $this->_ordersel);
213
+            return smart_getCookieVar($_SERVER['PHP_SELF'].'_'.$this->_id.'_ordersel', $this->_ordersel);
214 214
         } else {
215
-            return smart_getCookieVar($_SERVER['PHP_SELF'] . '_' . $this->_id . '_ordersel', 'ASC');
215
+            return smart_getCookieVar($_SERVER['PHP_SELF'].'_'.$this->_id.'_ordersel', 'ASC');
216 216
         }
217 217
     }
218 218
 
@@ -261,21 +261,21 @@  discard block
 block discarded – undo
261 261
 
262 262
     public function setSortOrder()
263 263
     {
264
-        $this->_sortsel = isset($_GET[$this->_objectHandler->_itemname . '_' . 'sortsel']) ? $_GET[$this->_objectHandler->_itemname . '_' . 'sortsel'] : $this->getDefaultSort();
264
+        $this->_sortsel = isset($_GET[$this->_objectHandler->_itemname.'_'.'sortsel']) ? $_GET[$this->_objectHandler->_itemname.'_'.'sortsel'] : $this->getDefaultSort();
265 265
         //$this->_sortsel = isset($_POST['sortsel']) ? $_POST['sortsel']: $this->_sortsel;
266
-        smart_setCookieVar($_SERVER['PHP_SELF'] . '_' . $this->_id . '_sortsel', $this->_sortsel);
266
+        smart_setCookieVar($_SERVER['PHP_SELF'].'_'.$this->_id.'_sortsel', $this->_sortsel);
267 267
         $fieldsForSorting = $this->_tempObject->getFieldsForSorting($this->_sortsel);
268 268
 
269 269
         if (isset($this->_tempObject->vars[$this->_sortsel]['itemName'])
270 270
             && $this->_tempObject->vars[$this->_sortsel]['itemName']) {
271
-            $this->_criteria->setSort($this->_tempObject->vars[$this->_sortsel]['itemName'] . '.' . $this->_sortsel);
271
+            $this->_criteria->setSort($this->_tempObject->vars[$this->_sortsel]['itemName'].'.'.$this->_sortsel);
272 272
         } else {
273
-            $this->_criteria->setSort($this->_objectHandler->_itemname . '.' . $this->_sortsel);
273
+            $this->_criteria->setSort($this->_objectHandler->_itemname.'.'.$this->_sortsel);
274 274
         }
275 275
 
276
-        $this->_ordersel = isset($_GET[$this->_objectHandler->_itemname . '_' . 'ordersel']) ? $_GET[$this->_objectHandler->_itemname . '_' . 'ordersel'] : $this->getDefaultOrder();
276
+        $this->_ordersel = isset($_GET[$this->_objectHandler->_itemname.'_'.'ordersel']) ? $_GET[$this->_objectHandler->_itemname.'_'.'ordersel'] : $this->getDefaultOrder();
277 277
         //$this->_ordersel = isset($_POST['ordersel']) ? $_POST['ordersel']:$this->_ordersel;
278
-        smart_setCookieVar($_SERVER['PHP_SELF'] . '_' . $this->_id . '_ordersel', $this->_ordersel);
278
+        smart_setCookieVar($_SERVER['PHP_SELF'].'_'.$this->_id.'_ordersel', $this->_ordersel);
279 279
         $ordersArray = $this->getOrdersArray();
280 280
         $this->_criteria->setOrder($this->_ordersel);
281 281
     }
@@ -325,7 +325,7 @@  discard block
 block discarded – undo
325 325
                         //$object->initiateCustomFields();
326 326
                     }
327 327
                     if ('checked' === $column->_keyname) {
328
-                        $value = '<input type ="checkbox" name="selected_smartobjects[]" value="' . $object->id() . '">';
328
+                        $value = '<input type ="checkbox" name="selected_smartobjects[]" value="'.$object->id().'">';
329 329
                     } elseif ($column->_customMethodForValue
330 330
                               && method_exists($object, $column->_customMethodForValue)) {
331 331
                         $method = $column->_customMethodForValue;
@@ -370,7 +370,7 @@  discard block
 block discarded – undo
370 370
                     }
371 371
                 }
372 372
 
373
-                require_once SMARTOBJECT_ROOT_PATH . 'class/smartobjectcontroller.php';
373
+                require_once SMARTOBJECT_ROOT_PATH.'class/smartobjectcontroller.php';
374 374
                 $controller = new SmartObjectController($this->_objectHandler);
375 375
 
376 376
                 if ((!is_array($this->_actions)) || in_array('edit', $this->_actions)) {
@@ -410,9 +410,9 @@  discard block
 block discarded – undo
410 410
     public function getDefaultFilter()
411 411
     {
412 412
         if ($this->_filtersel) {
413
-            return smart_getCookieVar($_SERVER['PHP_SELF'] . '_' . $this->_id . '_filtersel', $this->_filtersel);
413
+            return smart_getCookieVar($_SERVER['PHP_SELF'].'_'.$this->_id.'_filtersel', $this->_filtersel);
414 414
         } else {
415
-            return smart_getCookieVar($_SERVER['PHP_SELF'] . '_' . $this->_id . '_filtersel', 'default');
415
+            return smart_getCookieVar($_SERVER['PHP_SELF'].'_'.$this->_id.'_filtersel', 'default');
416 416
         }
417 417
     }
418 418
 
@@ -462,9 +462,9 @@  discard block
 block discarded – undo
462 462
     public function getDefaultFilter2()
463 463
     {
464 464
         if ($this->_filtersel2) {
465
-            return smart_getCookieVar($_SERVER['PHP_SELF'] . '_filtersel2', $this->_filtersel2);
465
+            return smart_getCookieVar($_SERVER['PHP_SELF'].'_filtersel2', $this->_filtersel2);
466 466
         } else {
467
-            return smart_getCookieVar($_SERVER['PHP_SELF'] . '_filtersel2', 'default');
467
+            return smart_getCookieVar($_SERVER['PHP_SELF'].'_filtersel2', 'default');
468 468
         }
469 469
     }
470 470
 
@@ -592,7 +592,7 @@  discard block
 block discarded – undo
592 592
      */
593 593
     public function render($fetchOnly = false, $debug = false)
594 594
     {
595
-        require_once XOOPS_ROOT_PATH . '/class/template.php';
595
+        require_once XOOPS_ROOT_PATH.'/class/template.php';
596 596
 
597 597
         $this->_tpl = new \XoopsTpl();
598 598
 
@@ -603,24 +603,24 @@  discard block
 block discarded – undo
603 603
          */
604 604
         $this->_tempObject = $this->_objectHandler->create();
605 605
 
606
-        $this->_criteria->setStart(isset($_GET['start' . $this->_objectHandler->keyName]) ? (int)$_GET['start' . $this->_objectHandler->keyName] : 0);
606
+        $this->_criteria->setStart(isset($_GET['start'.$this->_objectHandler->keyName]) ? (int) $_GET['start'.$this->_objectHandler->keyName] : 0);
607 607
 
608 608
         $this->setSortOrder();
609 609
 
610 610
         if (!$this->_isTree) {
611
-            $this->_limitsel = isset($_GET['limitsel']) ? $_GET['limitsel'] : smart_getCookieVar($_SERVER['PHP_SELF'] . '_limitsel', '15');
611
+            $this->_limitsel = isset($_GET['limitsel']) ? $_GET['limitsel'] : smart_getCookieVar($_SERVER['PHP_SELF'].'_limitsel', '15');
612 612
         } else {
613 613
             $this->_limitsel = 'all';
614 614
         }
615 615
 
616 616
         $this->_limitsel = isset($_POST['limitsel']) ? $_POST['limitsel'] : $this->_limitsel;
617
-        smart_setCookieVar($_SERVER['PHP_SELF'] . '_limitsel', $this->_limitsel);
617
+        smart_setCookieVar($_SERVER['PHP_SELF'].'_limitsel', $this->_limitsel);
618 618
         $limitsArray = $this->getLimitsArray();
619 619
         $this->_criteria->setLimit($this->_limitsel);
620 620
 
621 621
         $this->_filtersel = isset($_GET['filtersel']) ? $_GET['filtersel'] : $this->getDefaultFilter();
622 622
         $this->_filtersel = isset($_POST['filtersel']) ? $_POST['filtersel'] : $this->_filtersel;
623
-        smart_setCookieVar($_SERVER['PHP_SELF'] . '_' . $this->_id . '_filtersel', $this->_filtersel);
623
+        smart_setCookieVar($_SERVER['PHP_SELF'].'_'.$this->_id.'_filtersel', $this->_filtersel);
624 624
         $filtersArray = $this->getFiltersArray();
625 625
 
626 626
         if ($filtersArray) {
@@ -646,7 +646,7 @@  discard block
 block discarded – undo
646 646
                     $filters2Array = $this->getFilters2Array();
647 647
                     $this->_tpl->assign('smartobject_optionssel_filters2Array', $filters2Array);
648 648
 
649
-                    smart_setCookieVar($_SERVER['PHP_SELF'] . '_filtersel2', $this->_filtersel2);
649
+                    smart_setCookieVar($_SERVER['PHP_SELF'].'_filtersel2', $this->_filtersel2);
650 650
                     if ('default' !== $this->_filtersel2) {
651 651
                         $this->_criteria->add(new \Criteria($this->_filtersel, $this->_filtersel2));
652 652
                     }
@@ -655,21 +655,21 @@  discard block
 block discarded – undo
655 655
         }
656 656
         // Check if we have a quicksearch
657 657
 
658
-        if (isset($_POST['quicksearch_' . $this->_id]) && '' != $_POST['quicksearch_' . $this->_id]) {
658
+        if (isset($_POST['quicksearch_'.$this->_id]) && '' != $_POST['quicksearch_'.$this->_id]) {
659 659
             $quicksearch_criteria = new \CriteriaCompo();
660 660
             if (is_array($this->_quickSearch['fields'])) {
661 661
                 foreach ($this->_quickSearch['fields'] as $v) {
662
-                    $quicksearch_criteria->add(new \Criteria($v, '%' . $_POST['quicksearch_' . $this->_id] . '%', 'LIKE'), 'OR');
662
+                    $quicksearch_criteria->add(new \Criteria($v, '%'.$_POST['quicksearch_'.$this->_id].'%', 'LIKE'), 'OR');
663 663
                 }
664 664
             } else {
665
-                $quicksearch_criteria->add(new \Criteria($this->_quickSearch['fields'], '%' . $_POST['quicksearch_' . $this->_id] . '%', 'LIKE'));
665
+                $quicksearch_criteria->add(new \Criteria($this->_quickSearch['fields'], '%'.$_POST['quicksearch_'.$this->_id].'%', 'LIKE'));
666 666
             }
667 667
             $this->_criteria->add($quicksearch_criteria);
668 668
         }
669 669
 
670 670
         $this->_objects = $this->fetchObjects($debug);
671 671
 
672
-        require_once XOOPS_ROOT_PATH . '/class/pagenav.php';
672
+        require_once XOOPS_ROOT_PATH.'/class/pagenav.php';
673 673
         if ($this->_criteria->getLimit() > 0) {
674 674
 
675 675
             /**
@@ -685,7 +685,7 @@  discard block
 block discarded – undo
685 685
              */
686 686
             $params_of_the_options_sel = [];
687 687
 
688
-            $not_needed_params = ['sortsel', 'limitsel', 'ordersel', 'start' . $this->_objectHandler->keyName];
688
+            $not_needed_params = ['sortsel', 'limitsel', 'ordersel', 'start'.$this->_objectHandler->keyName];
689 689
             foreach ($_GET as $k => $v) {
690 690
                 if (!in_array($k, $not_needed_params)) {
691 691
                     $new_get_array[]             = "$k=$v";
@@ -696,12 +696,12 @@  discard block
 block discarded – undo
696 696
             /**
697 697
              * Adding the new params of the pagenav
698 698
              */
699
-            $new_get_array[] = 'sortsel=' . $this->_sortsel;
700
-            $new_get_array[] = 'ordersel=' . $this->_ordersel;
701
-            $new_get_array[] = 'limitsel=' . $this->_limitsel;
699
+            $new_get_array[] = 'sortsel='.$this->_sortsel;
700
+            $new_get_array[] = 'ordersel='.$this->_ordersel;
701
+            $new_get_array[] = 'limitsel='.$this->_limitsel;
702 702
             $otherParams     = implode('&', $new_get_array);
703 703
 
704
-            $pagenav = new \XoopsPageNav($this->_objectHandler->getCount($this->_criteria), $this->_criteria->getLimit(), $this->_criteria->getStart(), 'start' . $this->_objectHandler->keyName, $otherParams);
704
+            $pagenav = new \XoopsPageNav($this->_objectHandler->getCount($this->_criteria), $this->_criteria->getLimit(), $this->_criteria->getStart(), 'start'.$this->_objectHandler->keyName, $otherParams);
705 705
             $this->_tpl->assign('smartobject_pagenav', $pagenav->renderNav());
706 706
         }
707 707
         $this->renderOptionSelection($limitsArray, $params_of_the_options_sel);
@@ -737,20 +737,20 @@  discard block
 block discarded – undo
737 737
             $aColumn['align'] = $column->getAlign();
738 738
             $aColumn['key']   = $column->getKeyName();
739 739
             if ('checked' === $column->_keyname) {
740
-                $aColumn['caption'] = '<input type ="checkbox" id="checkall_smartobjects" name="checkall_smartobjects"' . ' value="checkall_smartobjects" onclick="smartobject_checkall(window.document.form_' . $this->_id . ', \'selected_smartobjects\');">';
740
+                $aColumn['caption'] = '<input type ="checkbox" id="checkall_smartobjects" name="checkall_smartobjects"'.' value="checkall_smartobjects" onclick="smartobject_checkall(window.document.form_'.$this->_id.', \'selected_smartobjects\');">';
741 741
             } elseif ($column->getCustomCaption()) {
742 742
                 $aColumn['caption'] = $column->getCustomCaption();
743 743
             } else {
744 744
                 $aColumn['caption'] = isset($this->_tempObject->vars[$column->getKeyName()]['form_caption']) ? $this->_tempObject->vars[$column->getKeyName()]['form_caption'] : $column->getKeyName();
745 745
             }
746 746
             // Are we doing a GET sort on this column ?
747
-            $getSort = (isset($_GET[$this->_objectHandler->_itemname . '_' . 'sortsel'])
748
-                        && $_GET[$this->_objectHandler->_itemname . '_' . 'sortsel'] == $column->getKeyName())
747
+            $getSort = (isset($_GET[$this->_objectHandler->_itemname.'_'.'sortsel'])
748
+                        && $_GET[$this->_objectHandler->_itemname.'_'.'sortsel'] == $column->getKeyName())
749 749
                        || ($this->_sortsel == $column->getKeyName());
750
-            $order   = isset($_GET[$this->_objectHandler->_itemname . '_' . 'ordersel']) ? $_GET[$this->_objectHandler->_itemname . '_' . 'ordersel'] : 'DESC';
750
+            $order   = isset($_GET[$this->_objectHandler->_itemname.'_'.'ordersel']) ? $_GET[$this->_objectHandler->_itemname.'_'.'ordersel'] : 'DESC';
751 751
 
752
-            if (isset($_REQUEST['quicksearch_' . $this->_id]) && '' != $_REQUEST['quicksearch_' . $this->_id]) {
753
-                $qs_param = '&quicksearch_' . $this->_id . '=' . $_REQUEST['quicksearch_' . $this->_id];
752
+            if (isset($_REQUEST['quicksearch_'.$this->_id]) && '' != $_REQUEST['quicksearch_'.$this->_id]) {
753
+                $qs_param = '&quicksearch_'.$this->_id.'='.$_REQUEST['quicksearch_'.$this->_id];
754 754
             }
755 755
             if (!$this->_enableColumnsSorting || 'checked' === $column->_keyname || !$column->isSortable()) {
756 756
                 $aColumn['caption'] = $aColumn['caption'];
@@ -777,7 +777,7 @@  discard block
 block discarded – undo
777 777
                                       . $orderArray[$order]['image']
778 778
                                       . '" alt="ASC"></a>';
779 779
             } else {
780
-                $aColumn['caption'] = '<a href="' . $current_url . '?' . $this->_objectHandler->_itemname . '_' . 'sortsel=' . $column->getKeyName() . '&' . $this->_objectHandler->_itemname . '_' . 'ordersel=ASC' . $qs_param . '&' . $new_query_string . '">' . $aColumn['caption'] . '</a>';
780
+                $aColumn['caption'] = '<a href="'.$current_url.'?'.$this->_objectHandler->_itemname.'_'.'sortsel='.$column->getKeyName().'&'.$this->_objectHandler->_itemname.'_'.'ordersel=ASC'.$qs_param.'&'.$new_query_string.'">'.$aColumn['caption'].'</a>';
781 781
             }
782 782
             $aColumns[] = $aColumn;
783 783
         }
@@ -807,9 +807,9 @@  discard block
 block discarded – undo
807 807
 
808 808
         $smartobjectTable_template = $this->_customTemplate ?: 'smartobject_smarttable_display.tpl';
809 809
         if ($fetchOnly) {
810
-            return $this->_tpl->fetch('db:' . $smartobjectTable_template);
810
+            return $this->_tpl->fetch('db:'.$smartobjectTable_template);
811 811
         } else {
812
-            $this->_tpl->display('db:' . $smartobjectTable_template);
812
+            $this->_tpl->display('db:'.$smartobjectTable_template);
813 813
         }
814 814
     }
815 815
 
Please login to merge, or discard this patch.
class/SmartMetaGen.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -354,7 +354,7 @@
 block discarded – undo
354 354
     public function createMetaKeywords()
355 355
     {
356 356
         global $xoopsModuleConfig;
357
-        $keywords = $this->findMetaKeywords($this->_original_title . ' ' . $this->_description, $this->_minChar);
357
+        $keywords = $this->findMetaKeywords($this->_original_title.' '.$this->_description, $this->_minChar);
358 358
         if (isset($xoopsModuleConfig) && isset($xoopsModuleConfig['moduleMetaKeywords'])
359 359
             && '' !== $xoopsModuleConfig['moduleMetaKeywords']) {
360 360
             $moduleKeywords = explode(',', $xoopsModuleConfig['moduleMetaKeywords']);
Please login to merge, or discard this patch.
class/SmartobjectTagHandler.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
      */
44 44
     public function getLanguages()
45 45
     {
46
-        require_once XOOPS_ROOT_PATH . '/class/xoopslists.php';
46
+        require_once XOOPS_ROOT_PATH.'/class/xoopslists.php';
47 47
         $aLanguages     = XoopsLists::getLangList();
48 48
         $ret['default'] = _CO_SOBJECT_ALL;
49 49
         foreach ($aLanguages as $lang) {
Please login to merge, or discard this patch.
class/BaseSmartObject.php 1 patch
Spacing   +17 added lines, -17 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@  discard block
 block discarded – undo
15 15
 
16 16
 // defined('XOOPS_ROOT_PATH') || die('Restricted access');
17 17
 
18
-require_once XOOPS_ROOT_PATH . '/modules/smartobject/include/common.php';
18
+require_once XOOPS_ROOT_PATH.'/modules/smartobject/include/common.php';
19 19
 
20 20
 if (!defined('XOBJ_DTYPE_SIMPLE_ARRAY')) {
21 21
     define('XOBJ_DTYPE_SIMPLE_ARRAY', 101);
@@ -114,7 +114,7 @@  discard block
 block discarded – undo
114 114
      */
115 115
     public function closeSection($section_name)
116 116
     {
117
-        $this->initVar('close_section_' . $section_name, XOBJ_DTYPE_FORM_SECTION_CLOSE, '', false, null, '', false, '', '', false, false, true);
117
+        $this->initVar('close_section_'.$section_name, XOBJ_DTYPE_FORM_SECTION_CLOSE, '', false, null, '', false, '', '', false, false, true);
118 118
     }
119 119
 
120 120
     /**
@@ -152,13 +152,13 @@  discard block
 block discarded – undo
152 152
         }
153 153
         parent::initVar($key, $data_type, $value, $required, $maxlength, $options);
154 154
         if ($this->handler && (!$form_caption || '' === $form_caption)) {
155
-            $dyn_form_caption = strtoupper('_CO_' . $this->handler->_moduleName . '_' . $this->handler->_itemname . '_' . $key);
155
+            $dyn_form_caption = strtoupper('_CO_'.$this->handler->_moduleName.'_'.$this->handler->_itemname.'_'.$key);
156 156
             if (defined($dyn_form_caption)) {
157 157
                 $form_caption = constant($dyn_form_caption);
158 158
             }
159 159
         }
160 160
         if ($this->handler && (!$form_dsc || '' === $form_dsc)) {
161
-            $dyn_form_dsc = strtoupper('_CO_' . $this->handler->_moduleName . '_' . $this->handler->_itemname . '_' . $key . '_DSC');
161
+            $dyn_form_dsc = strtoupper('_CO_'.$this->handler->_moduleName.'_'.$this->handler->_itemname.'_'.$key.'_DSC');
162 162
             if (defined($dyn_form_dsc)) {
163 163
                 $form_dsc = constant($dyn_form_dsc);
164 164
             }
@@ -454,7 +454,7 @@  discard block
 block discarded – undo
454 454
     public function toArray()
455 455
     {
456 456
         $ret  = [];
457
-        $vars =& $this->getVars();
457
+        $vars = & $this->getVars();
458 458
         foreach ($vars as $key => $var) {
459 459
             $value     = $this->getVar($key);
460 460
             $ret[$key] = $value;
@@ -472,7 +472,7 @@  discard block
 block discarded – undo
472 472
         }
473 473
 
474 474
         // Hightlighting searched words
475
-        require_once SMARTOBJECT_ROOT_PATH . 'class/smarthighlighter.php';
475
+        require_once SMARTOBJECT_ROOT_PATH.'class/smarthighlighter.php';
476 476
         $highlight = smart_getConfig('module_search_highlighter', false, true);
477 477
 
478 478
         if ($highlight && isset($_GET['keywords'])) {
@@ -503,7 +503,7 @@  discard block
 block discarded – undo
503 503
             }
504 504
         } else {
505 505
             if ($prefix) {
506
-                $err_str = '[' . $prefix . '] ' . $err_str;
506
+                $err_str = '['.$prefix.'] '.$err_str;
507 507
             }
508 508
             parent::setErrors($err_str);
509 509
         }
@@ -831,8 +831,8 @@  discard block
 block discarded – undo
831 831
                             $this->setErrors(sprintf(_XOBJ_ERR_REQUIRED, $k));
832 832
                             continue 2;
833 833
                         }
834
-                        if (isset($v['maxlength']) && strlen($cleanv) > (int)$v['maxlength']) {
835
-                            $this->setErrors(sprintf(_XOBJ_ERR_SHORTERTHAN, $k, (int)$v['maxlength']));
834
+                        if (isset($v['maxlength']) && strlen($cleanv) > (int) $v['maxlength']) {
835
+                            $this->setErrors(sprintf(_XOBJ_ERR_SHORTERTHAN, $k, (int) $v['maxlength']));
836 836
                             continue 2;
837 837
                         }
838 838
                         if (!$v['not_gpc']) {
@@ -861,7 +861,7 @@  discard block
 block discarded – undo
861 861
                         break;
862 862
                     case XOBJ_DTYPE_INT:
863 863
                     case XOBJ_DTYPE_TIME_ONLY:
864
-                        $cleanv = (int)$cleanv;
864
+                        $cleanv = (int) $cleanv;
865 865
                         break;
866 866
 
867 867
                     case XOBJ_DTYPE_CURRENCY:
@@ -892,10 +892,10 @@  discard block
 block discarded – undo
892 892
                             continue 2;
893 893
                         }
894 894
                         if ('' !== $cleanv && !preg_match("/^http[s]*:\/\//i", $cleanv)) {
895
-                            $cleanv = 'http://' . $cleanv;
895
+                            $cleanv = 'http://'.$cleanv;
896 896
                         }
897 897
                         if (!$v['not_gpc']) {
898
-                            $cleanv =& $ts->stripSlashesGPC($cleanv);
898
+                            $cleanv = & $ts->stripSlashesGPC($cleanv);
899 899
                         }
900 900
                         break;
901 901
                     case XOBJ_DTYPE_SIMPLE_ARRAY:
@@ -907,7 +907,7 @@  discard block
 block discarded – undo
907 907
                     case XOBJ_DTYPE_STIME:
908 908
                     case XOBJ_DTYPE_MTIME:
909 909
                     case XOBJ_DTYPE_LTIME:
910
-                        $cleanv = !is_string($cleanv) ? (int)$cleanv : strtotime($cleanv);
910
+                        $cleanv = !is_string($cleanv) ? (int) $cleanv : strtotime($cleanv);
911 911
                         if (!($cleanv > 0)) {
912 912
                             $cleanv = strtotime($cleanv);
913 913
                         }
@@ -916,7 +916,7 @@  discard block
 block discarded – undo
916 916
                         break;
917 917
                 }
918 918
             }
919
-            $this->cleanVars[$k] =& $cleanv;
919
+            $this->cleanVars[$k] = & $cleanv;
920 920
             unset($cleanv);
921 921
         }
922 922
         if (count($this->_errors) > 0) {
@@ -1141,10 +1141,10 @@  discard block
 block discarded – undo
1141 1141
                 }
1142 1142
                 break;
1143 1143
             case XOBJ_DTYPE_SIMPLE_ARRAY:
1144
-                $ret =& explode('|', $ret);
1144
+                $ret = & explode('|', $ret);
1145 1145
                 break;
1146 1146
             case XOBJ_DTYPE_ARRAY:
1147
-                $ret =& unserialize($ret);
1147
+                $ret = & unserialize($ret);
1148 1148
                 break;
1149 1149
             case XOBJ_DTYPE_SOURCE:
1150 1150
                 switch (strtolower($format)) {
@@ -1302,7 +1302,7 @@  discard block
 block discarded – undo
1302 1302
         $actions = [],
1303 1303
         $headerAsRow = true
1304 1304
     ) {
1305
-        require_once SMARTOBJECT_ROOT_PATH . 'class/smartobjectsingleview.php';
1305
+        require_once SMARTOBJECT_ROOT_PATH.'class/smartobjectsingleview.php';
1306 1306
         $singleview = new SmartObjectSingleView($this, $userSide, $actions, $headerAsRow);
1307 1307
         // add all fields mark as displayOnSingleView except the keyid
1308 1308
         foreach ($this->vars as $key => $var) {
Please login to merge, or discard this patch.