@@ -247,7 +247,7 @@ |
||
247 | 247 | */ |
248 | 248 | public function setStockSizeWidth($stockSizeWidth) |
249 | 249 | { |
250 | - if (!is_int($stockSizeWidth) || !in_array($stockSizeWidth, [6,8])) |
|
250 | + if (!is_int($stockSizeWidth) || !in_array($stockSizeWidth, [6, 8])) |
|
251 | 251 | throw new \Exception('Label:StockSizeWidth only valid values are 6 or 8'); |
252 | 252 | |
253 | 253 | $this->stockSizeWidth = $stockSizeWidth; |
@@ -225,8 +225,10 @@ discard block |
||
225 | 225 | */ |
226 | 226 | public function setStockSizeHeight($stockSizeHeight) |
227 | 227 | { |
228 | - if (!is_int($stockSizeHeight) || $stockSizeHeight != 4)) |
|
228 | + if (!is_int($stockSizeHeight) || $stockSizeHeight != 4) { |
|
229 | + ) |
|
229 | 230 | throw new \Exception('Label:StockSizeHeight only valid value is 4'); |
231 | + } |
|
230 | 232 | |
231 | 233 | $this->stockSizeHeight = $stockSizeHeight; |
232 | 234 | |
@@ -247,8 +249,9 @@ discard block |
||
247 | 249 | */ |
248 | 250 | public function setStockSizeWidth($stockSizeWidth) |
249 | 251 | { |
250 | - if (!is_int($stockSizeWidth) || !in_array($stockSizeWidth, [6,8])) |
|
251 | - throw new \Exception('Label:StockSizeWidth only valid values are 6 or 8'); |
|
252 | + if (!is_int($stockSizeWidth) || !in_array($stockSizeWidth, [6,8])) { |
|
253 | + throw new \Exception('Label:StockSizeWidth only valid values are 6 or 8'); |
|
254 | + } |
|
252 | 255 | |
253 | 256 | $this->stockSizeWidth = $stockSizeWidth; |
254 | 257 |