Passed
Push — master ( 40e3a1...b27be1 )
by Jason
03:01
created
src/Elements/ElementAccordion.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -64,7 +64,7 @@  discard block
 block discarded – undo
64 64
         $labels = parent::fieldLabels($includerelations);
65 65
 
66 66
         $labels['Content'] = _t(__CLASS__.'.ContentLabel', 'Description');
67
-        $labels['Panels'] = _t(__CLASS__ . '.PanelsLabel', 'Accordion panels');
67
+        $labels['Panels'] = _t(__CLASS__.'.PanelsLabel', 'Accordion panels');
68 68
 
69 69
         return $labels;
70 70
     }
@@ -74,7 +74,7 @@  discard block
 block discarded – undo
74 74
      */
75 75
     public function getCMSFields()
76 76
     {
77
-        $this->beforeUpdateCMSFields(function ($fields) {
77
+        $this->beforeUpdateCMSFields(function($fields) {
78 78
             /* @var FieldList $fields */
79 79
             $fields->removeByName(array(
80 80
                 'Sort',
@@ -113,9 +113,9 @@  discard block
 block discarded – undo
113 113
     {
114 114
         $count = $this->Panels()->count();
115 115
         $label = _t(
116
-            AccordionPanel::class . '.PLURALS',
116
+            AccordionPanel::class.'.PLURALS',
117 117
             '{count} Accordion Panel|{count} Accordion Panels',
118
-            [ 'count' => $count ]
118
+            ['count' => $count]
119 119
         );
120 120
         return DBField::create_field('HTMLText', $label)->Summary(20);
121 121
     }
Please login to merge, or discard this patch.