Completed
Pull Request — development (#472)
by Wojciech
06:31
created
htdocs/lib2/login.class.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -15,13 +15,13 @@
 block discarded – undo
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);
Please login to merge, or discard this patch.
htdocs/viewprofile.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -371,7 +371,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
htdocs/editlog.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -163,7 +163,7 @@
 block discarded – undo
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 {
Please login to merge, or discard this patch.
htdocs/src/OcLegacy/Cronjobs/SiteMaps.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -53,7 +53,7 @@
 block discarded – undo
53 53
         $page = $opt['page'];
54 54
         $url = ($page['https']['mode'] == HTTPS_ENFORCED ? $page['absolute_https_url'] : $page['absolute_http_url']);
55 55
 
56
-        $url = urlencode($url. 'sitemap.xml');
56
+        $url = urlencode($url . 'sitemap.xml');
57 57
 
58 58
         $this->pingSearchEngine('http://www.google.com/webmasters/ping?sitemap=' . $url);
59 59
         $this->pingSearchEngine(
Please login to merge, or discard this patch.
htdocs/src/OcLegacy/Util/SiteMapXml.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -62,7 +62,7 @@
 block discarded – undo
62 62
         $sXML .= '<lastmod>' . xmlentities(date('c', $dLastMod)) . '</lastmod>';
63 63
         $sXML .= '<changefreq>' . xmlentities($sChangeFreq) . '</changefreq>';
64 64
         $sXML .= '<priority>' . xmlentities($nPriority) . '</priority>';
65
-        $sXML .= '</url>'."\n";
65
+        $sXML .= '</url>' . "\n";
66 66
 
67 67
         $this->writeInternal($sXML);
68 68
     }
Please login to merge, or discard this patch.
htdocs/lib2/logic/user.class.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1591,7 +1591,7 @@  discard block
 block discarded – undo
1591 1591
         global $opt;
1592 1592
 
1593 1593
         // get number of possible rates
1594
-        return (int) floor($this->getStatFound() * $opt['logic']['rating']['percentageOfFounds'] / 100);
1594
+        return (int)floor($this->getStatFound() * $opt['logic']['rating']['percentageOfFounds'] / 100);
1595 1595
     }
1596 1596
 
1597 1597
     public function allowRatings()
@@ -1605,7 +1605,7 @@  discard block
 block discarded – undo
1605 1605
         global $opt;
1606 1606
         $rating = $opt['logic']['rating'];
1607 1607
 
1608
-        return (int) ($rating['percentageOfFounds'] - ($this->getStatFound() % $rating['percentageOfFounds']));
1608
+        return (int)($rating['percentageOfFounds'] - ($this->getStatFound() % $rating['percentageOfFounds']));
1609 1609
     }
1610 1610
 
1611 1611
     public function showStatFounds()
Please login to merge, or discard this patch.
htdocs/util2/cron/modules/geokrety.class.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -292,7 +292,7 @@  discard block
 block discarded – undo
292 292
 
293 293
     /**
294 294
      * @param integer $id
295
-     * @param $name
295
+     * @param string $name
296 296
      */
297 297
     public function checkGeoKretType($id, $name)
298 298
     {
@@ -306,7 +306,7 @@  discard block
 block discarded – undo
306 306
 
307 307
     /**
308 308
      * @param integer $id
309
-     * @param $name
309
+     * @param string $name
310 310
      */
311 311
     public function checkUser($id, $name)
312 312
     {
@@ -320,7 +320,7 @@  discard block
 block discarded – undo
320 320
 
321 321
     /**
322 322
      * @param integer $id
323
-     * @param $name
323
+     * @param string $name
324 324
      */
325 325
     public function checkMoveType($id, $name)
326 326
     {
Please login to merge, or discard this patch.
htdocs/src/OcLegacy/Cronjobs/OkapiCleanup.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@
 block discarded – undo
22 22
     /**
23 23
      * @param string $okapiVarDir
24 24
      */
25
-    public function __construct($okapiVarDir = __DIR__.'/../../../var/okapi')
25
+    public function __construct($okapiVarDir = __DIR__ . '/../../../var/okapi')
26 26
     {
27 27
         $this->okapiVarDir = $okapiVarDir;
28 28
     }
Please login to merge, or discard this patch.