Completed
Push — master ( 7d586d...ccbe7d )
by Matthew
04:48
created
src/Model/PromoObject.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -42,7 +42,7 @@
 block discarded – undo
42 42
      */
43 43
     public function getCMSFields()
44 44
     {
45
-        $this->beforeUpdateCMSFields(function (FieldList $fields) {
45
+        $this->beforeUpdateCMSFields(function(FieldList $fields) {
46 46
             $fields->removeByName('ElementPromos');
47 47
 
48 48
             $config = GridFieldConfig_RecordViewer::create();
Please login to merge, or discard this patch.
src/Elements/ElementPromos.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -79,7 +79,7 @@  discard block
 block discarded – undo
79 79
      */
80 80
     public function getCMSFields()
81 81
     {
82
-        $this->beforeUpdateCMSFields(function (FieldList $fields) {
82
+        $this->beforeUpdateCMSFields(function(FieldList $fields) {
83 83
             $fields->dataFieldByName('Content')
84 84
                 ->setRows(8);
85 85
 
@@ -123,7 +123,7 @@  discard block
 block discarded – undo
123 123
         } else {
124 124
             $label = ' promos';
125 125
         }
126
-        return DBField::create_field('HTMLText', $this->Promos()->count() . $label)->Summary(20);
126
+        return DBField::create_field('HTMLText', $this->Promos()->count().$label)->Summary(20);
127 127
     }
128 128
 
129 129
     /**
Please login to merge, or discard this patch.