Completed
Push — master ( e90b42...71c281 )
by Jason
02:37
created
src/Model/AccordionPanel.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -85,7 +85,7 @@
 block discarded – undo
85 85
      */
86 86
     public function getCMSFields()
87 87
     {
88
-        $this->beforeUpdateCMSFields(function ($fields) {
88
+        $this->beforeUpdateCMSFields(function($fields) {
89 89
             /** @var FieldList $fields */
90 90
             $fields->removeByName([
91 91
                 'Sort',
Please login to merge, or discard this patch.
src/Elements/ElementAccordion.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -67,7 +67,7 @@  discard block
 block discarded – undo
67 67
     public function fieldLabels($includerelations = true)
68 68
     {
69 69
         $labels = parent::fieldLabels($includerelations);
70
-        $labels['Panels'] = _t(__CLASS__ . '.PanelsLabel', 'Accordion panels');
70
+        $labels['Panels'] = _t(__CLASS__.'.PanelsLabel', 'Accordion panels');
71 71
 
72 72
         return $labels;
73 73
     }
@@ -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
             /* @var FieldList $fields */
82 82
             $fields->removeByName(array(
83 83
                 'Sort',
@@ -115,7 +115,7 @@  discard block
 block discarded – undo
115 115
         } else {
116 116
             $label = ' panels';
117 117
         }
118
-        return DBField::create_field('HTMLText', $this->Panels()->count() . $label)->Summary(20);
118
+        return DBField::create_field('HTMLText', $this->Panels()->count().$label)->Summary(20);
119 119
     }
120 120
 
121 121
     /**
Please login to merge, or discard this patch.