@@ -63,8 +63,8 @@ discard block |
||
| 63 | 63 | $labels = parent::fieldLabels($includerelations); |
| 64 | 64 | |
| 65 | 65 | $labels['Content'] = _t(__CLASS__.'.ContentLabel', 'Intro'); |
| 66 | - $labels['Alternate'] = _t(__CLASS__ . '.AlternateLabel', 'Alternate Layout'); |
|
| 67 | - $labels['Features'] = _t(__CLASS__ . '.FeaturesLabel', 'Features'); |
|
| 66 | + $labels['Alternate'] = _t(__CLASS__.'.AlternateLabel', 'Alternate Layout'); |
|
| 67 | + $labels['Features'] = _t(__CLASS__.'.FeaturesLabel', 'Features'); |
|
| 68 | 68 | |
| 69 | 69 | return $labels; |
| 70 | 70 | } |
@@ -74,7 +74,7 @@ discard block |
||
| 74 | 74 | */ |
| 75 | 75 | public function getCMSFields() |
| 76 | 76 | { |
| 77 | - $this->beforeUpdateCMSFields(function (FieldList $fields) { |
|
| 77 | + $this->beforeUpdateCMSFields(function(FieldList $fields) { |
|
| 78 | 78 | $fields->dataFieldByName('Content') |
| 79 | 79 | ->setTitle($this->fieldLabel('Content')) |
| 80 | 80 | ->setRows(5); |
@@ -88,12 +88,12 @@ discard block |
||
| 88 | 88 | $alternate |
| 89 | 89 | ->setTitle($this->fieldLabel('Alternate')) |
| 90 | 90 | ->setDescription(_t( |
| 91 | - __CLASS__ . '.AlternateDescription', |
|
| 91 | + __CLASS__.'.AlternateDescription', |
|
| 92 | 92 | 'alternate image and text alignment - first feature: image left, copy right; |
| 93 | 93 | second feature: image right, copy left;' |
| 94 | 94 | )) |
| 95 | 95 | )->setTitle(_t( |
| 96 | - __CLASS__ . '.LayoutLabel', |
|
| 96 | + __CLASS__.'.LayoutLabel', |
|
| 97 | 97 | 'Layout' |
| 98 | 98 | )) |
| 99 | 99 | ); |
@@ -133,9 +133,9 @@ discard block |
||
| 133 | 133 | { |
| 134 | 134 | $count = $this->Features()->count(); |
| 135 | 135 | $label = _t( |
| 136 | - FeatureObject::class . '.PLURALS', |
|
| 136 | + FeatureObject::class.'.PLURALS', |
|
| 137 | 137 | 'A Feature|{count} Features', |
| 138 | - [ 'count' => $count ] |
|
| 138 | + ['count' => $count] |
|
| 139 | 139 | ); |
| 140 | 140 | return DBField::create_field('HTMLText', $label)->Summary(20); |
| 141 | 141 | } |