Passed
Pull Request — master (#29)
by Jason
10:46
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.
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.
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.