Skip to content
This repository was archived by the owner on May 8, 2025. It is now read-only.

Commit 0c03422

Browse files
committed
cosmetic tidy-up
1 parent 54f1bb3 commit 0c03422

File tree

1 file changed

+77
-77
lines changed

1 file changed

+77
-77
lines changed

src/phpFITFileAnalysis.php

Lines changed: 77 additions & 77 deletions
Original file line numberDiff line numberDiff line change
@@ -93,48 +93,48 @@ class phpFITFileAnalysis
9393
'display_heart' => [0 => 'bpm', 1 => 'max', 2 => 'reserve'],
9494
'display_measure' => [0 => 'metric', 1 => 'statute'],
9595
'display_position' => [
96-
0 => 'degree', //dd.dddddd
97-
1 => 'degree_minute', //dddmm.mmm
96+
0 => 'degree', //dd.dddddd
97+
1 => 'degree_minute', //dddmm.mmm
9898
2 => 'degree_minute_second', //dddmmss
99-
3 => 'austrian_grid', //Austrian Grid (BMN)
100-
4 => 'british_grid', //British National Grid
101-
5 => 'dutch_grid', //Dutch grid system
99+
3 => 'austrian_grid', //Austrian Grid (BMN)
100+
4 => 'british_grid', //British National Grid
101+
5 => 'dutch_grid', //Dutch grid system
102102
6 => 'hungarian_grid', //Hungarian grid system
103-
7 => 'finnish_grid', //Finnish grid system Zone3 KKJ27
104-
8 => 'german_grid', //Gausss Krueger (German)
103+
7 => 'finnish_grid', //Finnish grid system Zone3 KKJ27
104+
8 => 'german_grid', //Gausss Krueger (German)
105105
9 => 'icelandic_grid', //Icelandic Grid
106106
10 => 'indonesian_equatorial', //Indonesian Equatorial LCO
107-
11 => 'indonesian_irian', //Indonesian Irian LCO
108-
12 => 'indonesian_southern', //Indonesian Southern LCO
109-
13 => 'india_zone_0', //India zone 0
110-
14 => 'india_zone_IA', //India zone IA
111-
15 => 'india_zone_IB', //India zone IB
112-
16 => 'india_zone_IIA', //India zone IIA
113-
17 => 'india_zone_IIB', //India zone IIB
114-
18 => 'india_zone_IIIA', //India zone IIIA
115-
19 => 'india_zone_IIIB', //India zone IIIB
116-
20 => 'india_zone_IVA', //India zone IVA
117-
21 => 'india_zone_IVB', //India zone IVB
107+
11 => 'indonesian_irian', //Indonesian Irian LCO
108+
12 => 'indonesian_southern', //Indonesian Southern LCO
109+
13 => 'india_zone_0', //India zone 0
110+
14 => 'india_zone_IA', //India zone IA
111+
15 => 'india_zone_IB', //India zone IB
112+
16 => 'india_zone_IIA', //India zone IIA
113+
17 => 'india_zone_IIB', //India zone IIB
114+
18 => 'india_zone_IIIA', //India zone IIIA
115+
19 => 'india_zone_IIIB', //India zone IIIB
116+
20 => 'india_zone_IVA', //India zone IVA
117+
21 => 'india_zone_IVB', //India zone IVB
118118
22 => 'irish_transverse', //Irish Transverse Mercator
119-
23 => 'irish_grid', //Irish Grid
120-
24 => 'loran', //Loran TD
121-
25 => 'maidenhead_grid', //Maidenhead grid system
122-
26 => 'mgrs_grid', //MGRS grid system
119+
23 => 'irish_grid', //Irish Grid
120+
24 => 'loran', //Loran TD
121+
25 => 'maidenhead_grid', //Maidenhead grid system
122+
26 => 'mgrs_grid', //MGRS grid system
123123
27 => 'new_zealand_grid', //New Zealand grid system
124124
28 => 'new_zealand_transverse', //New Zealand Transverse Mercator
125-
29 => 'qatar_grid', //Qatar National Grid
126-
30 => 'modified_swedish_grid', //Modified RT-90 (Sweden)
127-
31 => 'swedish_grid', //RT-90 (Sweden)
128-
32 => 'south_african_grid', //South African Grid
129-
33 => 'swiss_grid', //Swiss CH-1903 grid
130-
34 => 'taiwan_grid', //Taiwan Grid
131-
35 => 'united_states_grid', //United States National Grid
132-
36 => 'utm_ups_grid', //UTM/UPS grid system
133-
37 => 'west_malayan', //West Malayan RSO
134-
38 => 'borneo_rso', //Borneo RSO
135-
39 => 'estonian_grid', //Estonian grid system
136-
40 => 'latvian_grid', //Latvian Transverse Mercator
137-
41 => 'swedish_ref_99_grid', //Reference Grid 99 TM (Swedish)
125+
29 => 'qatar_grid', //Qatar National Grid
126+
30 => 'modified_swedish_grid', //Modified RT-90 (Sweden)
127+
31 => 'swedish_grid', //RT-90 (Sweden)
128+
32 => 'south_african_grid', //South African Grid
129+
33 => 'swiss_grid', //Swiss CH-1903 grid
130+
34 => 'taiwan_grid', //Taiwan Grid
131+
35 => 'united_states_grid', //United States National Grid
132+
36 => 'utm_ups_grid', //UTM/UPS grid system
133+
37 => 'west_malayan', //West Malayan RSO
134+
38 => 'borneo_rso', //Borneo RSO
135+
39 => 'estonian_grid', //Estonian grid system
136+
40 => 'latvian_grid', //Latvian Transverse Mercator
137+
41 => 'swedish_ref_99_grid', //Reference Grid 99 TM (Swedish)
138138
],
139139
'display_power' => [0 => 'watts', 1 => 'percent_ftp'],
140140
'event' => [
@@ -504,54 +504,54 @@ class phpFITFileAnalysis
504504
*/
505505
private $endianness = [
506506
0 => [ // Little Endianness
507-
0 => 'Ctmp', // enum
508-
1 => 'ctmp', // sint8
509-
2 => 'Ctmp', // uint8
510-
131 => 'vtmp', // sint16 - manually convert uint16 to sint16 in fixData()
511-
132 => 'vtmp', // uint16
512-
133 => 'Vtmp', // sint32 - manually convert uint32 to sint32 in fixData()
513-
134 => 'Vtmp', // uint32
514-
7 => 'Ctmp', // string
515-
136 => 'ftmp', // float32
516-
137 => 'dtmp', // float64
517-
10 => 'Ctmp', // uint8z
518-
139 => 'vtmp', // uint16z
519-
140 => 'Vtmp', // uint32z
520-
13 => 'Ctmp', // byte
507+
0 => 'Ctmp', // enum
508+
1 => 'ctmp', // sint8
509+
2 => 'Ctmp', // uint8
510+
131 => 'vtmp', // sint16 - manually convert uint16 to sint16 in fixData()
511+
132 => 'vtmp', // uint16
512+
133 => 'Vtmp', // sint32 - manually convert uint32 to sint32 in fixData()
513+
134 => 'Vtmp', // uint32
514+
7 => 'Ctmp', // string
515+
136 => 'ftmp', // float32
516+
137 => 'dtmp', // float64
517+
10 => 'Ctmp', // uint8z
518+
139 => 'vtmp', // uint16z
519+
140 => 'Vtmp', // uint32z
520+
13 => 'Ctmp', // byte
521521
],
522522
1 => [ // Big Endianness
523-
0 => 'Ctmp', // enum
524-
1 => 'ctmp', // sint8
525-
2 => 'Ctmp', // uint8
526-
131 => 'ntmp', // sint16 - manually convert uint16 to sint16 in fixData()
527-
132 => 'ntmp', // uint16
528-
133 => 'Ntmp', // sint32 - manually convert uint32 to sint32 in fixData()
529-
134 => 'Ntmp', // uint32
530-
7 => 'Ctmp', // string
531-
136 => 'ftmp', // float32
532-
137 => 'dtmp', // float64
533-
10 => 'Ctmp', // uint8z
534-
139 => 'ntmp', // uint16z
535-
140 => 'Ntmp', // uint32z
536-
13 => 'Ctmp', // byte
523+
0 => 'Ctmp', // enum
524+
1 => 'ctmp', // sint8
525+
2 => 'Ctmp', // uint8
526+
131 => 'ntmp', // sint16 - manually convert uint16 to sint16 in fixData()
527+
132 => 'ntmp', // uint16
528+
133 => 'Ntmp', // sint32 - manually convert uint32 to sint32 in fixData()
529+
134 => 'Ntmp', // uint32
530+
7 => 'Ctmp', // string
531+
136 => 'ftmp', // float32
532+
137 => 'dtmp', // float64
533+
10 => 'Ctmp', // uint8z
534+
139 => 'ntmp', // uint16z
535+
140 => 'Ntmp', // uint32z
536+
13 => 'Ctmp', // byte
537537
]
538538
];
539539

540540
private $invalid_values = [
541-
0 => 255, // 0xFF
542-
1 => 127, // 0x7F
543-
2 => 255, // 0xFF
544-
131 => 32767, // 0x7FFF
545-
132 => 65535, // 0xFFFF
546-
133 => 2147483647, // 0x7FFFFFFF
547-
134 => 4294967295, // 0xFFFFFFFF
548-
7 => 0, // 0x00
549-
136 => 4294967295, // 0xFFFFFFFF
550-
137 => 9223372036854775807, // 0xFFFFFFFFFFFFFFFF
551-
10 => 0, // 0x00
552-
139 => 0, // 0x0000
553-
140 => 0, // 0x00000000
554-
13 => 255, // 0xFF
541+
0 => 255, // 0xFF
542+
1 => 127, // 0x7F
543+
2 => 255, // 0xFF
544+
131 => 32767, // 0x7FFF
545+
132 => 65535, // 0xFFFF
546+
133 => 2147483647, // 0x7FFFFFFF
547+
134 => 4294967295, // 0xFFFFFFFF
548+
7 => 0, // 0x00
549+
136 => 4294967295, // 0xFFFFFFFF
550+
137 => 9223372036854775807, // 0xFFFFFFFFFFFFFFFF
551+
10 => 0, // 0x00
552+
139 => 0, // 0x0000
553+
140 => 0, // 0x00000000
554+
13 => 255, // 0xFF
555555
];
556556

557557
/**

0 commit comments

Comments
 (0)