@@ -44,7 +44,7 @@ discard block |
||
| 44 | 44 | 'resourceName' => $resource->ResourceName, |
| 45 | 45 | 'basePath' => $this->getBasePath($holder), |
| 46 | 46 | 'fields' => array_map( |
| 47 | - function (ResourceField $field) { |
|
| 47 | + function(ResourceField $field) { |
|
| 48 | 48 | return [ |
| 49 | 49 | 'OriginalLabel' => $field->OriginalLabel, |
| 50 | 50 | 'ReadableLabel' => $field->ReadableLabel, |
@@ -61,7 +61,7 @@ discard block |
||
| 61 | 61 | ])->Sort('Position', 'ASC')->toArray() |
| 62 | 62 | ), |
| 63 | 63 | 'filters' => array_map( |
| 64 | - function (ResourceFilter $filter) { |
|
| 64 | + function(ResourceFilter $filter) { |
|
| 65 | 65 | $explodedClassName = explode('\\', get_class($filter)); |
| 66 | 66 | return [ |
| 67 | 67 | 'type' => array_pop($explodedClassName), |
@@ -89,6 +89,6 @@ discard block |
||
| 89 | 89 | } |
| 90 | 90 | |
| 91 | 91 | $link = $holder->RelativeLink(); |
| 92 | - return '/' . trim($link, '/'); |
|
| 92 | + return '/'.trim($link, '/'); |
|
| 93 | 93 | } |
| 94 | 94 | } |
@@ -65,7 +65,7 @@ discard block |
||
| 65 | 65 | |
| 66 | 66 | public function getCMSFields() |
| 67 | 67 | { |
| 68 | - $this->beforeUpdateCMSFields(function (FieldList $fields) { |
|
| 68 | + $this->beforeUpdateCMSFields(function(FieldList $fields) { |
|
| 69 | 69 | $allColumnsField = $fields->dataFieldByName('AllColumns'); |
| 70 | 70 | $allColumnsField->addExtraClass('ckan-columns__all-columns'); |
| 71 | 71 | |
@@ -82,7 +82,7 @@ discard block |
||
| 82 | 82 | |
| 83 | 83 | $columnSources = CompositeField::create($allColumnsField, $filterFields); |
| 84 | 84 | $columnSources |
| 85 | - ->setTitle(_t(__CLASS__ . '.COLUMNS_SOURCES', 'Columns source(s)')) |
|
| 85 | + ->setTitle(_t(__CLASS__.'.COLUMNS_SOURCES', 'Columns source(s)')) |
|
| 86 | 86 | ->addExtraClass('ckan-columns__sources'); |
| 87 | 87 | $fields->addFieldToTab('Root.Main', $columnSources); |
| 88 | 88 | |
@@ -135,7 +135,7 @@ discard block |
||
| 135 | 135 | return [ |
| 136 | 136 | 'label' => $this->FilterLabel, |
| 137 | 137 | 'allColumns' => $this->AllColumns, |
| 138 | - 'columns' => $this->AllColumns ? null : array_map(function (ResourceField $field) { |
|
| 138 | + 'columns' => $this->AllColumns ? null : array_map(function(ResourceField $field) { |
|
| 139 | 139 | return [ |
| 140 | 140 | 'label' => $field->ReadableLabel, |
| 141 | 141 | 'target' => $field->OriginalLabel, |
@@ -156,7 +156,7 @@ discard block |
||
| 156 | 156 | return DBField::create_Field( |
| 157 | 157 | 'HTMLFragment', |
| 158 | 158 | '<span class="ckan-columns--all-columns">' |
| 159 | - . _t(__CLASS__ . '.ALL_COLUMNS', 'All columns') |
|
| 159 | + . _t(__CLASS__.'.ALL_COLUMNS', 'All columns') |
|
| 160 | 160 | . '</span>' |
| 161 | 161 | ); |
| 162 | 162 | } |
@@ -172,7 +172,7 @@ discard block |
||
| 172 | 172 | return DBField::create_Field( |
| 173 | 173 | 'HTMLFragment', |
| 174 | 174 | '<span class="ckan-columns--multiple">' |
| 175 | - . _t(__CLASS__ . '.MULTIPLE_COLUMNS', 'Multiple columns') |
|
| 175 | + . _t(__CLASS__.'.MULTIPLE_COLUMNS', 'Multiple columns') |
|
| 176 | 176 | . '</span>' |
| 177 | 177 | ); |
| 178 | 178 | } |
@@ -25,11 +25,11 @@ discard block |
||
| 25 | 25 | |
| 26 | 26 | public function getCMSFields() |
| 27 | 27 | { |
| 28 | - $this->beforeUpdateCMSFields(function (FieldList $fields) { |
|
| 28 | + $this->beforeUpdateCMSFields(function(FieldList $fields) { |
|
| 29 | 29 | $fields->addFieldToTab('Root.Main', PresentedOptionsField::create( |
| 30 | 30 | 'Options', |
| 31 | 31 | $this->FilterFor, |
| 32 | - _t(__CLASS__ . '.OPTIONS', 'Presented options') |
|
| 32 | + _t(__CLASS__.'.OPTIONS', 'Presented options') |
|
| 33 | 33 | )); |
| 34 | 34 | }); |
| 35 | 35 | |
@@ -71,6 +71,6 @@ discard block |
||
| 71 | 71 | return $spec['customOptions']; |
| 72 | 72 | } |
| 73 | 73 | |
| 74 | - throw new InvalidArgumentException('Unknown "selectType" is configured for ' . static::class); |
|
| 74 | + throw new InvalidArgumentException('Unknown "selectType" is configured for '.static::class); |
|
| 75 | 75 | } |
| 76 | 76 | } |