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