@@ -85,7 +85,7 @@ |
||
| 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', |
@@ -34,9 +34,9 @@ |
||
| 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 | |
@@ -64,7 +64,7 @@ discard block |
||
| 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 |
||
| 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 |
||
| 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 | } |