Passed
Pull Request — master (#49)
by Robbie
03:10
created
src/Model/ResourceField.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -52,7 +52,7 @@  discard block
 block discarded – undo
52 52
 
53 53
     public function getCMSFields()
54 54
     {
55
-        $this->beforeUpdateCMSFields(function (FieldList $fields) {
55
+        $this->beforeUpdateCMSFields(function(FieldList $fields) {
56 56
             $fields->removeByName('Name');
57 57
 
58 58
             $fields->removeByName('Type');
@@ -63,7 +63,7 @@  discard block
 block discarded – undo
63 63
             $detail = $fields->dataFieldByName('ShowInDetailView');
64 64
             $duplicates = $fields->dataFieldByName('RemoveDuplicates');
65 65
 
66
-            $fields->removeByName(['ShowInSummaryView', 'ShowInDetailView', 'RemoveDuplicates',]);
66
+            $fields->removeByName(['ShowInSummaryView', 'ShowInDetailView', 'RemoveDuplicates', ]);
67 67
             $fields->insertBefore(FieldGroup::create('Visibility', [$summary, $detail, $duplicates]), 'Order');
68 68
 
69 69
             $fields->removeByName('ResourceID');
@@ -72,7 +72,7 @@  discard block
 block discarded – undo
72 72
                 'DisplayConditions',
73 73
                 ResultConditionsField::create(
74 74
                     'DisplayConditions',
75
-                    _t(__CLASS__ . '.ResultConditions', 'Result conditions')
75
+                    _t(__CLASS__.'.ResultConditions', 'Result conditions')
76 76
                 )
77 77
             );
78 78
         });
Please login to merge, or discard this patch.
src/Forms/ResultConditionsField.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -56,8 +56,8 @@
 block discarded – undo
56 56
     public static function getMatchOptions()
57 57
     {
58 58
         return [
59
-            ['value' => self::MATCH_TYPE_MUST, 'title' => _t(__CLASS__ . '.MUST_MATCH', 'Must match')],
60
-            ['value' => self::MATCH_TYPE_MUST_NOT, 'title' => _t(__CLASS__ . '.MUST_NOT_MATCH', 'Must not match')],
59
+            ['value' => self::MATCH_TYPE_MUST, 'title' => _t(__CLASS__.'.MUST_MATCH', 'Must match')],
60
+            ['value' => self::MATCH_TYPE_MUST_NOT, 'title' => _t(__CLASS__.'.MUST_NOT_MATCH', 'Must not match')],
61 61
         ];
62 62
     }
63 63
 }
Please login to merge, or discard this patch.