Test Failed
Pull Request — master (#589)
by Richard
08:35
created
htdocs/class/smarty/xoops_plugins/compiler.xoAppUrl.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -57,7 +57,7 @@  discard block
 block discarded – undo
57 57
     @list($url, $params) = explode(' ', $argStr, 2);
58 58
 
59 59
     if (substr($url, 0, 1) === '/') {
60
-        $url = 'www' . $url;
60
+        $url = 'www'.$url;
61 61
     }
62 62
     // Static URL generation
63 63
     if (strpos($argStr, '$') === false && $url !== '.') {
@@ -72,7 +72,7 @@  discard block
 block discarded – undo
72 72
         }
73 73
         $url = $xoops->path($url, true);
74 74
 
75
-        return "echo '" . addslashes(htmlspecialchars($url)) . "';";
75
+        return "echo '".addslashes(htmlspecialchars($url))."';";
76 76
     }
77 77
     // Dynamic URL generation
78 78
     $str = "\$xoops->path('$url', true)";
@@ -83,7 +83,7 @@  discard block
 block discarded – undo
83 83
         $params = $compiler->_parse_attrs($params, false);
84 84
         $str    = "\$xoops->buildUrl($str, array(\n";
85 85
         foreach ($params as $k => $v) {
86
-            $str .= var_export($k, true) . " => $v,\n";
86
+            $str .= var_export($k, true)." => $v,\n";
87 87
         }
88 88
         $str .= '))';
89 89
     }
Please login to merge, or discard this patch.
htdocs/class/smarty/xoops_plugins/function.xoops_link.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -68,7 +68,7 @@  discard block
 block discarded – undo
68 68
             $urlstr = "$urlstr&{$var['name']}={$var['value']}";
69 69
         }
70 70
         if (strlen($urlstr) > 0) {
71
-            $urlstr = '?' . substr($urlstr, 1);
71
+            $urlstr = '?'.substr($urlstr, 1);
72 72
         }
73 73
     }
74 74
 
@@ -90,8 +90,8 @@  discard block
 block discarded – undo
90 90
     }
91 91
     // Now, return entire link URL :-)
92 92
     if (empty($module)) {
93
-        echo XOOPS_URL . "/{$page}" . $urlstr;
93
+        echo XOOPS_URL."/{$page}".$urlstr;
94 94
     } else {
95
-        echo XOOPS_URL . "/modules/{$module}/{$page}" . $urlstr;
95
+        echo XOOPS_URL."/modules/{$module}/{$page}".$urlstr;
96 96
     }
97 97
 }
Please login to merge, or discard this patch.
htdocs/class/smarty/xoops_plugins/compiler.includeq.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -73,13 +73,13 @@
 block discarded – undo
73 73
     }
74 74
 
75 75
     //$output .= "\$_smarty_tpl_vars = \$this->_tpl_vars;\n";
76
-    $_params = "array('smarty_include_tpl_file' => " . $include_file . ", 'smarty_include_vars' => array(" . implode(',', (array)$arg_list) . '))';
76
+    $_params = "array('smarty_include_tpl_file' => ".$include_file.", 'smarty_include_vars' => array(".implode(',', (array)$arg_list).'))';
77 77
     $output .= "\$this->_smarty_include($_params);\n";
78 78
     //"\$this->_tpl_vars = \$_smarty_tpl_vars;\n" .
79 79
     //"unset(\$_smarty_tpl_vars);\n";
80 80
 
81 81
     if (isset($assign_var)) {
82
-        $output .= "\$this->assign(" . $assign_var . ", ob_get_contents()); ob_end_clean();\n";
82
+        $output .= "\$this->assign(".$assign_var.", ob_get_contents()); ob_end_clean();\n";
83 83
     }
84 84
 
85 85
     //$output .= '';
Please login to merge, or discard this patch.
htdocs/class/smarty/xoops_plugins/compiler.xoModuleIconsBookmarks.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -28,14 +28,14 @@
 block discarded – undo
28 28
     //    if ( $icons == '' ) $icons = 'default';
29 29
 
30 30
     if (file_exists($xoops->path('Frameworks/moduleclasses/icons/bookmarks/index.html'))) {
31
-        $url = $xoops->url('Frameworks/moduleclasses/icons/bookmarks/' . $argStr);
31
+        $url = $xoops->url('Frameworks/moduleclasses/icons/bookmarks/'.$argStr);
32 32
     } else {
33
-        if (file_exists($xoops->path('modules/system/images/icons/default/' . $argStr))) {
34
-            $url = $xoops->url('modules/system/images/icons/default/' . $argStr);
33
+        if (file_exists($xoops->path('modules/system/images/icons/default/'.$argStr))) {
34
+            $url = $xoops->url('modules/system/images/icons/default/'.$argStr);
35 35
         } else {
36 36
             $url = $xoops->url('modules/system/images/icons/default/xoops/xoops.png');
37 37
         }
38 38
     }
39 39
 
40
-    return "\necho '" . addslashes($url) . "';";
40
+    return "\necho '".addslashes($url)."';";
41 41
 }
Please login to merge, or discard this patch.
htdocs/class/smarty/xoops_plugins/compiler.xoModuleIcons32.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -25,14 +25,14 @@
 block discarded – undo
25 25
     global $xoops, $xoTheme;
26 26
 
27 27
     if (file_exists($xoops->path('Frameworks/moduleclasses/icons/32/index.html'))) {
28
-        $url = $xoops->url('Frameworks/moduleclasses/icons/32/' . $argStr);
28
+        $url = $xoops->url('Frameworks/moduleclasses/icons/32/'.$argStr);
29 29
     } else {
30
-        if (file_exists($xoops->path('modules/system/images/icons/default/' . $argStr))) {
31
-            $url = $xoops->url('modules/system/images/icons/default/' . $argStr);
30
+        if (file_exists($xoops->path('modules/system/images/icons/default/'.$argStr))) {
31
+            $url = $xoops->url('modules/system/images/icons/default/'.$argStr);
32 32
         } else {
33 33
             $url = $xoops->url('modules/system/images/icons/default/xoops/xoops.png');
34 34
         }
35 35
     }
36 36
 
37
-    return "\necho '" . addslashes($url) . "';";
37
+    return "\necho '".addslashes($url)."';";
38 38
 }
Please login to merge, or discard this patch.
htdocs/class/smarty/xoops_plugins/resource.db.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -126,10 +126,10 @@
 block discarded – undo
126 126
             break;
127 127
     }
128 128
     // First, check for an overloaded version within the theme folder
129
-    $filepath = $directory . "/{$theme}/modules/{$module}/{$path}{$tpl_name}";
129
+    $filepath = $directory."/{$theme}/modules/{$module}/{$path}{$tpl_name}";
130 130
     if (!file_exists($filepath)) {
131 131
         // If no custom version exists, get the tpl from its default location
132
-        $filepath = XOOPS_ROOT_PATH . "/modules/{$module}/templates/{$path}{$tpl_name}";
132
+        $filepath = XOOPS_ROOT_PATH."/modules/{$module}/templates/{$path}{$tpl_name}";
133 133
         if (!file_exists($filepath)) {
134 134
             return $cache[$tpl_name] = $tplobj;
135 135
         }
Please login to merge, or discard this patch.
htdocs/class/smarty/xoops_plugins/compiler.xoImgUrl.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -38,5 +38,5 @@
 block discarded – undo
38 38
     global $xoops, $xoTheme;
39 39
     $path = (isset($xoTheme) && is_object($xoTheme)) ? $xoTheme->resourcePath($argStr) : $argStr;
40 40
 
41
-    return "\necho '" . addslashes($xoops->url($path)) . "';";
41
+    return "\necho '".addslashes($xoops->url($path))."';";
42 42
 }
Please login to merge, or discard this patch.
htdocs/class/smarty/xoops_plugins/function.xoPageNav.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -36,14 +36,14 @@
 block discarded – undo
36 36
 
37 37
     //TODO Remove this hardocded strings
38 38
     if ($currentPage > 1) {
39
-        $str .= '<a href="' . $xoops->url(str_replace('%s', $offset - $pageSize, $url)) . '">Previous</a>';
39
+        $str .= '<a href="'.$xoops->url(str_replace('%s', $offset - $pageSize, $url)).'">Previous</a>';
40 40
     }
41 41
     for ($i = $minPage; $i <= $maxPage; ++$i) {
42 42
         $tgt = htmlspecialchars($xoops->url(str_replace('%s', ($i - 1) * $pageSize, $url)), ENT_QUOTES);
43 43
         $str .= "<a href='$tgt'>$i</a>";
44 44
     }
45 45
     if ($currentPage < $lastPage) {
46
-        $str .= '<a href="' . $xoops->url(str_replace('%s', $offset + $pageSize, $url)) . '">Next</a>';
46
+        $str .= '<a href="'.$xoops->url(str_replace('%s', $offset + $pageSize, $url)).'">Next</a>';
47 47
     }
48 48
     $class = @!empty($class) ? htmlspecialchars($class, ENT_QUOTES) : 'pagenav';
49 49
 
Please login to merge, or discard this patch.
htdocs/class/smarty/xoops_plugins/modifier.debug_print_var.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -27,29 +27,29 @@
 block discarded – undo
27 27
 {
28 28
     $_replace = array("\n" => '<i>&#92;n</i>', "\r" => '<i>&#92;r</i>', "\t" => '<i>&#92;t</i>');
29 29
     if (is_array($var)) {
30
-        $results = '<b>Array (' . count($var) . ')</b>';
30
+        $results = '<b>Array ('.count($var).')</b>';
31 31
         foreach ($var as $curr_key => $curr_val) {
32 32
             $return = smarty_modifier_debug_print_var($curr_val, $depth + 1, $length);
33
-            $results .= '<br>' . str_repeat('&nbsp;', $depth * 2) . '<b>' . strtr($curr_key, $_replace) . "</b> =&gt; {$return}";
33
+            $results .= '<br>'.str_repeat('&nbsp;', $depth * 2).'<b>'.strtr($curr_key, $_replace)."</b> =&gt; {$return}";
34 34
         }
35 35
     } elseif (is_object($var)) {
36 36
         $object_vars = get_object_vars($var);
37
-        $results     = '<b>' . get_class($var) . ' Object (' . count($object_vars) . ')</b>';
37
+        $results     = '<b>'.get_class($var).' Object ('.count($object_vars).')</b>';
38 38
         foreach ($object_vars as $curr_key => $curr_val) {
39 39
             if (is_object($curr_val)) {
40
-                $return = '[object ' . get_class($curr_val) . ']';
40
+                $return = '[object '.get_class($curr_val).']';
41 41
             } else {
42 42
                 $return = smarty_modifier_debug_print_var($curr_val, $depth + 1, $length);
43 43
             }
44
-            $results .= '<br>' . str_repeat('&nbsp;', $depth * 2) . "<b>{$curr_key}</b> =&gt; {$return}";
44
+            $results .= '<br>'.str_repeat('&nbsp;', $depth * 2)."<b>{$curr_key}</b> =&gt; {$return}";
45 45
         }
46 46
     } elseif (is_resource($var)) {
47
-        $results = '<i>' . (string)$var . '</i>';
47
+        $results = '<i>'.(string)$var.'</i>';
48 48
     } elseif (empty($var) && $var != '0') {
49 49
         $results = '<i>empty</i>';
50 50
     } else {
51 51
         if (strlen($var) > $length) {
52
-            $results = substr($var, 0, $length - 3) . '...';
52
+            $results = substr($var, 0, $length - 3).'...';
53 53
         } else {
54 54
             $results = $var;
55 55
         }
Please login to merge, or discard this patch.