@@ -81,7 +81,7 @@ discard block |
||
| 81 | 81 | */ |
| 82 | 82 | public function getCMSFields() |
| 83 | 83 | { |
| 84 | - $this->beforeUpdateCMSFields(function (FieldList $fields) { |
|
| 84 | + $this->beforeUpdateCMSFields(function(FieldList $fields) { |
|
| 85 | 85 | $fields->replaceField( |
| 86 | 86 | 'Timezone', |
| 87 | 87 | DropdownField::create('Timezone') |
@@ -105,13 +105,13 @@ discard block |
||
| 105 | 105 | $currentTimezone = new DateTimeZone($timezoneIdentifier); |
| 106 | 106 | |
| 107 | 107 | $tempTimezones[] = array( |
| 108 | - 'offset' => (int)$currentTimezone->getOffset($utcTime), |
|
| 108 | + 'offset' => (int) $currentTimezone->getOffset($utcTime), |
|
| 109 | 109 | 'identifier' => $timezoneIdentifier, |
| 110 | 110 | ); |
| 111 | 111 | } |
| 112 | 112 | |
| 113 | 113 | // Sort the array by offset,identifier ascending |
| 114 | - usort($tempTimezones, function ($a, $b) { |
|
| 114 | + usort($tempTimezones, function($a, $b) { |
|
| 115 | 115 | if ($a['offset'] == $b['offset']) { |
| 116 | 116 | return strcmp($a['identifier'], $b['identifier']); |
| 117 | 117 | } |
@@ -143,7 +143,7 @@ discard block |
||
| 143 | 143 | */ |
| 144 | 144 | public function getType() |
| 145 | 145 | { |
| 146 | - return _t(__CLASS__ . '.BlockType', 'Countdown'); |
|
| 146 | + return _t(__CLASS__.'.BlockType', 'Countdown'); |
|
| 147 | 147 | } |
| 148 | 148 | |
| 149 | 149 | /** |