@@ -55,7 +55,7 @@ discard block |
||
| 55 | 55 | */ |
| 56 | 56 | public function getCMSFields() |
| 57 | 57 | { |
| 58 | - $this->beforeUpdateCMSFields(function (FieldList $fields) { |
|
| 58 | + $this->beforeUpdateCMSFields(function(FieldList $fields) { |
|
| 59 | 59 | $fields->dataFieldByName('Content') |
| 60 | 60 | ->setRows(8); |
| 61 | 61 | }); |
@@ -73,7 +73,7 @@ discard block |
||
| 73 | 73 | } else { |
| 74 | 74 | $slide = ' slides'; |
| 75 | 75 | } |
| 76 | - return DBField::create_field('HTMLText', $this->Slides()->count() . $slide)->Summary(20); |
|
| 76 | + return DBField::create_field('HTMLText', $this->Slides()->count().$slide)->Summary(20); |
|
| 77 | 77 | } |
| 78 | 78 | |
| 79 | 79 | /** |
@@ -82,7 +82,7 @@ discard block |
||
| 82 | 82 | protected function provideBlockSchema() |
| 83 | 83 | { |
| 84 | 84 | $blockSchema = parent::provideBlockSchema(); |
| 85 | - $blockSchema['content'] = $this->getSummary(); |
|
| 85 | + $blockSchema[ 'content' ] = $this->getSummary(); |
|
| 86 | 86 | return $blockSchema; |
| 87 | 87 | } |
| 88 | 88 | |
@@ -29,7 +29,7 @@ |
||
| 29 | 29 | public function testGetSummary() |
| 30 | 30 | { |
| 31 | 31 | $object = $this->objFromFixture(ElementSlideshow::class, 'one'); |
| 32 | - $result = $object->Slides()->count() . ' slide'; |
|
| 32 | + $result = $object->Slides()->count().' slide'; |
|
| 33 | 33 | $this->assertEquals($object->getSummary(), $result); |
| 34 | 34 | } |
| 35 | 35 | |