Completed
Pull Request — development (#696)
by Thomas
04:58
created
htdocs/lib2/search/ftsearch.inc.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -199,7 +199,7 @@  discard block
 block discarded – undo
199 199
     $str = '';
200 200
 
201 201
     ftsearch_load_ignores();
202
-    for ($i = count($astr) - 1; $i >= 0; $i --) {
202
+    for ($i = count($astr) - 1; $i >= 0; $i--) {
203 203
         // ignore?
204 204
         if (array_search(mb_strtolower($astr[$i]), $ftsearch_ignores) !== false) {
205 205
             unset($astr[$i]);
@@ -254,7 +254,7 @@  discard block
 block discarded – undo
254 254
 
255 255
     // doppelte chars ersetzen
256 256
     $ordZ = ord('z');
257
-    for ($c = ord('a'); $c <= $ordZ; $c ++) {
257
+    for ($c = ord('a'); $c <= $ordZ; $c++) {
258 258
         $old_str = '';
259 259
         while ($old_str !== $str) {
260 260
             $old_str = $str;
Please login to merge, or discard this patch.
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/rowEditor.class.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -384,7 +384,7 @@  discard block
 block discarded – undo
384 384
         }
385 385
 
386 386
         if ($type == RE_TYPE_INT) {
387
-            $value = (int) $value + 0;
387
+            $value = (int)$value + 0;
388 388
         } elseif ($type == RE_TYPE_FLOAT) {
389 389
             $value = $value + 0;
390 390
         } elseif ($type == RE_TYPE_DOUBLE) {
@@ -409,7 +409,7 @@  discard block
 block discarded – undo
409 409
     public function pFormatValueSql($type, $value)
410 410
     {
411 411
         if ($type == RE_TYPE_INT) {
412
-            $value = (int) $value + 0;
412
+            $value = (int)$value + 0;
413 413
         } elseif ($type == RE_TYPE_FLOAT) {
414 414
             $value = $value + 0;
415 415
         } elseif ($type == RE_TYPE_DOUBLE) {
Please login to merge, or discard this patch.
htdocs/lib2/search/search.gpx.inc.php 1 patch
Spacing   +15 added lines, -15 removed lines patch added patch discarded remove patch
@@ -140,19 +140,19 @@  discard block
 block discarded – undo
140 140
     $gpxTimeFormat = 'Y-m-d\TH:i:s\Z';
141 141
 
142 142
     $gpxStatus[0] = 'available="False" archived="False"'; // other (unavailable, not archived)
143
-    $gpxStatus[1] = 'available="True" archived="False"';  // available, not archived
143
+    $gpxStatus[1] = 'available="True" archived="False"'; // available, not archived
144 144
     $gpxStatus[2] = 'available="False" archived="False"'; // unavailable, not archived
145
-    $gpxStatus[3] = 'available="False" archived="True"';  // unavailable, archived
146
-    $gpxStatus[6] = 'available="False" archived="True"';  // locked, visible
145
+    $gpxStatus[3] = 'available="False" archived="True"'; // unavailable, archived
146
+    $gpxStatus[6] = 'available="False" archived="True"'; // locked, visible
147 147
 
148 148
     $gpxContainer[1] = 'Other';
149 149
     $gpxContainer[2] = 'Micro';
150 150
     $gpxContainer[3] = 'Small';
151 151
     $gpxContainer[4] = 'Regular';
152 152
     $gpxContainer[5] = 'Large';
153
-    $gpxContainer[6] = 'Large';     // very large
154
-    $gpxContainer[7] = 'Virtual';   // no container
155
-    $gpxContainer[8] = 'Micro';     // nano
153
+    $gpxContainer[6] = 'Large'; // very large
154
+    $gpxContainer[7] = 'Virtual'; // no container
155
+    $gpxContainer[8] = 'Micro'; // nano
156 156
 
157 157
     $gpxOcSize[1] = 'Other';
158 158
     $gpxOcSize[2] = 'Micro';
@@ -169,10 +169,10 @@  discard block
 block discarded – undo
169 169
     $gpxType[4] = 'Virtual Cache';
170 170
     $gpxType[5] = 'Webcam Cache';
171 171
     $gpxType[6] = 'Event Cache';
172
-    $gpxType[7] = 'Unknown Cache';        // quiz cache
173
-    $gpxType[8] = 'Unknown Cache';        // maths/physics cache
174
-    $gpxType[9] = 'Unknown Cache';        // moving cache
175
-    $gpxType[10] = 'Traditional Cache';   // drive-in cache
172
+    $gpxType[7] = 'Unknown Cache'; // quiz cache
173
+    $gpxType[8] = 'Unknown Cache'; // maths/physics cache
174
+    $gpxType[9] = 'Unknown Cache'; // moving cache
175
+    $gpxType[10] = 'Traditional Cache'; // drive-in cache
176 176
 
177 177
     $gpxOcType[1] = 'Other Cache';
178 178
     $gpxOcType[2] = 'Traditional Cache';
@@ -181,7 +181,7 @@  discard block
 block discarded – undo
181 181
     $gpxOcType[5] = 'Webcam Cache';
182 182
     $gpxOcType[6] = 'Event Cache';
183 183
     $gpxOcType[7] = 'Quiz Cache';
184
-    $gpxOcType[8] = 'Quiz Cache';         // maths/physics cache
184
+    $gpxOcType[8] = 'Quiz Cache'; // maths/physics cache
185 185
     $gpxOcType[9] = 'Moving Cache';
186 186
     $gpxOcType[10] = 'Traditional Cache'; // drive-in cache
187 187
 
@@ -194,8 +194,8 @@  discard block
 block discarded – undo
194 194
     $gpxLogType[9] = 'Archive';
195 195
     $gpxLogType[10] = 'Owner Maintenance';
196 196
     $gpxLogType[11] = 'Temporarily Disable Listing';
197
-    $gpxLogType[13] = 'Archive';          // locked
198
-    $gpxLogType[14] = 'Archive';          // locked/invisible
197
+    $gpxLogType[13] = 'Archive'; // locked
198
+    $gpxLogType[14] = 'Archive'; // locked/invisible
199 199
 
200 200
     $gpxSymNormal = 'Geocache';
201 201
     $gpxSymFound = 'Geocache Found';
@@ -524,9 +524,9 @@  discard block
 block discarded – undo
524 524
         $thisline = mb_ereg_replace('{oc_logs}', $oc_logentries, $thisline);
525 525
 
526 526
         // attributes
527
-        $addAttributes = [-1];  // dummy
527
+        $addAttributes = [-1]; // dummy
528 528
         if ($r['type'] == 10) {   // Drive-in
529
-            $addAttributes[] = 24;  // near the car / park and grab
529
+            $addAttributes[] = 24; // near the car / park and grab
530 530
         }
531 531
         $rsAttributes = sql_slave(
532 532
             "
Please login to merge, or discard this patch.
htdocs/lib2/search/search.ov2.inc.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -66,7 +66,7 @@
 block discarded – undo
66 66
         $cacheid = convert_string($r['wp_oc']);
67 67
 
68 68
         $line = "$name by $username, $type, $size, $cacheid";
69
-        $record = pack('CLllA*x', 2, 1 + 4 + 4 + 4 + strlen($line) + 1, (int) $lon, (int) $lat, $line);
69
+        $record = pack('CLllA*x', 2, 1 + 4 + 4 + 4 + strlen($line) + 1, (int)$lon, (int)$lat, $line);
70 70
 
71 71
         append_output($record);
72 72
     }
Please login to merge, or discard this patch.