Failed Conditions
Pull Request — master (#1665)
by k-yamamura
38:49
created
src/Eccube/Service/CartService.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -222,7 +222,7 @@  discard block
 block discarded – undo
222 222
      */
223 223
     public function getProductQuantity($productClassId)
224 224
     {
225
-        $CartItem = $this->cart->getCartItemByIdentifier('Eccube\Entity\ProductClass', (string)$productClassId);
225
+        $CartItem = $this->cart->getCartItemByIdentifier('Eccube\Entity\ProductClass', (string) $productClassId);
226 226
         if ($CartItem) {
227 227
             return $CartItem->getQuantity();
228 228
         } else {
@@ -305,7 +305,7 @@  discard block
 block discarded – undo
305 305
         $CartItem = new CartItem();
306 306
         $CartItem
307 307
             ->setClassName('Eccube\Entity\ProductClass')
308
-            ->setClassId((string)$ProductClass->getId())
308
+            ->setClassId((string) $ProductClass->getId())
309 309
             ->setPrice($ProductClass->getPrice02IncTax())
310 310
             ->setQuantity($quantity);
311 311
 
@@ -461,7 +461,7 @@  discard block
 block discarded – undo
461 461
      */
462 462
     public function removeProduct($productClassId)
463 463
     {
464
-        $this->cart->removeCartItemByIdentifier('Eccube\Entity\ProductClass', (string)$productClassId);
464
+        $this->cart->removeCartItemByIdentifier('Eccube\Entity\ProductClass', (string) $productClassId);
465 465
 
466 466
         // 支払方法の再設定
467 467
         if ($this->BaseInfo->getOptionMultipleShipping() == Constant::ENABLED) {
Please login to merge, or discard this patch.