Completed
Pull Request — development (#735)
by Kai
04:39
created
htdocs/lib2/imagebmp.inc.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -576,7 +576,7 @@
 block discarded – undo
576 576
 }
577 577
 
578 578
 /**
579
- * @param $d
579
+ * @param integer $d
580 580
  * @param int $n
581 581
  *
582 582
  * @return string
Please login to merge, or discard this patch.
htdocs/lib2/logic/geodb.class.php 1 patch
Doc Comments   +9 added lines patch added patch discarded remove patch
@@ -113,6 +113,9 @@  discard block
 block discarded – undo
113 113
         return 0;
114 114
     }
115 115
 
116
+    /**
117
+     * @return string
118
+     */
116 119
     public static function landFromLocid($locid)
117 120
     {
118 121
         if (!is_numeric($locid)) {
@@ -140,6 +143,9 @@  discard block
 block discarded – undo
140 143
         return '';
141 144
     }
142 145
 
146
+    /**
147
+     * @return string
148
+     */
143 149
     public static function regierungsbezirkFromLocid($locid)
144 150
     {
145 151
         if (!is_numeric($locid)) {
@@ -166,6 +172,9 @@  discard block
 block discarded – undo
166 172
         return '';
167 173
     }
168 174
 
175
+    /**
176
+     * @return string
177
+     */
169 178
     public static function landkreisFromLocid($locid)
170 179
     {
171 180
         if (!is_numeric($locid)) {
Please login to merge, or discard this patch.
htdocs/util/watchlist/runwatch.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -504,6 +504,9 @@
 block discarded – undo
504 504
     );
505 505
 }
506 506
 
507
+/**
508
+ * @param string $watchtext
509
+ */
507 510
 function insert_recommendation($rLog, $language, $watchtext)
508 511
 {
509 512
     global $translate;
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
@@ -291,7 +291,7 @@  discard block
 block discarded – undo
291 291
 
292 292
     /**
293 293
      * @param int $id
294
-     * @param $name
294
+     * @param string $name
295 295
      */
296 296
     public function checkGeoKretType($id, $name)
297 297
     {
@@ -304,7 +304,7 @@  discard block
 block discarded – undo
304 304
 
305 305
     /**
306 306
      * @param int $id
307
-     * @param $name
307
+     * @param string $name
308 308
      */
309 309
     public function checkUser($id, $name)
310 310
     {
@@ -317,7 +317,7 @@  discard block
 block discarded – undo
317 317
 
318 318
     /**
319 319
      * @param int $id
320
-     * @param $name
320
+     * @param string $name
321 321
      */
322 322
     public function checkMoveType($id, $name)
323 323
     {
Please login to merge, or discard this patch.
local/maintenance/email_recovery.php 1 patch
Doc Comments   +9 added lines patch added patch discarded remove patch
@@ -81,6 +81,10 @@  discard block
 block discarded – undo
81 81
         return preg_match('/^[0-9]{4}-[0-9]{2}-[0-9]{2} [0-9]{2}:[0-9]{2}:[0-9]{2}$/', $datetime);
82 82
     }
83 83
 
84
+    /**
85
+     * @param integer $level
86
+     * @param string $text
87
+     */
84 88
     private static function message($level, $text)
85 89
     {
86 90
         echo str_repeat(' ', 2 * $level) . $text . "\n";
@@ -93,6 +97,11 @@  discard block
 block discarded – undo
93 97
             ' AND `' . $table . '`.`' . $field . "` <= '" . sql_escape($this->toDateTime) . "'";
94 98
     }
95 99
 
100
+    /**
101
+     * @param string $table
102
+     * @param string $dateField
103
+     * @param string $description
104
+     */
96 105
     private function showObjectCount($table, $dateField, $description, $andWhere = '')
97 106
     {
98 107
         $objectCount = sql_value(
Please login to merge, or discard this patch.
htdocs/lib2/logic/picture.class.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -716,7 +716,7 @@
 block discarded – undo
716 716
     }
717 717
 
718 718
     /**
719
-     * @return bool|string
719
+     * @return string|false
720 720
      */
721 721
     public function getPageLink()
722 722
     {
Please login to merge, or discard this patch.
htdocs/lib2/logic/cachelist.class.php 1 patch
Doc Comments   +13 added lines patch added patch discarded remove patch
@@ -145,6 +145,9 @@  discard block
 block discarded – undo
145 145
         return $this->reCachelist->setValue('description', $desc);
146 146
     }
147 147
 
148
+    /**
149
+     * @param string $pw
150
+     */
148 151
     public function setPassword($pw)
149 152
     {
150 153
         $this->reCachelist->setValue('password', $pw);
@@ -225,6 +228,9 @@  discard block
 block discarded – undo
225 228
         return sql_fetch_assoc_table($rs);
226 229
     }
227 230
 
231
+    /**
232
+     * @param string $wp
233
+     */
228 234
     public function addCacheByWP($wp)
229 235
     {
230 236
         $cache = cache::fromWP($wp);
@@ -261,6 +267,9 @@  discard block
 block discarded – undo
261 267
         return $this->addCache(new cache($cache_id));
262 268
     }
263 269
 
270
+    /**
271
+     * @param cache $cache
272
+     */
264 273
     public function addCache($cache)
265 274
     {
266 275
         if (!$cache->exist() || !$cache->allowView()) {
@@ -496,6 +505,10 @@  discard block
 block discarded – undo
496 505
         return false;
497 506
     }
498 507
 
508
+    /**
509
+     * @param string $condition
510
+     * @param integer $maxitems
511
+     */
499 512
     private static function getLists(
500 513
         $condition,
501 514
         $prio = 0,
Please login to merge, or discard this patch.
htdocs/src/OcLegacy/Map/StaticMap.php 1 patch
Doc Comments   +16 added lines patch added patch discarded remove patch
@@ -91,11 +91,17 @@  discard block
 block discarded – undo
91 91
         }
92 92
     }
93 93
 
94
+    /**
95
+     * @param integer $zoom
96
+     */
94 97
     private function lonToTile($long, $zoom)
95 98
     {
96 99
         return (($long + 180) / 360) * (2 ** $zoom);
97 100
     }
98 101
 
102
+    /**
103
+     * @param integer $zoom
104
+     */
99 105
     private function latToTile($lat, $zoom)
100 106
     {
101 107
         return (1 - log(tan($lat * M_PI / 180) + 1 / cos($lat * M_PI / 180)) / M_PI) / 2 * (2 ** $zoom);
@@ -192,6 +198,10 @@  discard block
 block discarded – undo
192 198
         }
193 199
     }
194 200
 
201
+    /**
202
+     * @param string $pathname
203
+     * @param integer $mode
204
+     */
195 205
     private function mkdirRecursive($pathname, $mode)
196 206
     {
197 207
         is_dir(dirname($pathname)) || $this->mkdirRecursive(dirname($pathname), $mode);
@@ -199,6 +209,9 @@  discard block
 block discarded – undo
199 209
         return is_dir($pathname) || mkdir($pathname, $mode) || is_dir($pathname);
200 210
     }
201 211
 
212
+    /**
213
+     * @param string $data
214
+     */
202 215
     private function writeTileToCache($url, $data)
203 216
     {
204 217
         $filename = $this->tileUrlToFilename($url);
@@ -206,6 +219,9 @@  discard block
 block discarded – undo
206 219
         file_put_contents($filename, $data);
207 220
     }
208 221
 
222
+    /**
223
+     * @param string $url
224
+     */
209 225
     private function fetchTile($url)
210 226
     {
211 227
         if ($this->useTileCache && $cached = $this->checkTileCache($url)) {
Please login to merge, or discard this patch.