Completed
Pull Request — master (#374)
by Jason
07:43 queued 04:32
created
src/Page/ProductPage.php 1 patch
Spacing   +3 added lines, -4 removed lines patch added patch discarded remove patch
@@ -237,7 +237,7 @@  discard block
 block discarded – undo
237 237
      */
238 238
     public function getCMSFields()
239 239
     {
240
-        $this->beforeUpdateCMSFields(function (FieldList $fields) {
240
+        $this->beforeUpdateCMSFields(function(FieldList $fields) {
241 241
             $fields->addFieldsToTab(
242 242
                 'Root.Main',
243 243
                 [
@@ -431,7 +431,7 @@  discard block
 block discarded – undo
431 431
             $product = self::get()->byID($this->ID);
432 432
             if (isset($product->ParentID)) {
433 433
                 $origParent = $product->ParentID;
434
-            } else {
434
+            }else {
435 435
                 $origParent = null;
436 436
             }
437 437
             $currentParent = $this->ParentID;
@@ -487,8 +487,7 @@  discard block
 block discarded – undo
487 487
         $optionName = ($optionName !== null) ? preg_replace('/\s/', '_', $optionName) : $optionName;
488 488
 
489 489
         return (FoxyStripeSetting::current_foxystripe_setting()->CartValidation)
490
-            ? \FoxyCart_Helper::fc_hash_value($productCode, $optionName, $optionValue, $method, $output, $urlEncode) :
491
-            $optionValue;
490
+            ? \FoxyCart_Helper::fc_hash_value($productCode, $optionName, $optionValue, $method, $output, $urlEncode) : $optionValue;
492 491
     }
493 492
 
494 493
     /**
Please login to merge, or discard this patch.