@@ -55,7 +55,7 @@ |
||
| 55 | 55 | */ |
| 56 | 56 | public function getCMSFields() |
| 57 | 57 | { |
| 58 | - $this->beforeUpdateCMSFields(function ($fields) { |
|
| 58 | + $this->beforeUpdateCMSFields(function($fields) { |
|
| 59 | 59 | $fields->removeByName(array( |
| 60 | 60 | 'ElementFeaturesID', |
| 61 | 61 | 'Sort', |
@@ -67,7 +67,7 @@ discard block |
||
| 67 | 67 | */ |
| 68 | 68 | public function getCMSFields() |
| 69 | 69 | { |
| 70 | - $this->beforeUpdateCMSFields(function (FieldList $fields) { |
|
| 70 | + $this->beforeUpdateCMSFields(function(FieldList $fields) { |
|
| 71 | 71 | $fields->dataFieldByName('Content') |
| 72 | 72 | ->setRows(8); |
| 73 | 73 | $fields->dataFieldByName('Alternate')->setTitle('Alternate images and text'); |
@@ -103,7 +103,7 @@ discard block |
||
| 103 | 103 | } else { |
| 104 | 104 | $feature = 'features'; |
| 105 | 105 | } |
| 106 | - return DBField::create_field('HTMLText', $this->Features()->count() . ' ' . $feature)->Summary(20); |
|
| 106 | + return DBField::create_field('HTMLText', $this->Features()->count().' '.$feature)->Summary(20); |
|
| 107 | 107 | } |
| 108 | 108 | |
| 109 | 109 | /** |
@@ -40,7 +40,7 @@ |
||
| 40 | 40 | public function testGetSummary() |
| 41 | 41 | { |
| 42 | 42 | $object = $this->objFromFixture(ElementFeatures::class, 'one'); |
| 43 | - $result = $object->Features()->count() . ' feature'; |
|
| 43 | + $result = $object->Features()->count().' feature'; |
|
| 44 | 44 | $this->assertEquals($object->getSummary(), $result); |
| 45 | 45 | } |
| 46 | 46 | |