Completed
Branch AUTOMATED_TESTING (4870f5)
by Gordon
03:01
created
code/extensions/OSMPointOfInterestExtension.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -8,12 +8,12 @@
 block discarded – undo
8 8
 
9 9
 	// given millions of possible POIs an index is handy
10 10
 	private static $indexes = array(
11
-        'OpenStreetMapID' => true
11
+		'OpenStreetMapID' => true
12 12
    );
13 13
 
14 14
 
15 15
 	/* The openstreetmap id is only for scripting purposes */
16
-    public function updateCMSFields(FieldList $fields) {
16
+	public function updateCMSFields(FieldList $fields) {
17 17
 		$fields->removeByName('OpenStreetMapID');
18 18
 	}
19 19
 }
Please login to merge, or discard this patch.
code/PointsOfInterestLayer.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -7,6 +7,6 @@
 block discarded – undo
7 7
 	private static $menu_icon = '/mappable/icons/menuicon.png';
8 8
 
9 9
 	static $has_one = array(
10
-	    'DefaultIcon' => 'Image'
10
+		'DefaultIcon' => 'Image'
11 11
 	);
12 12
 }
Please login to merge, or discard this patch.
tests/PointsOfInterestLayerTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@
 block discarded – undo
12 12
 			$names[] = $field->getName();
13 13
 		}
14 14
 		
15
-		error_log(print_r($names,1)); 
15
+		error_log(print_r($names, 1)); 
16 16
 		$expected = array('Name', 'ShowGuideMarkers', 'DefaultIcon');
17 17
 		$this->assertEquals($expected, $names);
18 18
 
Please login to merge, or discard this patch.
tests/ImagePointOfInterestExtensionTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@
 block discarded – undo
20 20
 			$names[] = $field->getName();
21 21
 		}
22 22
 		 
23
-		error_log(print_r($names,1));
23
+		error_log(print_r($names, 1));
24 24
 	}
25 25
 
26 26
 }
Please login to merge, or discard this patch.
tests/PointOfInterestTest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@  discard block
 block discarded – undo
20 20
 	
21 21
 	public function testShowGuideMarkers() {
22 22
 		$layer = $this->objFromFixture('PointsOfInterestLayer', 'BTS');
23
-		error_log('LAYER: '.$layer->Name);
23
+		error_log('LAYER: ' . $layer->Name);
24 24
 		$pois = $layer->PointsOfInterest();
25 25
 		$poi = $pois->first(); 
26 26
 		
@@ -43,7 +43,7 @@  discard block
 block discarded – undo
43 43
 		}
44 44
 
45 45
 		$expected = array(
46
-			array(13.77965803301,100.54461523531),
46
+			array(13.77965803301, 100.54461523531),
47 47
 			array(13.744081610619, 100.54311513861),
48 48
 			array(13.802594511242, 100.55379467004),
49 49
 			array(13.74054138487, 100.55545772112),
Please login to merge, or discard this patch.