Passed
Pull Request — master (#18)
by Jason
04:25
created
tests/Elements/ElementSlideshowTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/Elements/ElementSlideshow.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -60,7 +60,7 @@  discard block
 block discarded – undo
60 60
      */
61 61
     public function getCMSFields()
62 62
     {
63
-        $this->beforeUpdateCMSFields(function (FieldList $fields) {
63
+        $this->beforeUpdateCMSFields(function(FieldList $fields) {
64 64
             $fields->dataFieldByName('Content')
65 65
                 ->setRows(8)
66 66
                 ->setTitle('Description');
@@ -79,7 +79,7 @@  discard block
 block discarded – undo
79 79
         } else {
80 80
             $slide = ' slides';
81 81
         }
82
-        return DBField::create_field('HTMLText', $this->Slides()->count() . $slide)->Summary(20);
82
+        return DBField::create_field('HTMLText', $this->Slides()->count().$slide)->Summary(20);
83 83
     }
84 84
 
85 85
     /**
@@ -88,7 +88,7 @@  discard block
 block discarded – undo
88 88
     protected function provideBlockSchema()
89 89
     {
90 90
         $blockSchema = parent::provideBlockSchema();
91
-        $blockSchema['content'] = $this->getSummary();
91
+        $blockSchema[ 'content' ] = $this->getSummary();
92 92
         return $blockSchema;
93 93
     }
94 94
 
Please login to merge, or discard this patch.