Completed
Push — master ( b6b463...705842 )
by
unknown
15s
created
src/Page/CKANRegistryPage.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -46,7 +46,7 @@  discard block
 block discarded – undo
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(
@@ -81,11 +81,11 @@  discard block
 block discarded – undo
81 81
                         $columns = $component->getDisplayFields($resourceFields);
82 82
 
83 83
                         // We only want to change the labels for the GridField view, not the model's edit form
84
-                        $columns['ShowInResultsView'] = _t(__CLASS__ . '.IN_RESULTS', 'In Results');
85
-                        $columns['ShowInDetailView'] = _t(__CLASS__ . '.IN_DETAIL', 'In Detail');
84
+                        $columns['ShowInResultsView'] = _t(__CLASS__.'.IN_RESULTS', 'In Results');
85
+                        $columns['ShowInDetailView'] = _t(__CLASS__.'.IN_DETAIL', 'In Detail');
86 86
 
87 87
                         // Abbreviate the position title
88
-                        $columns['Position'] = _t(__CLASS__ . '.POS', 'Pos.', 'Abbreviated version of position');
88
+                        $columns['Position'] = _t(__CLASS__.'.POS', 'Pos.', 'Abbreviated version of position');
89 89
 
90 90
                         $editable = array_flip(['ShowInResultsView', 'ShowInDetailView']);
91 91
                         $component->setDisplayFields(array_diff_key($columns, $editable));
@@ -121,7 +121,7 @@  discard block
 block discarded – undo
121 121
         $fields = parent::getSettingsFields();
122 122
 
123 123
         $fields->addFieldsToTab('Root.Settings', [
124
-            TextField::create('ItemsPerPage', _t(__CLASS__ . '.ITEMS_PER_PAGE', 'Items per page')),
124
+            TextField::create('ItemsPerPage', _t(__CLASS__.'.ITEMS_PER_PAGE', 'Items per page')),
125 125
         ]);
126 126
 
127 127
         return $fields;
Please login to merge, or discard this patch.
src/Forms/GridFieldResourceTitle.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -41,7 +41,7 @@
 block discarded – undo
41 41
     {
42 42
         $data = ArrayData::create([
43 43
             'Resource' => $this->resource,
44
-            'EditLinkTitle' => _t(__CLASS__ . '.EDIT_LINK_TITLE', 'Edit resource'),
44
+            'EditLinkTitle' => _t(__CLASS__.'.EDIT_LINK_TITLE', 'Edit resource'),
45 45
         ]);
46 46
         $result = $data->renderWith(__CLASS__);
47 47
 
Please login to merge, or discard this patch.
src/Forms/ResourceLocatorField.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -65,10 +65,10 @@  discard block
 block discarded – undo
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
 
@@ -141,7 +141,7 @@  discard block
 block discarded – undo
141 141
         $resource = $dataObject->{$this->name};
142 142
 
143 143
         if (!$resource || !$resource instanceof DataObjectInterface) {
144
-            throw new InvalidArgumentException('Could not determine where to save the value of ' . __CLASS__);
144
+            throw new InvalidArgumentException('Could not determine where to save the value of '.__CLASS__);
145 145
         }
146 146
 
147 147
         // Pull the value that'll be null or an associative array of our specification
@@ -188,7 +188,7 @@  discard block
 block discarded – undo
188 188
     {
189 189
         // Allow empty site names
190 190
         if ($this->siteName === null) {
191
-            return _t(__CLASS__ . '.GENERIC_SITE_NAME', 'a CKAN website');
191
+            return _t(__CLASS__.'.GENERIC_SITE_NAME', 'a CKAN website');
192 192
         }
193 193
 
194 194
         return $this->siteName;
Please login to merge, or discard this patch.