Completed
Push — master ( 2f8aec...b781ca )
by Richard
16s
created
xoops_lib/smarty/xoops_plugins/function.xoPageNav.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -30,14 +30,14 @@
 block discarded – undo
30 30
 
31 31
     //TODO Remove this hardocded strings
32 32
     if ($currentPage > 1) {
33
-        $str .= '<a href="' . $xoops->url(str_replace( '%s', $offset - $pageSize, $url)) . '">Previous</a>';
33
+        $str .= '<a href="'.$xoops->url(str_replace('%s', $offset - $pageSize, $url)).'">Previous</a>';
34 34
     }
35 35
     for ($i = $minPage; $i <= $maxPage; ++$i) {
36 36
         $tgt = htmlspecialchars($xoops->url(str_replace('%s', ($i - 1) * $pageSize, $url)), ENT_QUOTES);
37 37
         $str .= "<a href='$tgt'>$i</a>";
38 38
     }
39 39
     if ($currentPage < $lastPage) {
40
-        $str .= '<a href="' . $xoops->url(str_replace('%s', $offset + $pageSize, $url)) . '">Next</a>';
40
+        $str .= '<a href="'.$xoops->url(str_replace('%s', $offset + $pageSize, $url)).'">Next</a>';
41 41
     }
42 42
     $class = @!empty($class) ? htmlspecialchars($class, ENT_QUOTES) : 'pagenav';
43 43
 
Please login to merge, or discard this patch.
xoops_lib/smarty/xoops_plugins/resource.db.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -106,12 +106,12 @@
 block discarded – undo
106 106
                 break;
107 107
         }
108 108
         // First, check for an overloaded version within the theme folder
109
-        $filepath = $directory . "/{$theme}/modules/{$module}/{$path}{$tpl_name}";
109
+        $filepath = $directory."/{$theme}/modules/{$module}/{$path}{$tpl_name}";
110 110
         if (!file_exists($filepath)) {
111 111
             // If no custom version exists, get the tpl from its default location
112
-            $filepath = \XoopsBaseConfig::get('root-path') . "/modules/{$module}/templates/{$path}{$tpl_name}";
112
+            $filepath = \XoopsBaseConfig::get('root-path')."/modules/{$module}/templates/{$path}{$tpl_name}";
113 113
             if (!file_exists($filepath)) {
114
-                return $cache[$tpl_name] = $tplobj ;
114
+                return $cache[$tpl_name] = $tplobj;
115 115
             }
116 116
         }
117 117
         return $cache[$tpl_name] = $filepath;
Please login to merge, or discard this patch.
xoops_lib/smarty/xoops_plugins/compiler.xoAdminNav.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -27,12 +27,12 @@
 block discarded – undo
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
 }
Please login to merge, or discard this patch.
xoops_lib/smarty/xoops_plugins/block.assets.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -52,7 +52,7 @@
 block discarded – undo
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
         }
Please login to merge, or discard this patch.
xoops_lib/smarty/xoops_plugins/function.xoMemberInfo.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -65,10 +65,10 @@
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
xoops_lib/smarty/xoops_plugins/block.noshortcodes.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@
 block discarded – undo
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);
Please login to merge, or discard this patch.
xoops_lib/smarty/xoops_plugins/outputfilter.shortcodes.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -7,7 +7,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 
Please login to merge, or discard this patch.
xoops_lib/smarty/xoops_plugins/compiler.xoModuleIconsBookmarks.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -22,13 +22,13 @@
 block discarded – undo
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
 }
Please login to merge, or discard this patch.
xoops_lib/smarty/xoops_plugins/compiler.xoModuleIcons16.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -24,13 +24,13 @@
 block discarded – undo
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
 }
Please login to merge, or discard this patch.