@@ -15,13 +15,13 @@ |
||
15 | 15 | |
16 | 16 | use OcLegacy\Util\PasswordCrypt; |
17 | 17 | |
18 | -define('LOGIN_UNKNOWN_ERROR', -1); // unkown error occured |
|
19 | -define('LOGIN_OK', 0); // login succeeded |
|
20 | -define('LOGIN_BADUSERPW', 1); // bad username or password |
|
21 | -define('LOGIN_TOOMUCHLOGINS', 2); // too many logins in short time |
|
22 | -define('LOGIN_USERNOTACTIVE', 3); // the useraccount locked |
|
18 | +define('LOGIN_UNKNOWN_ERROR', -1); // unkown error occured |
|
19 | +define('LOGIN_OK', 0); // login succeeded |
|
20 | +define('LOGIN_BADUSERPW', 1); // bad username or password |
|
21 | +define('LOGIN_TOOMUCHLOGINS', 2); // too many logins in short time |
|
22 | +define('LOGIN_USERNOTACTIVE', 3); // the useraccount locked |
|
23 | 23 | define('LOGIN_EMPTY_USERPASSWORD', 4); // given username/password was empty |
24 | -define('LOGIN_LOGOUT_OK', 5); // logout was successfull |
|
24 | +define('LOGIN_LOGOUT_OK', 5); // logout was successfull |
|
25 | 25 | |
26 | 26 | // login times in seconds |
27 | 27 | define('LOGIN_TIME', 60 * 60); |
@@ -1590,7 +1590,7 @@ discard block |
||
1590 | 1590 | global $opt; |
1591 | 1591 | |
1592 | 1592 | // get number of possible rates |
1593 | - return (int) floor($this->getStatFound() * $opt['logic']['rating']['percentageOfFounds'] / 100); |
|
1593 | + return (int)floor($this->getStatFound() * $opt['logic']['rating']['percentageOfFounds'] / 100); |
|
1594 | 1594 | } |
1595 | 1595 | |
1596 | 1596 | public function allowRatings() |
@@ -1603,7 +1603,7 @@ discard block |
||
1603 | 1603 | { |
1604 | 1604 | global $opt; |
1605 | 1605 | |
1606 | - return (int) ($opt['logic']['rating']['percentageOfFounds'] - ($this->getStatFound() % $opt['logic']['rating']['percentageOfFounds'])); |
|
1606 | + return (int)($opt['logic']['rating']['percentageOfFounds'] - ($this->getStatFound() % $opt['logic']['rating']['percentageOfFounds'])); |
|
1607 | 1607 | } |
1608 | 1608 | |
1609 | 1609 | public function showStatFounds() |
@@ -371,7 +371,7 @@ |
||
371 | 371 | $tpl->assign('hidden', $record['hidden'] <= 0 ? '0' : $record['hidden']); |
372 | 372 | $tpl->assign('active', $active); |
373 | 373 | $tpl->assign('recommended', sql_value("SELECT COUNT(*) FROM `cache_rating` WHERE `user_id`='&1'", 0, $userid)); |
374 | -$tpl->assign('maxrecommended', (int) floor($record['found'] * $opt['logic']['rating']['percentageOfFounds'] / 100)); |
|
374 | +$tpl->assign('maxrecommended', (int)floor($record['found'] * $opt['logic']['rating']['percentageOfFounds'] / 100)); |
|
375 | 375 | $tpl->assign('show_statistics', $show_statistics); |
376 | 376 | $tpl->assign('show_oconly81', $show_oconly81); |
377 | 377 |
@@ -163,7 +163,7 @@ |
||
163 | 163 | $rating_msg = mb_ereg_replace('{max}', floor($user_founds * $rating_percentage / 100), $rating_msg); |
164 | 164 | $rating_msg = mb_ereg_replace('{curr}', $user_tops, $rating_msg); |
165 | 165 | } else { |
166 | - $anzahl = (int) (($user_tops + 1 - ($user_founds * $rating_percentage / 100)) / ($rating_percentage / 100)); |
|
166 | + $anzahl = (int)(($user_tops + 1 - ($user_founds * $rating_percentage / 100)) / ($rating_percentage / 100)); |
|
167 | 167 | if ($anzahl > 1) { |
168 | 168 | $rating_msg = mb_ereg_replace('{anzahl}', $anzahl, $rating_too_few_founds); |
169 | 169 | } else { |
@@ -52,7 +52,7 @@ |
||
52 | 52 | * @param bool $sChangeFreq |
53 | 53 | * @param float $nPriority |
54 | 54 | */ |
55 | - public function write($sFile, $dLastMod, $sChangeFreq = false, $nPriority ) |
|
55 | + public function write($sFile, $dLastMod, $sChangeFreq = false, $nPriority) |
|
56 | 56 | { |
57 | 57 | if (!$nPriority) { $nPriority = 0.5; } |
58 | 58 | if ($sChangeFreq == false) { |