@@ -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( |
@@ -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()); |
@@ -28,7 +28,6 @@ |
||
28 | 28 | use Eccube\Entity\Master\DeviceType; |
29 | 29 | use Eccube\Util\Str; |
30 | 30 | use Symfony\Component\Filesystem\Filesystem; |
31 | -use Symfony\Component\Finder\Finder; |
|
32 | 31 | use Symfony\Component\Form\FormError; |
33 | 32 | use Symfony\Component\HttpFoundation\Request; |
34 | 33 | use Symfony\Component\HttpFoundation\Response; |