@@ -16,7 +16,7 @@ |
||
| 16 | 16 | use Injectable; |
| 17 | 17 | |
| 18 | 18 | private static $dependencies = [ |
| 19 | - 'APIClient' => '%$' . APIClientInterface::class, |
|
| 19 | + 'APIClient' => '%$'.APIClientInterface::class, |
|
| 20 | 20 | ]; |
| 21 | 21 | |
| 22 | 22 | /** |
@@ -46,7 +46,7 @@ discard block |
||
| 46 | 46 | |
| 47 | 47 | public function getCMSFields() |
| 48 | 48 | { |
| 49 | - $this->beforeUpdateCMSFields(function (FieldList $fields) { |
|
| 49 | + $this->beforeUpdateCMSFields(function(FieldList $fields) { |
|
| 50 | 50 | $resource = $this->DataResource(); |
| 51 | 51 | |
| 52 | 52 | $fields->addFieldToTab( |
@@ -72,7 +72,7 @@ discard block |
||
| 72 | 72 | if ($resource->Name) { |
| 73 | 73 | $title = $resource->Name; |
| 74 | 74 | if ($resource->ResourceName) { |
| 75 | - $title .= ' / ' . $resource->ResourceName; |
|
| 75 | + $title .= ' / '.$resource->ResourceName; |
|
| 76 | 76 | } |
| 77 | 77 | $resourceFields->setTitle($title); |
| 78 | 78 | } |
@@ -90,11 +90,11 @@ discard block |
||
| 90 | 90 | $columns = $component->getDisplayFields($resourceFields); |
| 91 | 91 | |
| 92 | 92 | // We only want to change the labels for the GridField view, not the model's edit form |
| 93 | - $columns['ShowInResultsView'] = _t(__CLASS__ . '.IN_RESULTS', 'In Results'); |
|
| 94 | - $columns['ShowInDetailView'] = _t(__CLASS__ . '.IN_DETAIL', 'In Detail'); |
|
| 93 | + $columns['ShowInResultsView'] = _t(__CLASS__.'.IN_RESULTS', 'In Results'); |
|
| 94 | + $columns['ShowInDetailView'] = _t(__CLASS__.'.IN_DETAIL', 'In Detail'); |
|
| 95 | 95 | |
| 96 | 96 | // Abbreviate the position title |
| 97 | - $columns['Position'] = _t(__CLASS__ . '.POS', 'Pos.', 'Abbreviated version of position'); |
|
| 97 | + $columns['Position'] = _t(__CLASS__.'.POS', 'Pos.', 'Abbreviated version of position'); |
|
| 98 | 98 | |
| 99 | 99 | $editable = array_flip(['ShowInResultsView', 'ShowInDetailView']); |
| 100 | 100 | $component->setDisplayFields(array_diff_key($columns, $editable)); |
@@ -130,7 +130,7 @@ discard block |
||
| 130 | 130 | $fields = parent::getSettingsFields(); |
| 131 | 131 | |
| 132 | 132 | $fields->addFieldsToTab('Root.Settings', [ |
| 133 | - TextField::create('ItemsPerPage', _t(__CLASS__ . '.ITEMS_PER_PAGE', 'Items per page')), |
|
| 133 | + TextField::create('ItemsPerPage', _t(__CLASS__.'.ITEMS_PER_PAGE', 'Items per page')), |
|
| 134 | 134 | ]); |
| 135 | 135 | |
| 136 | 136 | return $fields; |