@@ -27,12 +27,12 @@ |
||
27 | 27 | } |
28 | 28 | |
29 | 29 | $url = ''; |
30 | - if (XoopsLoad::fileExists($xoops->path('modules/system/images/breadcrumb/' . $icons . '/index.html'))) { |
|
31 | - $url = $xoops->url('modules/system/images/breadcrumb/' . $icons . '/' . $argStr); |
|
30 | + if (XoopsLoad::fileExists($xoops->path('modules/system/images/breadcrumb/'.$icons.'/index.html'))) { |
|
31 | + $url = $xoops->url('modules/system/images/breadcrumb/'.$icons.'/'.$argStr); |
|
32 | 32 | } else { |
33 | - if (XoopsLoad::fileExists($xoops->path('modules/system/images/breadcrumb/default/' . $argStr))) { |
|
34 | - $url = $xoops->url('modules/system/images/icons/default/' . $argStr); |
|
33 | + if (XoopsLoad::fileExists($xoops->path('modules/system/images/breadcrumb/default/'.$argStr))) { |
|
34 | + $url = $xoops->url('modules/system/images/icons/default/'.$argStr); |
|
35 | 35 | } |
36 | 36 | } |
37 | - return "\necho '" . addslashes($url) . "';"; |
|
37 | + return "\necho '".addslashes($url)."';"; |
|
38 | 38 | } |
@@ -52,7 +52,7 @@ |
||
52 | 52 | |
53 | 53 | $output = strtolower($params['output']); |
54 | 54 | |
55 | - $debug = isset($params['debug'])? (boolean)$params['debug'] : false; |
|
55 | + $debug = isset($params['debug']) ? (boolean)$params['debug'] : false; |
|
56 | 56 | if ($debug) { |
57 | 57 | $xoops->assets()->setDebug(); |
58 | 58 | } |
@@ -65,10 +65,10 @@ |
||
65 | 65 | $member_info = array(); |
66 | 66 | } |
67 | 67 | foreach ($infos as $info) { |
68 | - if (!array_key_exists($info, $member_info) && @$_SESSION['xoops_member_info'][$info . '_expire'] < $time) { |
|
68 | + if (!array_key_exists($info, $member_info) && @$_SESSION['xoops_member_info'][$info.'_expire'] < $time) { |
|
69 | 69 | $member_info[$info] = $xoops->user->getVar($info, 'E'); |
70 | 70 | $_SESSION['xoops_member_info'][$info] = $member_info[$info]; |
71 | - $_SESSION['xoops_member_info'][$info . '_expire'] = $time + 60; |
|
71 | + $_SESSION['xoops_member_info'][$info.'_expire'] = $time + 60; |
|
72 | 72 | } |
73 | 73 | } |
74 | 74 | } |
@@ -26,7 +26,7 @@ |
||
26 | 26 | function smarty_block_noshortcodes($params, $content, $template, &$repeat) |
27 | 27 | { |
28 | 28 | // only output on the closing tag |
29 | - if(!$repeat){ |
|
29 | + if (!$repeat) { |
|
30 | 30 | if (isset($content)) { |
31 | 31 | $ts = \Xoops\Core\Text\Sanitizer::getInstance(); |
32 | 32 | return $ts->escapeShortCodes($content); |
@@ -7,7 +7,7 @@ discard block |
||
7 | 7 | $shortcodes = \Xoops\Core\Text\Sanitizer::getInstance()->getShortCodes(); |
8 | 8 | $shortcodes->addShortcode( |
9 | 9 | 'nosc42', |
10 | - function ($attributes, $content, $tagName) { |
|
10 | + function($attributes, $content, $tagName) { |
|
11 | 11 | return base64_decode($content); |
12 | 12 | } |
13 | 13 | ); |
@@ -17,13 +17,13 @@ discard block |
||
17 | 17 | |
18 | 18 | $text = preg_replace_callback( |
19 | 19 | $scPattern, |
20 | - function ($innerMatches) { |
|
21 | - return '[nosc42]' . base64_encode($innerMatches[1]) . '[/nosc42]'; |
|
20 | + function($innerMatches) { |
|
21 | + return '[nosc42]'.base64_encode($innerMatches[1]).'[/nosc42]'; |
|
22 | 22 | }, |
23 | 23 | $output |
24 | 24 | ); |
25 | - if ($text===null) { |
|
26 | - trigger_error('preg_last_error=' . preg_last_error(), E_USER_WARNING); |
|
25 | + if ($text === null) { |
|
26 | + trigger_error('preg_last_error='.preg_last_error(), E_USER_WARNING); |
|
27 | 27 | return $output; |
28 | 28 | } |
29 | 29 |
@@ -22,13 +22,13 @@ |
||
22 | 22 | $xoops = Xoops::getInstance(); |
23 | 23 | |
24 | 24 | if (XoopsLoad::fileExists($xoops->path('media/xoops/images/icons/bookmarks/index.html'))) { |
25 | - $url = $xoops->url('media/xoops/images/icons/bookmarks/' . $argStr); |
|
25 | + $url = $xoops->url('media/xoops/images/icons/bookmarks/'.$argStr); |
|
26 | 26 | } else { |
27 | - if (XoopsLoad::fileExists($xoops->path('modules/system/images/icons/default/' . $argStr))) { |
|
28 | - $url = $xoops->url('modules/system/images/icons/default/' . $argStr); |
|
27 | + if (XoopsLoad::fileExists($xoops->path('modules/system/images/icons/default/'.$argStr))) { |
|
28 | + $url = $xoops->url('modules/system/images/icons/default/'.$argStr); |
|
29 | 29 | } else { |
30 | 30 | $url = $xoops->url('modules/system/images/icons/default/xoops/xoops.png'); |
31 | 31 | } |
32 | 32 | } |
33 | - return "\necho '" . addslashes($url) . "';"; |
|
33 | + return "\necho '".addslashes($url)."';"; |
|
34 | 34 | } |
@@ -24,13 +24,13 @@ |
||
24 | 24 | $ico = trim($arg, " '\"\t\n\r\0\x0B"); |
25 | 25 | |
26 | 26 | if (XoopsLoad::fileExists($xoops->path('media/xoops/images/icons/16/index.html'))) { |
27 | - $url = $xoops->url('media/xoops/images/icons/16/' . $ico); |
|
27 | + $url = $xoops->url('media/xoops/images/icons/16/'.$ico); |
|
28 | 28 | } else { |
29 | - if (XoopsLoad::fileExists($xoops->path('modules/system/images/icons/default/' . $ico))) { |
|
30 | - $url = $xoops->url('modules/system/images/icons/default/' . $ico); |
|
29 | + if (XoopsLoad::fileExists($xoops->path('modules/system/images/icons/default/'.$ico))) { |
|
30 | + $url = $xoops->url('modules/system/images/icons/default/'.$ico); |
|
31 | 31 | } else { |
32 | 32 | $url = $xoops->url('modules/system/images/icons/default/xoops/xoops2.png'); |
33 | 33 | } |
34 | 34 | } |
35 | - return "<?php echo '" . addslashes($url) . "'; ?>"; |
|
35 | + return "<?php echo '".addslashes($url)."'; ?>"; |
|
36 | 36 | } |
@@ -73,7 +73,7 @@ discard block |
||
73 | 73 | $urlstr = "$urlstr&{$var['name']}={$var['value']}"; |
74 | 74 | } |
75 | 75 | if (strlen($urlstr) > 0) { |
76 | - $urlstr = '?' . substr($urlstr, 1); |
|
76 | + $urlstr = '?'.substr($urlstr, 1); |
|
77 | 77 | } |
78 | 78 | } |
79 | 79 | |
@@ -94,8 +94,8 @@ discard block |
||
94 | 94 | } |
95 | 95 | // Now, return entire link URL :-) |
96 | 96 | if (empty($module)) { |
97 | - echo $xoops->url($page . $urlstr); |
|
97 | + echo $xoops->url($page.$urlstr); |
|
98 | 98 | } else { |
99 | - echo $xoops->url("modules/{$module}/{$page}" . $urlstr); |
|
99 | + echo $xoops->url("modules/{$module}/{$page}".$urlstr); |
|
100 | 100 | } |
101 | 101 | } |
@@ -28,14 +28,14 @@ |
||
28 | 28 | $arg = reset($params); |
29 | 29 | $ico = trim($arg, " '\"\t\n\r\0\x0B"); |
30 | 30 | |
31 | - if (XoopsLoad::fileExists($xoops->path('media/xoops/images/icons/32/' . $icons . '/index.html'))) { |
|
32 | - $url = $xoops->url('media/xoops/images/icons/32/' . $icons . '/' . $ico); |
|
31 | + if (XoopsLoad::fileExists($xoops->path('media/xoops/images/icons/32/'.$icons.'/index.html'))) { |
|
32 | + $url = $xoops->url('media/xoops/images/icons/32/'.$icons.'/'.$ico); |
|
33 | 33 | } else { |
34 | - if (XoopsLoad::fileExists($xoops->path('modules/system/images/icons/default/' . $ico))) { |
|
35 | - $url = $xoops->url('modules/system/images/icons/default/' . $ico); |
|
34 | + if (XoopsLoad::fileExists($xoops->path('modules/system/images/icons/default/'.$ico))) { |
|
35 | + $url = $xoops->url('modules/system/images/icons/default/'.$ico); |
|
36 | 36 | } else { |
37 | 37 | $url = $xoops->url('modules/system/images/icons/default/xoops/xoops.png'); |
38 | 38 | } |
39 | 39 | } |
40 | - return "<?php echo '" . addslashes($url) . "'; ?>"; |
|
40 | + return "<?php echo '".addslashes($url)."'; ?>"; |
|
41 | 41 | } |