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