Completed
Pull Request — master (#17)
by Jason
11:16
created
src/Model/BaseElementObject.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -109,7 +109,7 @@  discard block
 block discarded – undo
109 109
      */
110 110
     public function getCMSFields()
111 111
     {
112
-        $this->beforeUpdateCMSFields(function ($fields) {
112
+        $this->beforeUpdateCMSFields(function($fields) {
113 113
             /** @var FieldList $fields */
114 114
             $fields->replaceField(
115 115
                 'ElementLinkID',
@@ -128,12 +128,12 @@  discard block
 block discarded – undo
128 128
             $fields->replaceField(
129 129
                 'Title',
130 130
                 TextCheckboxGroupField::create()
131
-                    ->setName(_t(__CLASS__.'TitleLabel','Title'))
131
+                    ->setName(_t(__CLASS__.'TitleLabel', 'Title'))
132 132
             );
133 133
 
134 134
             $image = $fields->dataFieldByName('Image')
135 135
                 ->setTitle(_t(__CLASS__.'.ImageLabel', 'Image'))
136
-                ->setDescription(_t(__CLASS__.'.ImageDescription','optional. Display an image with this feature.'))
136
+                ->setDescription(_t(__CLASS__.'.ImageDescription', 'optional. Display an image with this feature.'))
137 137
                 ->setFolderName('Uploads/Elements/Objects');
138 138
             $fields->insertBefore($image, 'Content');
139 139
 
Please login to merge, or discard this patch.