Completed
Push — master ( 01b1a5...81f493 )
by Michael
04:03
created
class/smartobject.php 1 patch
Doc Comments   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -165,7 +165,7 @@  discard block
 block discarded – undo
165 165
     }
166 166
 
167 167
     /**
168
-     * @param        $key
168
+     * @param        string $key
169 169
      * @param        $data_type
170 170
      * @param bool   $itemName
171 171
      * @param string $form_caption
@@ -193,7 +193,7 @@  discard block
 block discarded – undo
193 193
      * @param bool   $required     set to TRUE if this variable needs to have a value set before storing the object in the table
194 194
      * @param string $form_caption caption of this variable in a {@link SmartobjectForm} and title of a column in a  {@link SmartObjectTable}
195 195
      * @param string $form_dsc     description of this variable in a {@link SmartobjectForm}
196
-     * @param mixed  $value        default value of this variable
196
+     * @param string|false  $value        default value of this variable
197 197
      */
198 198
     public function quickInitVar($key, $data_type, $required = false, $form_caption = '', $form_dsc = '', $value = null)
199 199
     {
@@ -202,7 +202,7 @@  discard block
 block discarded – undo
202 202
     }
203 203
 
204 204
     /**
205
-     * @param        $varname
205
+     * @param        string $varname
206 206
      * @param bool   $displayOnForm
207 207
      * @param string $default
208 208
      */
@@ -458,7 +458,7 @@  discard block
 block discarded – undo
458 458
     /**
459 459
      * add an error
460 460
      *
461
-     * @param      $err_str
461
+     * @param      string $err_str
462 462
      * @param bool $prefix
463 463
      * @internal param string $value error to add
464 464
      * @access   public
@@ -720,8 +720,8 @@  discard block
 block discarded – undo
720 720
 
721 721
     /**
722 722
      * @param $key
723
-     * @param $info
724
-     * @param $value
723
+     * @param string $info
724
+     * @param boolean $value
725 725
      */
726 726
     public function setVarInfo($key, $info, $value)
727 727
     {
@@ -729,7 +729,7 @@  discard block
 block discarded – undo
729 729
     }
730 730
 
731 731
     /**
732
-     * @param         $key
732
+     * @param         string $key
733 733
      * @param  bool   $editor
734 734
      * @return string
735 735
      */
@@ -906,7 +906,7 @@  discard block
 block discarded – undo
906 906
      * @access public
907 907
      * @param  string $key    key of the object's variable to be returned
908 908
      * @param  string $format format to use for the output
909
-     * @return mixed  formatted value of the variable
909
+     * @return string  formatted value of the variable
910 910
      */
911 911
     public function getVar($key, $format = 's')
912 912
     {
@@ -1209,7 +1209,7 @@  discard block
 block discarded – undo
1209 1209
     }
1210 1210
 
1211 1211
     /**
1212
-     * @param $key
1212
+     * @param string $key
1213 1213
      */
1214 1214
     public function hideFieldFromForm($key)
1215 1215
     {
Please login to merge, or discard this patch.
class/smartobjectcontroller.php 1 patch
Doc Comments   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -123,9 +123,9 @@  discard block
 block discarded – undo
123 123
 
124 124
     /**
125 125
      * @param        $smartObj
126
-     * @param        $objectid
127
-     * @param        $created_success_msg
128
-     * @param        $modified_success_msg
126
+     * @param        integer $objectid
127
+     * @param        string $created_success_msg
128
+     * @param        string $modified_success_msg
129 129
      * @param  bool  $redirect_page
130 130
      * @param  bool  $debug
131 131
      * @return mixed
@@ -289,7 +289,7 @@  discard block
 block discarded – undo
289 289
      * @param  bool   $confirm_msg
290 290
      * @param  string $op
291 291
      * @param  bool   $userSide
292
-     * @return bool
292
+     * @return boolean|null
293 293
      * @internal param string $redir_page redirect page after deleting the object
294 294
      */
295 295
     public function handleObjectDeletion($confirm_msg = false, $op = 'del', $userSide = false)
@@ -443,7 +443,7 @@  discard block
 block discarded – undo
443 443
     }
444 444
 
445 445
     /**
446
-     * @param         $smartObj
446
+     * @param         SmartMlObject $smartObj
447 447
      * @param  bool   $onlyUrl
448 448
      * @param  bool   $withimage
449 449
      * @return string
@@ -533,7 +533,7 @@  discard block
 block discarded – undo
533 533
     }
534 534
 
535 535
     /**
536
-     * @param $smartObj
536
+     * @param SmartObject $smartObj
537 537
      * @return string
538 538
      */
539 539
     public function getPrintAndMailLink($smartObj)
Please login to merge, or discard this patch.
class/smartobjecthandler.php 1 patch
Doc Comments   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -132,10 +132,10 @@  discard block
 block discarded – undo
132 132
      *
133 133
      * @param XoopsDatabase $db           {@link XoopsDatabase}
134 134
      *                                           object
135
-     * @param                      $itemname
135
+     * @param                      string $itemname
136 136
      * @param string               $keyname      Name of the table key that uniquely identify each {@link SmartObject}
137 137
      * @param string               $idenfierName Name of the field which properly identify the {@link SmartObject}
138
-     * @param                      $summaryName
138
+     * @param                      string $summaryName
139 139
      * @param                      $modulename
140 140
      * @internal param string $tablename Name of the table use to store this <a href='psi_element://SmartObject'>SmartObject</a>
141 141
      * @internal param Name $string of the class derived from <a href='psi_element://SmartObject'>SmartObject</a> and which this handler is handling and which this handler is handling
@@ -191,7 +191,7 @@  discard block
 block discarded – undo
191 191
 
192 192
     /**
193 193
      * @param $criteria
194
-     * @param $perm_name
194
+     * @param boolean $perm_name
195 195
      * @return bool
196 196
      */
197 197
     public function setGrantedObjectsCriteria(&$criteria, $perm_name)
@@ -375,7 +375,7 @@  discard block
 block discarded – undo
375 375
     }
376 376
 
377 377
     /**
378
-     * @param        $sql
378
+     * @param        string $sql
379 379
      * @param        $criteria
380 380
      * @param  bool  $force
381 381
      * @param  bool  $debug
Please login to merge, or discard this patch.
class/smartobjectpermission.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@
 block discarded – undo
32 32
      */
33 33
     /**
34 34
      * @param        $gperm_name
35
-     * @param  null  $id
35
+     * @param  integer  $id
36 36
      * @return array
37 37
      */
38 38
     public function getGrantedGroups($gperm_name, $id = null)
Please login to merge, or discard this patch.
class/smartobjectsregistry.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -18,7 +18,7 @@
 block discarded – undo
18 18
     /**
19 19
      * Access the only instance of this class
20 20
      *
21
-     * @return XoopsObject
21
+     * @return SmartObjectsRegistry
22 22
      *
23 23
      * @static
24 24
      * @staticvar   object
Please login to merge, or discard this patch.
include/functions.php 1 patch
Doc Comments   +13 added lines, -13 removed lines patch added patch discarded remove patch
@@ -325,7 +325,7 @@  discard block
 block discarded – undo
325 325
 }
326 326
 
327 327
 /**
328
- * @param              $key
328
+ * @param              string $key
329 329
  * @param  bool        $moduleName
330 330
  * @param  string      $default
331 331
  * @return null|string
@@ -387,7 +387,7 @@  discard block
 block discarded – undo
387 387
 
388 388
 /**
389 389
  * Thanks to the NewBB2 Development Team
390
- * @param $target
390
+ * @param string $target
391 391
  * @return bool
392 392
  */
393 393
 function smart_admin_mkdir($target)
@@ -540,7 +540,7 @@  discard block
 block discarded – undo
540 540
 
541 541
 /**
542 542
  * @param $dirname
543
- * @return bool
543
+ * @return boolean|null
544 544
  */
545 545
 function smart_deleteFile($dirname)
546 546
 {
@@ -755,7 +755,7 @@  discard block
 block discarded – undo
755 755
 }
756 756
 
757 757
 /**
758
- * @param $name
758
+ * @param string $name
759 759
  */
760 760
 function smart_close_collapsable($name)
761 761
 {
@@ -765,7 +765,7 @@  discard block
 block discarded – undo
765 765
 }
766 766
 
767 767
 /**
768
- * @param     $name
768
+ * @param     string $name
769 769
  * @param     $value
770 770
  * @param int $time
771 771
  */
@@ -779,7 +779,7 @@  discard block
 block discarded – undo
779 779
 }
780 780
 
781 781
 /**
782
- * @param         $name
782
+ * @param         string $name
783 783
  * @param  string $default
784 784
  * @return string
785 785
  */
@@ -938,7 +938,7 @@  discard block
 block discarded – undo
938 938
 }
939 939
 
940 940
 /**
941
- * @param $src
941
+ * @param string $src
942 942
  */
943 943
 function smart_addScript($src)
944 944
 {
@@ -1115,8 +1115,8 @@  discard block
 block discarded – undo
1115 1115
 }
1116 1116
 
1117 1117
 /**
1118
- * @param $module
1119
- * @param $file
1118
+ * @param string $module
1119
+ * @param string $file
1120 1120
  */
1121 1121
 function smart_loadLanguageFile($module, $file)
1122 1122
 {
@@ -1232,7 +1232,7 @@  discard block
 block discarded – undo
1232 1232
  * This function should be able to cover almost all floats that appear in an european environment.
1233 1233
  * @param            $str
1234 1234
  * @param  bool      $set
1235
- * @return float|int
1235
+ * @return double
1236 1236
  */
1237 1237
 function smart_getfloat($str, $set = false)
1238 1238
 {
@@ -1267,7 +1267,7 @@  discard block
 block discarded – undo
1267 1267
 /**
1268 1268
  * @param                         $var
1269 1269
  * @param  bool                   $currencyObj
1270
- * @return float|int|mixed|string
1270
+ * @return string
1271 1271
  */
1272 1272
 function smart_currency($var, $currencyObj = false)
1273 1273
 {
@@ -1295,7 +1295,7 @@  discard block
 block discarded – undo
1295 1295
 
1296 1296
 /**
1297 1297
  * @param $var
1298
- * @return float|int|mixed|string
1298
+ * @return string
1299 1299
  */
1300 1300
 function smart_float($var)
1301 1301
 {
@@ -1343,7 +1343,7 @@  discard block
 block discarded – undo
1343 1343
 /**
1344 1344
  * @param $moduleName
1345 1345
  * @param $items
1346
- * @return array
1346
+ * @return string[]
1347 1347
  */
1348 1348
 function smart_getTablesArray($moduleName, $items)
1349 1349
 {
Please login to merge, or discard this patch.
admin/currency.php 1 patch
Switch Indentation   +46 added lines, -46 removed lines patch added patch discarded remove patch
@@ -50,29 +50,29 @@  discard block
 block discarded – undo
50 50
 }
51 51
 
52 52
 switch ($op) {
53
-    case 'mod':
54
-        $currencyid = isset($_GET['currencyid']) ? (int)$_GET['currencyid'] : 0;
53
+    	case 'mod':
54
+        	$currencyid = isset($_GET['currencyid']) ? (int)$_GET['currencyid'] : 0;
55 55
 
56
-        smart_xoops_cp_header();
56
+        	smart_xoops_cp_header();
57 57
 
58
-        editclass(true, $currencyid);
59
-        break;
58
+        	editclass(true, $currencyid);
59
+        	break;
60 60
 
61
-    case 'updateCurrencies':
61
+    	case 'updateCurrencies':
62 62
 
63
-        if (!isset($_POST['SmartobjectCurrency_objects']) || count($_POST['SmartobjectCurrency_objects']) == 0) {
64
-            redirect_header($smart_previous_page, 3, _AM_SOBJECT_NO_RECORDS_TO_UPDATE);
65
-        }
63
+        	if (!isset($_POST['SmartobjectCurrency_objects']) || count($_POST['SmartobjectCurrency_objects']) == 0) {
64
+            	redirect_header($smart_previous_page, 3, _AM_SOBJECT_NO_RECORDS_TO_UPDATE);
65
+        	}
66 66
 
67
-        if (isset($_POST['default_currency'])) {
68
-            $newDefaultCurrency = $_POST['default_currency'];
69
-            $sql                = 'UPDATE ' . $smartobjectCurrencyHandler->table . ' SET default_currency=0';
70
-            $smartobjectCurrencyHandler->query($sql);
71
-            $sql = 'UPDATE ' . $smartobjectCurrencyHandler->table . ' SET default_currency=1 WHERE currencyid=' . $newDefaultCurrency;
72
-            $smartobjectCurrencyHandler->query($sql);
73
-        }
67
+        	if (isset($_POST['default_currency'])) {
68
+            	$newDefaultCurrency = $_POST['default_currency'];
69
+            	$sql                = 'UPDATE ' . $smartobjectCurrencyHandler->table . ' SET default_currency=0';
70
+            	$smartobjectCurrencyHandler->query($sql);
71
+            	$sql = 'UPDATE ' . $smartobjectCurrencyHandler->table . ' SET default_currency=1 WHERE currencyid=' . $newDefaultCurrency;
72
+            	$smartobjectCurrencyHandler->query($sql);
73
+        	}
74 74
 
75
-        /*
75
+        	/*
76 76
         $criteria = new CriteriaCompo();
77 77
         $criteria->add(new Criteria('currencyid', '(' . implode(', ', $_POST['SmartobjectCurrency_objects']) . ')', 'IN'));
78 78
         $currenciesObj = $smartobjectCurrencyHandler->getObjects($criteria, true);
@@ -82,49 +82,49 @@  discard block
 block discarded – undo
82 82
             $smartobjectCurrencyHandler->insert($currencyObj);
83 83
         }
84 84
         */
85
-        redirect_header($smart_previous_page, 3, _AM_SOBJECT_RECORDS_UPDATED);
86
-        break;
85
+        	redirect_header($smart_previous_page, 3, _AM_SOBJECT_RECORDS_UPDATED);
86
+        	break;
87 87
 
88
-    case 'addcurrency':
89
-        include_once XOOPS_ROOT_PATH . '/modules/smartobject/class/smartobjectcontroller.php';
90
-        $controller = new SmartObjectController($smartobjectCurrencyHandler);
91
-        $controller->storeFromDefaultForm(_AM_SOBJECT_CURRENCIES_CREATED, _AM_SOBJECT_CURRENCIES_MODIFIED, SMARTOBJECT_URL . 'admin/currency.php');
88
+    	case 'addcurrency':
89
+        	include_once XOOPS_ROOT_PATH . '/modules/smartobject/class/smartobjectcontroller.php';
90
+        	$controller = new SmartObjectController($smartobjectCurrencyHandler);
91
+        	$controller->storeFromDefaultForm(_AM_SOBJECT_CURRENCIES_CREATED, _AM_SOBJECT_CURRENCIES_MODIFIED, SMARTOBJECT_URL . 'admin/currency.php');
92 92
 
93
-        break;
93
+        	break;
94 94
 
95
-    case 'del':
96
-        include_once XOOPS_ROOT_PATH . '/modules/smartobject/class/smartobjectcontroller.php';
97
-        $controller = new SmartObjectController($smartobjectCurrencyHandler);
98
-        $controller->handleObjectDeletion();
95
+    	case 'del':
96
+        	include_once XOOPS_ROOT_PATH . '/modules/smartobject/class/smartobjectcontroller.php';
97
+        	$controller = new SmartObjectController($smartobjectCurrencyHandler);
98
+        	$controller->handleObjectDeletion();
99 99
 
100
-        break;
100
+        	break;
101 101
 
102
-    default:
102
+    	default:
103 103
 
104
-        smart_xoops_cp_header();
104
+        	smart_xoops_cp_header();
105 105
 
106
-        //smart_adminMenu(5, _AM_SOBJECT_CURRENCIES);
106
+        	//smart_adminMenu(5, _AM_SOBJECT_CURRENCIES);
107 107
 
108
-        smart_collapsableBar('createdcurrencies', _AM_SOBJECT_CURRENCIES, _AM_SOBJECT_CURRENCIES_DSC);
108
+        	smart_collapsableBar('createdcurrencies', _AM_SOBJECT_CURRENCIES, _AM_SOBJECT_CURRENCIES_DSC);
109 109
 
110
-        include_once SMARTOBJECT_ROOT_PATH . 'class/smartobjecttable.php';
111
-        $objectTable = new SmartObjectTable($smartobjectCurrencyHandler);
112
-        $objectTable->addColumn(new SmartObjectColumn('name', 'left', false, 'getCurrencyLink'));
113
-        $objectTable->addColumn(new SmartObjectColumn('rate', 'center', 150));
114
-        $objectTable->addColumn(new SmartObjectColumn('iso4217', 'center', 150));
115
-        $objectTable->addColumn(new SmartObjectColumn('default_currency', 'center', 150, 'getDefaultCurrencyControl'));
110
+        	include_once SMARTOBJECT_ROOT_PATH . 'class/smartobjecttable.php';
111
+        	$objectTable = new SmartObjectTable($smartobjectCurrencyHandler);
112
+        	$objectTable->addColumn(new SmartObjectColumn('name', 'left', false, 'getCurrencyLink'));
113
+        	$objectTable->addColumn(new SmartObjectColumn('rate', 'center', 150));
114
+        	$objectTable->addColumn(new SmartObjectColumn('iso4217', 'center', 150));
115
+        	$objectTable->addColumn(new SmartObjectColumn('default_currency', 'center', 150, 'getDefaultCurrencyControl'));
116 116
 
117
-        $objectTable->addIntroButton('addcurrency', 'currency.php?op=mod', _AM_SOBJECT_CURRENCIES_CREATE);
117
+        	$objectTable->addIntroButton('addcurrency', 'currency.php?op=mod', _AM_SOBJECT_CURRENCIES_CREATE);
118 118
 
119
-        $objectTable->addActionButton('updateCurrencies', _SUBMIT, _AM_SOBJECT_CURRENCY_UPDATE_ALL);
119
+        	$objectTable->addActionButton('updateCurrencies', _SUBMIT, _AM_SOBJECT_CURRENCY_UPDATE_ALL);
120 120
 
121
-        $objectTable->render();
121
+        	$objectTable->render();
122 122
 
123
-        echo '<br>';
124
-        smart_close_collapsable('createdcurrencies');
125
-        echo '<br>';
123
+        	echo '<br>';
124
+        	smart_close_collapsable('createdcurrencies');
125
+        	echo '<br>';
126 126
 
127
-        break;
127
+        	break;
128 128
 }
129 129
 
130 130
 //smart_modFooter();
Please login to merge, or discard this patch.
admin/customtag.php 1 patch
Switch Indentation   +45 added lines, -45 removed lines patch added patch discarded remove patch
@@ -59,63 +59,63 @@  discard block
 block discarded – undo
59 59
 }
60 60
 
61 61
 switch ($op) {
62
-    case 'mod':
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
-        smart_xoops_cp_header();
67
-        echo $indexAdmin->addNavigation(basename(__FILE__));
66
+        	smart_xoops_cp_header();
67
+        	echo $indexAdmin->addNavigation(basename(__FILE__));
68 68
 
69
-        editcustomtag(true, $customtagid);
70
-        break;
69
+        	editcustomtag(true, $customtagid);
70
+        	break;
71 71
 
72
-    case 'clone':
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
-        smart_xoops_cp_header();
77
-        echo $indexAdmin->addNavigation(basename(__FILE__));
76
+        	smart_xoops_cp_header();
77
+        	echo $indexAdmin->addNavigation(basename(__FILE__));
78 78
 
79
-        editcustomtag(true, $customtagid, true);
80
-        break;
79
+        	editcustomtag(true, $customtagid, true);
80
+        	break;
81 81
 
82
-    case 'addcustomtag':
83
-        include_once XOOPS_ROOT_PATH . '/modules/smartobject/class/smartobjectcontroller.php';
84
-        $controller = new SmartObjectController($smartobjectCustomtagHandler);
85
-        $controller->storeFromDefaultForm(_AM_SOBJECT_CUSTOMTAGS_CREATED, _AM_SOBJECT_CUSTOMTAGS_MODIFIED);
86
-        break;
82
+    	case 'addcustomtag':
83
+        	include_once XOOPS_ROOT_PATH . '/modules/smartobject/class/smartobjectcontroller.php';
84
+        	$controller = new SmartObjectController($smartobjectCustomtagHandler);
85
+        	$controller->storeFromDefaultForm(_AM_SOBJECT_CUSTOMTAGS_CREATED, _AM_SOBJECT_CUSTOMTAGS_MODIFIED);
86
+        	break;
87 87
 
88
-    case 'del':
88
+    	case 'del':
89 89
 
90
-        include_once XOOPS_ROOT_PATH . '/modules/smartobject/class/smartobjectcontroller.php';
91
-        $controller = new SmartObjectController($smartobjectCustomtagHandler);
92
-        $controller->handleObjectDeletion();
90
+        	include_once XOOPS_ROOT_PATH . '/modules/smartobject/class/smartobjectcontroller.php';
91
+        	$controller = new SmartObjectController($smartobjectCustomtagHandler);
92
+        	$controller->handleObjectDeletion();
93 93
 
94
-        break;
94
+        	break;
95 95
 
96
-    default:
96
+    	default:
97 97
 
98
-        smart_xoops_cp_header();
99
-        echo $indexAdmin->addNavigation(basename(__FILE__));
100
-        $indexAdmin->addItemButton(_AM_SOBJECT_CUSTOMTAGS_CREATE, 'customtag.php?op=mod', 'add', '');
101
-        echo $indexAdmin->renderButton('left', '');
98
+        	smart_xoops_cp_header();
99
+        	echo $indexAdmin->addNavigation(basename(__FILE__));
100
+        	$indexAdmin->addItemButton(_AM_SOBJECT_CUSTOMTAGS_CREATE, 'customtag.php?op=mod', 'add', '');
101
+        	echo $indexAdmin->renderButton('left', '');
102 102
 
103
-        //smart_adminMenu(2, _AM_SOBJECT_CUSTOMTAGS);
103
+        	//smart_adminMenu(2, _AM_SOBJECT_CUSTOMTAGS);
104 104
 
105
-        smart_collapsableBar('createdcustomtags', _AM_SOBJECT_CUSTOMTAGS, _AM_SOBJECT_CUSTOMTAGS_DSC);
105
+        	smart_collapsableBar('createdcustomtags', _AM_SOBJECT_CUSTOMTAGS, _AM_SOBJECT_CUSTOMTAGS_DSC);
106 106
 
107
-        include_once SMARTOBJECT_ROOT_PATH . 'class/smartobjecttable.php';
108
-        $objectTable = new SmartObjectTable($smartobjectCustomtagHandler);
109
-        $objectTable->addColumn(new SmartObjectColumn('name', 'left', 150, 'getCustomtagName'));
110
-        $objectTable->addColumn(new SmartObjectColumn('description', 'left'));
111
-        $objectTable->addColumn(new SmartObjectColumn('language', 'center', 150));
107
+        	include_once SMARTOBJECT_ROOT_PATH . 'class/smartobjecttable.php';
108
+        	$objectTable = new SmartObjectTable($smartobjectCustomtagHandler);
109
+        	$objectTable->addColumn(new SmartObjectColumn('name', 'left', 150, 'getCustomtagName'));
110
+        	$objectTable->addColumn(new SmartObjectColumn('description', 'left'));
111
+        	$objectTable->addColumn(new SmartObjectColumn('language', 'center', 150));
112 112
 
113
-        //      $objectTable->addCustomAction('getCreateItemLink');
114
-        //      $objectTable->addCustomAction('getCreateAttributLink');
113
+        	//      $objectTable->addCustomAction('getCreateItemLink');
114
+        	//      $objectTable->addCustomAction('getCreateAttributLink');
115 115
 
116
-        //      $objectTable->addIntroButton('addcustomtag', 'customtag.php?op=mod', _AM_SOBJECT_CUSTOMTAGS_CREATE); //mb button
116
+        	//      $objectTable->addIntroButton('addcustomtag', 'customtag.php?op=mod', _AM_SOBJECT_CUSTOMTAGS_CREATE); //mb button
117 117
 
118
-        /*
118
+        	/*
119 119
                 $criteria_upcoming = new CriteriaCompo();
120 120
                 $criteria_upcoming->add(new Criteria('start_date', time(), '>'));
121 121
                 $objectTable->addFilter(_AM_SOBJECT_FILTER_UPCOMING, array(
@@ -139,16 +139,16 @@  discard block
 block discarded – undo
139 139
                                             'criteria' => $criteria_last30days
140 140
                 ));
141 141
         */
142
-        $objectTable->addQuickSearch(array('title', 'summary', 'description'));
143
-        $objectTable->addCustomAction('getCloneLink');
142
+        	$objectTable->addQuickSearch(array('title', 'summary', 'description'));
143
+        	$objectTable->addCustomAction('getCloneLink');
144 144
 
145
-        $objectTable->render();
145
+        	$objectTable->render();
146 146
 
147
-        echo '<br>';
148
-        smart_close_collapsable('createdcustomtags');
149
-        echo '<br>';
147
+        	echo '<br>';
148
+        	smart_close_collapsable('createdcustomtags');
149
+        	echo '<br>';
150 150
 
151
-        break;
151
+        	break;
152 152
 }
153 153
 
154 154
 //smart_modFooter();
Please login to merge, or discard this patch.
admin/rating.php 1 patch
Switch Indentation   +38 added lines, -38 removed lines patch added patch discarded remove patch
@@ -67,53 +67,53 @@  discard block
 block discarded – undo
67 67
 }
68 68
 
69 69
 switch ($op) {
70
-    case 'mod':
71
-    case 'changedField';
70
+    	case 'mod':
71
+    	case 'changedField';
72 72
 
73
-        $ratingid = isset($_GET['ratingid']) ? (int)$_GET['ratingid'] : 0;
73
+        	$ratingid = isset($_GET['ratingid']) ? (int)$_GET['ratingid'] : 0;
74 74
 
75
-        smart_xoops_cp_header();
76
-        echo $indexAdmin->addNavigation(basename(__FILE__));
75
+        	smart_xoops_cp_header();
76
+        	echo $indexAdmin->addNavigation(basename(__FILE__));
77 77
 
78
-        editclass(true, $ratingid);
79
-        break;
78
+        	editclass(true, $ratingid);
79
+        	break;
80 80
 
81
-    case 'addrating':
82
-        include_once XOOPS_ROOT_PATH . '/modules/smartobject/class/smartobjectcontroller.php';
83
-        $controller = new SmartObjectController($smartobjectRatingHandler);
84
-        $controller->storeFromDefaultForm(_AM_SOBJECT_RATINGS_CREATED, _AM_SOBJECT_RATINGS_MODIFIED, SMARTOBJECT_URL . 'admin/rating.php');
81
+    	case 'addrating':
82
+        	include_once XOOPS_ROOT_PATH . '/modules/smartobject/class/smartobjectcontroller.php';
83
+        	$controller = new SmartObjectController($smartobjectRatingHandler);
84
+        	$controller->storeFromDefaultForm(_AM_SOBJECT_RATINGS_CREATED, _AM_SOBJECT_RATINGS_MODIFIED, SMARTOBJECT_URL . 'admin/rating.php');
85 85
 
86
-        break;
86
+        	break;
87 87
 
88
-    case 'del':
89
-        include_once XOOPS_ROOT_PATH . '/modules/smartobject/class/smartobjectcontroller.php';
90
-        $controller = new SmartObjectController($smartobjectRatingHandler);
91
-        $controller->handleObjectDeletion();
88
+    	case 'del':
89
+        	include_once XOOPS_ROOT_PATH . '/modules/smartobject/class/smartobjectcontroller.php';
90
+        	$controller = new SmartObjectController($smartobjectRatingHandler);
91
+        	$controller->handleObjectDeletion();
92 92
 
93
-        break;
93
+        	break;
94 94
 
95
-    default:
95
+    	default:
96 96
 
97
-        smart_xoops_cp_header();
98
-        echo $indexAdmin->addNavigation(basename(__FILE__));
97
+        	smart_xoops_cp_header();
98
+        	echo $indexAdmin->addNavigation(basename(__FILE__));
99 99
 
100
-        //smart_adminMenu(4, _AM_SOBJECT_RATINGS);
100
+        	//smart_adminMenu(4, _AM_SOBJECT_RATINGS);
101 101
 
102
-        smart_collapsableBar('createdratings', _AM_SOBJECT_RATINGS, _AM_SOBJECT_RATINGS_DSC);
102
+        	smart_collapsableBar('createdratings', _AM_SOBJECT_RATINGS, _AM_SOBJECT_RATINGS_DSC);
103 103
 
104
-        include_once SMARTOBJECT_ROOT_PATH . 'class/smartobjecttable.php';
105
-        $objectTable = new SmartObjectTable($smartobjectRatingHandler);
106
-        $objectTable->addColumn(new SmartObjectColumn('name', 'left'));
107
-        $objectTable->addColumn(new SmartObjectColumn('dirname', 'left'));
108
-        $objectTable->addColumn(new SmartObjectColumn('item', 'left', false, 'getItemValue'));
109
-        $objectTable->addColumn(new SmartObjectColumn('date', 'center', 150));
110
-        $objectTable->addColumn(new SmartObjectColumn('rate', 'center', 40, 'getRateValue'));
104
+        	include_once SMARTOBJECT_ROOT_PATH . 'class/smartobjecttable.php';
105
+        	$objectTable = new SmartObjectTable($smartobjectRatingHandler);
106
+        	$objectTable->addColumn(new SmartObjectColumn('name', 'left'));
107
+        	$objectTable->addColumn(new SmartObjectColumn('dirname', 'left'));
108
+        	$objectTable->addColumn(new SmartObjectColumn('item', 'left', false, 'getItemValue'));
109
+        	$objectTable->addColumn(new SmartObjectColumn('date', 'center', 150));
110
+        	$objectTable->addColumn(new SmartObjectColumn('rate', 'center', 40, 'getRateValue'));
111 111
 
112
-        //      $objectTable->addCustomAction('getCreateItemLink');
113
-        //      $objectTable->addCustomAction('getCreateAttributLink');
112
+        	//      $objectTable->addCustomAction('getCreateItemLink');
113
+        	//      $objectTable->addCustomAction('getCreateAttributLink');
114 114
 
115
-        $objectTable->addIntroButton('addrating', 'rating.php?op=mod', _AM_SOBJECT_RATINGS_CREATE);
116
-        /*
115
+        	$objectTable->addIntroButton('addrating', 'rating.php?op=mod', _AM_SOBJECT_RATINGS_CREATE);
116
+        	/*
117 117
                 $criteria_upcoming = new CriteriaCompo();
118 118
                 $criteria_upcoming->add(new Criteria('start_date', time(), '>'));
119 119
                 $objectTable->addFilter(_AM_SOBJECT_FILTER_UPCOMING, array(
@@ -138,13 +138,13 @@  discard block
 block discarded – undo
138 138
                 ));
139 139
         */
140 140
 
141
-        $objectTable->render();
141
+        	$objectTable->render();
142 142
 
143
-        echo '<br>';
144
-        smart_close_collapsable('createdratings');
145
-        echo '<br>';
143
+        	echo '<br>';
144
+        	smart_close_collapsable('createdratings');
145
+        	echo '<br>';
146 146
 
147
-        break;
147
+        	break;
148 148
 }
149 149
 
150 150
 //smart_modFooter();
Please login to merge, or discard this patch.