Completed
Push — master ( ea22d3...df2857 )
by Nic
21s queued 11s
created
src/Page/ProductHolder.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -69,7 +69,7 @@  discard block
 block discarded – undo
69 69
      */
70 70
     public function getCMSFields()
71 71
     {
72
-        $this->beforeUpdateCMSFields(function (FieldList $fields) {
72
+        $this->beforeUpdateCMSFields(function(FieldList $fields) {
73 73
             if (FoxyStripeSetting::current_foxystripe_setting()->MultiGroup) {
74 74
                 $config = GridFieldConfig_RelationEditor::create();
75 75
                 $config->addComponent(new GridFieldOrderableRows('SortOrder'));
@@ -150,8 +150,8 @@  discard block
 block discarded – undo
150 150
 
151 151
         if ($config->MultiGroup) {
152 152
             $entries = $this->Products()->sort('SortOrder');
153
-        } else {
154
-            $filter = '"ParentID" = ' . $this->ID;
153
+        }else {
154
+            $filter = '"ParentID" = '.$this->ID;
155 155
 
156 156
             // Build a list of all IDs for ProductGroups that are children
157 157
             $holderIDs = $this->ProductGroupIDs();
@@ -162,7 +162,7 @@  discard block
 block discarded – undo
162 162
                 if ($filter) {
163 163
                     $filter .= ' OR ';
164 164
                 }
165
-                $filter .= '"ParentID" IN (' . implode(',', $holderIDs) . ')';
165
+                $filter .= '"ParentID" IN ('.implode(',', $holderIDs).')';
166 166
             }
167 167
 
168 168
             $order = '"SiteTree"."Title" ASC';
Please login to merge, or discard this patch.