@@ -1024,7 +1024,7 @@ |
||
1024 | 1024 | * 失敗 : \Doctrine\DBAL\DBALExceptionエラーが発生( 接続に失敗した場合 )、エラー画面を表示しdie() |
1025 | 1025 | * 備考 : app['debug']がtrueの際は処理を行わない |
1026 | 1026 | * |
1027 | - * @return boolean true |
|
1027 | + * @return null|boolean true |
|
1028 | 1028 | * |
1029 | 1029 | */ |
1030 | 1030 | protected function checkDatabaseConnection() |
@@ -348,7 +348,7 @@ discard block |
||
348 | 348 | * @param array $metadatas |
349 | 349 | * @param array $fsList |
350 | 350 | * @param $pluginCode |
351 | - * @param $codePath |
|
351 | + * @param string $codePath |
|
352 | 352 | */ |
353 | 353 | protected function generateMigration(array $metadatas, array &$fsList = array(), $pluginCode, $codePath) |
354 | 354 | { |
@@ -373,7 +373,7 @@ discard block |
||
373 | 373 | * |
374 | 374 | * @param $pluginCode |
375 | 375 | * @param array $metadatas |
376 | - * @return mixed|string |
|
376 | + * @return string |
|
377 | 377 | */ |
378 | 378 | protected function makeMigration($pluginCode, array $metadatas) |
379 | 379 | { |
@@ -33,7 +33,6 @@ |
||
33 | 33 | use Symfony\Component\Console\Input\InputOption; |
34 | 34 | use Symfony\Component\Console\Output\OutputInterface; |
35 | 35 | use Symfony\Component\Console\Question\Question; |
36 | -use Symfony\Component\Validator\Constraints as Assert; |
|
37 | 36 | |
38 | 37 | class PluginCommand extends \Knp\Command\Command |
39 | 38 | { |
@@ -52,11 +52,17 @@ |
||
52 | 52 | return $form; |
53 | 53 | } |
54 | 54 | |
55 | + /** |
|
56 | + * @param Application $app |
|
57 | + */ |
|
55 | 58 | protected function getSecurity($app) |
56 | 59 | { |
57 | 60 | return $app['security.token_storage']; |
58 | 61 | } |
59 | 62 | |
63 | + /** |
|
64 | + * @param Application $app |
|
65 | + */ |
|
60 | 66 | protected function isTokenValid($app) |
61 | 67 | { |
62 | 68 | $csrf = $app['form.csrf_provider']; |
@@ -230,6 +230,10 @@ discard block |
||
230 | 230 | return $str; |
231 | 231 | } |
232 | 232 | |
233 | + /** |
|
234 | + * @param string $topDir |
|
235 | + * @param Request $request |
|
236 | + */ |
|
233 | 237 | private function getTree($topDir, $request) |
234 | 238 | { |
235 | 239 | $finder = Finder::create()->in($topDir) |
@@ -267,6 +271,10 @@ discard block |
||
267 | 271 | return $tree; |
268 | 272 | } |
269 | 273 | |
274 | + /** |
|
275 | + * @param Application $app |
|
276 | + * @param string $nowDir |
|
277 | + */ |
|
270 | 278 | private function getFileList($app, $nowDir) |
271 | 279 | { |
272 | 280 | $topDir = $app['config']['user_data_realdir']; |
@@ -326,6 +334,9 @@ discard block |
||
326 | 334 | return (strpos($targetDir, $topDir) === 0); |
327 | 335 | } |
328 | 336 | |
337 | + /** |
|
338 | + * @return string |
|
339 | + */ |
|
329 | 340 | private function convertStrFromServer($target) |
330 | 341 | { |
331 | 342 | if ($this->encode == self::SJIS) { |
@@ -670,7 +670,7 @@ discard block |
||
670 | 670 | /** |
671 | 671 | * フォームからの入直内容に基づいて、受注情報の再計算を行う |
672 | 672 | * |
673 | - * @param $app |
|
673 | + * @param Application $app |
|
674 | 674 | * @param $Order |
675 | 675 | */ |
676 | 676 | protected function calculate($app, \Eccube\Entity\Order $Order) |
@@ -721,7 +721,7 @@ discard block |
||
721 | 721 | * - 受注ステータスが入金済に設定された場合に入金日を更新 |
722 | 722 | * |
723 | 723 | * |
724 | - * @param $app |
|
724 | + * @param Application $app |
|
725 | 725 | * @param $TargetOrder |
726 | 726 | * @param $OriginOrder |
727 | 727 | */ |
@@ -352,6 +352,9 @@ |
||
352 | 352 | } |
353 | 353 | |
354 | 354 | |
355 | + /** |
|
356 | + * @param Application $app |
|
357 | + */ |
|
355 | 358 | private function createBody($app, $header, $footer, $Order) |
356 | 359 | { |
357 | 360 | return $app->renderView('Mail/order.twig', array( |
@@ -590,6 +590,8 @@ discard block |
||
590 | 590 | /** |
591 | 591 | * 登録、更新時のエラー画面表示 |
592 | 592 | * |
593 | + * @param Application $app |
|
594 | + * @param string $twig |
|
593 | 595 | */ |
594 | 596 | protected function render($app, $form, $headers, $twig) |
595 | 597 | { |
@@ -621,6 +623,7 @@ discard block |
||
621 | 623 | * アップロードされたCSVファイルの行ごとの処理 |
622 | 624 | * |
623 | 625 | * @param $formFile |
626 | + * @param Application $app |
|
624 | 627 | * @return CsvImportService |
625 | 628 | */ |
626 | 629 | protected function getImportData($app, $formFile) |
@@ -666,6 +669,7 @@ discard block |
||
666 | 669 | |
667 | 670 | /** |
668 | 671 | * 商品画像の削除、登録 |
672 | + * @param CsvImportService $data |
|
669 | 673 | */ |
670 | 674 | protected function createProductImage($row, Product $Product, $data) |
671 | 675 | { |
@@ -710,6 +714,8 @@ discard block |
||
710 | 714 | |
711 | 715 | /** |
712 | 716 | * 商品カテゴリの削除、登録 |
717 | + * @param Application $app |
|
718 | + * @param CsvImportService $data |
|
713 | 719 | */ |
714 | 720 | protected function createProductCategory($row, Product $Product, $app, $data) |
715 | 721 | { |
@@ -809,6 +815,8 @@ discard block |
||
809 | 815 | |
810 | 816 | /** |
811 | 817 | * 商品規格分類1、商品規格分類2がnullとなる商品規格情報を作成 |
818 | + * @param Application $app |
|
819 | + * @param CsvImportService $data |
|
812 | 820 | */ |
813 | 821 | protected function createProductClass($row, Product $Product, $app, $data, $ClassCategory1 = null, $ClassCategory2 = null) |
814 | 822 | { |
@@ -950,6 +958,8 @@ discard block |
||
950 | 958 | |
951 | 959 | /** |
952 | 960 | * 商品規格情報を更新 |
961 | + * @param Application $app |
|
962 | + * @param CsvImportService $data |
|
953 | 963 | */ |
954 | 964 | protected function updateProductClass($row, Product $Product, ProductClass $ProductClass, $app, $data) |
955 | 965 | { |
@@ -1096,6 +1106,7 @@ discard block |
||
1096 | 1106 | /** |
1097 | 1107 | * 登録、更新時のエラー画面表示 |
1098 | 1108 | * |
1109 | + * @param string $message |
|
1099 | 1110 | */ |
1100 | 1111 | protected function addErrors($message) |
1101 | 1112 | { |
@@ -1170,6 +1181,7 @@ discard block |
||
1170 | 1181 | * ProductCategory作成 |
1171 | 1182 | * @param \Eccube\Entity\Product $Product |
1172 | 1183 | * @param \Eccube\Entity\Category $Category |
1184 | + * @param integer $rank |
|
1173 | 1185 | * @return ProductCategory |
1174 | 1186 | */ |
1175 | 1187 | private function makeProductCategory($Product, $Category, $rank) |
@@ -531,6 +531,9 @@ discard block |
||
531 | 531 | /** |
532 | 532 | * 登録、更新時のエラー画面表示 |
533 | 533 | * |
534 | + * @param Application $app |
|
535 | + * @param boolean $not_product_class |
|
536 | + * @param \Symfony\Component\Form\FormInterface $classForm |
|
534 | 537 | */ |
535 | 538 | protected function render($app, $Product, $ProductClass, $not_product_class, $classForm, $error = null) |
536 | 539 | { |
@@ -582,6 +585,7 @@ discard block |
||
582 | 585 | |
583 | 586 | /** |
584 | 587 | * 規格1と規格2を組み合わせた商品規格を作成 |
588 | + * @param Application $app |
|
585 | 589 | */ |
586 | 590 | private function createProductClasses($app, Product $Product, ClassName $ClassName1 = null, ClassName $ClassName2 = null) |
587 | 591 | { |
@@ -669,6 +673,7 @@ discard block |
||
669 | 673 | * |
670 | 674 | * @param $productClassDest コピー先となる商品規格 |
671 | 675 | * @param $productClassOrig コピー元となる商品規格 |
676 | + * @param Application $app |
|
672 | 677 | */ |
673 | 678 | private function setDefualtProductClass($app, $productClassDest, $productClassOrig) { |
674 | 679 | $productClassDest->setDeliveryDate($productClassOrig->getDeliveryDate()); |