@@ -42,7 +42,7 @@ |
||
| 42 | 42 | */ |
| 43 | 43 | public function getCMSFields() |
| 44 | 44 | { |
| 45 | - $this->beforeUpdateCMSFields(function (FieldList $fields) { |
|
| 45 | + $this->beforeUpdateCMSFields(function(FieldList $fields) { |
|
| 46 | 46 | $fields->removeByName('ElementPromos'); |
| 47 | 47 | |
| 48 | 48 | $config = GridFieldConfig_RecordViewer::create(); |
@@ -84,7 +84,7 @@ discard block |
||
| 84 | 84 | */ |
| 85 | 85 | public function getCMSFields() |
| 86 | 86 | { |
| 87 | - $this->beforeUpdateCMSFields(function (FieldList $fields) { |
|
| 87 | + $this->beforeUpdateCMSFields(function(FieldList $fields) { |
|
| 88 | 88 | $fields->dataFieldByName('Content') |
| 89 | 89 | ->setTitle('Description') |
| 90 | 90 | ->setRows(5); |
@@ -130,7 +130,7 @@ discard block |
||
| 130 | 130 | } else { |
| 131 | 131 | $label = ' promos'; |
| 132 | 132 | } |
| 133 | - return DBField::create_field('HTMLText', $this->Promos()->count() . $label)->Summary(20); |
|
| 133 | + return DBField::create_field('HTMLText', $this->Promos()->count().$label)->Summary(20); |
|
| 134 | 134 | } |
| 135 | 135 | |
| 136 | 136 | /** |