@@ -38,10 +38,10 @@ discard block |
||
38 | 38 | $dropdown = $menu->get('dropdown', 'dropdown'); |
39 | 39 | $renderedMenu = "<div class=\"{$dropdown}\">\n"; |
40 | 40 | $class = $menu->get('class', 'btn btn-default dropdown-toggle'); |
41 | - $id = ($menu->has('id')) ? ' id="' . $menu->get('id') . '"' : ''; |
|
42 | - $labeledId = ($menu->has('id')) ? ' aria-labelledby="' . $menu->get('id') . '"' : ''; |
|
41 | + $id = ($menu->has('id')) ? ' id="'.$menu->get('id').'"' : ''; |
|
42 | + $labeledId = ($menu->has('id')) ? ' aria-labelledby="'.$menu->get('id').'"' : ''; |
|
43 | 43 | $caption = $menu->get('caption', ''); |
44 | - $icon = $menu->has('icon') ? '<span class="' . $menu->get('icon') . '" aria-hidden="true"></span> ' : ''; |
|
44 | + $icon = $menu->has('icon') ? '<span class="'.$menu->get('icon').'" aria-hidden="true"></span> ' : ''; |
|
45 | 45 | $renderedMenu .= <<<EOT |
46 | 46 | <button class="{$class}" type="button"{$id} data-toggle="dropdown" aria-haspopup="true" aria-expanded="true"> |
47 | 47 | {$icon}{$caption} <span class="caret"></span> |
@@ -74,13 +74,13 @@ discard block |
||
74 | 74 | $anchorEnd = ''; |
75 | 75 | $liClass = ' class="active"'; |
76 | 76 | if ($item->has('link')) { |
77 | - $anchorStart = '<a href="' . $this->xoops->url($item->get('link')) . '">'; |
|
77 | + $anchorStart = '<a href="'.$this->xoops->url($item->get('link')).'">'; |
|
78 | 78 | $anchorEnd = '</a>'; |
79 | 79 | $liClass = ''; |
80 | 80 | } |
81 | 81 | $caption = $item->get('caption', ''); |
82 | 82 | $icon = $item->has('icon') ? |
83 | - '<span class="' . $item->get('icon') . '" aria-hidden="true"></span> ' : ''; |
|
83 | + '<span class="'.$item->get('icon').'" aria-hidden="true"></span> ' : ''; |
|
84 | 84 | $renderedItems .= "<li{$liClass}>{$anchorStart}{$icon}{$caption}{$anchorEnd}</li>"; |
85 | 85 | break; |
86 | 86 | case Item::TYPE_LIST: |
@@ -197,7 +197,7 @@ discard block |
||
197 | 197 | |
198 | 198 | return $newuser; |
199 | 199 | } else { |
200 | - $xoops->redirect(\XoopsBaseConfig::get('url') . '/user.php', 5, $newuser->getHtmlErrors()); |
|
200 | + $xoops->redirect(\XoopsBaseConfig::get('url').'/user.php', 5, $newuser->getHtmlErrors()); |
|
201 | 201 | } |
202 | 202 | |
203 | 203 | return $ret; |
@@ -225,7 +225,7 @@ discard block |
||
225 | 225 | if ($member_handler->insertUser($xoopsUser)) { |
226 | 226 | return $xoopsUser; |
227 | 227 | } else { |
228 | - $xoops->redirect(\XoopsBaseConfig::get('url') . '/user.php', 5, $xoopsUser->getHtmlErrors()); |
|
228 | + $xoops->redirect(\XoopsBaseConfig::get('url').'/user.php', 5, $xoopsUser->getHtmlErrors()); |
|
229 | 229 | } |
230 | 230 | |
231 | 231 | return $ret; |
@@ -94,10 +94,10 @@ |
||
94 | 94 | if ($xoops->getConfig('debug_mode') == 1 || $xoops->getConfig('debug_mode') == 2) { |
95 | 95 | if (!empty($this->errors)) { |
96 | 96 | foreach ($this->errors as $errstr) { |
97 | - $ret .= $errstr . '<br/>'; |
|
97 | + $ret .= $errstr.'<br/>'; |
|
98 | 98 | } |
99 | 99 | } else { |
100 | - $ret .= \XoopsLocale::NONE . '<br />'; |
|
100 | + $ret .= \XoopsLocale::NONE.'<br />'; |
|
101 | 101 | } |
102 | 102 | $ret .= sprintf(\XoopsLocale::F_USING_AUTHENTICATION_METHOD, $this->auth_method); |
103 | 103 | } else { |
@@ -35,7 +35,7 @@ discard block |
||
35 | 35 | * |
36 | 36 | * @return AuthAbstract|bool Reference to the only instance of authentication class |
37 | 37 | */ |
38 | - public static function getAuthConnection($uname, $_force=false) |
|
38 | + public static function getAuthConnection($uname, $_force = false) |
|
39 | 39 | { |
40 | 40 | $xoops = \Xoops::getInstance(); |
41 | 41 | static $auth_instance; |
@@ -52,7 +52,7 @@ discard block |
||
52 | 52 | $xoops_auth_method = 'xoops'; |
53 | 53 | } |
54 | 54 | |
55 | - $class = '\Xoops\Auth\\' . ucfirst($xoops_auth_method); |
|
55 | + $class = '\Xoops\Auth\\'.ucfirst($xoops_auth_method); |
|
56 | 56 | if (!class_exists($class)) { |
57 | 57 | trigger_error(\XoopsLocale::EF_CLASS_NOT_FOUND, E_USER_ERROR); |
58 | 58 | return false; |
@@ -85,7 +85,7 @@ discard block |
||
85 | 85 | return false; |
86 | 86 | } |
87 | 87 | } else { |
88 | - $this->setErrors(ldap_errno($this->ds), ldap_err2str(ldap_errno($this->ds)) . '(' . $userUPN . ')'); |
|
88 | + $this->setErrors(ldap_errno($this->ds), ldap_err2str(ldap_errno($this->ds)).'('.$userUPN.')'); |
|
89 | 89 | } |
90 | 90 | } else { |
91 | 91 | $this->setErrors(0, \XoopsLocale::E_CANNOT_CONNECT_TO_SERVER); |
@@ -106,7 +106,7 @@ discard block |
||
106 | 106 | */ |
107 | 107 | public function getUPN($uname) |
108 | 108 | { |
109 | - $userDN = $uname . '@' . $this->ldap_domain_name; |
|
109 | + $userDN = $uname.'@'.$this->ldap_domain_name; |
|
110 | 110 | return $userDN; |
111 | 111 | } |
112 | 112 | } |
@@ -162,7 +162,7 @@ discard block |
||
162 | 162 | // We load the Xoops User database |
163 | 163 | return $this->loadXoopsUser($userDN, $uname, $pwd); |
164 | 164 | } else { |
165 | - $this->setErrors(ldap_errno($this->ds), ldap_err2str(ldap_errno($this->ds)) . '(' . $userDN . ')'); |
|
165 | + $this->setErrors(ldap_errno($this->ds), ldap_err2str(ldap_errno($this->ds)).'('.$userDN.')'); |
|
166 | 166 | } |
167 | 167 | } else { |
168 | 168 | $this->setErrors(0, \XoopsLocale::E_CANNOT_CONNECT_TO_SERVER); |
@@ -187,7 +187,7 @@ discard block |
||
187 | 187 | if (!ldap_bind($this->ds, $this->ldap_manager_dn, stripslashes($this->ldap_manager_pass))) { |
188 | 188 | $this->setErrors( |
189 | 189 | ldap_errno($this->ds), |
190 | - ldap_err2str(ldap_errno($this->ds)) . '(' . $this->ldap_manager_dn . ')' |
|
190 | + ldap_err2str(ldap_errno($this->ds)).'('.$this->ldap_manager_dn.')' |
|
191 | 191 | ); |
192 | 192 | |
193 | 193 | return false; |
@@ -206,7 +206,7 @@ discard block |
||
206 | 206 | )); |
207 | 207 | } |
208 | 208 | } else { |
209 | - $userDN = $this->ldap_loginldap_attr . '=' . $uname . ',' . $this->ldap_base_dn; |
|
209 | + $userDN = $this->ldap_loginldap_attr.'='.$uname.','.$this->ldap_base_dn; |
|
210 | 210 | } |
211 | 211 | |
212 | 212 | return $userDN; |
@@ -224,7 +224,7 @@ discard block |
||
224 | 224 | if ($this->ldap_filter_person != '') { |
225 | 225 | $filter = str_replace('@@loginname@@', $uname, $this->ldap_filter_person); |
226 | 226 | } else { |
227 | - $filter = $this->ldap_loginldap_attr . '=' . $uname; |
|
227 | + $filter = $this->ldap_loginldap_attr.'='.$uname; |
|
228 | 228 | } |
229 | 229 | |
230 | 230 | return $filter; |
@@ -248,7 +248,7 @@ discard block |
||
248 | 248 | if ($entries['count'] > 0) { |
249 | 249 | $xoopsUser = $provisHandler->sync($entries[0], $uname, $pwd); |
250 | 250 | } else { |
251 | - $this->setErrors(0, sprintf('loadXoopsUser - ' . \XoopsLocale::EF_ENTRY_NOT_READ, $userdn)); |
|
251 | + $this->setErrors(0, sprintf('loadXoopsUser - '.\XoopsLocale::EF_ENTRY_NOT_READ, $userdn)); |
|
252 | 252 | } |
253 | 253 | |
254 | 254 | return $xoopsUser; |
@@ -38,6 +38,6 @@ |
||
38 | 38 | $arg = trim($arg, " '\"\t\n\r\0\x0B"); |
39 | 39 | $path = (isset($xoTheme) && is_object($xoTheme)) ? $xoTheme->resourcePath($arg) : $arg; |
40 | 40 | //$xoops->events()->triggerEvent('debug.log', $path); |
41 | - return "<?php echo '" . addslashes($xoops->url($path)) . "'; ?>"; |
|
41 | + return "<?php echo '".addslashes($xoops->url($path))."'; ?>"; |
|
42 | 42 | |
43 | 43 | } |
@@ -27,29 +27,29 @@ |
||
27 | 27 | { |
28 | 28 | $_replace = array("\n"=>'<i>\n</i>', "\r"=>'<i>\r</i>', "\t"=>'<i>\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(' ', $depth * 2) . "<b>" . strtr($curr_key, $_replace) . "</b> => {$return}"; |
|
33 | + $results .= "<br>".str_repeat(' ', $depth * 2)."<b>".strtr($curr_key, $_replace)."</b> => {$return}"; |
|
34 | 34 | } |
35 | 35 | } else if (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(' ', $depth * 2) . "<b>{$curr_key}</b> => {$return}"; |
|
44 | + $results .= "<br>".str_repeat(' ', $depth * 2)."<b>{$curr_key}</b> => {$return}"; |
|
45 | 45 | } |
46 | 46 | } else if (is_resource($var)) { |
47 | - $results = '<i>' . (string)$var . '</i>'; |
|
47 | + $results = '<i>'.(string)$var.'</i>'; |
|
48 | 48 | } else if (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 | } |
@@ -33,7 +33,7 @@ |
||
33 | 33 | $url = trim($arg, " '\"\t\n\r\0\x0B"); |
34 | 34 | |
35 | 35 | if (substr($url, 0, 1) === '/') { |
36 | - $url = 'www' . $url; |
|
36 | + $url = 'www'.$url; |
|
37 | 37 | } |
38 | - return "<?php echo '" . addslashes(htmlspecialchars($xoops->url($url))) . "'; ?>"; |
|
38 | + return "<?php echo '".addslashes(htmlspecialchars($xoops->url($url)))."'; ?>"; |
|
39 | 39 | } |