Completed
Push — master ( c3eca6...804bdc )
by Yannick
51:24 queued 25:06
created
statistics.php 1 patch
Indentation   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -254,16 +254,16 @@  discard block
 block discarded – undo
254 254
                 <div class="more">
255 255
             	    <?php
256 256
             	    
257
-            		if ($year != '' && $month != '') {
258
-            	    ?>
257
+					if ($year != '' && $month != '') {
258
+					?>
259 259
             	    <a href="<?php print $globalURL; ?>/marine/statistics/type/<?php echo $year; ?>/<?php echo $month ?>/" class="btn btn-default btn" role="button"><?php echo _("See full statistic"); ?>&raquo;</a>
260 260
             	    <?php
261
-            		} else {
262
-            	    ?>
261
+					} else {
262
+					?>
263 263
             	    <a href="<?php print $globalURL; ?>/marine/statistics/type" class="btn btn-default btn" role="button"><?php echo _("See full statistic"); ?>&raquo;</a>
264 264
             	    <?php
265
-            		}
266
-            	    ?>
265
+					}
266
+					?>
267 267
                 </div>
268 268
             </div>
269 269
     <!-- <?php print 'Time elapsed : '.(microtime(true)-$beginpage).'s' ?> -->
@@ -297,7 +297,7 @@  discard block
 block discarded – undo
297 297
 ?>
298 298
                 <div class="more">
299 299
             	    <?php
300
-            	    /*
300
+					/*
301 301
             		if ($year != '' && $month != '') {
302 302
             	    ?>
303 303
             	    <a href="<?php print $globalURL; ?>/tracker/statistics/type/<?php echo $year; ?>/<?php echo $month ?>/" class="btn btn-default btn" role="button"><?php echo _("See full statistic"); ?>&raquo;</a>
@@ -308,7 +308,7 @@  discard block
 block discarded – undo
308 308
             	    <?php
309 309
             		}
310 310
             		*/
311
-            	    ?>
311
+					?>
312 312
                 </div>
313 313
             </div>
314 314
     <!-- <?php print 'Time elapsed : '.(microtime(true)-$beginpage).'s' ?> -->
Please login to merge, or discard this patch.
owner-sub-menu.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -7,7 +7,7 @@  discard block
 block discarded – undo
7 7
 	</form>
8 8
 </div>
9 9
 <?php
10
-    if (isset($owner)) {
10
+	if (isset($owner)) {
11 11
 ?>
12 12
 <div class="sub-menu sub-menu-container">
13 13
 	<ul class="nav nav-pills">
@@ -38,5 +38,5 @@  discard block
 block discarded – undo
38 38
 	</ul>
39 39
 </div>
40 40
 <?php
41
-    }
41
+	}
42 42
 ?>
43 43
\ No newline at end of file
Please login to merge, or discard this patch.
tsk-geojson.php 1 patch
Indentation   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -23,8 +23,8 @@  discard block
 block discarded – undo
23 23
 		$id = $spotter_item['Waypoint']['@attributes']['id'];
24 24
 		if ($id == 0 || !is_numeric($id)) $id = $j;
25 25
 		$output .= '{"type": "Feature",';
26
-		    $output .= '"id": '.$id.',';
27
-		    $output .= '"properties": {';
26
+			$output .= '"id": '.$id.',';
27
+			$output .= '"properties": {';
28 28
 			$output .= '"type": "'.$spotter_item['@attributes']['type'].'",';
29 29
 			//$output .= '"id": "'.$spotter_item['Waypoint']['@attributes']['id'].'",';
30 30
 			$output .= '"name": "'.$spotter_item['Waypoint']['@attributes']['name'].'",';
@@ -35,31 +35,31 @@  discard block
 block discarded – undo
35 35
 			} elseif ($spotter_item['@attributes']['type'] == 'Finish') {
36 36
 				$output .= '"icon": "/images/tsk/tsk-finish.png"';
37 37
 			} else $output .= '"icon": "/images/tsk/number_'.$id.'.png"';
38
-		    $output .= '},';
39
-		    $output .= '"geometry": {';
38
+			$output .= '},';
39
+			$output .= '"geometry": {';
40 40
 			$output .= '"type": "Point",';
41 41
 			$output .= '"coordinates": [';
42
-			    $output .= $spotter_item['Waypoint']['Location']['@attributes']['longitude'].', '.$spotter_item['Waypoint']['Location']['@attributes']['latitude'];
42
+				$output .= $spotter_item['Waypoint']['Location']['@attributes']['longitude'].', '.$spotter_item['Waypoint']['Location']['@attributes']['latitude'];
43 43
 			$output .= ']';
44
-		    $output .= '}';
44
+			$output .= '}';
45 45
 		$output .= '},';
46 46
 		$j++;
47 47
 	}
48 48
 	// Lines
49 49
 	$output .= '{"type": "Feature",';
50
-	    $output .= '"properties": {';
50
+		$output .= '"properties": {';
51 51
 		$output .= '"type": "'.$spotter_array['@attributes']['type'].'"';
52
-	    $output .= '},';
53
-	    $output .= '"geometry": {';
52
+		$output .= '},';
53
+		$output .= '"geometry": {';
54 54
 		$output .= '"type": "LineString",';
55 55
 		$output .= '"coordinates": [';
56 56
 	foreach($spotter_array['Point'] as $spotter_item)
57 57
 	{
58
-			    $output .= '['.$spotter_item['Waypoint']['Location']['@attributes']['longitude'].', '.$spotter_item['Waypoint']['Location']['@attributes']['latitude'].'],';
58
+				$output .= '['.$spotter_item['Waypoint']['Location']['@attributes']['longitude'].', '.$spotter_item['Waypoint']['Location']['@attributes']['latitude'].'],';
59 59
 	}
60 60
 	$output  = substr($output, 0, -1);
61 61
 		$output .= ']';
62
-	    $output .= '}';
62
+		$output .= '}';
63 63
 	$output .= '},';
64 64
 	$output  = substr($output, 0, -1);
65 65
 }
Please login to merge, or discard this patch.
require/class.Common.php 1 patch
Indentation   +156 added lines, -156 removed lines patch added patch discarded remove patch
@@ -7,13 +7,13 @@  discard block
 block discarded – undo
7 7
 	//protected $cookies = array();
8 8
 	
9 9
 	/**
10
-	* Get data from form result
11
-	* @param String $url form URL
12
-	* @param String $type type of submit form method (get or post)
13
-	* @param String|Array $data values form post method
14
-	* @param Array $headers header to submit with the form
15
-	* @return String the result
16
-	*/
10
+	 * Get data from form result
11
+	 * @param String $url form URL
12
+	 * @param String $type type of submit form method (get or post)
13
+	 * @param String|Array $data values form post method
14
+	 * @param Array $headers header to submit with the form
15
+	 * @return String the result
16
+	 */
17 17
 	public function getData($url, $type = 'get', $data = '', $headers = '',$cookie = '',$referer = '',$timeout = '',$useragent = '', $sizelimit = false, $async = false) {
18 18
 		global $globalProxy, $globalForceIPv4;
19 19
 		$ch = curl_init();
@@ -166,10 +166,10 @@  discard block
 block discarded – undo
166 166
 	}
167 167
 
168 168
 	/**
169
-	* Convert a HTML table to an array
170
-	* @param String $data HTML page
171
-	* @return Array array of the tables in HTML page
172
-	*/
169
+	 * Convert a HTML table to an array
170
+	 * @param String $data HTML page
171
+	 * @return Array array of the tables in HTML page
172
+	 */
173 173
 	public function table2array($data) {
174 174
 		if (!is_string($data)) return array();
175 175
 		if ($data == '') return array();
@@ -203,10 +203,10 @@  discard block
 block discarded – undo
203 203
 	}
204 204
 	
205 205
 	/**
206
-	* Convert <p> part of a HTML page to an array
207
-	* @param String $data HTML page
208
-	* @return Array array of the <p> in HTML page
209
-	*/
206
+	 * Convert <p> part of a HTML page to an array
207
+	 * @param String $data HTML page
208
+	 * @return Array array of the <p> in HTML page
209
+	 */
210 210
 	public function text2array($data) {
211 211
 		$html = str_get_html($data);
212 212
 		if ($html === false) return array();
@@ -221,14 +221,14 @@  discard block
 block discarded – undo
221 221
 	}
222 222
 
223 223
 	/**
224
-	* Give distance between 2 coordonnates
225
-	* @param Float $lat latitude of first point
226
-	* @param Float $lon longitude of first point
227
-	* @param Float $latc latitude of second point
228
-	* @param Float $lonc longitude of second point
229
-	* @param String $unit km else no unit used
230
-	* @return Float Distance in $unit
231
-	*/
224
+	 * Give distance between 2 coordonnates
225
+	 * @param Float $lat latitude of first point
226
+	 * @param Float $lon longitude of first point
227
+	 * @param Float $latc latitude of second point
228
+	 * @param Float $lonc longitude of second point
229
+	 * @param String $unit km else no unit used
230
+	 * @return Float Distance in $unit
231
+	 */
232 232
 	public function distance($lat, $lon, $latc, $lonc, $unit = 'km') {
233 233
 		if ($lat == $latc && $lon == $lonc) return 0;
234 234
 		$dist = rad2deg(acos(sin(deg2rad(floatval($lat)))*sin(deg2rad(floatval($latc)))+ cos(deg2rad(floatval($lat)))*cos(deg2rad(floatval($latc)))*cos(deg2rad(floatval($lon)-floatval($lonc)))))*60*1.1515;
@@ -246,25 +246,25 @@  discard block
 block discarded – undo
246 246
 	}
247 247
 
248 248
 	/**
249
-	* Give plunge between 2 altitudes and distance
250
-	* @param Float $initial_altitude altitude of first point in m
251
-	* @param Float $final_altitude altitude of second point in m
252
-	* @param String $distance distance between two points in m
253
-	* @return Float plunge
254
-	*/
249
+	 * Give plunge between 2 altitudes and distance
250
+	 * @param Float $initial_altitude altitude of first point in m
251
+	 * @param Float $final_altitude altitude of second point in m
252
+	 * @param String $distance distance between two points in m
253
+	 * @return Float plunge
254
+	 */
255 255
 	public function plunge($initial_altitude,$final_altitude,$distance) {
256 256
 		$plunge = rad2deg(asin(($final_altitude-$initial_altitude)/$distance));
257 257
 		return $plunge;
258 258
 	}
259 259
 
260 260
 	/**
261
-	* Give azimuth between 2 coordonnates
262
-	* @param Float $lat latitude of first point
263
-	* @param Float $lon longitude of first point
264
-	* @param Float $latc latitude of second point
265
-	* @param Float $lonc longitude of second point
266
-	* @return Float Azimuth
267
-	*/
261
+	 * Give azimuth between 2 coordonnates
262
+	 * @param Float $lat latitude of first point
263
+	 * @param Float $lon longitude of first point
264
+	 * @param Float $latc latitude of second point
265
+	 * @param Float $lonc longitude of second point
266
+	 * @return Float Azimuth
267
+	 */
268 268
 	public function azimuth($lat, $lon, $latc, $lonc) {
269 269
 		$dX = $latc - $lat;
270 270
 		$dY = $lonc - $lon;
@@ -275,11 +275,11 @@  discard block
 block discarded – undo
275 275
 	
276 276
 	
277 277
 	/**
278
-	* Check is distance realistic
279
-	* @param int $timeDifference the time between the reception of both messages
280
-	* @param float $distance distance covered
281
-	* @return whether distance is realistic
282
-	*/
278
+	 * Check is distance realistic
279
+	 * @param int $timeDifference the time between the reception of both messages
280
+	 * @param float $distance distance covered
281
+	 * @return whether distance is realistic
282
+	 */
283 283
 	public function withinThreshold ($timeDifference, $distance) {
284 284
 		$x = abs($timeDifference);
285 285
 		$d = abs($distance);
@@ -297,7 +297,7 @@  discard block
 block discarded – undo
297 297
 	}
298 298
 
299 299
 	public function isInteger($input){
300
-	    return(ctype_digit(strval($input)));
300
+		return(ctype_digit(strval($input)));
301 301
 	}
302 302
 
303 303
 
@@ -328,11 +328,11 @@  discard block
 block discarded – undo
328 328
 	}
329 329
 	
330 330
 	/**
331
-	* Copy folder contents
332
-	* @param       string   $source    Source path
333
-	* @param       string   $dest      Destination path
334
-	* @return      bool     Returns true on success, false on failure
335
-	*/
331
+	 * Copy folder contents
332
+	 * @param       string   $source    Source path
333
+	 * @param       string   $dest      Destination path
334
+	 * @return      bool     Returns true on success, false on failure
335
+	 */
336 336
 	public function xcopy($source, $dest)
337 337
 	{
338 338
 		$files = glob($source.'*.*');
@@ -344,20 +344,20 @@  discard block
 block discarded – undo
344 344
 	}
345 345
 	
346 346
 	/**
347
-	* Check if an url exist
348
-	* @param	String $url url to check
349
-	* @return	bool Return true on succes false on failure
350
-	*/
347
+	 * Check if an url exist
348
+	 * @param	String $url url to check
349
+	 * @return	bool Return true on succes false on failure
350
+	 */
351 351
 	public function urlexist($url){
352 352
 		$headers=get_headers($url);
353 353
 		return stripos($headers[0],"200 OK")?true:false;
354 354
 	}
355 355
 	
356 356
 	/**
357
-	* Convert hexa to string
358
-	* @param	String $hex data in hexa
359
-	* @return	String Return result
360
-	*/
357
+	 * Convert hexa to string
358
+	 * @param	String $hex data in hexa
359
+	 * @return	String Return result
360
+	 */
361 361
 	public function hex2str($hex) {
362 362
 		$str = '';
363 363
 		$hexln = strlen($hex);
@@ -366,10 +366,10 @@  discard block
 block discarded – undo
366 366
 	}
367 367
 	
368 368
 	/**
369
-	* Convert hexa color to rgb
370
-	* @param	String $hex data in hexa
371
-	* @return	String Return result
372
-	*/
369
+	 * Convert hexa color to rgb
370
+	 * @param	String $hex data in hexa
371
+	 * @return	String Return result
372
+	 */
373 373
 	public function hex2rgb($hex) {
374 374
 		$hex = str_replace('#','',$hex);
375 375
 		return sscanf($hex, "%02x%02x%02x"); 
@@ -447,9 +447,9 @@  discard block
 block discarded – undo
447 447
 	}
448 448
 	
449 449
 	/**
450
-	* Returns list of available locales
451
-	*
452
-	* @return array
450
+	 * Returns list of available locales
451
+	 *
452
+	 * @return array
453 453
 	 */
454 454
 	public function listLocaleDir()
455 455
 	{
@@ -548,100 +548,100 @@  discard block
 block discarded – undo
548 548
 	public function remove_accents($string) {
549 549
 		if ( !preg_match('/[\x80-\xff]/', $string) ) return $string;
550 550
 		$chars = array(
551
-		    // Decompositions for Latin-1 Supplement
552
-		    chr(195).chr(128) => 'A', chr(195).chr(129) => 'A',
553
-		    chr(195).chr(130) => 'A', chr(195).chr(131) => 'A',
554
-		    chr(195).chr(132) => 'A', chr(195).chr(133) => 'A',
555
-		    chr(195).chr(135) => 'C', chr(195).chr(136) => 'E',
556
-		    chr(195).chr(137) => 'E', chr(195).chr(138) => 'E',
557
-		    chr(195).chr(139) => 'E', chr(195).chr(140) => 'I',
558
-		    chr(195).chr(141) => 'I', chr(195).chr(142) => 'I',
559
-		    chr(195).chr(143) => 'I', chr(195).chr(145) => 'N',
560
-		    chr(195).chr(146) => 'O', chr(195).chr(147) => 'O',
561
-		    chr(195).chr(148) => 'O', chr(195).chr(149) => 'O',
562
-		    chr(195).chr(150) => 'O', chr(195).chr(153) => 'U',
563
-		    chr(195).chr(154) => 'U', chr(195).chr(155) => 'U',
564
-		    chr(195).chr(156) => 'U', chr(195).chr(157) => 'Y',
565
-		    chr(195).chr(159) => 's', chr(195).chr(160) => 'a',
566
-		    chr(195).chr(161) => 'a', chr(195).chr(162) => 'a',
567
-		    chr(195).chr(163) => 'a', chr(195).chr(164) => 'a',
568
-		    chr(195).chr(165) => 'a', chr(195).chr(167) => 'c',
569
-		    chr(195).chr(168) => 'e', chr(195).chr(169) => 'e',
570
-		    chr(195).chr(170) => 'e', chr(195).chr(171) => 'e',
571
-		    chr(195).chr(172) => 'i', chr(195).chr(173) => 'i',
572
-		    chr(195).chr(174) => 'i', chr(195).chr(175) => 'i',
573
-		    chr(195).chr(177) => 'n', chr(195).chr(178) => 'o',
574
-		    chr(195).chr(179) => 'o', chr(195).chr(180) => 'o',
575
-		    chr(195).chr(181) => 'o', chr(195).chr(182) => 'o',
576
-		    chr(195).chr(182) => 'o', chr(195).chr(185) => 'u',
577
-		    chr(195).chr(186) => 'u', chr(195).chr(187) => 'u',
578
-		    chr(195).chr(188) => 'u', chr(195).chr(189) => 'y',
579
-		    chr(195).chr(191) => 'y',
580
-		    // Decompositions for Latin Extended-A
581
-		    chr(196).chr(128) => 'A', chr(196).chr(129) => 'a',
582
-		    chr(196).chr(130) => 'A', chr(196).chr(131) => 'a',
583
-		    chr(196).chr(132) => 'A', chr(196).chr(133) => 'a',
584
-		    chr(196).chr(134) => 'C', chr(196).chr(135) => 'c',
585
-		    chr(196).chr(136) => 'C', chr(196).chr(137) => 'c',
586
-		    chr(196).chr(138) => 'C', chr(196).chr(139) => 'c',
587
-		    chr(196).chr(140) => 'C', chr(196).chr(141) => 'c',
588
-		    chr(196).chr(142) => 'D', chr(196).chr(143) => 'd',
589
-		    chr(196).chr(144) => 'D', chr(196).chr(145) => 'd',
590
-		    chr(196).chr(146) => 'E', chr(196).chr(147) => 'e',
591
-		    chr(196).chr(148) => 'E', chr(196).chr(149) => 'e',
592
-		    chr(196).chr(150) => 'E', chr(196).chr(151) => 'e',
593
-		    chr(196).chr(152) => 'E', chr(196).chr(153) => 'e',
594
-		    chr(196).chr(154) => 'E', chr(196).chr(155) => 'e',
595
-		    chr(196).chr(156) => 'G', chr(196).chr(157) => 'g',
596
-		    chr(196).chr(158) => 'G', chr(196).chr(159) => 'g',
597
-		    chr(196).chr(160) => 'G', chr(196).chr(161) => 'g',
598
-		    chr(196).chr(162) => 'G', chr(196).chr(163) => 'g',
599
-		    chr(196).chr(164) => 'H', chr(196).chr(165) => 'h',
600
-		    chr(196).chr(166) => 'H', chr(196).chr(167) => 'h',
601
-		    chr(196).chr(168) => 'I', chr(196).chr(169) => 'i',
602
-		    chr(196).chr(170) => 'I', chr(196).chr(171) => 'i',
603
-		    chr(196).chr(172) => 'I', chr(196).chr(173) => 'i',
604
-		    chr(196).chr(174) => 'I', chr(196).chr(175) => 'i',
605
-		    chr(196).chr(176) => 'I', chr(196).chr(177) => 'i',
606
-		    chr(196).chr(178) => 'IJ',chr(196).chr(179) => 'ij',
607
-		    chr(196).chr(180) => 'J', chr(196).chr(181) => 'j',
608
-		    chr(196).chr(182) => 'K', chr(196).chr(183) => 'k',
609
-		    chr(196).chr(184) => 'k', chr(196).chr(185) => 'L',
610
-		    chr(196).chr(186) => 'l', chr(196).chr(187) => 'L',
611
-		    chr(196).chr(188) => 'l', chr(196).chr(189) => 'L',
612
-		    chr(196).chr(190) => 'l', chr(196).chr(191) => 'L',
613
-		    chr(197).chr(128) => 'l', chr(197).chr(129) => 'L',
614
-		    chr(197).chr(130) => 'l', chr(197).chr(131) => 'N',
615
-		    chr(197).chr(132) => 'n', chr(197).chr(133) => 'N',
616
-		    chr(197).chr(134) => 'n', chr(197).chr(135) => 'N',
617
-		    chr(197).chr(136) => 'n', chr(197).chr(137) => 'N',
618
-		    chr(197).chr(138) => 'n', chr(197).chr(139) => 'N',
619
-		    chr(197).chr(140) => 'O', chr(197).chr(141) => 'o',
620
-		    chr(197).chr(142) => 'O', chr(197).chr(143) => 'o',
621
-		    chr(197).chr(144) => 'O', chr(197).chr(145) => 'o',
622
-		    chr(197).chr(146) => 'OE',chr(197).chr(147) => 'oe',
623
-		    chr(197).chr(148) => 'R',chr(197).chr(149) => 'r',
624
-		    chr(197).chr(150) => 'R',chr(197).chr(151) => 'r',
625
-		    chr(197).chr(152) => 'R',chr(197).chr(153) => 'r',
626
-		    chr(197).chr(154) => 'S',chr(197).chr(155) => 's',
627
-		    chr(197).chr(156) => 'S',chr(197).chr(157) => 's',
628
-		    chr(197).chr(158) => 'S',chr(197).chr(159) => 's',
629
-		    chr(197).chr(160) => 'S', chr(197).chr(161) => 's',
630
-		    chr(197).chr(162) => 'T', chr(197).chr(163) => 't',
631
-		    chr(197).chr(164) => 'T', chr(197).chr(165) => 't',
632
-		    chr(197).chr(166) => 'T', chr(197).chr(167) => 't',
633
-		    chr(197).chr(168) => 'U', chr(197).chr(169) => 'u',
634
-		    chr(197).chr(170) => 'U', chr(197).chr(171) => 'u',
635
-		    chr(197).chr(172) => 'U', chr(197).chr(173) => 'u',
636
-		    chr(197).chr(174) => 'U', chr(197).chr(175) => 'u',
637
-		    chr(197).chr(176) => 'U', chr(197).chr(177) => 'u',
638
-		    chr(197).chr(178) => 'U', chr(197).chr(179) => 'u',
639
-		    chr(197).chr(180) => 'W', chr(197).chr(181) => 'w',
640
-		    chr(197).chr(182) => 'Y', chr(197).chr(183) => 'y',
641
-		    chr(197).chr(184) => 'Y', chr(197).chr(185) => 'Z',
642
-		    chr(197).chr(186) => 'z', chr(197).chr(187) => 'Z',
643
-		    chr(197).chr(188) => 'z', chr(197).chr(189) => 'Z',
644
-		    chr(197).chr(190) => 'z', chr(197).chr(191) => 's'
551
+			// Decompositions for Latin-1 Supplement
552
+			chr(195).chr(128) => 'A', chr(195).chr(129) => 'A',
553
+			chr(195).chr(130) => 'A', chr(195).chr(131) => 'A',
554
+			chr(195).chr(132) => 'A', chr(195).chr(133) => 'A',
555
+			chr(195).chr(135) => 'C', chr(195).chr(136) => 'E',
556
+			chr(195).chr(137) => 'E', chr(195).chr(138) => 'E',
557
+			chr(195).chr(139) => 'E', chr(195).chr(140) => 'I',
558
+			chr(195).chr(141) => 'I', chr(195).chr(142) => 'I',
559
+			chr(195).chr(143) => 'I', chr(195).chr(145) => 'N',
560
+			chr(195).chr(146) => 'O', chr(195).chr(147) => 'O',
561
+			chr(195).chr(148) => 'O', chr(195).chr(149) => 'O',
562
+			chr(195).chr(150) => 'O', chr(195).chr(153) => 'U',
563
+			chr(195).chr(154) => 'U', chr(195).chr(155) => 'U',
564
+			chr(195).chr(156) => 'U', chr(195).chr(157) => 'Y',
565
+			chr(195).chr(159) => 's', chr(195).chr(160) => 'a',
566
+			chr(195).chr(161) => 'a', chr(195).chr(162) => 'a',
567
+			chr(195).chr(163) => 'a', chr(195).chr(164) => 'a',
568
+			chr(195).chr(165) => 'a', chr(195).chr(167) => 'c',
569
+			chr(195).chr(168) => 'e', chr(195).chr(169) => 'e',
570
+			chr(195).chr(170) => 'e', chr(195).chr(171) => 'e',
571
+			chr(195).chr(172) => 'i', chr(195).chr(173) => 'i',
572
+			chr(195).chr(174) => 'i', chr(195).chr(175) => 'i',
573
+			chr(195).chr(177) => 'n', chr(195).chr(178) => 'o',
574
+			chr(195).chr(179) => 'o', chr(195).chr(180) => 'o',
575
+			chr(195).chr(181) => 'o', chr(195).chr(182) => 'o',
576
+			chr(195).chr(182) => 'o', chr(195).chr(185) => 'u',
577
+			chr(195).chr(186) => 'u', chr(195).chr(187) => 'u',
578
+			chr(195).chr(188) => 'u', chr(195).chr(189) => 'y',
579
+			chr(195).chr(191) => 'y',
580
+			// Decompositions for Latin Extended-A
581
+			chr(196).chr(128) => 'A', chr(196).chr(129) => 'a',
582
+			chr(196).chr(130) => 'A', chr(196).chr(131) => 'a',
583
+			chr(196).chr(132) => 'A', chr(196).chr(133) => 'a',
584
+			chr(196).chr(134) => 'C', chr(196).chr(135) => 'c',
585
+			chr(196).chr(136) => 'C', chr(196).chr(137) => 'c',
586
+			chr(196).chr(138) => 'C', chr(196).chr(139) => 'c',
587
+			chr(196).chr(140) => 'C', chr(196).chr(141) => 'c',
588
+			chr(196).chr(142) => 'D', chr(196).chr(143) => 'd',
589
+			chr(196).chr(144) => 'D', chr(196).chr(145) => 'd',
590
+			chr(196).chr(146) => 'E', chr(196).chr(147) => 'e',
591
+			chr(196).chr(148) => 'E', chr(196).chr(149) => 'e',
592
+			chr(196).chr(150) => 'E', chr(196).chr(151) => 'e',
593
+			chr(196).chr(152) => 'E', chr(196).chr(153) => 'e',
594
+			chr(196).chr(154) => 'E', chr(196).chr(155) => 'e',
595
+			chr(196).chr(156) => 'G', chr(196).chr(157) => 'g',
596
+			chr(196).chr(158) => 'G', chr(196).chr(159) => 'g',
597
+			chr(196).chr(160) => 'G', chr(196).chr(161) => 'g',
598
+			chr(196).chr(162) => 'G', chr(196).chr(163) => 'g',
599
+			chr(196).chr(164) => 'H', chr(196).chr(165) => 'h',
600
+			chr(196).chr(166) => 'H', chr(196).chr(167) => 'h',
601
+			chr(196).chr(168) => 'I', chr(196).chr(169) => 'i',
602
+			chr(196).chr(170) => 'I', chr(196).chr(171) => 'i',
603
+			chr(196).chr(172) => 'I', chr(196).chr(173) => 'i',
604
+			chr(196).chr(174) => 'I', chr(196).chr(175) => 'i',
605
+			chr(196).chr(176) => 'I', chr(196).chr(177) => 'i',
606
+			chr(196).chr(178) => 'IJ',chr(196).chr(179) => 'ij',
607
+			chr(196).chr(180) => 'J', chr(196).chr(181) => 'j',
608
+			chr(196).chr(182) => 'K', chr(196).chr(183) => 'k',
609
+			chr(196).chr(184) => 'k', chr(196).chr(185) => 'L',
610
+			chr(196).chr(186) => 'l', chr(196).chr(187) => 'L',
611
+			chr(196).chr(188) => 'l', chr(196).chr(189) => 'L',
612
+			chr(196).chr(190) => 'l', chr(196).chr(191) => 'L',
613
+			chr(197).chr(128) => 'l', chr(197).chr(129) => 'L',
614
+			chr(197).chr(130) => 'l', chr(197).chr(131) => 'N',
615
+			chr(197).chr(132) => 'n', chr(197).chr(133) => 'N',
616
+			chr(197).chr(134) => 'n', chr(197).chr(135) => 'N',
617
+			chr(197).chr(136) => 'n', chr(197).chr(137) => 'N',
618
+			chr(197).chr(138) => 'n', chr(197).chr(139) => 'N',
619
+			chr(197).chr(140) => 'O', chr(197).chr(141) => 'o',
620
+			chr(197).chr(142) => 'O', chr(197).chr(143) => 'o',
621
+			chr(197).chr(144) => 'O', chr(197).chr(145) => 'o',
622
+			chr(197).chr(146) => 'OE',chr(197).chr(147) => 'oe',
623
+			chr(197).chr(148) => 'R',chr(197).chr(149) => 'r',
624
+			chr(197).chr(150) => 'R',chr(197).chr(151) => 'r',
625
+			chr(197).chr(152) => 'R',chr(197).chr(153) => 'r',
626
+			chr(197).chr(154) => 'S',chr(197).chr(155) => 's',
627
+			chr(197).chr(156) => 'S',chr(197).chr(157) => 's',
628
+			chr(197).chr(158) => 'S',chr(197).chr(159) => 's',
629
+			chr(197).chr(160) => 'S', chr(197).chr(161) => 's',
630
+			chr(197).chr(162) => 'T', chr(197).chr(163) => 't',
631
+			chr(197).chr(164) => 'T', chr(197).chr(165) => 't',
632
+			chr(197).chr(166) => 'T', chr(197).chr(167) => 't',
633
+			chr(197).chr(168) => 'U', chr(197).chr(169) => 'u',
634
+			chr(197).chr(170) => 'U', chr(197).chr(171) => 'u',
635
+			chr(197).chr(172) => 'U', chr(197).chr(173) => 'u',
636
+			chr(197).chr(174) => 'U', chr(197).chr(175) => 'u',
637
+			chr(197).chr(176) => 'U', chr(197).chr(177) => 'u',
638
+			chr(197).chr(178) => 'U', chr(197).chr(179) => 'u',
639
+			chr(197).chr(180) => 'W', chr(197).chr(181) => 'w',
640
+			chr(197).chr(182) => 'Y', chr(197).chr(183) => 'y',
641
+			chr(197).chr(184) => 'Y', chr(197).chr(185) => 'Z',
642
+			chr(197).chr(186) => 'z', chr(197).chr(187) => 'Z',
643
+			chr(197).chr(188) => 'z', chr(197).chr(189) => 'Z',
644
+			chr(197).chr(190) => 'z', chr(197).chr(191) => 's'
645 645
 		);
646 646
 		$string = strtr($string, $chars);
647 647
 		return $string;
Please login to merge, or discard this patch.
js/map.3d.js.php 1 patch
Indentation   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -331,15 +331,15 @@  discard block
 block discarded – undo
331 331
     }
332 332
 
333 333
 <?php
334
-    if (isset($globalMapUseBbox) && $globalMapUseBbox) {
334
+	if (isset($globalMapUseBbox) && $globalMapUseBbox) {
335 335
 ?>
336 336
     var loc_geojson = Cesium.loadJson("<?php print $globalURL; ?>/location-geojson.php?coord="+bbox());
337 337
 <?php
338
-    } else {
338
+	} else {
339 339
 ?>
340 340
     var loc_geojson = Cesium.loadJson("<?php print $globalURL; ?>/location-geojson.php");
341 341
 <?php
342
-    }
342
+	}
343 343
 ?>
344 344
     loc_geojson.then(function(geojsondata) {
345 345
 	loc = new Cesium.CustomDataSource('location');
@@ -512,15 +512,15 @@  discard block
 block discarded – undo
512 512
 //	if (!isset($_COOKIE['MapTerrain']) || $_COOKIE['MapTerrain'] == 'stk') {
513 513
 ?>
514 514
 <?php
515
-    if (isset($globalMapOffline) && $globalMapOffline === TRUE) {
515
+	if (isset($globalMapOffline) && $globalMapOffline === TRUE) {
516 516
 ?>
517 517
 var MapTerrain = 'ellipsoid';
518 518
 <?php
519
-    } else {
519
+	} else {
520 520
 ?>
521 521
 var MapTerrain = getCookie('MapTerrain');
522 522
 <?php
523
-    }
523
+	}
524 524
 ?>
525 525
 
526 526
 
@@ -574,11 +574,11 @@  discard block
 block discarded – undo
574 574
 }
575 575
 
576 576
 <?php
577
-    if (isset($globalTSK) && $globalTSK && isset($_GET['tsk'])) {
577
+	if (isset($globalTSK) && $globalTSK && isset($_GET['tsk'])) {
578 578
 ?>
579 579
 update_tsk();
580 580
 <?php
581
-    }
581
+	}
582 582
 ?>
583 583
 
584 584
 update_locationsLayer();
Please login to merge, or discard this patch.
require/class.Image.php 1 patch
Indentation   +102 added lines, -102 removed lines patch added patch discarded remove patch
@@ -13,11 +13,11 @@  discard block
 block discarded – undo
13 13
 	}
14 14
 
15 15
 	/**
16
-	* Gets the images based on the aircraft registration
17
-	*
18
-	* @return Array the images list
19
-	*
20
-	*/
16
+	 * Gets the images based on the aircraft registration
17
+	 *
18
+	 * @return Array the images list
19
+	 *
20
+	 */
21 21
 	public function getSpotterImage($registration,$aircraft_icao = '', $airline_icao = '')
22 22
 	{
23 23
 		$registration = filter_var($registration,FILTER_SANITIZE_STRING);
@@ -38,11 +38,11 @@  discard block
 block discarded – undo
38 38
 	}
39 39
 
40 40
 	/**
41
-	* Gets the images based on the ship name
42
-	*
43
-	* @return Array the images list
44
-	*
45
-	*/
41
+	 * Gets the images based on the ship name
42
+	 *
43
+	 * @return Array the images list
44
+	 *
45
+	 */
46 46
 	public function getMarineImage($mmsi,$imo = '',$name = '')
47 47
 	{
48 48
 		$mmsi = filter_var($mmsi,FILTER_SANITIZE_STRING);
@@ -69,11 +69,11 @@  discard block
 block discarded – undo
69 69
 	}
70 70
 
71 71
 	/**
72
-	* Gets the image copyright based on the Exif data
73
-	*
74
-	* @return String image copyright
75
-	*
76
-	*/
72
+	 * Gets the image copyright based on the Exif data
73
+	 *
74
+	 * @return String image copyright
75
+	 *
76
+	 */
77 77
 	public function getExifCopyright($url) {
78 78
 		$exif = exif_read_data($url);
79 79
 		$copyright = '';
@@ -88,11 +88,11 @@  discard block
 block discarded – undo
88 88
 	}
89 89
 
90 90
 	/**
91
-	* Adds the images based on the aircraft registration
92
-	*
93
-	* @return String either success or error
94
-	*
95
-	*/
91
+	 * Adds the images based on the aircraft registration
92
+	 *
93
+	 * @return String either success or error
94
+	 *
95
+	 */
96 96
 	public function addSpotterImage($registration,$aircraft_icao = '', $airline_icao = '')
97 97
 	{
98 98
 		global $globalDebug,$globalAircraftImageFetch, $globalOffline;
@@ -120,11 +120,11 @@  discard block
 block discarded – undo
120 120
 	}
121 121
 
122 122
 	/**
123
-	* Adds the images based on the marine name
124
-	*
125
-	* @return String either success or error
126
-	*
127
-	*/
123
+	 * Adds the images based on the marine name
124
+	 *
125
+	 * @return String either success or error
126
+	 *
127
+	 */
128 128
 	public function addMarineImage($mmsi,$imo = '',$name = '')
129 129
 	{
130 130
 		global $globalDebug,$globalMarineImageFetch, $globalOffline;
@@ -161,12 +161,12 @@  discard block
 block discarded – undo
161 161
 	}
162 162
 
163 163
 	/**
164
-	* Gets the aircraft image
165
-	*
166
-	* @param String $aircraft_registration the registration of the aircraft
167
-	* @return Array the aircraft thumbnail, orignal url and copyright
168
-	*
169
-	*/
164
+	 * Gets the aircraft image
165
+	 *
166
+	 * @param String $aircraft_registration the registration of the aircraft
167
+	 * @return Array the aircraft thumbnail, orignal url and copyright
168
+	 *
169
+	 */
170 170
 	public function findAircraftImage($aircraft_registration, $aircraft_icao = '', $airline_icao = '')
171 171
 	{
172 172
 		global $globalAircraftImageSources, $globalIVAO, $globalAircraftImageCheckICAO, $globalVA;
@@ -210,14 +210,14 @@  discard block
 block discarded – undo
210 210
 	}
211 211
 
212 212
 	/**
213
-	* Gets the vessel image
214
-	*
215
-	* @param String $mmsi the vessel mmsi
216
-	* @param String $imo the vessel imo
217
-	* @param String $name the vessel name
218
-	* @return Array the aircraft thumbnail, orignal url and copyright
219
-	*
220
-	*/
213
+	 * Gets the vessel image
214
+	 *
215
+	 * @param String $mmsi the vessel mmsi
216
+	 * @param String $imo the vessel imo
217
+	 * @param String $name the vessel name
218
+	 * @return Array the aircraft thumbnail, orignal url and copyright
219
+	 *
220
+	 */
221 221
 	public function findMarineImage($mmsi,$imo = '',$name = '')
222 222
 	{
223 223
 		global $globalMarineImageSources;
@@ -251,13 +251,13 @@  discard block
 block discarded – undo
251 251
 	}
252 252
 
253 253
 	/**
254
-	* Gets the aircraft image from Planespotters
255
-	*
256
-	* @param String $aircraft_registration the registration of the aircraft
257
-	* @param String $aircraft_name type of the aircraft
258
-	* @return Array the aircraft thumbnail, orignal url and copyright
259
-	*
260
-	*/
254
+	 * Gets the aircraft image from Planespotters
255
+	 *
256
+	 * @param String $aircraft_registration the registration of the aircraft
257
+	 * @param String $aircraft_name type of the aircraft
258
+	 * @return Array the aircraft thumbnail, orignal url and copyright
259
+	 *
260
+	 */
261 261
 	public function fromPlanespotters($type,$aircraft_registration, $aircraft_name='') {
262 262
 		$Common = new Common();
263 263
 		// If aircraft registration is only number, also check with aircraft model
@@ -285,13 +285,13 @@  discard block
 block discarded – undo
285 285
 	}
286 286
 
287 287
 	/**
288
-	* Gets the aircraft image from Deviantart
289
-	*
290
-	* @param String $registration the registration of the aircraft
291
-	* @param String $name type of the aircraft
292
-	* @return Array the aircraft thumbnail, orignal url and copyright
293
-	*
294
-	*/
288
+	 * Gets the aircraft image from Deviantart
289
+	 *
290
+	 * @param String $registration the registration of the aircraft
291
+	 * @param String $name type of the aircraft
292
+	 * @return Array the aircraft thumbnail, orignal url and copyright
293
+	 *
294
+	 */
295 295
 	public function fromDeviantart($type,$registration, $name='') {
296 296
 		$Common = new Common();
297 297
 		if ($type == 'aircraft') {
@@ -325,13 +325,13 @@  discard block
 block discarded – undo
325 325
 	}
326 326
 
327 327
 	/**
328
-	* Gets the aircraft image from JetPhotos
329
-	*
330
-	* @param String $aircraft_registration the registration of the aircraft
331
-	* @param String $aircraft_name type of the aircraft
332
-	* @return Array the aircraft thumbnail, orignal url and copyright
333
-	*
334
-	*/
328
+	 * Gets the aircraft image from JetPhotos
329
+	 *
330
+	 * @param String $aircraft_registration the registration of the aircraft
331
+	 * @param String $aircraft_name type of the aircraft
332
+	 * @return Array the aircraft thumbnail, orignal url and copyright
333
+	 *
334
+	 */
335 335
 	public function fromJetPhotos($type,$aircraft_registration, $aircraft_name='') {
336 336
 		$Common = new Common();
337 337
 		$url= 'http://jetphotos.net/showphotos.php?displaymode=2&regsearch='.$aircraft_registration;
@@ -367,13 +367,13 @@  discard block
 block discarded – undo
367 367
 	}
368 368
 
369 369
 	/**
370
-	* Gets the aircraft image from PlanePictures
371
-	*
372
-	* @param String $aircraft_registration the registration of the aircraft
373
-	* @param String $aircraft_name type of the aircraft
374
-	* @return Array the aircraft thumbnail, orignal url and copyright
375
-	*
376
-	*/
370
+	 * Gets the aircraft image from PlanePictures
371
+	 *
372
+	 * @param String $aircraft_registration the registration of the aircraft
373
+	 * @param String $aircraft_name type of the aircraft
374
+	 * @return Array the aircraft thumbnail, orignal url and copyright
375
+	 *
376
+	 */
377 377
 	public function fromPlanePictures($type,$aircraft_registration, $aircraft_name='') {
378 378
 		$Common = new Common();
379 379
 		$url= 'http://www.planepictures.net/netsearch4.cgi?srch='.$aircraft_registration.'&stype=reg&srng=2';
@@ -401,13 +401,13 @@  discard block
 block discarded – undo
401 401
 	}
402 402
 
403 403
 	/**
404
-	* Gets the aircraft image from Flickr
405
-	*
406
-	* @param String $registration the registration of the aircraft
407
-	* @param String $name type of the aircraft
408
-	* @return Array the aircraft thumbnail, orignal url and copyright
409
-	*
410
-	*/
404
+	 * Gets the aircraft image from Flickr
405
+	 *
406
+	 * @param String $registration the registration of the aircraft
407
+	 * @param String $name type of the aircraft
408
+	 * @return Array the aircraft thumbnail, orignal url and copyright
409
+	 *
410
+	 */
411 411
 	public function fromFlickr($type,$registration,$name='') {
412 412
 		$Common = new Common();
413 413
 		if ($type == 'aircraft') {
@@ -451,13 +451,13 @@  discard block
 block discarded – undo
451 451
 	}
452 452
 
453 453
 	/**
454
-	* Gets the aircraft image from Bing
455
-	*
456
-	* @param String $aircraft_registration the registration of the aircraft
457
-	* @param String $aircraft_name type of the aircraft
458
-	* @return Array the aircraft thumbnail, orignal url and copyright
459
-	*
460
-	*/
454
+	 * Gets the aircraft image from Bing
455
+	 *
456
+	 * @param String $aircraft_registration the registration of the aircraft
457
+	 * @param String $aircraft_name type of the aircraft
458
+	 * @return Array the aircraft thumbnail, orignal url and copyright
459
+	 *
460
+	 */
461 461
 	public function fromBing($type,$aircraft_registration,$aircraft_name='') {
462 462
 		global $globalImageBingKey;
463 463
 		$Common = new Common();
@@ -488,13 +488,13 @@  discard block
 block discarded – undo
488 488
 	}
489 489
 
490 490
 	/**
491
-	* Gets the aircraft image from airport-data
492
-	*
493
-	* @param String $aircraft_registration the registration of the aircraft
494
-	* @param String $aircraft_name type of the aircraft
495
-	* @return Array the aircraft thumbnail, orignal url and copyright
496
-	*
497
-	*/
491
+	 * Gets the aircraft image from airport-data
492
+	 *
493
+	 * @param String $aircraft_registration the registration of the aircraft
494
+	 * @param String $aircraft_name type of the aircraft
495
+	 * @return Array the aircraft thumbnail, orignal url and copyright
496
+	 *
497
+	 */
498 498
 	public function fromAirportData($type,$aircraft_registration,$aircraft_name='') {
499 499
 		$Common = new Common();
500 500
 		$url = 'http://www.airport-data.com/api/ac_thumb.json?&n=1&r='.$aircraft_registration;
@@ -513,13 +513,13 @@  discard block
 block discarded – undo
513 513
 	}
514 514
 
515 515
 	/**
516
-	* Gets image from WikiMedia
517
-	*
518
-	* @param String $registration the registration of the aircraft/mmsi
519
-	* @param String $name name
520
-	* @return Array the aircraft thumbnail, orignal url and copyright
521
-	*
522
-	*/
516
+	 * Gets image from WikiMedia
517
+	 *
518
+	 * @param String $registration the registration of the aircraft/mmsi
519
+	 * @param String $name name
520
+	 * @return Array the aircraft thumbnail, orignal url and copyright
521
+	 *
522
+	 */
523 523
 	public function fromWikimedia($type,$registration,$name='') {
524 524
 		$Common = new Common();
525 525
 		if ($type == 'aircraft') {
@@ -574,13 +574,13 @@  discard block
 block discarded – undo
574 574
 	}
575 575
 
576 576
 	/**
577
-	* Gets the aircraft image from custom url
578
-	*
579
-	* @param String $registration the registration of the aircraft
580
-	* @param String $name type of the aircraft
581
-	* @return Array the aircraft thumbnail, orignal url and copyright
582
-	*
583
-	*/
577
+	 * Gets the aircraft image from custom url
578
+	 *
579
+	 * @param String $registration the registration of the aircraft
580
+	 * @param String $name type of the aircraft
581
+	 * @return Array the aircraft thumbnail, orignal url and copyright
582
+	 *
583
+	 */
584 584
 	public function fromCustomSource($type,$registration,$name='') {
585 585
 		global $globalAircraftImageCustomSources, $globalMarineImageCustomSources, $globalDebug;
586 586
 		//$globalAircraftImageCustomSource[] = array('thumbnail' => '','original' => '', 'copyright' => '', 'source_website' => '', 'source' => '','exif' => true);
Please login to merge, or discard this patch.
js/map.2d.js.php 1 patch
Indentation   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -375,7 +375,7 @@  discard block
 block discarded – undo
375 375
 	};
376 376
 
377 377
 <?php
378
-    if (isset($globalTSK) && $globalTSK && isset($_GET['tsk'])) {
378
+	if (isset($globalTSK) && $globalTSK && isset($_GET['tsk'])) {
379 379
 ?>
380 380
 	function tskPopup (feature, layer) {
381 381
 		var output = '';
@@ -410,7 +410,7 @@  discard block
 block discarded – undo
410 410
 	};
411 411
 	update_tsk();
412 412
 <?php
413
-    }
413
+	}
414 414
 ?>
415 415
 	map.on('moveend', function() {
416 416
 		//if (map.getZoom() > 7) {
@@ -426,10 +426,10 @@  discard block
 block discarded – undo
426 426
 setInterval(function(){if (noTimeout) update_locationsLayer()},<?php if (isset($globalMapRefresh)) print $globalMapRefresh*1000*2; else print '60000'; ?>);
427 427
 
428 428
 <?php
429
-    // Add support for custom json via $globalMapJson
430
-    if (isset($globalMapJson) && is_array($globalMapJson)) {
429
+	// Add support for custom json via $globalMapJson
430
+	if (isset($globalMapJson) && is_array($globalMapJson)) {
431 431
 	foreach ($globalMapJson as $json) {
432
-	    if (isset($json['url'])) {
432
+		if (isset($json['url'])) {
433 433
 ?>
434 434
 update_genLayer('<?php print $json['url']; ?>');
435 435
 <?php
@@ -438,9 +438,9 @@  discard block
 block discarded – undo
438 438
 setInterval(function(){if (noTimeout) update_genLayer('<?php print $json['url']; ?>')}, <?php print $json['refresh']; ?>);
439 439
 <?php
440 440
 		}
441
-	    }
441
+		}
442
+	}
442 443
 	}
443
-    }
444 444
 
445 445
 ?>
446 446
 //adds the bootstrap tooltip to the map icons
Please login to merge, or discard this patch.
require/class.METAR.php 1 patch
Indentation   +34 added lines, -34 removed lines patch added patch discarded remove patch
@@ -14,35 +14,35 @@  discard block
 block discarded – undo
14 14
 	public $db;
15 15
 	
16 16
 	protected $texts = Array(
17
-	    'MI' => 'Shallow',
18
-	    'PR' => 'Partial',
19
-	    'BC' => 'Low drifting',
20
-	    'BL' => 'Blowing',
21
-	    'SH' => 'Showers',
22
-	    'TS' => 'Thunderstorm',
23
-	    'FZ' => 'Freezing',
24
-	    'DZ' => 'Drizzle',
25
-	    'RA' => 'Rain',
26
-	    'SN' => 'Snow',
27
-	    'SG' => 'Snow Grains',
28
-	    'IC' => 'Ice crystals',
29
-	    'PL' => 'Ice pellets',
30
-	    'GR' => 'Hail',
31
-	    'GS' => 'Small hail',
32
-	    'UP' => 'Unknown',
33
-	    'BR' => 'Mist',
34
-	    'FG' => 'Fog',
35
-	    'FU' => 'Smoke',
36
-	    'VA' => 'Volcanic ash',
37
-	    'DU' => 'Widespread dust',
38
-	    'SA' => 'Sand',
39
-	    'HZ' => 'Haze',
40
-	    'PY' => 'Spray',
41
-	    'PO' => 'Well developed dust / sand whirls',
42
-	    'SQ' => 'Squalls',
43
-	    'FC' => 'Funnel clouds inc tornadoes or waterspouts',
44
-	    'SS' => 'Sandstorm',
45
-	    'DS' => 'Duststorm'
17
+		'MI' => 'Shallow',
18
+		'PR' => 'Partial',
19
+		'BC' => 'Low drifting',
20
+		'BL' => 'Blowing',
21
+		'SH' => 'Showers',
22
+		'TS' => 'Thunderstorm',
23
+		'FZ' => 'Freezing',
24
+		'DZ' => 'Drizzle',
25
+		'RA' => 'Rain',
26
+		'SN' => 'Snow',
27
+		'SG' => 'Snow Grains',
28
+		'IC' => 'Ice crystals',
29
+		'PL' => 'Ice pellets',
30
+		'GR' => 'Hail',
31
+		'GS' => 'Small hail',
32
+		'UP' => 'Unknown',
33
+		'BR' => 'Mist',
34
+		'FG' => 'Fog',
35
+		'FU' => 'Smoke',
36
+		'VA' => 'Volcanic ash',
37
+		'DU' => 'Widespread dust',
38
+		'SA' => 'Sand',
39
+		'HZ' => 'Haze',
40
+		'PY' => 'Spray',
41
+		'PO' => 'Well developed dust / sand whirls',
42
+		'SQ' => 'Squalls',
43
+		'FC' => 'Funnel clouds inc tornadoes or waterspouts',
44
+		'SS' => 'Sandstorm',
45
+		'DS' => 'Duststorm'
46 46
 	);
47 47
 
48 48
 	/*
@@ -177,7 +177,7 @@  discard block
 block discarded – undo
177 177
     				$result['QNH_format'] = $matches[1] == 'Q' ? 'hPa' : 'inHg';
178 178
     				*/
179 179
 			}
180
-                     /*
180
+					 /*
181 181
     			// Wind Direction
182 182
     			if (preg_match('#^([0-9]{3})V([0-9]{3})$#', $piece, $matches)) {
183 183
     				$result['wind_direction'] = $matches[1];
@@ -188,7 +188,7 @@  discard block
 block discarded – undo
188 188
     				$result['speed_variable'] = $matches[1];
189 189
     			}
190 190
     			*/
191
-    			// Visibility
191
+				// Visibility
192 192
 			if (preg_match('#^([0-9]{4})|(([0-9]{1,4})SM)$#', $piece, $matches)) {
193 193
 				if (isset($matches[3]) && strlen($matches[3]) > 0) {
194 194
 					$result['visibility'] = (float)$matches[3] * 1609.34;
@@ -246,9 +246,9 @@  discard block
 block discarded – undo
246 246
 				else $range = array('exact' => (float)$matches[2], 'unit' => 'M');
247 247
 				if (isset($matches[3])) {
248 248
 					$range = Array(
249
-					    'from' => (float)$matches[2],
250
-					    'to'   => (float)$matches[4],
251
-					    'unit' => $matches[5] ? 'FT' : 'M'
249
+						'from' => (float)$matches[2],
250
+						'to'   => (float)$matches[4],
251
+						'unit' => $matches[5] ? 'FT' : 'M'
252 252
 					);
253 253
 				}
254 254
 				$result['RVR'] = $matches[1];
Please login to merge, or discard this patch.
require/class.APRS.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -176,8 +176,8 @@
 block discarded – undo
176 176
 
177 177
 	private function urshift($n, $s) {
178 178
 		return ($n >= 0) ? ($n >> $s) :
179
-		    (($n & 0x7fffffff) >> $s) | 
180
-		    (0x40000000 >> ($s - 1));
179
+			(($n & 0x7fffffff) >> $s) | 
180
+			(0x40000000 >> ($s - 1));
181 181
 	}
182 182
 
183 183
 	/*
Please login to merge, or discard this patch.