Passed
Pull Request — master (#346)
by
unknown
48s
created
src/Entity/ShipmentRequestLabelSpecification.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -247,7 +247,7 @@
 block discarded – undo
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;
Please login to merge, or discard this patch.
Braces   +6 added lines, -3 removed lines patch added patch discarded remove patch
@@ -225,8 +225,10 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 
Please login to merge, or discard this patch.