@@ -35,64 +35,64 @@ class LatLongFormatter implements ValueFormatter {
3535 /**
3636 * Output formats for use with the self::OPT_FORMAT option.
3737 */
38- public const TYPE_FLOAT = 'float ' ;
39- public const TYPE_DMS = 'dms ' ;
40- public const TYPE_DM = 'dm ' ;
41- public const TYPE_DD = 'dd ' ;
38+ public const string TYPE_FLOAT = 'float ' ;
39+ public const string TYPE_DMS = 'dms ' ;
40+ public const string TYPE_DM = 'dm ' ;
41+ public const string TYPE_DD = 'dd ' ;
4242
4343 /**
4444 * The symbols representing the different directions for usage in directional notation.
4545 * @since 0.1
4646 */
47- public const OPT_NORTH_SYMBOL = 'north ' ;
48- public const OPT_EAST_SYMBOL = 'east ' ;
49- public const OPT_SOUTH_SYMBOL = 'south ' ;
50- public const OPT_WEST_SYMBOL = 'west ' ;
47+ public const string OPT_NORTH_SYMBOL = 'north ' ;
48+ public const string OPT_EAST_SYMBOL = 'east ' ;
49+ public const string OPT_SOUTH_SYMBOL = 'south ' ;
50+ public const string OPT_WEST_SYMBOL = 'west ' ;
5151
5252 /**
5353 * The symbols representing degrees, minutes and seconds.
5454 * @since 0.1
5555 */
56- public const OPT_DEGREE_SYMBOL = 'degree ' ;
57- public const OPT_MINUTE_SYMBOL = 'minute ' ;
58- public const OPT_SECOND_SYMBOL = 'second ' ;
56+ public const string OPT_DEGREE_SYMBOL = 'degree ' ;
57+ public const string OPT_MINUTE_SYMBOL = 'minute ' ;
58+ public const string OPT_SECOND_SYMBOL = 'second ' ;
5959
6060 /**
6161 * Flags for use with the self::OPT_SPACING_LEVEL option.
6262 */
63- public const OPT_SPACE_LATLONG = 'latlong ' ;
64- public const OPT_SPACE_DIRECTION = 'direction ' ;
65- public const OPT_SPACE_COORDPARTS = 'coordparts ' ;
63+ public const string OPT_SPACE_LATLONG = 'latlong ' ;
64+ public const string OPT_SPACE_DIRECTION = 'direction ' ;
65+ public const string OPT_SPACE_COORDPARTS = 'coordparts ' ;
6666
6767 /**
6868 * Option specifying the output format (also referred to as output type). Must be one of the
6969 * self::TYPE_… constants.
7070 */
71- public const OPT_FORMAT = 'geoformat ' ;
71+ public const string OPT_FORMAT = 'geoformat ' ;
7272
7373 /**
7474 * Boolean option specifying if negative coordinates should have minus signs, e.g. "-1°, -2°"
7575 * (false) or cardinal directions, e.g. "1° S, 2° W" (true). Default is false.
7676 */
77- public const OPT_DIRECTIONAL = 'directional ' ;
77+ public const string OPT_DIRECTIONAL = 'directional ' ;
7878
7979 /**
8080 * Option for the separator character between latitude and longitude. Defaults to a comma.
8181 */
82- public const OPT_SEPARATOR_SYMBOL = 'separator ' ;
82+ public const string OPT_SEPARATOR_SYMBOL = 'separator ' ;
8383
8484 /**
8585 * Option specifying the amount and position of space characters in the output. Must be an array
8686 * containing zero or more of the self::OPT_SPACE_… flags.
8787 */
88- public const OPT_SPACING_LEVEL = 'spacing ' ;
88+ public const string OPT_SPACING_LEVEL = 'spacing ' ;
8989
9090 /**
9191 * Option specifying the precision in fractional degrees. Must be a number or numeric string.
9292 */
93- public const OPT_PRECISION = 'precision ' ;
93+ public const string OPT_PRECISION = 'precision ' ;
9494
95- private const DEFAULT_PRECISION = 1 / 3600 ;
95+ private const float DEFAULT_PRECISION = 1 / 3600 ;
9696
9797 private FormatterOptions $ options ;
9898
0 commit comments