Completed
Push — master ( 97c0e6...b08fc7 )
by Robbie
10s
created
src/Model/ResourceField.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -43,7 +43,7 @@  discard block
 block discarded – undo
43 43
 
44 44
     public function getCMSFields()
45 45
     {
46
-        $this->beforeUpdateCMSFields(function (FieldList $fields) {
46
+        $this->beforeUpdateCMSFields(function(FieldList $fields) {
47 47
             $fields->removeByName('Name');
48 48
 
49 49
             $fields->removeByName('Type');
@@ -54,7 +54,7 @@  discard block
 block discarded – undo
54 54
             $detail = $fields->dataFieldByName('ShowInDetailView');
55 55
             $duplicates = $fields->dataFieldByName('RemoveDuplicates');
56 56
 
57
-            $fields->removeByName(['ShowInSummaryView', 'ShowInDetailView', 'RemoveDuplicates',]);
57
+            $fields->removeByName(['ShowInSummaryView', 'ShowInDetailView', 'RemoveDuplicates', ]);
58 58
             $fields->insertBefore(FieldGroup::create('Visibility', [$summary, $detail, $duplicates]), 'Order');
59 59
 
60 60
             $fields->removeByName('ResourceID');
Please login to merge, or discard this patch.
src/Model/ResourceFilter.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -55,7 +55,7 @@  discard block
 block discarded – undo
55 55
 
56 56
     public function getCMSFields()
57 57
     {
58
-        $this->beforeUpdateCMSFields(function (FieldList $fields) {
58
+        $this->beforeUpdateCMSFields(function(FieldList $fields) {
59 59
             $typeTitle = $fields->dataFieldByName('Type')->Title();
60 60
             $fields->replaceField('Type', DropdownField::create(
61 61
                 'Type',
@@ -67,7 +67,7 @@  discard block
 block discarded – undo
67 67
 
68 68
             $fields->push(ListboxField::create(
69 69
                 'FilterFields',
70
-                _t(__CLASS__ . '.ColumnsToSearch', 'Columns to search'),
70
+                _t(__CLASS__.'.ColumnsToSearch', 'Columns to search'),
71 71
                 $this->FilterFor()->Fields()->map('ID', 'ReadableName')
72 72
             ));
73 73
 
Please login to merge, or discard this patch.
src/Service/ResourceFieldPopulator.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -18,7 +18,7 @@  discard block
 block discarded – undo
18 18
     use Injectable;
19 19
 
20 20
     private static $dependencies = [
21
-        'GuzzleClient' => '%$' . Client::class,
21
+        'GuzzleClient' => '%$'.Client::class,
22 22
     ];
23 23
 
24 24
     /**
@@ -84,7 +84,7 @@  discard block
 block discarded – undo
84 84
 
85 85
         $statusCode = $response->getStatusCode();
86 86
         if ($statusCode < 200 || $statusCode >= 300) {
87
-            throw new RuntimeException('CKAN API is not available. Error code ' . $statusCode);
87
+            throw new RuntimeException('CKAN API is not available. Error code '.$statusCode);
88 88
         }
89 89
 
90 90
         if (!count(preg_grep('#application/json#', $response->getHeader('Content-Type')))) {
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
         $this->addExtraClass('ckan-resource-locator__container');
@@ -144,7 +144,7 @@  discard block
 block discarded – undo
144 144
         $resource = $dataObject->{$this->name};
145 145
 
146 146
         if (!$resource || !$resource instanceof DataObjectInterface) {
147
-            throw new InvalidArgumentException('Could not determine where to save the value of ' . __CLASS__);
147
+            throw new InvalidArgumentException('Could not determine where to save the value of '.__CLASS__);
148 148
         }
149 149
 
150 150
         // Pull the value that'll be null or an associative array of our specification
@@ -191,7 +191,7 @@  discard block
 block discarded – undo
191 191
     {
192 192
         // Allow empty site names
193 193
         if ($this->siteName === null) {
194
-            return _t(__CLASS__ . '.GENERIC_SITE_NAME', 'a CKAN website');
194
+            return _t(__CLASS__.'.GENERIC_SITE_NAME', 'a CKAN website');
195 195
         }
196 196
 
197 197
         return $this->siteName;
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
@@ -38,7 +38,7 @@  discard block
 block discarded – undo
38 38
 
39 39
     public function getCMSFields()
40 40
     {
41
-        $this->beforeUpdateCMSFields(function (FieldList $fields) {
41
+        $this->beforeUpdateCMSFields(function(FieldList $fields) {
42 42
             $resource = $this->DataResource();
43 43
             $fields->addFieldToTab('Root.Data', ResourceLocatorField::create('DataResource'));
44 44
 
@@ -61,7 +61,7 @@  discard block
 block discarded – undo
61 61
         $fields = parent::getSettingsFields();
62 62
 
63 63
         $fields->addFieldsToTab('Root.Settings', [
64
-            TextField::create('ItemsPerPage', _t(__CLASS__ . '.ItemsPerPage', 'Items per page')),
64
+            TextField::create('ItemsPerPage', _t(__CLASS__.'.ItemsPerPage', 'Items per page')),
65 65
         ]);
66 66
 
67 67
         return $fields;
Please login to merge, or discard this patch.