@@ -231,7 +231,7 @@ discard block |
||
231 | 231 | } |
232 | 232 | |
233 | 233 | /** |
234 | - * @param \Eccube\Entity\ProductClass|integer $ProductClass |
|
234 | + * @param string $ProductClass |
|
235 | 235 | * @param integer $quantity |
236 | 236 | * @return \Eccube\Service\CartService |
237 | 237 | * @throws CartException |
@@ -644,7 +644,7 @@ discard block |
||
644 | 644 | * 在庫数と販売制限数ともに個数が超えていれば、少ない方を適用させてメッセージを表示する |
645 | 645 | * |
646 | 646 | * @param ProductClass $ProductClass |
647 | - * @param $productName |
|
647 | + * @param string $productName |
|
648 | 648 | * @param $quantity |
649 | 649 | * @return int|string |
650 | 650 | */ |
@@ -222,7 +222,7 @@ discard block |
||
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 |
||
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 |
||
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) { |