Completed
Push — master ( 71c281...4a1d6b )
by Jason
02:32
created
src/Elements/ElementAccordion.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -62,7 +62,7 @@  discard block
 block discarded – undo
62 62
     public function fieldLabels($includerelations = true)
63 63
     {
64 64
         $labels = parent::fieldLabels($includerelations);
65
-        $labels['Panels'] = _t(__CLASS__ . '.PanelsLabel', 'Accordion panels');
65
+        $labels['Panels'] = _t(__CLASS__.'.PanelsLabel', 'Accordion panels');
66 66
 
67 67
         return $labels;
68 68
     }
@@ -72,7 +72,7 @@  discard block
 block discarded – undo
72 72
      */
73 73
     public function getCMSFields()
74 74
     {
75
-        $this->beforeUpdateCMSFields(function ($fields) {
75
+        $this->beforeUpdateCMSFields(function($fields) {
76 76
             /* @var FieldList $fields */
77 77
             $fields->removeByName(array(
78 78
                 'Sort',
@@ -107,9 +107,9 @@  discard block
 block discarded – undo
107 107
     {
108 108
         $count = $this->Panels()->count();
109 109
         $label = _t(
110
-            AccordionPanel::class . '.PLURALS',
110
+            AccordionPanel::class.'.PLURALS',
111 111
             '{count} Accordion Panel|{count} Accordion Panels',
112
-            [ 'count' => $count ]
112
+            ['count' => $count]
113 113
         );
114 114
         return DBField::create_field('HTMLText', $label)->Summary(20);
115 115
     }
Please login to merge, or discard this patch.
tests/Elements/ElementAccordionTest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -34,9 +34,9 @@
 block discarded – undo
34 34
         $object = $this->objFromFixture(ElementAccordion::class, 'one');
35 35
         $count = $object->Panels()->count();
36 36
         $this->assertEquals($object->getSummary(), _t(
37
-            AccordionPanel::class . 'PLURALS',
37
+            AccordionPanel::class.'PLURALS',
38 38
             '{count} Accordion Panel|{count} Accordion Panels',
39
-            [ 'count' => $count ]
39
+            ['count' => $count]
40 40
         ));
41 41
     }
42 42
 
Please login to merge, or discard this patch.