| @@ -226,9 +226,9 @@ discard block | ||
| 226 | 226 | */ | 
| 227 | 227 | public function getCMSFields() | 
| 228 | 228 |      { | 
| 229 | -        $this->beforeUpdateCMSFields(function (FieldList $fields) { | |
| 229 | +        $this->beforeUpdateCMSFields(function(FieldList $fields) { | |
| 230 | 230 | // Cateogry Dropdown field w/ add new | 
| 231 | -            $source = function () { | |
| 231 | +            $source = function() { | |
| 232 | 232 | return ProductCategory::get()->map()->toArray(); | 
| 233 | 233 | }; | 
| 234 | 234 |              $catField = DropdownField::create('CategoryID', _t('ProductPage.Category', 'FoxyCart Category'), $source()) | 
| @@ -368,7 +368,7 @@ discard block | ||
| 368 | 368 | $product = self::get()->byID($this->ID); | 
| 369 | 369 |              if (isset($product->ParentID)) { | 
| 370 | 370 | $origParent = $product->ParentID; | 
| 371 | -            } else { | |
| 371 | +            }else { | |
| 372 | 372 | $origParent = null; | 
| 373 | 373 | } | 
| 374 | 374 | $currentParent = $this->ParentID; | 
| @@ -448,8 +448,7 @@ discard block | ||
| 448 | 448 |          $optionName = ($optionName !== null) ? preg_replace('/\s/', '_', $optionName) : $optionName; | 
| 449 | 449 | |
| 450 | 450 | return (FoxyStripeSetting::current_foxystripe_setting()->CartValidation) | 
| 451 | - ? \FoxyCart_Helper::fc_hash_value($productCode, $optionName, $optionValue, $method, $output, $urlEncode) : | |
| 452 | - $optionValue; | |
| 451 | + ? \FoxyCart_Helper::fc_hash_value($productCode, $optionName, $optionValue, $method, $output, $urlEncode) : $optionValue; | |
| 453 | 452 | } | 
| 454 | 453 | |
| 455 | 454 | /** |