Completed
Pull Request — development (#569)
by Mirko
07:01
created
htdocs/util/watchlist/runwatch.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -608,7 +608,7 @@
 block discarded – undo
608 608
         $pid_daemon = fgets($pidfile, 20);
609 609
         fclose($pidfile);
610 610
 
611
-        $pid_daemon = (int) $pid_daemon;
611
+        $pid_daemon = (int)$pid_daemon;
612 612
 
613 613
         // process running?
614 614
         if (posix_kill($pid_daemon, 0)) {
Please login to merge, or discard this patch.
Doc Comments   +7 added lines patch added patch discarded remove patch
@@ -27,6 +27,10 @@  discard block
 block discarded – undo
27 27
 }
28 28
 
29 29
 if (!function_exists('get_logtype_name')) {
30
+
31
+    /**
32
+     * @return string
33
+     */
30 34
     function get_logtype_name($logtype, $language)
31 35
     {
32 36
         return sqlValue(
@@ -504,6 +508,9 @@  discard block
 block discarded – undo
504 508
     );
505 509
 }
506 510
 
511
+/**
512
+ * @param string $watchtext
513
+ */
507 514
 function insert_recommendation($rLog, $language, $watchtext)
508 515
 {
509 516
     global $translate;
Please login to merge, or discard this patch.
htdocs/lib2/logic/getNew.class.php 1 patch
Doc Comments   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@  discard block
 block discarded – undo
17 17
     }
18 18
 
19 19
     /**
20
-     * @param $userCountry
20
+     * @param string $userCountry
21 21
      */
22 22
     public function set_userCountry($userCountry)
23 23
     {
@@ -41,7 +41,7 @@  discard block
 block discarded – undo
41 41
      *
42 42
      * @param string $type type of the "new"-information, i.e. cache, event, rating, etc
43 43
      * @param array $args numeric array containing the parameter for "sql_slave"
44
-     * @return object mysql result used by smarty assign_rs
44
+     * @return resource|null mysql result used by smarty assign_rs
45 45
      */
46 46
     public function rsForSmarty($type, $args = null)
47 47
     {
@@ -89,7 +89,7 @@  discard block
 block discarded – undo
89 89
      * cacheRs executes the database statements for type "cache"
90 90
      *
91 91
      * @param array $args numeric array containing the parameter for "sql_slave"
92
-     * @return object mysql result used by smarty assign_rs
92
+     * @return resource mysql result used by smarty assign_rs
93 93
      */
94 94
     private function cacheRs($args = null)
95 95
     {
@@ -143,7 +143,7 @@  discard block
 block discarded – undo
143 143
      * eventRs executes the database statements for type "event"
144 144
      *
145 145
      * @param array $args numeric array containing the parameter for "sql_slave"
146
-     * @return object mysql result used by smarty assign_rs
146
+     * @return resource mysql result used by smarty assign_rs
147 147
      */
148 148
     private function eventRs($args = null)
149 149
     {
@@ -215,7 +215,7 @@  discard block
 block discarded – undo
215 215
      * ratingRs executes the database statements for type "rating"
216 216
      *
217 217
      * @param array $args numeric array containing the parameter for "sql_slave"
218
-     * @return object mysql result used by smarty assign_rs
218
+     * @return resource mysql result used by smarty assign_rs
219 219
      */
220 220
     private function ratingRs($args = null)
221 221
     {
Please login to merge, or discard this patch.
htdocs/lib2/search/search.html.inc.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -86,7 +86,7 @@
 block discarded – undo
86 86
         // decide if the cache is new
87 87
         $dDiff = dateDiff('d', $rCache['date_created'], date('Y-m-d'));
88 88
 
89
-        $rCache['isnew'] = ($dDiff <= NEWCACHES_DAYS && (int) $rCache['type'] !== 6);
89
+        $rCache['isnew'] = ($dDiff <= NEWCACHES_DAYS && (int)$rCache['type'] !== 6);
90 90
 
91 91
         // get last logs
92 92
         if ($options['sort'] != 'bymylastlog' || !$login->logged_in()) {
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 2 patches
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.
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -314,7 +314,7 @@
 block discarded – undo
314 314
                              `text`='&4',
315 315
                              `text_html`='&5',
316 316
                              `text_htmledit`='&6'" .
317
-                             ($log_type == cachelog::LOGTYPE_ACTIVE ? $cache_ok_sql : "") . "
317
+                                ($log_type == cachelog::LOGTYPE_ACTIVE ? $cache_ok_sql : "") . "
318 318
                          WHERE `id`='&7'",
319 319
                         $log_type,
320 320
                         $oc_team_comment,
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.