Passed
Push — master ( b9b96d...e3435c )
by Jason
02:55
created
src/Elements/ElementFeatures.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -67,7 +67,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
     /**
Please login to merge, or discard this patch.
tests/Elements/ElementFeaturesTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.