@@ -29,7 +29,7 @@ discard block |
||
| 29 | 29 | |
| 30 | 30 | public function getCMSFields() |
| 31 | 31 | { |
| 32 | - $this->beforeUpdateCMSFields(function (FieldList $fields) { |
|
| 32 | + $this->beforeUpdateCMSFields(function(FieldList $fields) { |
|
| 33 | 33 | $fields->addFieldToTab('Root.Data', ResourceLocatorField::create('Thing')); |
| 34 | 34 | }); |
| 35 | 35 | |
@@ -41,7 +41,7 @@ discard block |
||
| 41 | 41 | $fields = parent::getSettingsFields(); |
| 42 | 42 | |
| 43 | 43 | $fields->addFieldsToTab('Root.Settings', [ |
| 44 | - TextField::create('ItemsPerPage', _t(__CLASS__ . '.ItemsPerPage', 'Items per page')), |
|
| 44 | + TextField::create('ItemsPerPage', _t(__CLASS__.'.ItemsPerPage', 'Items per page')), |
|
| 45 | 45 | ]); |
| 46 | 46 | |
| 47 | 47 | return $fields; |
@@ -65,10 +65,10 @@ discard block |
||
| 65 | 65 | |
| 66 | 66 | // Set a default description |
| 67 | 67 | $this->setDescription(_t( |
| 68 | - __CLASS__ . '.DESCRIPTION', |
|
| 68 | + __CLASS__.'.DESCRIPTION', |
|
| 69 | 69 | 'Connect to a data source from {site}. Once added and saved you can configure the appearance and add search' |
| 70 | 70 | . ' filters.', |
| 71 | - [ 'site' => $this->getSiteName() ] |
|
| 71 | + ['site' => $this->getSiteName()] |
|
| 72 | 72 | )); |
| 73 | 73 | |
| 74 | 74 | $this->addExtraClass('ckan-resource-locator__container'); |
@@ -99,7 +99,7 @@ discard block |
||
| 99 | 99 | $child = $this->getSaveTarget($dataObject); |
| 100 | 100 | |
| 101 | 101 | if (!$child || !$child instanceof DataObjectInterface) { |
| 102 | - throw new InvalidArgumentException('Could not determine where to save the value of ' . __CLASS__); |
|
| 102 | + throw new InvalidArgumentException('Could not determine where to save the value of '.__CLASS__); |
|
| 103 | 103 | } |
| 104 | 104 | |
| 105 | 105 | // Pull the value that'll be null or an associative array of our specification |
@@ -157,7 +157,7 @@ discard block |
||
| 157 | 157 | { |
| 158 | 158 | // Allow empty site names |
| 159 | 159 | if ($this->siteName === null) { |
| 160 | - return _t(__CLASS__ . '.GENERIC_SITE_NAME', 'a CKAN website'); |
|
| 160 | + return _t(__CLASS__.'.GENERIC_SITE_NAME', 'a CKAN website'); |
|
| 161 | 161 | } |
| 162 | 162 | |
| 163 | 163 | return $this->siteName; |