Completed
Push — master ( 248a3a...c5aa4f )
by Michael
05:44 queued 02:41
created
plugins/smartpartner.php 1 patch
Indentation   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -9,15 +9,15 @@
 block discarded – undo
9 9
 
10 10
 function smartobject_plugin_smartpartner()
11 11
 {
12
-    $pluginInfo = array();
12
+	$pluginInfo = array();
13 13
 
14
-    $pluginInfo['items']['partner']['caption'] = 'Partner';
15
-    $pluginInfo['items']['partner']['url']     = 'partner.php?partnerid=%u';
16
-    $pluginInfo['items']['partner']['request'] = 'partnerid';
14
+	$pluginInfo['items']['partner']['caption'] = 'Partner';
15
+	$pluginInfo['items']['partner']['url']     = 'partner.php?partnerid=%u';
16
+	$pluginInfo['items']['partner']['request'] = 'partnerid';
17 17
 
18
-    $pluginInfo['items']['category']['caption'] = 'Category';
19
-    $pluginInfo['items']['category']['url']     = 'index.php?view_category_id=%u';
20
-    $pluginInfo['items']['category']['request'] = 'view_category_id';
18
+	$pluginInfo['items']['category']['caption'] = 'Category';
19
+	$pluginInfo['items']['category']['url']     = 'index.php?view_category_id=%u';
20
+	$pluginInfo['items']['category']['request'] = 'view_category_id';
21 21
 
22
-    return $pluginInfo;
22
+	return $pluginInfo;
23 23
 }
Please login to merge, or discard this patch.
plugins/smartsection.php 1 patch
Indentation   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -9,15 +9,15 @@
 block discarded – undo
9 9
 
10 10
 function smartobject_plugin_smartsection()
11 11
 {
12
-    $pluginInfo = array();
12
+	$pluginInfo = array();
13 13
 
14
-    $pluginInfo['items']['item']['caption'] = 'Article';
15
-    $pluginInfo['items']['item']['url']     = 'item.php?itemid=%u';
16
-    $pluginInfo['items']['item']['request'] = 'itemid';
14
+	$pluginInfo['items']['item']['caption'] = 'Article';
15
+	$pluginInfo['items']['item']['url']     = 'item.php?itemid=%u';
16
+	$pluginInfo['items']['item']['request'] = 'itemid';
17 17
 
18
-    $pluginInfo['items']['category']['caption'] = 'Category';
19
-    $pluginInfo['items']['category']['url']     = 'category.php?categoryid=%u';
20
-    $pluginInfo['items']['category']['request'] = 'categoryid';
18
+	$pluginInfo['items']['category']['caption'] = 'Category';
19
+	$pluginInfo['items']['category']['url']     = 'category.php?categoryid=%u';
20
+	$pluginInfo['items']['category']['request'] = 'categoryid';
21 21
 
22
-    return $pluginInfo;
22
+	return $pluginInfo;
23 23
 }
Please login to merge, or discard this patch.
plugins/xcgal.php 1 patch
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -9,12 +9,12 @@
 block discarded – undo
9 9
 
10 10
 function smartobject_plugin_xcgal()
11 11
 {
12
-    global $xoopsConfig;
12
+	global $xoopsConfig;
13 13
 
14
-    $pluginInfo                              = array();
15
-    $pluginInfo['items']['album']['caption'] = 'Album';
16
-    $pluginInfo['items']['item']['url']      = 'thumbnails.php?album=%u';
17
-    $pluginInfo['items']['item']['request']  = 'album';
14
+	$pluginInfo                              = array();
15
+	$pluginInfo['items']['album']['caption'] = 'Album';
16
+	$pluginInfo['items']['item']['url']      = 'thumbnails.php?album=%u';
17
+	$pluginInfo['items']['item']['request']  = 'album';
18 18
 
19
-    return $pluginInfo;
19
+	return $pluginInfo;
20 20
 }
Please login to merge, or discard this patch.
plugins/smartshop.php 1 patch
Indentation   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -9,15 +9,15 @@
 block discarded – undo
9 9
 
10 10
 function smartobject_plugin_smartshop()
11 11
 {
12
-    $pluginInfo = array();
12
+	$pluginInfo = array();
13 13
 
14
-    $pluginInfo['items']['item']['caption'] = 'Item';
15
-    $pluginInfo['items']['item']['url']     = 'item.php?itemid=%u';
16
-    $pluginInfo['items']['item']['request'] = 'itemid';
14
+	$pluginInfo['items']['item']['caption'] = 'Item';
15
+	$pluginInfo['items']['item']['url']     = 'item.php?itemid=%u';
16
+	$pluginInfo['items']['item']['request'] = 'itemid';
17 17
 
18
-    $pluginInfo['items']['category']['caption'] = 'Category';
19
-    $pluginInfo['items']['category']['url']     = 'category.php?categoryid=%u';
20
-    $pluginInfo['items']['category']['request'] = 'categoryid';
18
+	$pluginInfo['items']['category']['caption'] = 'Category';
19
+	$pluginInfo['items']['category']['url']     = 'category.php?categoryid=%u';
20
+	$pluginInfo['items']['category']['request'] = 'categoryid';
21 21
 
22
-    return $pluginInfo;
22
+	return $pluginInfo;
23 23
 }
Please login to merge, or discard this patch.
plugins/smartband.php 2 patches
Indentation   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -9,17 +9,17 @@
 block discarded – undo
9 9
 
10 10
 function smartobject_plugin_smartband()
11 11
 {
12
-    global $xoopsConfig;
13
-    include_once(XOOPS_ROOT_PATH . '/modules/smartband/language/' . $xoopsConfig['language'] . '/main.php');
12
+	global $xoopsConfig;
13
+	include_once(XOOPS_ROOT_PATH . '/modules/smartband/language/' . $xoopsConfig['language'] . '/main.php');
14 14
 
15
-    $pluginInfo                             = array();
16
-    $pluginInfo['items']['item']['caption'] = _MD_ARTALBUM_ITEM_CAP;
17
-    $pluginInfo['items']['item']['url']     = 'item.php?itemid=%u';
18
-    $pluginInfo['items']['item']['request'] = 'itemid';
15
+	$pluginInfo                             = array();
16
+	$pluginInfo['items']['item']['caption'] = _MD_ARTALBUM_ITEM_CAP;
17
+	$pluginInfo['items']['item']['url']     = 'item.php?itemid=%u';
18
+	$pluginInfo['items']['item']['request'] = 'itemid';
19 19
 
20
-    $pluginInfo['items']['category']['caption'] = _MD_ARTALBUM_CATEGORY;
21
-    $pluginInfo['items']['category']['url']     = 'category.php?categoryid=%u';
22
-    $pluginInfo['items']['category']['request'] = 'categoryid';
20
+	$pluginInfo['items']['category']['caption'] = _MD_ARTALBUM_CATEGORY;
21
+	$pluginInfo['items']['category']['url']     = 'category.php?categoryid=%u';
22
+	$pluginInfo['items']['category']['request'] = 'categoryid';
23 23
 
24
-    return $pluginInfo;
24
+	return $pluginInfo;
25 25
 }
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -10,7 +10,7 @@
 block discarded – undo
10 10
 function smartobject_plugin_smartband()
11 11
 {
12 12
     global $xoopsConfig;
13
-    include_once(XOOPS_ROOT_PATH . '/modules/smartband/language/' . $xoopsConfig['language'] . '/main.php');
13
+    include_once(XOOPS_ROOT_PATH.'/modules/smartband/language/'.$xoopsConfig['language'].'/main.php');
14 14
 
15 15
     $pluginInfo                             = array();
16 16
     $pluginInfo['items']['item']['caption'] = _MD_ARTALBUM_ITEM_CAP;
Please login to merge, or discard this patch.
include/custom_code/footer_start.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -2,5 +2,5 @@
 block discarded – undo
2 2
 
3 3
 function smarthook_footer_start()
4 4
 {
5
-    // code...
5
+	// code...
6 6
 }
Please login to merge, or discard this patch.
include/common.php 2 patches
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -14,22 +14,22 @@
 block discarded – undo
14 14
  * SmartObject library path
15 15
  */
16 16
 if (!defined('SMARTOBJECT_URL')) {
17
-    define('SMARTOBJECT_URL', XOOPS_URL . '/modules/smartobject/');
17
+	define('SMARTOBJECT_URL', XOOPS_URL . '/modules/smartobject/');
18 18
 }
19 19
 if (!defined('SMARTOBJECT_ROOT_PATH')) {
20
-    define('SMARTOBJECT_ROOT_PATH', XOOPS_ROOT_PATH . '/modules/smartobject/');
20
+	define('SMARTOBJECT_ROOT_PATH', XOOPS_ROOT_PATH . '/modules/smartobject/');
21 21
 }
22 22
 if (!defined('SMARTOBJECT_IMAGES_URL')) {
23
-    define('SMARTOBJECT_IMAGES_URL', SMARTOBJECT_URL . 'assets/images/');
23
+	define('SMARTOBJECT_IMAGES_URL', SMARTOBJECT_URL . 'assets/images/');
24 24
 }
25 25
 if (!defined('SMARTOBJECT_IMAGES_ROOT_PATH')) {
26
-    define('SMARTOBJECT_IMAGES_ROOT_PATH', SMARTOBJECT_ROOT_PATH . 'assets/images/');
26
+	define('SMARTOBJECT_IMAGES_ROOT_PATH', SMARTOBJECT_ROOT_PATH . 'assets/images/');
27 27
 }
28 28
 if (!defined('SMARTOBJECT_IMAGES_ACTIONS_URL')) {
29
-    define('SMARTOBJECT_IMAGES_ACTIONS_URL', SMARTOBJECT_URL . 'assets/images/actions/');
29
+	define('SMARTOBJECT_IMAGES_ACTIONS_URL', SMARTOBJECT_URL . 'assets/images/actions/');
30 30
 }
31 31
 if (!defined('SMARTOBJECT_IMAGES_ACTIONS_ROOT_PATH')) {
32
-    define('SMARTOBJECT_IMAGES_ACTIONS_ROOT_PATH', SMARTOBJECT_ROOT_PATH . 'assets/images/actions/');
32
+	define('SMARTOBJECT_IMAGES_ACTIONS_ROOT_PATH', SMARTOBJECT_ROOT_PATH . 'assets/images/actions/');
33 33
 }
34 34
 
35 35
 /**
Please login to merge, or discard this patch.
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -14,30 +14,30 @@  discard block
 block discarded – undo
14 14
  * SmartObject library path
15 15
  */
16 16
 if (!defined('SMARTOBJECT_URL')) {
17
-    define('SMARTOBJECT_URL', XOOPS_URL . '/modules/smartobject/');
17
+    define('SMARTOBJECT_URL', XOOPS_URL.'/modules/smartobject/');
18 18
 }
19 19
 if (!defined('SMARTOBJECT_ROOT_PATH')) {
20
-    define('SMARTOBJECT_ROOT_PATH', XOOPS_ROOT_PATH . '/modules/smartobject/');
20
+    define('SMARTOBJECT_ROOT_PATH', XOOPS_ROOT_PATH.'/modules/smartobject/');
21 21
 }
22 22
 if (!defined('SMARTOBJECT_IMAGES_URL')) {
23
-    define('SMARTOBJECT_IMAGES_URL', SMARTOBJECT_URL . 'assets/images/');
23
+    define('SMARTOBJECT_IMAGES_URL', SMARTOBJECT_URL.'assets/images/');
24 24
 }
25 25
 if (!defined('SMARTOBJECT_IMAGES_ROOT_PATH')) {
26
-    define('SMARTOBJECT_IMAGES_ROOT_PATH', SMARTOBJECT_ROOT_PATH . 'assets/images/');
26
+    define('SMARTOBJECT_IMAGES_ROOT_PATH', SMARTOBJECT_ROOT_PATH.'assets/images/');
27 27
 }
28 28
 if (!defined('SMARTOBJECT_IMAGES_ACTIONS_URL')) {
29
-    define('SMARTOBJECT_IMAGES_ACTIONS_URL', SMARTOBJECT_URL . 'assets/images/actions/');
29
+    define('SMARTOBJECT_IMAGES_ACTIONS_URL', SMARTOBJECT_URL.'assets/images/actions/');
30 30
 }
31 31
 if (!defined('SMARTOBJECT_IMAGES_ACTIONS_ROOT_PATH')) {
32
-    define('SMARTOBJECT_IMAGES_ACTIONS_ROOT_PATH', SMARTOBJECT_ROOT_PATH . 'assets/images/actions/');
32
+    define('SMARTOBJECT_IMAGES_ACTIONS_ROOT_PATH', SMARTOBJECT_ROOT_PATH.'assets/images/actions/');
33 33
 }
34 34
 
35 35
 /**
36 36
  * Version of the SmartObject Framework
37 37
  */
38
-include_once(SMARTOBJECT_ROOT_PATH . 'include/version.php');
39
-include_once(SMARTOBJECT_ROOT_PATH . 'include/functions.php');
40
-include_once(SMARTOBJECT_ROOT_PATH . 'include/xoops_core_common_functions.php');
38
+include_once(SMARTOBJECT_ROOT_PATH.'include/version.php');
39
+include_once(SMARTOBJECT_ROOT_PATH.'include/functions.php');
40
+include_once(SMARTOBJECT_ROOT_PATH.'include/xoops_core_common_functions.php');
41 41
 
42 42
 /**
43 43
  * Some constants used by the SmartObjects
@@ -66,4 +66,4 @@  discard block
 block discarded – undo
66 66
 // get previous page
67 67
 $smart_previous_page = smart_getenv('HTTP_REFERER');
68 68
 
69
-include_once(SMARTOBJECT_ROOT_PATH . 'class/smartloader.php');
69
+include_once(SMARTOBJECT_ROOT_PATH.'class/smartloader.php');
Please login to merge, or discard this patch.
include/adsense.php 2 patches
Indentation   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -10,16 +10,16 @@
 block discarded – undo
10 10
 
11 11
 function smart_adsense_initiate_smartytags()
12 12
 {
13
-    global $xoopsTpl, $smartobjectAdsenseHandler;
14
-    if (is_object($xoopsTpl)) {
15
-        foreach ($smartobjectAdsenseHandler->objects as $k => $v) {
16
-            $xoopsTpl->assign('adsense_' . $k, $v->render());
17
-        }
18
-    }
13
+	global $xoopsTpl, $smartobjectAdsenseHandler;
14
+	if (is_object($xoopsTpl)) {
15
+		foreach ($smartobjectAdsenseHandler->objects as $k => $v) {
16
+			$xoopsTpl->assign('adsense_' . $k, $v->render());
17
+		}
18
+	}
19 19
 }
20 20
 
21 21
 if (!defined('SMARTOBJECT_URL')) {
22
-    include_once(XOOPS_ROOT_PATH . '/modules/smartobject/include/common.php');
22
+	include_once(XOOPS_ROOT_PATH . '/modules/smartobject/include/common.php');
23 23
 }
24 24
 
25 25
 include_once XOOPS_ROOT_PATH . '/modules/smartobject/include/functions.php';
Please login to merge, or discard this patch.
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -13,17 +13,17 @@
 block discarded – undo
13 13
     global $xoopsTpl, $smartobjectAdsenseHandler;
14 14
     if (is_object($xoopsTpl)) {
15 15
         foreach ($smartobjectAdsenseHandler->objects as $k => $v) {
16
-            $xoopsTpl->assign('adsense_' . $k, $v->render());
16
+            $xoopsTpl->assign('adsense_'.$k, $v->render());
17 17
         }
18 18
     }
19 19
 }
20 20
 
21 21
 if (!defined('SMARTOBJECT_URL')) {
22
-    include_once(XOOPS_ROOT_PATH . '/modules/smartobject/include/common.php');
22
+    include_once(XOOPS_ROOT_PATH.'/modules/smartobject/include/common.php');
23 23
 }
24 24
 
25
-include_once XOOPS_ROOT_PATH . '/modules/smartobject/include/functions.php';
26
-include_once(SMARTOBJECT_ROOT_PATH . 'class/adsense.php');
25
+include_once XOOPS_ROOT_PATH.'/modules/smartobject/include/functions.php';
26
+include_once(SMARTOBJECT_ROOT_PATH.'class/adsense.php');
27 27
 
28 28
 $smartobjectAdsenseHandler = xoops_getModuleHandler('adsense', 'smartobject');
29
-$smartobjectAdsensesObj     = $smartobjectAdsenseHandler->getAdsensesByTag();
29
+$smartobjectAdsensesObj = $smartobjectAdsenseHandler->getAdsensesByTag();
Please login to merge, or discard this patch.
include/projax_/classes/JavaScript.php 2 patches
Indentation   +75 added lines, -75 removed lines patch added patch discarded remove patch
@@ -15,90 +15,90 @@
 block discarded – undo
15 15
  */
16 16
 class JavaScript
17 17
 {
18
-    /**
19
-     * @param       $name
20
-     * @param  null $function
21
-     * @return string
22
-     */
23
-    public function button_to_function($name, $function = null)
24
-    {
25
-        return '<input type="button" value="' . $name . '" onclick="' . $function . '" />';
26
-    }
18
+	/**
19
+	 * @param       $name
20
+	 * @param  null $function
21
+	 * @return string
22
+	 */
23
+	public function button_to_function($name, $function = null)
24
+	{
25
+		return '<input type="button" value="' . $name . '" onclick="' . $function . '" />';
26
+	}
27 27
 
28
-    /**
29
-     * @param $javascript
30
-     * @return mixed|string
31
-     */
32
-    public function escape($javascript)
33
-    {
34
-        $javascript = addslashes($javascript);
35
-        $javascript = str_replace(array("\r\n", "\n", "\r"), array("\n"), $javascript);
28
+	/**
29
+	 * @param $javascript
30
+	 * @return mixed|string
31
+	 */
32
+	public function escape($javascript)
33
+	{
34
+		$javascript = addslashes($javascript);
35
+		$javascript = str_replace(array("\r\n", "\n", "\r"), array("\n"), $javascript);
36 36
 
37
-        return $javascript;
38
-    }
37
+		return $javascript;
38
+	}
39 39
 
40
-    /**
41
-     * @param $content
42
-     * @return string
43
-     */
44
-    public function tag($content)
45
-    {
46
-        return '<script type="text/javascript">' . $content . '</script>';
47
-    }
40
+	/**
41
+	 * @param $content
42
+	 * @return string
43
+	 */
44
+	public function tag($content)
45
+	{
46
+		return '<script type="text/javascript">' . $content . '</script>';
47
+	}
48 48
 
49
-    /**
50
-     * @param       $name
51
-     * @param       $function
52
-     * @param  null $html_options
53
-     * @return string
54
-     */
55
-    public function link_to_function($name, $function, $html_options = null)
56
-    {
57
-        return '<a href="' . (isset($html_options['href']) ? $html_options['href'] : '#') . '" onclick="' . (isset($html_options['onclick']) ? $html_options['onclick'] . ';' : '') . $function . '; return false;" />' . $name . '</a>';
58
-    }
49
+	/**
50
+	 * @param       $name
51
+	 * @param       $function
52
+	 * @param  null $html_options
53
+	 * @return string
54
+	 */
55
+	public function link_to_function($name, $function, $html_options = null)
56
+	{
57
+		return '<a href="' . (isset($html_options['href']) ? $html_options['href'] : '#') . '" onclick="' . (isset($html_options['onclick']) ? $html_options['onclick'] . ';' : '') . $function . '; return false;" />' . $name . '</a>';
58
+	}
59 59
 
60
-    /////////////////////////////////////////////////////////////////////////////////////
61
-    //                             Private functions
62
-    /////////////////////////////////////////////////////////////////////////////////////
60
+	/////////////////////////////////////////////////////////////////////////////////////
61
+	//                             Private functions
62
+	/////////////////////////////////////////////////////////////////////////////////////
63 63
 
64
-    /**
65
-     * @param $option
66
-     * @return string
67
-     */
68
-    public function _array_or_string_for_javascript($option)
69
-    {
70
-        $return_val = '';
71
-        if (is_array($option)) {
72
-            foreach ($option as $value) {
73
-                if (!empty($return_val)) {
74
-                    $ret_val .= ', ';
75
-                }
76
-                $return_val .= $value;
77
-            }
64
+	/**
65
+	 * @param $option
66
+	 * @return string
67
+	 */
68
+	public function _array_or_string_for_javascript($option)
69
+	{
70
+		$return_val = '';
71
+		if (is_array($option)) {
72
+			foreach ($option as $value) {
73
+				if (!empty($return_val)) {
74
+					$ret_val .= ', ';
75
+				}
76
+				$return_val .= $value;
77
+			}
78 78
 
79
-            return '[' . $return_val . ']';
80
-        }
79
+			return '[' . $return_val . ']';
80
+		}
81 81
 
82
-        return "'$option'";
83
-    }
82
+		return "'$option'";
83
+	}
84 84
 
85
-    /**
86
-     * @param $options
87
-     * @return string
88
-     */
89
-    public function _options_for_javascript($options)
90
-    {
91
-        $return_val = '';
85
+	/**
86
+	 * @param $options
87
+	 * @return string
88
+	 */
89
+	public function _options_for_javascript($options)
90
+	{
91
+		$return_val = '';
92 92
 
93
-        if (is_array($options)) {
94
-            foreach ($options as $var => $val) {
95
-                if (!empty($return_val)) {
96
-                    $return_val .= ', ';
97
-                }
98
-                $return_val .= "$var:$val";
99
-            }
100
-        }
93
+		if (is_array($options)) {
94
+			foreach ($options as $var => $val) {
95
+				if (!empty($return_val)) {
96
+					$return_val .= ', ';
97
+				}
98
+				$return_val .= "$var:$val";
99
+			}
100
+		}
101 101
 
102
-        return '{' . $return_val . '}';
103
-    }
102
+		return '{' . $return_val . '}';
103
+	}
104 104
 }
Please login to merge, or discard this patch.
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@  discard block
 block discarded – undo
22 22
      */
23 23
     public function button_to_function($name, $function = null)
24 24
     {
25
-        return '<input type="button" value="' . $name . '" onclick="' . $function . '" />';
25
+        return '<input type="button" value="'.$name.'" onclick="'.$function.'" />';
26 26
     }
27 27
 
28 28
     /**
@@ -43,7 +43,7 @@  discard block
 block discarded – undo
43 43
      */
44 44
     public function tag($content)
45 45
     {
46
-        return '<script type="text/javascript">' . $content . '</script>';
46
+        return '<script type="text/javascript">'.$content.'</script>';
47 47
     }
48 48
 
49 49
     /**
@@ -54,7 +54,7 @@  discard block
 block discarded – undo
54 54
      */
55 55
     public function link_to_function($name, $function, $html_options = null)
56 56
     {
57
-        return '<a href="' . (isset($html_options['href']) ? $html_options['href'] : '#') . '" onclick="' . (isset($html_options['onclick']) ? $html_options['onclick'] . ';' : '') . $function . '; return false;" />' . $name . '</a>';
57
+        return '<a href="'.(isset($html_options['href']) ? $html_options['href'] : '#').'" onclick="'.(isset($html_options['onclick']) ? $html_options['onclick'].';' : '').$function.'; return false;" />'.$name.'</a>';
58 58
     }
59 59
 
60 60
     /////////////////////////////////////////////////////////////////////////////////////
@@ -76,7 +76,7 @@  discard block
 block discarded – undo
76 76
                 $return_val .= $value;
77 77
             }
78 78
 
79
-            return '[' . $return_val . ']';
79
+            return '['.$return_val.']';
80 80
         }
81 81
 
82 82
         return "'$option'";
@@ -99,6 +99,6 @@  discard block
 block discarded – undo
99 99
             }
100 100
         }
101 101
 
102
-        return '{' . $return_val . '}';
102
+        return '{'.$return_val.'}';
103 103
     }
104 104
 }
Please login to merge, or discard this patch.