Passed
Push — master ( 0fc5a0...58c7aa )
by
unknown
02:46
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.