Completed
Push — master ( a80977...554d4d )
by Yannick
61:39 queued 35:08
created
require/class.ACARS.php 1 patch
Indentation   +72 added lines, -72 removed lines patch added patch discarded remove patch
@@ -19,11 +19,11 @@  discard block
 block discarded – undo
19 19
 		}
20 20
 	}
21 21
 	/**
22
-	* Change IATA to ICAO value for ident
23
-	*
24
-	* @param String $ident ident
25
-	* @return String the icao
26
-	*/
22
+	 * Change IATA to ICAO value for ident
23
+	 *
24
+	 * @param String $ident ident
25
+	 * @return String the icao
26
+	 */
27 27
 	public function ident2icao($ident) {
28 28
 		if (substr($ident,0,2) == 'AF') {
29 29
 			if (filter_var(substr($ident,2),FILTER_VALIDATE_INT,array("flags"=>FILTER_FLAG_ALLOW_OCTAL))) $icao = $ident;
@@ -39,11 +39,11 @@  discard block
 block discarded – undo
39 39
 	}
40 40
 
41 41
 	/**
42
-	* Deletes all info in the live table
43
-	*
44
-	* @return String success or false
45
-	*
46
-	*/
42
+	 * Deletes all info in the live table
43
+	 *
44
+	 * @return String success or false
45
+	 *
46
+	 */
47 47
 	public function deleteLiveAcarsData()
48 48
 	{
49 49
 		global $globalDBdriver;
@@ -63,11 +63,11 @@  discard block
 block discarded – undo
63 63
 	}
64 64
 
65 65
 	/**
66
-	* Deletes all info in the archive table
67
-	*
68
-	* @return String success or false
69
-	*
70
-	*/
66
+	 * Deletes all info in the archive table
67
+	 *
68
+	 * @return String success or false
69
+	 *
70
+	 */
71 71
 	public function deleteArchiveAcarsData()
72 72
 	{
73 73
 		global $globalACARSArchiveKeepMonths, $globalDBdriver;
@@ -88,11 +88,11 @@  discard block
 block discarded – undo
88 88
 
89 89
 
90 90
 	/**
91
-	* Parse ACARS data
92
-	*
93
-	* @param String ACARS data in acarsdec data
94
-	*
95
-	*/
91
+	 * Parse ACARS data
92
+	 *
93
+	 * @param String ACARS data in acarsdec data
94
+	 *
95
+	 */
96 96
 	public function parse($data) {
97 97
 		global $globalDebug, $globalACARSArchive;
98 98
 		//$Image = new Image($this->db);
@@ -722,11 +722,11 @@  discard block
 block discarded – undo
722 722
 	}
723 723
 
724 724
 	/**
725
-	* Add ACARS data
726
-	*
727
-	* @param String ACARS data in acarsdec data
728
-	*
729
-	*/
725
+	 * Add ACARS data
726
+	 *
727
+	 * @param String ACARS data in acarsdec data
728
+	 *
729
+	 */
730 730
 	function add($data) {
731 731
 		global $globalDebug, $globalACARSArchive;
732 732
 		$Image = new Image($this->db);
@@ -773,15 +773,15 @@  discard block
 block discarded – undo
773 773
 	}
774 774
 
775 775
 	/**
776
-	* Add Live ACARS data in DB
777
-	*
778
-	* @param String $ident ident
779
-	* @param String $registration Registration of the aircraft
780
-	* @param String $label Label of the ACARS message
781
-	* @param String $block_id Block id of the ACARS message
782
-	* @param String $msg_no Number of the ACARS message
783
-	* @param String $message ACARS message
784
-	*/
776
+	 * Add Live ACARS data in DB
777
+	 *
778
+	 * @param String $ident ident
779
+	 * @param String $registration Registration of the aircraft
780
+	 * @param String $label Label of the ACARS message
781
+	 * @param String $block_id Block id of the ACARS message
782
+	 * @param String $msg_no Number of the ACARS message
783
+	 * @param String $message ACARS message
784
+	 */
785 785
 	public function addLiveAcarsData($ident,$registration,$label,$block_id,$msg_no,$message,$decode = '') {
786 786
 		global $globalDebug;
787 787
 		date_default_timezone_set('UTC');
@@ -817,15 +817,15 @@  discard block
 block discarded – undo
817 817
 	}
818 818
 
819 819
 	/**
820
-	* Add Archive ACARS data in DB
821
-	*
822
-	* @param String $ident ident
823
-	* @param String $registration Registration of the aircraft
824
-	* @param String $label Label of the ACARS message
825
-	* @param String $block_id Block id of the ACARS message
826
-	* @param String $msg_no Number of the ACARS message
827
-	* @param String $message ACARS message
828
-	*/
820
+	 * Add Archive ACARS data in DB
821
+	 *
822
+	 * @param String $ident ident
823
+	 * @param String $registration Registration of the aircraft
824
+	 * @param String $label Label of the ACARS message
825
+	 * @param String $block_id Block id of the ACARS message
826
+	 * @param String $msg_no Number of the ACARS message
827
+	 * @param String $message ACARS message
828
+	 */
829 829
 	public function addArchiveAcarsData($ident,$registration,$label,$block_id,$msg_no,$message,$decode = '') {
830 830
 		global $globalDebug;
831 831
 		date_default_timezone_set('UTC');
@@ -856,11 +856,11 @@  discard block
 block discarded – undo
856 856
 	}
857 857
 
858 858
 	/**
859
-	* Get Message title from label from DB
860
-	*
861
-	* @param String $label
862
-	* @return String Return ACARS title
863
-	*/
859
+	 * Get Message title from label from DB
860
+	 *
861
+	 * @param String $label
862
+	 * @return String Return ACARS title
863
+	 */
864 864
 	public function getTitlefromLabel($label) {
865 865
 		$Connection = new Connection($this->db);
866 866
 		$this->db = $Connection->db;
@@ -879,10 +879,10 @@  discard block
 block discarded – undo
879 879
 	}
880 880
 
881 881
 	/**
882
-	* List all Message title & label from DB
883
-	*
884
-	* @return Array Return ACARS data in array
885
-	*/
882
+	 * List all Message title & label from DB
883
+	 *
884
+	 * @return Array Return ACARS data in array
885
+	 */
886 886
 	public function getAllTitleLabel() {
887 887
 		$query = "SELECT * FROM acars_label ORDER BY title";
888 888
 		$query_values = array();
@@ -899,11 +899,11 @@  discard block
 block discarded – undo
899 899
 	}
900 900
 
901 901
 	/**
902
-	* Get Live ACARS data from DB
903
-	*
904
-	* @param String $ident
905
-	* @return Array Return ACARS data in array
906
-	*/
902
+	 * Get Live ACARS data from DB
903
+	 *
904
+	 * @param String $ident
905
+	 * @return Array Return ACARS data in array
906
+	 */
907 907
 	public function getLiveAcarsData($ident) {
908 908
 		$query = "SELECT * FROM acars_live WHERE ident = :ident ORDER BY acars_live_id DESC";
909 909
 		$query_values = array(':ident' => $ident);
@@ -920,10 +920,10 @@  discard block
 block discarded – undo
920 920
 	}
921 921
 
922 922
 	/**
923
-	* Get Latest ACARS data from DB
924
-	*
925
-	* @return Array Return ACARS data in array
926
-	*/
923
+	 * Get Latest ACARS data from DB
924
+	 *
925
+	 * @return Array Return ACARS data in array
926
+	 */
927 927
 	public function getLatestAcarsData($limit = '',$label = '') {
928 928
 		global $globalURL, $globalDBdriver;
929 929
 		$Image = new Image($this->db);
@@ -1011,10 +1011,10 @@  discard block
 block discarded – undo
1011 1011
 	}
1012 1012
 
1013 1013
 	/**
1014
-	* Get Archive ACARS data from DB
1015
-	*
1016
-	* @return Array Return ACARS data in array
1017
-	*/
1014
+	 * Get Archive ACARS data from DB
1015
+	 *
1016
+	 * @return Array Return ACARS data in array
1017
+	 */
1018 1018
 	public function getArchiveAcarsData($limit = '',$label = '') {
1019 1019
 		global $globalURL, $globalDBdriver;
1020 1020
 		$Image = new Image($this->db);
@@ -1102,13 +1102,13 @@  discard block
 block discarded – undo
1102 1102
 	}
1103 1103
 
1104 1104
 	/**
1105
-	* Add ModeS data to DB
1106
-	*
1107
-	* @param String $ident ident
1108
-	* @param String $registration Registration of the aircraft
1109
-	* @param String $icao
1110
-	* @param String $ICAOTypeCode
1111
-	*/
1105
+	 * Add ModeS data to DB
1106
+	 *
1107
+	 * @param String $ident ident
1108
+	 * @param String $registration Registration of the aircraft
1109
+	 * @param String $icao
1110
+	 * @param String $ICAOTypeCode
1111
+	 */
1112 1112
 	public function addModeSData($ident,$registration,$icao = '',$ICAOTypeCode = '',$latitude = '', $longitude = '') {
1113 1113
 		global $globalDebug, $globalDBdriver;
1114 1114
 		$ident = trim($ident);
Please login to merge, or discard this patch.