Completed
Push — master ( bbec30...bba6c2 )
by Jason
03:33
created
src/Page/ProductPage.php 1 patch
Spacing   +3 added lines, -4 removed lines patch added patch discarded remove patch
@@ -205,7 +205,7 @@  discard block
 block discarded – undo
205 205
         $fields = parent::getCMSFields();
206 206
 
207 207
         // Cateogry Dropdown field w/ add new
208
-        $source = function () {
208
+        $source = function() {
209 209
             return ProductCategory::get()->map()->toArray();
210 210
         };
211 211
         $catField = DropdownField::create('CategoryID', _t('ProductPage.Category', 'FoxyCart Category'), $source())
@@ -342,7 +342,7 @@  discard block
 block discarded – undo
342 342
             $product = self::get()->byID($this->ID);
343 343
             if (isset($product->ParentID)) {
344 344
                 $origParent = $product->ParentID;
345
-            } else {
345
+            }else {
346 346
                 $origParent = null;
347 347
             }
348 348
             $currentParent = $this->ParentID;
@@ -429,8 +429,7 @@  discard block
 block discarded – undo
429 429
         $optionName = ($optionName !== null) ? preg_replace('/\s/', '_', $optionName) : $optionName;
430 430
 
431 431
         return (FoxyStripeSetting::current_foxystripe_setting()->CartValidation)
432
-            ? \FoxyCart_Helper::fc_hash_value($productCode, $optionName, $optionValue, $method, $output, $urlEncode) :
433
-            $optionValue;
432
+            ? \FoxyCart_Helper::fc_hash_value($productCode, $optionName, $optionValue, $method, $output, $urlEncode) : $optionValue;
434 433
     }
435 434
 
436 435
     /**
Please login to merge, or discard this patch.