Completed
Branch master (2d4977)
by Michael
03:20
created
admin/currency.php 3 patches
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -85,15 +85,15 @@
 block discarded – undo
85 85
 		break;
86 86
 
87 87
 	case "addcurrency":
88
-        include_once XOOPS_ROOT_PATH."/modules/smartobject/class/smartobjectcontroller.php";
89
-        $controller = new SmartObjectController($smartobject_currency_handler);
88
+		include_once XOOPS_ROOT_PATH."/modules/smartobject/class/smartobjectcontroller.php";
89
+		$controller = new SmartObjectController($smartobject_currency_handler);
90 90
 		$controller->storeFromDefaultForm(_AM_SOBJECT_CURRENCIES_CREATED, _AM_SOBJECT_CURRENCIES_MODIFIED, SMARTOBJECT_URL . 'admin/currency.php');
91 91
 
92 92
 		break;
93 93
 
94 94
 	case "del":
95
-	    include_once XOOPS_ROOT_PATH."/modules/smartobject/class/smartobjectcontroller.php";
96
-        $controller = new SmartObjectController($smartobject_currency_handler);
95
+		include_once XOOPS_ROOT_PATH."/modules/smartobject/class/smartobjectcontroller.php";
96
+		$controller = new SmartObjectController($smartobject_currency_handler);
97 97
 		$controller->handleObjectDeletion();
98 98
 
99 99
 		break;
Please login to merge, or discard this patch.
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@  discard block
 block discarded – undo
13 13
 
14 14
 	$currencyObj = $smartobject_currency_handler->get($currencyid);
15 15
 
16
-	if (!$currencyObj->isNew()){
16
+	if (!$currencyObj->isNew()) {
17 17
 
18 18
 		if ($showmenu) {
19 19
 			//smart_adminMenu(5, _AM_SOBJECT_CURRENCIES . " > " . _AM_SOBJECT_EDITING);
@@ -36,8 +36,8 @@  discard block
 block discarded – undo
36 36
 }
37 37
 
38 38
 include_once("admin_header.php");
39
-include_once SMARTOBJECT_ROOT_PATH."class/smartobjecttable.php";
40
-include_once SMARTOBJECT_ROOT_PATH."class/currency.php";
39
+include_once SMARTOBJECT_ROOT_PATH . "class/smartobjecttable.php";
40
+include_once SMARTOBJECT_ROOT_PATH . "class/currency.php";
41 41
 $smartobject_currency_handler = xoops_getmodulehandler('currency');
42 42
 
43 43
 $op = '';
@@ -47,7 +47,7 @@  discard block
 block discarded – undo
47 47
 
48 48
 switch ($op) {
49 49
 	case "mod":
50
-		$currencyid = isset($_GET['currencyid']) ? intval($_GET['currencyid']) : 0 ;
50
+		$currencyid = isset($_GET['currencyid']) ? intval($_GET['currencyid']) : 0;
51 51
 
52 52
 		smart_xoops_cp_header();
53 53
 
@@ -85,14 +85,14 @@  discard block
 block discarded – undo
85 85
 		break;
86 86
 
87 87
 	case "addcurrency":
88
-        include_once XOOPS_ROOT_PATH."/modules/smartobject/class/smartobjectcontroller.php";
88
+        include_once XOOPS_ROOT_PATH . "/modules/smartobject/class/smartobjectcontroller.php";
89 89
         $controller = new SmartObjectController($smartobject_currency_handler);
90 90
 		$controller->storeFromDefaultForm(_AM_SOBJECT_CURRENCIES_CREATED, _AM_SOBJECT_CURRENCIES_MODIFIED, SMARTOBJECT_URL . 'admin/currency.php');
91 91
 
92 92
 		break;
93 93
 
94 94
 	case "del":
95
-	    include_once XOOPS_ROOT_PATH."/modules/smartobject/class/smartobjectcontroller.php";
95
+	    include_once XOOPS_ROOT_PATH . "/modules/smartobject/class/smartobjectcontroller.php";
96 96
         $controller = new SmartObjectController($smartobject_currency_handler);
97 97
 		$controller->handleObjectDeletion();
98 98
 
@@ -106,7 +106,7 @@  discard block
 block discarded – undo
106 106
 
107 107
 		smart_collapsableBar('createdcurrencies', _AM_SOBJECT_CURRENCIES, _AM_SOBJECT_CURRENCIES_DSC);
108 108
 
109
-		include_once SMARTOBJECT_ROOT_PATH."class/smartobjecttable.php";
109
+		include_once SMARTOBJECT_ROOT_PATH . "class/smartobjecttable.php";
110 110
 		$objectTable = new SmartObjectTable($smartobject_currency_handler);
111 111
 		$objectTable->addColumn(new SmartObjectColumn('name', 'left', false, 'getCurrencyLink'));
112 112
 		$objectTable->addColumn(new SmartObjectColumn('rate', 'center', 150));
Please login to merge, or discard this patch.
Braces   +6 added lines, -2 removed lines patch added patch discarded remove patch
@@ -42,8 +42,12 @@
 block discarded – undo
42 42
 
43 43
 $op = '';
44 44
 
45
-if (isset($_GET['op'])) $op = $_GET['op'];
46
-if (isset($_POST['op'])) $op = $_POST['op'];
45
+if (isset($_GET['op'])) {
46
+	$op = $_GET['op'];
47
+}
48
+if (isset($_POST['op'])) {
49
+	$op = $_POST['op'];
50
+}
47 51
 
48 52
 switch ($op) {
49 53
 	case "mod":
Please login to merge, or discard this patch.
admin/tag.php 3 patches
Indentation   +60 added lines, -60 removed lines patch added patch discarded remove patch
@@ -9,45 +9,45 @@  discard block
 block discarded – undo
9 9
 
10 10
 function edittag($tagid = 0, $language=false, $fct=false)
11 11
 {
12
-    global $smartobject_tag_handler;
13
-
14
-    $tagObj = $smartobject_tag_handler->get($tagid);
15
-
16
-    if ($tagObj->isNew()){
17
-    	$breadcrumb = _AM_SOBJECT_TAGS . " > " . _AM_SOBJECT_TAG_CREATE;
18
-    	$title = _AM_SOBJECT_TAG_CREATE;
19
-    	$info = _AM_SOBJECT_TAG_CREATE_INFO;
20
-    	$collaps_name = 'tagcreate';
21
-    	$form_name = _AM_SOBJECT_TAG_CREATE;
22
-    	$submit_button_caption = null;
23
-    	//$tagObj->stripMultilanguageFields();
24
-    } else {
25
-    	if ($language) {
26
-	    	$breadcrumb = _AM_SOBJECT_TAGS . " > " . _AM_SOBJECT_TAG_EDITING_LANGUAGE;
27
-	    	$title = _AM_SOBJECT_TAG_EDIT_LANGUAGE;
28
-	    	$info = _AM_SOBJECT_TAG_EDIT_LANGUAGE_INFO;
29
-	    	$collaps_name = 'tageditlanguage';
30
-	    	$form_name = _AM_SOBJECT_TAG_EDIT_LANGUAGE;
31
-	    	$submit_button_caption = null;
32
-	    	$tagObj->makeNonMLFieldReadOnly();
33
-    	} else {
34
-	    	$breadcrumb = _AM_SOBJECT_TAGS . " > " . _AM_SOBJECT_EDITING;
35
-	    	$title = _AM_SOBJECT_TAG_EDIT;
36
-	    	$info = _AM_SOBJECT_TAG_EDIT_INFO;
37
-	    	$collaps_name = 'tagedit';
38
-	    	$form_name = _AM_SOBJECT_TAG_EDIT;
39
-	    	$submit_button_caption = null;
40
-    		$tagObj->stripMultilanguageFields();
41
-    	}
42
-    }
43
-
44
-    //smart_adminMenu(2, $breadcrumb);
45
-
46
-    smart_collapsableBar($collaps_name, $title, $info);
47
-
48
-    $sform = $tagObj->getForm($form_name, 'addtag', false,  $submit_button_caption);
49
-    $sform->display();
50
-    smart_close_collapsable($collaps_name);
12
+	global $smartobject_tag_handler;
13
+
14
+	$tagObj = $smartobject_tag_handler->get($tagid);
15
+
16
+	if ($tagObj->isNew()){
17
+		$breadcrumb = _AM_SOBJECT_TAGS . " > " . _AM_SOBJECT_TAG_CREATE;
18
+		$title = _AM_SOBJECT_TAG_CREATE;
19
+		$info = _AM_SOBJECT_TAG_CREATE_INFO;
20
+		$collaps_name = 'tagcreate';
21
+		$form_name = _AM_SOBJECT_TAG_CREATE;
22
+		$submit_button_caption = null;
23
+		//$tagObj->stripMultilanguageFields();
24
+	} else {
25
+		if ($language) {
26
+			$breadcrumb = _AM_SOBJECT_TAGS . " > " . _AM_SOBJECT_TAG_EDITING_LANGUAGE;
27
+			$title = _AM_SOBJECT_TAG_EDIT_LANGUAGE;
28
+			$info = _AM_SOBJECT_TAG_EDIT_LANGUAGE_INFO;
29
+			$collaps_name = 'tageditlanguage';
30
+			$form_name = _AM_SOBJECT_TAG_EDIT_LANGUAGE;
31
+			$submit_button_caption = null;
32
+			$tagObj->makeNonMLFieldReadOnly();
33
+		} else {
34
+			$breadcrumb = _AM_SOBJECT_TAGS . " > " . _AM_SOBJECT_EDITING;
35
+			$title = _AM_SOBJECT_TAG_EDIT;
36
+			$info = _AM_SOBJECT_TAG_EDIT_INFO;
37
+			$collaps_name = 'tagedit';
38
+			$form_name = _AM_SOBJECT_TAG_EDIT;
39
+			$submit_button_caption = null;
40
+			$tagObj->stripMultilanguageFields();
41
+		}
42
+	}
43
+
44
+	//smart_adminMenu(2, $breadcrumb);
45
+
46
+	smart_collapsableBar($collaps_name, $title, $info);
47
+
48
+	$sform = $tagObj->getForm($form_name, 'addtag', false,  $submit_button_caption);
49
+	$sform->display();
50
+	smart_close_collapsable($collaps_name);
51 51
 }
52 52
 
53 53
 include_once("admin_header.php");
@@ -68,33 +68,33 @@  discard block
 block discarded – undo
68 68
 switch ($op) {
69 69
 
70 70
 	case "del":
71
-	    include_once XOOPS_ROOT_PATH."/modules/smartobject/class/smartobjectcontroller.php";
72
-        $controller = new SmartObjectController($smartobject_tag_handler);
71
+		include_once XOOPS_ROOT_PATH."/modules/smartobject/class/smartobjectcontroller.php";
72
+		$controller = new SmartObjectController($smartobject_tag_handler);
73 73
 		$controller->handleObjectDeletion(_AM_SOBJECT_TAG_DELETE_CONFIRM);
74 74
 
75 75
 		break;
76 76
 
77
-    case "addtag":
78
-        include_once XOOPS_ROOT_PATH."/modules/smartobject/class/smartobjectcontroller.php";
79
-        $controller = new SmartObjectController($smartobject_tag_handler);
80
-        $tagObj = $controller->storeSmartObject();
81
-        if ($tagObj->hasError()) {
82
-        	redirect_header($smart_previous_page, 3, _CO_SOBJECT_SAVE_ERROR . $tagObj->getHtmlErrors());
83
-        	exit;
84
-        }
85
-
86
-        if ($tagObj->hasError()) {
87
-        	redirect_header($smart_previous_page, 3, _CO_SOBJECT_SAVE_ERROR . $tagObj->getHtmlErrors());
88
-        } else {
89
-        	redirect_header(smart_get_page_before_form(), 3, _CO_SOBJECT_SAVE_SUCCESS);
90
-        }
77
+	case "addtag":
78
+		include_once XOOPS_ROOT_PATH."/modules/smartobject/class/smartobjectcontroller.php";
79
+		$controller = new SmartObjectController($smartobject_tag_handler);
80
+		$tagObj = $controller->storeSmartObject();
81
+		if ($tagObj->hasError()) {
82
+			redirect_header($smart_previous_page, 3, _CO_SOBJECT_SAVE_ERROR . $tagObj->getHtmlErrors());
83
+			exit;
84
+		}
85
+
86
+		if ($tagObj->hasError()) {
87
+			redirect_header($smart_previous_page, 3, _CO_SOBJECT_SAVE_ERROR . $tagObj->getHtmlErrors());
88
+		} else {
89
+			redirect_header(smart_get_page_before_form(), 3, _CO_SOBJECT_SAVE_SUCCESS);
90
+		}
91 91
 		exit;
92
-        break;
92
+		break;
93 93
 
94
-    case "mod":
95
-        smart_xoops_cp_header();
96
-        edittag($tagid, $language, $fct);
97
-        break;
94
+	case "mod":
95
+		smart_xoops_cp_header();
96
+		edittag($tagid, $language, $fct);
97
+		break;
98 98
 
99 99
 	default:
100 100
 
Please login to merge, or discard this patch.
Spacing   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -7,13 +7,13 @@  discard block
 block discarded – undo
7 7
 * Licence: GNU
8 8
 */
9 9
 
10
-function edittag($tagid = 0, $language=false, $fct=false)
10
+function edittag($tagid = 0, $language = false, $fct = false)
11 11
 {
12 12
     global $smartobject_tag_handler;
13 13
 
14 14
     $tagObj = $smartobject_tag_handler->get($tagid);
15 15
 
16
-    if ($tagObj->isNew()){
16
+    if ($tagObj->isNew()) {
17 17
     	$breadcrumb = _AM_SOBJECT_TAGS . " > " . _AM_SOBJECT_TAG_CREATE;
18 18
     	$title = _AM_SOBJECT_TAG_CREATE;
19 19
     	$info = _AM_SOBJECT_TAG_CREATE_INFO;
@@ -45,14 +45,14 @@  discard block
 block discarded – undo
45 45
 
46 46
     smart_collapsableBar($collaps_name, $title, $info);
47 47
 
48
-    $sform = $tagObj->getForm($form_name, 'addtag', false,  $submit_button_caption);
48
+    $sform = $tagObj->getForm($form_name, 'addtag', false, $submit_button_caption);
49 49
     $sform->display();
50 50
     smart_close_collapsable($collaps_name);
51 51
 }
52 52
 
53 53
 include_once("admin_header.php");
54
-include_once SMARTOBJECT_ROOT_PATH."class/smartobjecttable.php";
55
-include_once SMARTOBJECT_ROOT_PATH."class/smartobjecttag.php";
54
+include_once SMARTOBJECT_ROOT_PATH . "class/smartobjecttable.php";
55
+include_once SMARTOBJECT_ROOT_PATH . "class/smartobjecttag.php";
56 56
 
57 57
 $smartobject_tag_handler = xoops_getmodulehandler('tag');
58 58
 
@@ -61,21 +61,21 @@  discard block
 block discarded – undo
61 61
 if (isset($_GET['op'])) $op = $_GET['op'];
62 62
 if (isset($_POST['op'])) $op = $_POST['op'];
63 63
 
64
-$tagid = isset($_GET['tagid']) ? $_GET['tagid'] : 0 ;
65
-$fct = isset($_GET['fct']) ? $_GET['fct'] :'' ;
66
-$language = isset($_GET['language']) ? $_GET['language'] : false ;
64
+$tagid = isset($_GET['tagid']) ? $_GET['tagid'] : 0;
65
+$fct = isset($_GET['fct']) ? $_GET['fct'] : '';
66
+$language = isset($_GET['language']) ? $_GET['language'] : false;
67 67
 
68 68
 switch ($op) {
69 69
 
70 70
 	case "del":
71
-	    include_once XOOPS_ROOT_PATH."/modules/smartobject/class/smartobjectcontroller.php";
71
+	    include_once XOOPS_ROOT_PATH . "/modules/smartobject/class/smartobjectcontroller.php";
72 72
         $controller = new SmartObjectController($smartobject_tag_handler);
73 73
 		$controller->handleObjectDeletion(_AM_SOBJECT_TAG_DELETE_CONFIRM);
74 74
 
75 75
 		break;
76 76
 
77 77
     case "addtag":
78
-        include_once XOOPS_ROOT_PATH."/modules/smartobject/class/smartobjectcontroller.php";
78
+        include_once XOOPS_ROOT_PATH . "/modules/smartobject/class/smartobjectcontroller.php";
79 79
         $controller = new SmartObjectController($smartobject_tag_handler);
80 80
         $tagObj = $controller->storeSmartObject();
81 81
         if ($tagObj->hasError()) {
@@ -104,7 +104,7 @@  discard block
 block discarded – undo
104 104
 
105 105
 		smart_collapsableBar('tags', _AM_SOBJECT_TAGS, _AM_SOBJECT_TAGS_INFO);
106 106
 
107
-		include_once SMARTOBJECT_ROOT_PATH."class/smartobjecttable.php";
107
+		include_once SMARTOBJECT_ROOT_PATH . "class/smartobjecttable.php";
108 108
 		$objectTable = new SmartObjectTable($smartobject_tag_handler, false, array('delete'));
109 109
 		$objectTable->addColumn(new SmartObjectColumn('name'));
110 110
 		$objectTable->addColumn(new SmartObjectColumn('language'));
Please login to merge, or discard this patch.
Braces   +6 added lines, -2 removed lines patch added patch discarded remove patch
@@ -58,8 +58,12 @@
 block discarded – undo
58 58
 
59 59
 $op = '';
60 60
 
61
-if (isset($_GET['op'])) $op = $_GET['op'];
62
-if (isset($_POST['op'])) $op = $_POST['op'];
61
+if (isset($_GET['op'])) {
62
+	$op = $_GET['op'];
63
+}
64
+if (isset($_POST['op'])) {
65
+	$op = $_POST['op'];
66
+}
63 67
 
64 68
 $tagid = isset($_GET['tagid']) ? $_GET['tagid'] : 0 ;
65 69
 $fct = isset($_GET['fct']) ? $_GET['fct'] :'' ;
Please login to merge, or discard this patch.
admin/index.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@
 block discarded – undo
26 26
 
27 27
 	$indexAdmin = new ModuleAdmin();
28 28
 
29
-    echo $indexAdmin->addNavigation('index.php');
30
-    echo $indexAdmin->renderIndex();
29
+	echo $indexAdmin->addNavigation('index.php');
30
+	echo $indexAdmin->renderIndex();
31 31
 
32 32
 include "admin_footer.php";
33 33
\ No newline at end of file
Please login to merge, or discard this patch.
admin/customtag.php 3 patches
Indentation   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -59,7 +59,7 @@  discard block
 block discarded – undo
59 59
 		$customtagid = isset($_GET['customtagid']) ? intval($_GET['customtagid']) : 0 ;
60 60
 
61 61
 		smart_xoops_cp_header();
62
-        echo $indexAdmin->addNavigation('customtag.php');
62
+		echo $indexAdmin->addNavigation('customtag.php');
63 63
 
64 64
 		editcustomtag(true, $customtagid);
65 65
 		break;
@@ -69,21 +69,21 @@  discard block
 block discarded – undo
69 69
 		$customtagid = isset($_GET['customtagid']) ? intval($_GET['customtagid']) : 0 ;
70 70
 
71 71
 		smart_xoops_cp_header();
72
-        echo $indexAdmin->addNavigation('customtag.php');
72
+		echo $indexAdmin->addNavigation('customtag.php');
73 73
 
74 74
 		editcustomtag(true, $customtagid, true);
75 75
 		break;
76 76
 
77 77
 	case "addcustomtag":
78
-        include_once XOOPS_ROOT_PATH."/modules/smartobject/class/smartobjectcontroller.php";
79
-        $controller = new SmartObjectController($smartobject_customtag_handler);
78
+		include_once XOOPS_ROOT_PATH."/modules/smartobject/class/smartobjectcontroller.php";
79
+		$controller = new SmartObjectController($smartobject_customtag_handler);
80 80
 		$controller->storeFromDefaultForm(_AM_SOBJECT_CUSTOMTAGS_CREATED, _AM_SOBJECT_CUSTOMTAGS_MODIFIED);
81 81
 		break;
82 82
 
83 83
 	case "del":
84 84
 
85
-	    include_once XOOPS_ROOT_PATH."/modules/smartobject/class/smartobjectcontroller.php";
86
-        $controller = new SmartObjectController($smartobject_customtag_handler);
85
+		include_once XOOPS_ROOT_PATH."/modules/smartobject/class/smartobjectcontroller.php";
86
+		$controller = new SmartObjectController($smartobject_customtag_handler);
87 87
 		$controller->handleObjectDeletion();
88 88
 
89 89
 		break;
@@ -91,9 +91,9 @@  discard block
 block discarded – undo
91 91
 	default:
92 92
 
93 93
 		smart_xoops_cp_header();
94
-        echo $indexAdmin->addNavigation('customtag.php');
95
-        $indexAdmin->addItemButton(_AM_SOBJECT_CUSTOMTAGS_CREATE, 'customtag.php?op=mod', 'add' , '');
96
-        echo $indexAdmin->renderButton('left', '');
94
+		echo $indexAdmin->addNavigation('customtag.php');
95
+		$indexAdmin->addItemButton(_AM_SOBJECT_CUSTOMTAGS_CREATE, 'customtag.php?op=mod', 'add' , '');
96
+		echo $indexAdmin->renderButton('left', '');
97 97
 
98 98
 		//smart_adminMenu(2, _AM_SOBJECT_CUSTOMTAGS);
99 99
 
Please login to merge, or discard this patch.
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -7,13 +7,13 @@  discard block
 block discarded – undo
7 7
 * Licence: GNU
8 8
 */
9 9
 
10
-function editcustomtag($showmenu = false, $customtagid = 0, $clone=false)
10
+function editcustomtag($showmenu = false, $customtagid = 0, $clone = false)
11 11
 {
12 12
 	global $smartobject_customtag_handler;
13 13
 
14 14
 	$customtagObj = $smartobject_customtag_handler->get($customtagid);
15 15
 
16
-	if (!$clone && !$customtagObj->isNew()){
16
+	if (!$clone && !$customtagObj->isNew()) {
17 17
 
18 18
 		if ($showmenu) {
19 19
 			//smart_adminMenu(2, _AM_SOBJECT_CUSTOMTAGS . " > " . _AM_SOBJECT_EDITING);
@@ -41,8 +41,8 @@  discard block
 block discarded – undo
41 41
 include_once("admin_header.php");
42 42
 smart_loadLanguageFile('smartobject', 'customtag');
43 43
 
44
-include_once SMARTOBJECT_ROOT_PATH."class/smartobjecttable.php";
45
-include_once SMARTOBJECT_ROOT_PATH."class/customtag.php";
44
+include_once SMARTOBJECT_ROOT_PATH . "class/smartobjecttable.php";
45
+include_once SMARTOBJECT_ROOT_PATH . "class/customtag.php";
46 46
 $smartobject_customtag_handler = xoops_getmodulehandler('customtag');
47 47
 
48 48
 $indexAdmin = new ModuleAdmin();
@@ -56,7 +56,7 @@  discard block
 block discarded – undo
56 56
 switch ($op) {
57 57
 	case "mod":
58 58
 
59
-		$customtagid = isset($_GET['customtagid']) ? intval($_GET['customtagid']) : 0 ;
59
+		$customtagid = isset($_GET['customtagid']) ? intval($_GET['customtagid']) : 0;
60 60
 
61 61
 		smart_xoops_cp_header();
62 62
         echo $indexAdmin->addNavigation('customtag.php');
@@ -66,7 +66,7 @@  discard block
 block discarded – undo
66 66
 
67 67
 	case "clone":
68 68
 
69
-		$customtagid = isset($_GET['customtagid']) ? intval($_GET['customtagid']) : 0 ;
69
+		$customtagid = isset($_GET['customtagid']) ? intval($_GET['customtagid']) : 0;
70 70
 
71 71
 		smart_xoops_cp_header();
72 72
         echo $indexAdmin->addNavigation('customtag.php');
@@ -75,14 +75,14 @@  discard block
 block discarded – undo
75 75
 		break;
76 76
 
77 77
 	case "addcustomtag":
78
-        include_once XOOPS_ROOT_PATH."/modules/smartobject/class/smartobjectcontroller.php";
78
+        include_once XOOPS_ROOT_PATH . "/modules/smartobject/class/smartobjectcontroller.php";
79 79
         $controller = new SmartObjectController($smartobject_customtag_handler);
80 80
 		$controller->storeFromDefaultForm(_AM_SOBJECT_CUSTOMTAGS_CREATED, _AM_SOBJECT_CUSTOMTAGS_MODIFIED);
81 81
 		break;
82 82
 
83 83
 	case "del":
84 84
 
85
-	    include_once XOOPS_ROOT_PATH."/modules/smartobject/class/smartobjectcontroller.php";
85
+	    include_once XOOPS_ROOT_PATH . "/modules/smartobject/class/smartobjectcontroller.php";
86 86
         $controller = new SmartObjectController($smartobject_customtag_handler);
87 87
 		$controller->handleObjectDeletion();
88 88
 
@@ -92,14 +92,14 @@  discard block
 block discarded – undo
92 92
 
93 93
 		smart_xoops_cp_header();
94 94
         echo $indexAdmin->addNavigation('customtag.php');
95
-        $indexAdmin->addItemButton(_AM_SOBJECT_CUSTOMTAGS_CREATE, 'customtag.php?op=mod', 'add' , '');
95
+        $indexAdmin->addItemButton(_AM_SOBJECT_CUSTOMTAGS_CREATE, 'customtag.php?op=mod', 'add', '');
96 96
         echo $indexAdmin->renderButton('left', '');
97 97
 
98 98
 		//smart_adminMenu(2, _AM_SOBJECT_CUSTOMTAGS);
99 99
 
100 100
 		smart_collapsableBar('createdcustomtags', _AM_SOBJECT_CUSTOMTAGS, _AM_SOBJECT_CUSTOMTAGS_DSC);
101 101
 
102
-		include_once SMARTOBJECT_ROOT_PATH."class/smartobjecttable.php";
102
+		include_once SMARTOBJECT_ROOT_PATH . "class/smartobjecttable.php";
103 103
 		$objectTable = new SmartObjectTable($smartobject_customtag_handler);
104 104
 		$objectTable->addColumn(new SmartObjectColumn('name', 'left', 150, 'getCustomtagName'));
105 105
 		$objectTable->addColumn(new SmartObjectColumn('description', 'left'));
Please login to merge, or discard this patch.
Braces   +6 added lines, -2 removed lines patch added patch discarded remove patch
@@ -50,8 +50,12 @@
 block discarded – undo
50 50
 
51 51
 $op = '';
52 52
 
53
-if (isset($_GET['op'])) $op = $_GET['op'];
54
-if (isset($_POST['op'])) $op = $_POST['op'];
53
+if (isset($_GET['op'])) {
54
+	$op = $_GET['op'];
55
+}
56
+if (isset($_POST['op'])) {
57
+	$op = $_POST['op'];
58
+}
55 59
 
56 60
 switch ($op) {
57 61
 	case "mod":
Please login to merge, or discard this patch.
print.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -8,11 +8,11 @@
 block discarded – undo
8 8
  */
9 9
 
10 10
 include_once("header.php");
11
-require_once SMARTOBJECT_ROOT_PATH.'class/smartloader.php';
12
-require_once XOOPS_ROOT_PATH.'/class/template.php';
11
+require_once SMARTOBJECT_ROOT_PATH . 'class/smartloader.php';
12
+require_once XOOPS_ROOT_PATH . '/class/template.php';
13 13
 
14 14
 $xoopsTpl = new XoopsTpl();
15
-$myts =& MyTextSanitizer::getInstance();
15
+$myts = & MyTextSanitizer::getInstance();
16 16
 $xoopsConfig['sitename'] = $myts->displayTarea($xoopsConfig['sitename']);
17 17
 
18 18
 
Please login to merge, or discard this patch.
include/adsense.php 2 patches
Indentation   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -7,20 +7,20 @@
 block discarded – undo
7 7
  * Licence: GNU
8 8
  */
9 9
 if (!defined("XOOPS_ROOT_PATH")) {
10
-    die("XOOPS root path not defined");
10
+	die("XOOPS root path not defined");
11 11
 }
12 12
 
13 13
 function smart_adsense_initiate_smartytags() {
14
-    global $xoopsTpl, $smartobject_adsense_handler;
15
-    if (is_object($xoopsTpl)) {
16
-        foreach($smartobject_adsense_handler->objects as $k=>$v) {
17
-            $xoopsTpl->assign('adsense_' . $k, $v->render());
18
-        }
19
-    }
14
+	global $xoopsTpl, $smartobject_adsense_handler;
15
+	if (is_object($xoopsTpl)) {
16
+		foreach($smartobject_adsense_handler->objects as $k=>$v) {
17
+			$xoopsTpl->assign('adsense_' . $k, $v->render());
18
+		}
19
+	}
20 20
 }
21 21
 
22 22
 if (!defined('SMARTOBJECT_URL')) {
23
-    include_once(XOOPS_ROOT_PATH . '/modules/smartobject/include/common.php');
23
+	include_once(XOOPS_ROOT_PATH . '/modules/smartobject/include/common.php');
24 24
 }
25 25
 
26 26
 include_once XOOPS_ROOT_PATH."/modules/smartobject/include/functions.php";
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@  discard block
 block discarded – undo
13 13
 function smart_adsense_initiate_smartytags() {
14 14
     global $xoopsTpl, $smartobject_adsense_handler;
15 15
     if (is_object($xoopsTpl)) {
16
-        foreach($smartobject_adsense_handler->objects as $k=>$v) {
16
+        foreach ($smartobject_adsense_handler->objects as $k=>$v) {
17 17
             $xoopsTpl->assign('adsense_' . $k, $v->render());
18 18
         }
19 19
     }
@@ -23,7 +23,7 @@  discard block
 block discarded – undo
23 23
     include_once(XOOPS_ROOT_PATH . '/modules/smartobject/include/common.php');
24 24
 }
25 25
 
26
-include_once XOOPS_ROOT_PATH."/modules/smartobject/include/functions.php";
26
+include_once XOOPS_ROOT_PATH . "/modules/smartobject/include/functions.php";
27 27
 include_once(SMARTOBJECT_ROOT_PATH . "class/adsense.php");
28 28
 
29 29
 $smartobject_adsense_handler = xoops_getModuleHandler('adsense', 'smartobject');
Please login to merge, or discard this patch.
include/currency.php 2 patches
Indentation   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -7,7 +7,7 @@  discard block
 block discarded – undo
7 7
  * Licence: GNU
8 8
  */
9 9
 if (!defined("XOOPS_ROOT_PATH")) {
10
-    die("XOOPS root path not defined");
10
+	die("XOOPS root path not defined");
11 11
 }
12 12
 
13 13
 smart_loadCommonLanguageFile();
@@ -19,15 +19,15 @@  discard block
 block discarded – undo
19 19
 $smartobject_currency_handler = xoops_getModuleHandler('currency', 'smartobject');
20 20
 
21 21
 if (!$smartobject_currenciesObj) {
22
-    $smartobject_currenciesObj = $smartobject_currency_handler->getCurrencies();
22
+	$smartobject_currenciesObj = $smartobject_currency_handler->getCurrencies();
23 23
 }
24 24
 if (!$smartobject_currenciesArray) {
25
-    foreach($smartobject_currenciesObj as $currencyid=>$currencyObj) {
26
-        if ($currencyObj->getVar('default_currency', 'e')) {
27
-            $smartobject_default_currency = $currencyObj;
28
-        }
29
-        $smartobject_currenciesArray[$currencyid] = $currencyObj->getCode();
30
-    }
25
+	foreach($smartobject_currenciesObj as $currencyid=>$currencyObj) {
26
+		if ($currencyObj->getVar('default_currency', 'e')) {
27
+			$smartobject_default_currency = $currencyObj;
28
+		}
29
+		$smartobject_currenciesArray[$currencyid] = $currencyObj->getCode();
30
+	}
31 31
 }
32 32
 
33 33
 ?>
34 34
\ No newline at end of file
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@
 block discarded – undo
22 22
     $smartobject_currenciesObj = $smartobject_currency_handler->getCurrencies();
23 23
 }
24 24
 if (!$smartobject_currenciesArray) {
25
-    foreach($smartobject_currenciesObj as $currencyid=>$currencyObj) {
25
+    foreach ($smartobject_currenciesObj as $currencyid=>$currencyObj) {
26 26
         if ($currencyObj->getVar('default_currency', 'e')) {
27 27
             $smartobject_default_currency = $currencyObj;
28 28
         }
Please login to merge, or discard this patch.
include/common.php 1 patch
Indentation   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -7,7 +7,7 @@  discard block
 block discarded – undo
7 7
  * Licence: GNU
8 8
  */
9 9
 if (!defined("XOOPS_ROOT_PATH")) {
10
-    die("XOOPS root path not defined");
10
+	die("XOOPS root path not defined");
11 11
 }
12 12
 
13 13
 global $xoopsConfig;
@@ -16,22 +16,22 @@  discard block
 block discarded – undo
16 16
  * SmartObject library path
17 17
  */
18 18
 if (!defined('SMARTOBJECT_URL')) {
19
-    define('SMARTOBJECT_URL', XOOPS_URL . "/modules/smartobject/");
19
+	define('SMARTOBJECT_URL', XOOPS_URL . "/modules/smartobject/");
20 20
 }
21 21
 if (!defined('SMARTOBJECT_ROOT_PATH')) {
22
-    define('SMARTOBJECT_ROOT_PATH', XOOPS_ROOT_PATH . "/modules/smartobject/");
22
+	define('SMARTOBJECT_ROOT_PATH', XOOPS_ROOT_PATH . "/modules/smartobject/");
23 23
 }
24 24
 if (!defined('SMARTOBJECT_IMAGES_URL')) {
25
-    define('SMARTOBJECT_IMAGES_URL', SMARTOBJECT_URL . "images/");
25
+	define('SMARTOBJECT_IMAGES_URL', SMARTOBJECT_URL . "images/");
26 26
 }
27 27
 if (!defined('SMARTOBJECT_IMAGES_ROOT_PATH')) {
28
-    define('SMARTOBJECT_IMAGES_ROOT_PATH', SMARTOBJECT_ROOT_PATH . "images/");
28
+	define('SMARTOBJECT_IMAGES_ROOT_PATH', SMARTOBJECT_ROOT_PATH . "images/");
29 29
 }
30 30
 if (!defined('SMARTOBJECT_IMAGES_ACTIONS_URL')) {
31
-    define('SMARTOBJECT_IMAGES_ACTIONS_URL', SMARTOBJECT_URL . "images/actions/");
31
+	define('SMARTOBJECT_IMAGES_ACTIONS_URL', SMARTOBJECT_URL . "images/actions/");
32 32
 }
33 33
 if (!defined('SMARTOBJECT_IMAGES_ACTIONS_ROOT_PATH')) {
34
-    define('SMARTOBJECT_IMAGES_ACTIONS_ROOT_PATH', SMARTOBJECT_ROOT_PATH . "images/actions/");
34
+	define('SMARTOBJECT_IMAGES_ACTIONS_ROOT_PATH', SMARTOBJECT_ROOT_PATH . "images/actions/");
35 35
 }
36 36
 
37 37
 /**
Please login to merge, or discard this patch.
include/customtag.php 2 patches
Indentation   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -7,20 +7,20 @@
 block discarded – undo
7 7
  * Licence: GNU
8 8
  */
9 9
 if (!defined("XOOPS_ROOT_PATH")) {
10
-    die("XOOPS root path not defined");
10
+	die("XOOPS root path not defined");
11 11
 }
12 12
 
13 13
 function smart_customtag_initiate() {
14
-    global $xoopsTpl, $smartobject_customtag_handler;
15
-    if (is_object($xoopsTpl)) {
16
-        foreach($smartobject_customtag_handler->objects as $k=>$v) {
17
-            $xoopsTpl->assign($k, $v->render());
18
-        }
19
-    }
14
+	global $xoopsTpl, $smartobject_customtag_handler;
15
+	if (is_object($xoopsTpl)) {
16
+		foreach($smartobject_customtag_handler->objects as $k=>$v) {
17
+			$xoopsTpl->assign($k, $v->render());
18
+		}
19
+	}
20 20
 }
21 21
 
22 22
 if (!defined('SMARTOBJECT_URL')) {
23
-    include_once(XOOPS_ROOT_PATH . '/modules/smartobject/include/common.php');
23
+	include_once(XOOPS_ROOT_PATH . '/modules/smartobject/include/common.php');
24 24
 }
25 25
 
26 26
 smart_loadLanguageFile('smartobject', 'customtag');
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@  discard block
 block discarded – undo
13 13
 function smart_customtag_initiate() {
14 14
     global $xoopsTpl, $smartobject_customtag_handler;
15 15
     if (is_object($xoopsTpl)) {
16
-        foreach($smartobject_customtag_handler->objects as $k=>$v) {
16
+        foreach ($smartobject_customtag_handler->objects as $k=>$v) {
17 17
             $xoopsTpl->assign($k, $v->render());
18 18
         }
19 19
     }
@@ -25,7 +25,7 @@  discard block
 block discarded – undo
25 25
 
26 26
 smart_loadLanguageFile('smartobject', 'customtag');
27 27
 
28
-include_once XOOPS_ROOT_PATH."/modules/smartobject/include/functions.php";
28
+include_once XOOPS_ROOT_PATH . "/modules/smartobject/include/functions.php";
29 29
 include_once(SMARTOBJECT_ROOT_PATH . "class/customtag.php");
30 30
 
31 31
 $smartobject_customtag_handler = xoops_getModuleHandler('customtag', 'smartobject');
Please login to merge, or discard this patch.