@@ -285,7 +285,7 @@ |
||
| 285 | 285 | } |
| 286 | 286 | |
| 287 | 287 | /** |
| 288 | - * @return mixed|string |
|
| 288 | + * @return string |
|
| 289 | 289 | */ |
| 290 | 290 | public function getGeneratedTitle() |
| 291 | 291 | { |
@@ -90,7 +90,7 @@ discard block |
||
| 90 | 90 | $parentCode = $product->Code; |
| 91 | 91 | |
| 92 | 92 | // ProductOptionGroup Dropdown field w/ add new |
| 93 | - $groups = function () { |
|
| 93 | + $groups = function() { |
|
| 94 | 94 | return OptionGroup::get()->map()->toArray(); |
| 95 | 95 | }; |
| 96 | 96 | $groupFields = singleton('OptionGroup')->getCMSFields(); |
@@ -224,7 +224,7 @@ discard block |
||
| 224 | 224 | * @param bool $returnWithOnlyPlusMinus |
| 225 | 225 | * @return string |
| 226 | 226 | */ |
| 227 | - public static function getOptionModifierActionSymbol($oma, $returnWithOnlyPlusMinus=false) |
|
| 227 | + public static function getOptionModifierActionSymbol($oma, $returnWithOnlyPlusMinus = false) |
|
| 228 | 228 | { |
| 229 | 229 | switch ($oma) { |
| 230 | 230 | case 'Subtract': |
@@ -291,7 +291,7 @@ discard block |
||
| 291 | 291 | { |
| 292 | 292 | $modPrice = ($this->PriceModifier) ? (string)$this->PriceModifier : '0'; |
| 293 | 293 | $title = $this->Title; |
| 294 | - $title .= ($this->PriceModifier != 0) ? ': ('.OptionItem::getOptionModifierActionSymbol($this->PriceModifierAction, $returnWithOnlyPlusMinus=true).'$'.$modPrice.')' : ''; |
|
| 294 | + $title .= ($this->PriceModifier != 0) ? ': ('.OptionItem::getOptionModifierActionSymbol($this->PriceModifierAction, $returnWithOnlyPlusMinus = true).'$'.$modPrice.')' : ''; |
|
| 295 | 295 | return $title; |
| 296 | 296 | } |
| 297 | 297 | |
@@ -300,7 +300,7 @@ discard block |
||
| 300 | 300 | */ |
| 301 | 301 | public function getAvailability() |
| 302 | 302 | { |
| 303 | - $available = ($this->Available == 1) ? true : false ; |
|
| 303 | + $available = ($this->Available == 1) ? true : false; |
|
| 304 | 304 | |
| 305 | 305 | $this->extend('updateOptionAvailability', $available); |
| 306 | 306 | |