Passed
Pull Request — master (#5)
by Nic
04:58
created
src/Elements/ElementAccordion.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -58,7 +58,7 @@
 block discarded – undo
58 58
      */
59 59
     public function getCMSFields()
60 60
     {
61
-        $this->beforeUpdateCMSFields(function ($fields) {
61
+        $this->beforeUpdateCMSFields(function($fields) {
62 62
             /* @var FieldList $fields */
63 63
             $fields->removeByName(array(
64 64
                 'Sort',
Please login to merge, or discard this patch.
src/Model/AccordionPanel.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -77,7 +77,7 @@  discard block
 block discarded – undo
77 77
      */
78 78
     public function getCMSFields()
79 79
     {
80
-        $this->beforeUpdateCMSFields(function ($fields) {
80
+        $this->beforeUpdateCMSFields(function($fields) {
81 81
             $fields->removeByName([
82 82
                 'Sort',
83 83
                 'AccordionID',
@@ -87,8 +87,8 @@  discard block
 block discarded – undo
87 87
             $fields->replaceField(
88 88
                 'Title',
89 89
                 TextCheckboxGroupField::create(
90
-                    TextField::create('Title', _t(__CLASS__ . '.TitleLabel', 'Title (displayed if checked)')),
91
-                    CheckboxField::create('ShowTitle', _t(__CLASS__ . '.ShowTitleLabel', 'Displayed'))
90
+                    TextField::create('Title', _t(__CLASS__.'.TitleLabel', 'Title (displayed if checked)')),
91
+                    CheckboxField::create('ShowTitle', _t(__CLASS__.'.ShowTitleLabel', 'Displayed'))
92 92
                 )
93 93
                     ->setName('TitleAndDisplayed')
94 94
             );
Please login to merge, or discard this patch.