Completed
Push — 3.1 ( 2f11f9...6c19c5 )
by Gordon
14:04
created
code/PointsOfInterestAdmin.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,7 +1,7 @@
 block discarded – undo
1 1
 <?php
2 2
 
3 3
 class PointsOfInterestAdmin extends ModelAdmin {
4
-	private static $managed_models = array('PointsOfInterestLayer','PointOfInterest');
4
+	private static $managed_models = array('PointsOfInterestLayer', 'PointOfInterest');
5 5
 	private static $url_segment = 'poi';
6 6
 	private static $menu_title = 'Points of Interest';
7 7
 	private static $menu_icon = '/mappable/icons/menuicon.png';
Please login to merge, or discard this patch.
code/PointOfInterest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@
 block discarded – undo
9 9
 		'Name' => 'Varchar'
10 10
 	);
11 11
 
12
-	private static $summary_fields = array('Name','Lat','Lon');
12
+	private static $summary_fields = array('Name', 'Lat', 'Lon');
13 13
 
14 14
 	private static $default_sort = 'Name';
15 15
 
Please login to merge, or discard this patch.
code/NearestPOIPage.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -39,10 +39,10 @@
 block discarded – undo
39 39
 		foreach ($records as $record) {
40 40
 			$dob = new DataObject();
41 41
 			//number_format((float)$number, 2, '.', '');
42
-			$dob->Latitude = number_format((float)$record['Lat'],3,'.','');
43
-			$dob->Longitude = number_format((float)$record['Lon'],3,'.','');
42
+			$dob->Latitude = number_format((float)$record['Lat'], 3, '.', '');
43
+			$dob->Longitude = number_format((float)$record['Lon'], 3, '.', '');
44 44
 			$dob->Name = $record['Name'];
45
-			$dob->Distance = number_format((float)$record['distance'],2,'.','');
45
+			$dob->Distance = number_format((float)$record['distance'], 2, '.', '');
46 46
 			$mapurl = "http://maps.google.com?q={$dob->Latitude},{$dob->Longitude}";
47 47
 			$dob->MapURL = $mapurl;
48 48
 			$dirurl = "http://maps.google.com?saddr={$latitude},{$longitude}&daddr={$dob->Latitude},{$dob->Longitude}";
Please login to merge, or discard this patch.