@@ -183,7 +183,7 @@ |
||
183 | 183 | */ |
184 | 184 | public function getCMSFields() |
185 | 185 | { |
186 | - $this->beforeUpdateCMSFields(function (FieldList $fields) { |
|
186 | + $this->beforeUpdateCMSFields(function(FieldList $fields) { |
|
187 | 187 | $fields->addFieldsToTab( |
188 | 188 | 'Root.Main', |
189 | 189 | [ |
@@ -55,7 +55,7 @@ |
||
55 | 55 | $class = 'Location'; |
56 | 56 | } |
57 | 57 | $ct = 0; |
58 | - $publish = function ($location) use (&$ct) { |
|
58 | + $publish = function($location) use (&$ct) { |
|
59 | 59 | if (!$location->isPublished()) { |
60 | 60 | $title = $location->Title; |
61 | 61 | $location->writeToStage('Stage'); |
@@ -41,7 +41,7 @@ |
||
41 | 41 | |
42 | 42 | $categories = []; |
43 | 43 | |
44 | - $convert = function (DataObject $location) use (&$categories) { |
|
44 | + $convert = function(DataObject $location) use (&$categories) { |
|
45 | 45 | /** @var Location $location */ |
46 | 46 | // skip if no category |
47 | 47 | if ($location->CategoryID > 0) { |
@@ -15,7 +15,7 @@ |
||
15 | 15 | { |
16 | 16 | Config::inst()->update('DataObject', 'validation_enabled', false); |
17 | 17 | $ct = 0; |
18 | - $updateEmail = function ($location) use (&$ct) { |
|
18 | + $updateEmail = function($location) use (&$ct) { |
|
19 | 19 | if (!$location->Email && $location->EmailAddress) { |
20 | 20 | $location->Email = $location->EmailAddress; |
21 | 21 | $location->write(); |
@@ -63,7 +63,7 @@ |
||
63 | 63 | */ |
64 | 64 | public function getCMSFields() |
65 | 65 | { |
66 | - $this->beforeUpdateCMSFields(function (FieldList $fields) { |
|
66 | + $this->beforeUpdateCMSFields(function(FieldList $fields) { |
|
67 | 67 | $fields->removeByName([ |
68 | 68 | 'Locations', |
69 | 69 | 'LocationSet', |