@@ -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 | // 利用したポイントをユーザに戻す. |
@@ -250,6 +250,9 @@ |
||
| 250 | 250 | $this->updatePluginStatus('/status/uninstalled', $Plugin); |
| 251 | 251 | } |
| 252 | 252 | |
| 253 | + /** |
|
| 254 | + * @param string $url |
|
| 255 | + */ |
|
| 253 | 256 | private function updatePluginStatus($url, Plugin $Plugin) |
| 254 | 257 | { |
| 255 | 258 | if ($Plugin->getSource()) { |
@@ -211,7 +211,7 @@ |
||
| 211 | 211 | } |
| 212 | 212 | |
| 213 | 213 | if (isset($row[$headerByKey['product_del_flg']])) { |
| 214 | - if (StringUtil::isNotBlank($row[$headerByKey['product_del_flg']]) && $row[$headerByKey['product_del_flg']] == (string)Constant::ENABLED) { |
|
| 214 | + if (StringUtil::isNotBlank($row[$headerByKey['product_del_flg']]) && $row[$headerByKey['product_del_flg']] == (string) Constant::ENABLED) { |
|
| 215 | 215 | // 商品を物理削除 |
| 216 | 216 | $deleteImages[] = $Product->getProductImage(); |
| 217 | 217 | |
@@ -56,7 +56,7 @@ discard block |
||
| 56 | 56 | * @param MailService $mailService |
| 57 | 57 | * @param MailHistoryRepository $mailHistoryRepository |
| 58 | 58 | * @param OrderRepository $orderRepository |
| 59 | - * @param twig $twig |
|
| 59 | + * @param Environment $twig |
|
| 60 | 60 | */ |
| 61 | 61 | public function __construct( |
| 62 | 62 | MailService $mailService, |
@@ -227,6 +227,9 @@ discard block |
||
| 227 | 227 | ]; |
| 228 | 228 | } |
| 229 | 229 | |
| 230 | + /** |
|
| 231 | + * @param Order $Order |
|
| 232 | + */ |
|
| 230 | 233 | private function createBody($Order, $twig = 'Mail/order.twig') |
| 231 | 234 | { |
| 232 | 235 | return $this->renderView($twig, [ |
@@ -81,7 +81,7 @@ |
||
| 81 | 81 | * |
| 82 | 82 | * @throws PluginException |
| 83 | 83 | * |
| 84 | - * @param string $command |
|
| 84 | + * @param string[] $commands |
|
| 85 | 85 | */ |
| 86 | 86 | public function runCommand($commands, $output = null, $init = true) |
| 87 | 87 | { |
@@ -276,16 +276,26 @@ |
||
| 276 | 276 | $I->assertFileNotExists($updatedPath); |
| 277 | 277 | } |
| 278 | 278 | |
| 279 | + /** |
|
| 280 | + * @param string $fileName |
|
| 281 | + */ |
|
| 279 | 282 | private function publishPlugin($fileName) |
| 280 | 283 | { |
| 281 | 284 | copy(codecept_data_dir().'/'.'plugins/'.$fileName, codecept_root_dir().'/repos/'.$fileName); |
| 282 | 285 | } |
| 283 | 286 | |
| 287 | + /** |
|
| 288 | + * @param string $tableName |
|
| 289 | + */ |
|
| 284 | 290 | private function tableExists($tableName) |
| 285 | 291 | { |
| 286 | 292 | return $this->conn->executeQuery("SELECT count(*) AS count FROM information_schema.columns WHERE table_name = '${tableName}';")->fetch()['count'] > 0; |
| 287 | 293 | } |
| 288 | 294 | |
| 295 | + /** |
|
| 296 | + * @param string $tableName |
|
| 297 | + * @param string $columnName |
|
| 298 | + */ |
|
| 289 | 299 | private function columnExists($tableName, $columnName) |
| 290 | 300 | { |
| 291 | 301 | return $this->conn->executeQuery("SELECT count(*) AS count FROM information_schema.columns WHERE table_name = '${tableName}' AND column_name = '${columnName}';")->fetch()['count'] == 1; |