@@ -38,7 +38,7 @@ discard block |
||
| 38 | 38 | |
| 39 | 39 | public function getCMSFields() |
| 40 | 40 | { |
| 41 | - $this->beforeUpdateCMSFields(function (FieldList $fields) { |
|
| 41 | + $this->beforeUpdateCMSFields(function(FieldList $fields) { |
|
| 42 | 42 | $resource = $this->DataResource(); |
| 43 | 43 | $fields->addFieldToTab('Root.Data', ResourceLocatorField::create('DataSourceURL')); |
| 44 | 44 | |
@@ -61,7 +61,7 @@ discard block |
||
| 61 | 61 | $fields = parent::getSettingsFields(); |
| 62 | 62 | |
| 63 | 63 | $fields->addFieldsToTab('Root.Settings', [ |
| 64 | - TextField::create('ItemsPerPage', _t(__CLASS__ . '.ItemsPerPage', 'Items per page')), |
|
| 64 | + TextField::create('ItemsPerPage', _t(__CLASS__.'.ItemsPerPage', 'Items per page')), |
|
| 65 | 65 | ]); |
| 66 | 66 | |
| 67 | 67 | return $fields; |
@@ -43,7 +43,7 @@ discard block |
||
| 43 | 43 | |
| 44 | 44 | public function getCMSFields() |
| 45 | 45 | { |
| 46 | - $this->beforeUpdateCMSFields(function (FieldList $fields) { |
|
| 46 | + $this->beforeUpdateCMSFields(function(FieldList $fields) { |
|
| 47 | 47 | $fields->removeByName('Name'); |
| 48 | 48 | |
| 49 | 49 | $fields->removeByName('Type'); |
@@ -54,7 +54,7 @@ discard block |
||
| 54 | 54 | $detail = $fields->dataFieldByName('ShowInDetailView'); |
| 55 | 55 | $duplicates = $fields->dataFieldByName('RemoveDuplicates'); |
| 56 | 56 | |
| 57 | - $fields->removeByName(['ShowInSummaryView', 'ShowInDetailView', 'RemoveDuplicates',]); |
|
| 57 | + $fields->removeByName(['ShowInSummaryView', 'ShowInDetailView', 'RemoveDuplicates', ]); |
|
| 58 | 58 | $fields->insertBefore(FieldGroup::create('Visibility', [$summary, $detail, $duplicates]), 'Order'); |
| 59 | 59 | |
| 60 | 60 | $fields->removeByName('ResourceID'); |
@@ -55,7 +55,7 @@ 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 | $typeTitle = $fields->dataFieldByName('Type')->Title(); |
| 60 | 60 | $fields->replaceField('Type', DropdownField::create( |
| 61 | 61 | 'Type', |
@@ -67,7 +67,7 @@ discard block |
||
| 67 | 67 | |
| 68 | 68 | $fields->push(ListboxField::create( |
| 69 | 69 | 'FilterFields', |
| 70 | - _t(__CLASS__ . '.ColumnsToSearch', 'Columns to search'), |
|
| 70 | + _t(__CLASS__.'.ColumnsToSearch', 'Columns to search'), |
|
| 71 | 71 | $this->FilterFor()->Fields()->map('ID', 'ReadableName') |
| 72 | 72 | )); |
| 73 | 73 | |