Passed
Pull Request — master (#32)
by
unknown
02:59 queued 01:02
created
src/Forms/ResourceLocatorField.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -42,10 +42,10 @@  discard block
 block discarded – undo
42 42
 
43 43
         // Set a default description
44 44
         $this->setDescription(_t(
45
-            __CLASS__ . '.DESCRIPTION',
45
+            __CLASS__.'.DESCRIPTION',
46 46
             'Connect to a data source from {site}. Once added and saved you can configure the appearance and add search'
47 47
             . ' filters.',
48
-            [ 'site' => $this->getSiteName() ]
48
+            ['site' => $this->getSiteName()]
49 49
         ));
50 50
 
51 51
         $this->addExtraClass('ckan-resource-locator__container');
@@ -91,7 +91,7 @@  discard block
 block discarded – undo
91 91
     {
92 92
         // Allow empty site names
93 93
         if ($this->siteName === null) {
94
-            return _t(__CLASS__ . '.GENERIC_SITE_NAME', 'a CKAN website');
94
+            return _t(__CLASS__.'.GENERIC_SITE_NAME', 'a CKAN website');
95 95
         }
96 96
 
97 97
         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
@@ -29,7 +29,7 @@  discard block
 block discarded – undo
29 29
 
30 30
     public function getCMSFields()
31 31
     {
32
-        $this->beforeUpdateCMSFields(function (FieldList $fields) {
32
+        $this->beforeUpdateCMSFields(function(FieldList $fields) {
33 33
             $fields->addFieldToTab('Root.Data', ResourceLocatorField::create('Thing'));
34 34
         });
35 35
 
@@ -41,7 +41,7 @@  discard block
 block discarded – undo
41 41
         $fields = parent::getSettingsFields();
42 42
 
43 43
         $fields->addFieldsToTab('Root.Settings', [
44
-            TextField::create('ItemsPerPage', _t(__CLASS__ . '.ItemsPerPage', 'Items per page')),
44
+            TextField::create('ItemsPerPage', _t(__CLASS__.'.ItemsPerPage', 'Items per page')),
45 45
         ]);
46 46
 
47 47
         return $fields;
Please login to merge, or discard this patch.