@@ -237,7 +237,7 @@ discard block |
||
| 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 |
||
| 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 |
||
| 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 | /** |