Passed
Push — master ( 3b833c...8d58f8 )
by Robbie
03:33
created
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
         $this->addExtraClass('ckan-resource-locator__container');
@@ -99,7 +99,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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;
Please login to merge, or discard this patch.
src/Model/ResourceField.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -59,7 +59,7 @@
 block discarded – undo
59 59
         $detail = $fields->dataFieldByName('ShowInDetailView');
60 60
         $duplicates = $fields->dataFieldByName('RemoveDuplicates');
61 61
 
62
-        $fields->removeByName(['ShowInSummaryView', 'ShowInDetailView', 'RemoveDuplicates',]);
62
+        $fields->removeByName(['ShowInSummaryView', 'ShowInDetailView', 'RemoveDuplicates', ]);
63 63
         $fields->insertBefore(FieldGroup::create('Visibility', [$summary, $detail, $duplicates]), 'Order');
64 64
 
65 65
         $fields->removeByName('ResourceID');
Please login to merge, or discard this patch.
src/Page/CKANRegistryPage.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@  discard block
 block discarded – undo
37 37
     public function getCMSFields()
38 38
     {
39 39
         $resource = $this->DataResource();
40
-        $this->beforeUpdateCMSFields(function (FieldList $fields) use ($resource) {
40
+        $this->beforeUpdateCMSFields(function(FieldList $fields) use ($resource) {
41 41
             $fields->addFieldToTab('Root.Data', ResourceLocatorField::create('DataSourceURL'));
42 42
             if ($resource && $resource->Identifier) {
43 43
                 $columnsConfig = GridFieldConfig_RecordEditor::create();
@@ -58,7 +58,7 @@  discard block
 block discarded – undo
58 58
         $fields = parent::getSettingsFields();
59 59
 
60 60
         $fields->addFieldsToTab('Root.Settings', [
61
-            TextField::create('ItemsPerPage', _t(__CLASS__ . '.ItemsPerPage', 'Items per page')),
61
+            TextField::create('ItemsPerPage', _t(__CLASS__.'.ItemsPerPage', 'Items per page')),
62 62
         ]);
63 63
 
64 64
         return $fields;
Please login to merge, or discard this patch.