Completed
Pull Request — master (#20)
by Jason
13:07
created
src/Elements/ElementPromos.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -88,7 +88,7 @@  discard block
 block discarded – undo
88 88
         $labels = parent::fieldLabels($includerelations);
89 89
 
90 90
         $labels['Content'] = _t(__CLASS__.'.ContentLabel', 'Intro');
91
-        $labels['Promos'] = _t(__CLASS__ . '.PromosLabel', 'Promos');
91
+        $labels['Promos'] = _t(__CLASS__.'.PromosLabel', 'Promos');
92 92
 
93 93
         return $labels;
94 94
     }
@@ -98,7 +98,7 @@  discard block
 block discarded – undo
98 98
      */
99 99
     public function getCMSFields()
100 100
     {
101
-        $this->beforeUpdateCMSFields(function (FieldList $fields) {
101
+        $this->beforeUpdateCMSFields(function(FieldList $fields) {
102 102
             $fields->dataFieldByName('Content')
103 103
                 ->setRows(5);
104 104
 
@@ -143,7 +143,7 @@  discard block
 block discarded – undo
143 143
         } else {
144 144
             $label = ' promos';
145 145
         }
146
-        return DBField::create_field('HTMLText', $this->Promos()->count() . $label)->Summary(20);
146
+        return DBField::create_field('HTMLText', $this->Promos()->count().$label)->Summary(20);
147 147
     }
148 148
 
149 149
     /**
Please login to merge, or discard this patch.