@@ -26,9 +26,9 @@ |
||
26 | 26 | use Eccube\Repository\Master\PrefRepository; |
27 | 27 | use Eccube\Repository\OrderRepository; |
28 | 28 | use Eccube\Service\CartService; |
29 | +use Eccube\Service\OrderHelper; |
|
29 | 30 | use Eccube\Service\PurchaseFlow\PurchaseContext; |
30 | 31 | use Eccube\Service\PurchaseFlow\PurchaseFlow; |
31 | -use Eccube\Service\OrderHelper; |
|
32 | 32 | use Sensio\Bundle\FrameworkExtraBundle\Configuration\Template; |
33 | 33 | use Symfony\Component\Form\Extension\Core\Type\CollectionType; |
34 | 34 | use Symfony\Component\HttpFoundation\Request; |
@@ -17,9 +17,9 @@ |
||
17 | 17 | use Eccube\Entity\Customer; |
18 | 18 | use Eccube\Entity\Member; |
19 | 19 | use Eccube\Service\CartService; |
20 | +use Eccube\Service\OrderHelper; |
|
20 | 21 | use Eccube\Service\PurchaseFlow\PurchaseContext; |
21 | 22 | use Eccube\Service\PurchaseFlow\PurchaseFlow; |
22 | -use Eccube\Service\OrderHelper; |
|
23 | 23 | use Symfony\Component\EventDispatcher\EventSubscriberInterface; |
24 | 24 | use Symfony\Component\HttpFoundation\RequestStack; |
25 | 25 | use Symfony\Component\Security\Core\AuthenticationEvents; |
@@ -1639,7 +1639,7 @@ |
||
1639 | 1639 | /** |
1640 | 1640 | * Set orderStatus. |
1641 | 1641 | * |
1642 | - * @param \Eccube\Entity\Master\OrderStatus|null|object $orderStatus |
|
1642 | + * @param null|Master\OrderStatus $orderStatus |
|
1643 | 1643 | * |
1644 | 1644 | * @return Order |
1645 | 1645 | */ |
@@ -96,7 +96,7 @@ discard block |
||
96 | 96 | /** |
97 | 97 | * 金額をポイントに変換する. |
98 | 98 | * |
99 | - * @param $price |
|
99 | + * @param double $price |
|
100 | 100 | * |
101 | 101 | * @return float ポイント |
102 | 102 | * |
@@ -153,6 +153,9 @@ discard block |
||
153 | 153 | } |
154 | 154 | } |
155 | 155 | |
156 | + /** |
|
157 | + * @param integer $point |
|
158 | + */ |
|
156 | 159 | public function prepare(ItemHolderInterface $itemHolder, $point) |
157 | 160 | { |
158 | 161 | // ユーザの保有ポイントを減算 |
@@ -160,6 +163,9 @@ discard block |
||
160 | 163 | $Customer->setPoint($Customer->getPoint() - $point); |
161 | 164 | } |
162 | 165 | |
166 | + /** |
|
167 | + * @param integer $point |
|
168 | + */ |
|
163 | 169 | public function rollback(ItemHolderInterface $itemHolder, $point) |
164 | 170 | { |
165 | 171 | // 利用したポイントをユーザに戻す. |
@@ -39,7 +39,7 @@ discard block |
||
39 | 39 | throw new UnexpectedTypeException($value, 'string'); |
40 | 40 | } |
41 | 41 | |
42 | - $value = (string)$value; |
|
42 | + $value = (string) $value; |
|
43 | 43 | |
44 | 44 | if (null === $constraint->strict) { |
45 | 45 | $constraint->strict = false; |
@@ -81,7 +81,7 @@ discard block |
||
81 | 81 | } |
82 | 82 | } |
83 | 83 | |
84 | - $host = (string)substr($value, strrpos($value, '@') + 1); |
|
84 | + $host = (string) substr($value, strrpos($value, '@') + 1); |
|
85 | 85 | |
86 | 86 | // Check for host DNS resource records |
87 | 87 | if ($constraint->checkMX) { |