@@ -23,7 +23,7 @@ |
||
23 | 23 | public function testGetCoords() |
24 | 24 | { |
25 | 25 | $location = $this->objFromFixture(Location::class, 'dynamic'); |
26 | - $coords = ((int)$location->Lat != 0 && (int)$location->Lng != 0) ? 'true' : 'false'; |
|
26 | + $coords = ((int) $location->Lat != 0 && (int) $location->Lng != 0) ? 'true' : 'false'; |
|
27 | 27 | $this->assertEquals($coords, $location->getCoords()); |
28 | 28 | } |
29 | 29 |
@@ -53,7 +53,7 @@ discard block |
||
53 | 53 | parent::init(); |
54 | 54 | |
55 | 55 | $key = Config::inst()->get(GoogleGeocoder::class, 'geocoder_api_key'); |
56 | - Requirements::javascript('https://maps.google.com/maps/api/js?key=' . $key); |
|
56 | + Requirements::javascript('https://maps.google.com/maps/api/js?key='.$key); |
|
57 | 57 | } |
58 | 58 | |
59 | 59 | public function json() |
@@ -131,7 +131,7 @@ discard block |
||
131 | 131 | |
132 | 132 | if ($request->getVar('address') && $request->getVar('radius')) { |
133 | 133 | $radius = $request->getVar('radius'); |
134 | - $locations = $locations->filterByCallback(function ($location) use (&$radius) { |
|
134 | + $locations = $locations->filterByCallback(function($location) use (&$radius) { |
|
135 | 135 | if ($radius === -1) { |
136 | 136 | return true; |
137 | 137 | } |
@@ -82,7 +82,7 @@ discard block |
||
82 | 82 | public function getCMSFields() |
83 | 83 | { |
84 | 84 | // so it can easily be extended - concept taken from the blog module |
85 | - $this->beforeUpdateCMSFields(function ($fields) { |
|
85 | + $this->beforeUpdateCMSFields(function($fields) { |
|
86 | 86 | // Settings |
87 | 87 | $fields->addFieldsToTab('Root.Settings', array( |
88 | 88 | HeaderField::create('DisplayOptions', 'Display Options', 3), |
@@ -226,7 +226,7 @@ discard block |
||
226 | 226 | throw new \InvalidArgumentException("Can't find module '$module'"); |
227 | 227 | } |
228 | 228 | |
229 | - return Director::baseFolder() . '/' . $moduleObj->getRelativeResourcePath($resource); |
|
229 | + return Director::baseFolder().'/'.$moduleObj->getRelativeResourcePath($resource); |
|
230 | 230 | } |
231 | 231 | |
232 | 232 | return $file; |
@@ -148,7 +148,7 @@ |
||
148 | 148 | public function getCMSFields() |
149 | 149 | { |
150 | 150 | // so it can easily be extended - concept taken from the blog module |
151 | - $this->beforeUpdateCMSFields(function ($fields) { |
|
151 | + $this->beforeUpdateCMSFields(function($fields) { |
|
152 | 152 | $fields->removeByName(array( |
153 | 153 | 'Import_ID', |
154 | 154 | )); |