@@ -14,7 +14,7 @@ discard block |
||
14 | 14 | use Injectable; |
15 | 15 | |
16 | 16 | private static $dependencies = [ |
17 | - 'GuzzleClient' => '%$' . \GuzzleHttp\Client::class, |
|
17 | + 'GuzzleClient' => '%$'.\GuzzleHttp\Client::class, |
|
18 | 18 | ]; |
19 | 19 | |
20 | 20 | /** |
@@ -59,7 +59,7 @@ discard block |
||
59 | 59 | |
60 | 60 | $statusCode = $response->getStatusCode(); |
61 | 61 | if ($statusCode < 200 || $statusCode >= 300) { |
62 | - throw new RuntimeException('CKAN API is not available. Error code ' . $statusCode); |
|
62 | + throw new RuntimeException('CKAN API is not available. Error code '.$statusCode); |
|
63 | 63 | } |
64 | 64 | |
65 | 65 | if (!count(preg_grep('#application/json#', $response->getHeader('Content-Type')))) { |
@@ -16,7 +16,7 @@ |
||
16 | 16 | use Injectable; |
17 | 17 | |
18 | 18 | private static $dependencies = [ |
19 | - 'Client' => '%$' . ClientInterface::class, |
|
19 | + 'Client' => '%$'.ClientInterface::class, |
|
20 | 20 | ]; |
21 | 21 | |
22 | 22 | /** |
@@ -45,7 +45,7 @@ discard block |
||
45 | 45 | |
46 | 46 | public function getCMSFields() |
47 | 47 | { |
48 | - $this->beforeUpdateCMSFields(function (FieldList $fields) { |
|
48 | + $this->beforeUpdateCMSFields(function(FieldList $fields) { |
|
49 | 49 | $resource = $this->DataResource(); |
50 | 50 | $fields->addFieldToTab('Root.Data', ResourceLocatorField::create('DataResource')); |
51 | 51 | |
@@ -62,7 +62,7 @@ discard block |
||
62 | 62 | if ($resource->Name) { |
63 | 63 | $title = $resource->Name; |
64 | 64 | if ($resource->ResourceName) { |
65 | - $title .= ' / ' . $resource->ResourceName; |
|
65 | + $title .= ' / '.$resource->ResourceName; |
|
66 | 66 | } |
67 | 67 | $resourceFields->setTitle($title); |
68 | 68 | } |
@@ -80,11 +80,11 @@ discard block |
||
80 | 80 | $columns = $component->getDisplayFields($resourceFields); |
81 | 81 | |
82 | 82 | // We only want to change the labels for the GridField view, not the model's edit form |
83 | - $columns['ShowInSummaryView'] = _t(__CLASS__ . '.IN_RESULTS', 'In Results'); |
|
84 | - $columns['ShowInDetailView'] = _t(__CLASS__ . '.IN_DETAIL', 'In Detail'); |
|
83 | + $columns['ShowInSummaryView'] = _t(__CLASS__.'.IN_RESULTS', 'In Results'); |
|
84 | + $columns['ShowInDetailView'] = _t(__CLASS__.'.IN_DETAIL', 'In Detail'); |
|
85 | 85 | |
86 | 86 | // Abbreviate the position title |
87 | - $columns['Position'] = _t(__CLASS__ . '.POS', 'Pos.', 'Abbreviated version of position'); |
|
87 | + $columns['Position'] = _t(__CLASS__.'.POS', 'Pos.', 'Abbreviated version of position'); |
|
88 | 88 | |
89 | 89 | $editable = array_flip(['ShowInSummaryView', 'ShowInDetailView']); |
90 | 90 | $component->setDisplayFields(array_diff_key($columns, $editable)); |
@@ -119,7 +119,7 @@ discard block |
||
119 | 119 | $fields = parent::getSettingsFields(); |
120 | 120 | |
121 | 121 | $fields->addFieldsToTab('Root.Settings', [ |
122 | - TextField::create('ItemsPerPage', _t(__CLASS__ . '.ITEMS_PER_PAGE', 'Items per page')), |
|
122 | + TextField::create('ItemsPerPage', _t(__CLASS__.'.ITEMS_PER_PAGE', 'Items per page')), |
|
123 | 123 | ]); |
124 | 124 | |
125 | 125 | return $fields; |