@@ -54,12 +54,12 @@ discard block |
||
| 54 | 54 | |
| 55 | 55 | public function getCMSFields() |
| 56 | 56 | { |
| 57 | - $this->beforeUpdateCMSFields(function (FieldList $fields) { |
|
| 57 | + $this->beforeUpdateCMSFields(function(FieldList $fields) { |
|
| 58 | 58 | $originalTitle = ReadonlyField::create('Name', _t( |
| 59 | - __CLASS__ . '.ORIGINAL_TITLE', |
|
| 59 | + __CLASS__.'.ORIGINAL_TITLE', |
|
| 60 | 60 | 'Original title' |
| 61 | 61 | ))->setDescription(_t( |
| 62 | - __CLASS__ . '.ORIGINAL_TITLE_DESCRIPTION', |
|
| 62 | + __CLASS__.'.ORIGINAL_TITLE_DESCRIPTION', |
|
| 63 | 63 | 'Title of this field as provided by the CKAN resource' |
| 64 | 64 | )); |
| 65 | 65 | $fields->replaceField('Name', $originalTitle); |
@@ -68,9 +68,9 @@ discard block |
||
| 68 | 68 | $fields->dataFieldByName('ReadableName') |
| 69 | 69 | ->setAttribute('placeholder', $this->Name); |
| 70 | 70 | $orderField = NumericField::create('Order') |
| 71 | - ->setTitle(_t(__CLASS__ . '.ORDER_LABEL', 'Presented order')) |
|
| 71 | + ->setTitle(_t(__CLASS__.'.ORDER_LABEL', 'Presented order')) |
|
| 72 | 72 | ->setDescription(_t( |
| 73 | - __CLASS__ . '.ORDER_DENOMINATOR', |
|
| 73 | + __CLASS__.'.ORDER_DENOMINATOR', |
|
| 74 | 74 | 'of {count} fields', |
| 75 | 75 | ['count' => static::get()->filter('ResourceID', $this->ResourceID)->count()] |
| 76 | 76 | )) |
@@ -84,7 +84,7 @@ discard block |
||
| 84 | 84 | $duplicates = $fields->dataFieldByName('RemoveDuplicates') |
| 85 | 85 | ->addExtraClass('visibility-options__option'); |
| 86 | 86 | |
| 87 | - $fields->removeByName(['ShowInSummaryView', 'ShowInDetailView', 'RemoveDuplicates',]); |
|
| 87 | + $fields->removeByName(['ShowInSummaryView', 'ShowInDetailView', 'RemoveDuplicates', ]); |
|
| 88 | 88 | $visibilityOptions = FieldGroup::create('Visibility', [$summary, $detail, $duplicates]) |
| 89 | 89 | ->addExtraClass('visibility-options'); |
| 90 | 90 | $fields->insertBefore($visibilityOptions, 'Order'); |
@@ -95,7 +95,7 @@ discard block |
||
| 95 | 95 | 'DisplayConditions', |
| 96 | 96 | ResultConditionsField::create( |
| 97 | 97 | 'DisplayConditions', |
| 98 | - _t(__CLASS__ . '.RESULT_CONDITIONS', 'Result conditions') |
|
| 98 | + _t(__CLASS__.'.RESULT_CONDITIONS', 'Result conditions') |
|
| 99 | 99 | ) |
| 100 | 100 | ); |
| 101 | 101 | }); |