@@ -270,6 +270,9 @@ |
||
| 270 | 270 | }); |
| 271 | 271 | } |
| 272 | 272 | |
| 273 | + /** |
|
| 274 | + * @param string $key |
|
| 275 | + */ |
|
| 273 | 276 | protected function addErrors($key, FormInterface $form, ConstraintViolationListInterface $errors) |
| 274 | 277 | { |
| 275 | 278 | foreach ($errors as $error) { |
@@ -33,8 +33,8 @@ |
||
| 33 | 33 | use Symfony\Component\Form\FormEvents; |
| 34 | 34 | use Symfony\Component\Form\FormInterface; |
| 35 | 35 | use Symfony\Component\OptionsResolver\OptionsResolver; |
| 36 | -use Symfony\Component\Validator\Constraints as Assert; |
|
| 37 | 36 | use Symfony\Component\Validator\ConstraintViolationListInterface; |
| 37 | +use Symfony\Component\Validator\Constraints as Assert; |
|
| 38 | 38 | use Symfony\Component\Validator\Validator\ValidatorInterface; |
| 39 | 39 | |
| 40 | 40 | class ProductClassEditType extends AbstractType |
@@ -75,6 +75,9 @@ discard block |
||
| 75 | 75 | return $this; |
| 76 | 76 | } |
| 77 | 77 | |
| 78 | + /** |
|
| 79 | + * @param integer $value |
|
| 80 | + */ |
|
| 78 | 81 | public function 詳細検索_ステータス($value) |
| 79 | 82 | { |
| 80 | 83 | $this->tester->click(self::$詳細検索ボタン); |
@@ -193,6 +196,9 @@ discard block |
||
| 193 | 196 | return $this; |
| 194 | 197 | } |
| 195 | 198 | |
| 199 | + /** |
|
| 200 | + * @param integer $rowNum |
|
| 201 | + */ |
|
| 196 | 202 | public function Accept_複製する($rowNum) |
| 197 | 203 | { |
| 198 | 204 | $modalCssSelector = "#page_admin_product > div.c-container > div.c-contentsArea > div.c-contentsArea__cols > div > div > form > div.card.rounded.border-0.mb-4 > div.card-body.p-0 > table > tbody > tr:nth-child(${rowNum}) > td.align-middle.pr-3 > div > div:nth-child(2) div.modal"; |
@@ -11,6 +11,7 @@ discard block |
||
| 11 | 11 | * file that was distributed with this source code. |
| 12 | 12 | */ |
| 13 | 13 | |
| 14 | +use Codeception\Util\Fixtures; |
|
| 14 | 15 | use Page\Admin\CsvSettingsPage; |
| 15 | 16 | use Page\Admin\DeliveryEditPage; |
| 16 | 17 | use Page\Admin\DeliveryManagePage; |
@@ -19,7 +20,6 @@ discard block |
||
| 19 | 20 | use Page\Admin\PaymentManagePage; |
| 20 | 21 | use Page\Admin\ShopSettingPage; |
| 21 | 22 | use Page\Admin\TaxManagePage; |
| 22 | -use Codeception\Util\Fixtures; |
|
| 23 | 23 | |
| 24 | 24 | /** |
| 25 | 25 | * @group admin |
@@ -401,6 +401,9 @@ discard block |
||
| 401 | 401 | $Horizon->インストール(); |
| 402 | 402 | } |
| 403 | 403 | |
| 404 | + /** |
|
| 405 | + * @param string $fileName |
|
| 406 | + */ |
|
| 404 | 407 | private function publishPlugin($fileName) |
| 405 | 408 | { |
| 406 | 409 | copy(codecept_data_dir().'/'.'plugins/'.$fileName, codecept_root_dir().'/repos/'.$fileName); |
@@ -547,6 +550,9 @@ discard block |
||
| 547 | 550 | /** @var Store_Plugin */ |
| 548 | 551 | protected $dependency; |
| 549 | 552 | |
| 553 | + /** |
|
| 554 | + * @param string $code |
|
| 555 | + */ |
|
| 550 | 556 | public function __construct(AcceptanceTester $I, $code, Store_Plugin $dependency = null) |
| 551 | 557 | { |
| 552 | 558 | parent::__construct($I); |
@@ -679,6 +685,9 @@ discard block |
||
| 679 | 685 | return $this; |
| 680 | 686 | } |
| 681 | 687 | |
| 688 | + /** |
|
| 689 | + * @param string $fileName |
|
| 690 | + */ |
|
| 682 | 691 | protected function publishPlugin($fileName) |
| 683 | 692 | { |
| 684 | 693 | $published = copy(codecept_data_dir().'/'.'plugins/'.$fileName, codecept_root_dir().'/repos/'.$fileName); |
@@ -697,6 +706,9 @@ discard block |
||
| 697 | 706 | /** @var string */ |
| 698 | 707 | private $code; |
| 699 | 708 | |
| 709 | + /** |
|
| 710 | + * @param string $code |
|
| 711 | + */ |
|
| 700 | 712 | public function __construct(AcceptanceTester $I, $code) |
| 701 | 713 | { |
| 702 | 714 | parent::__construct($I); |
@@ -245,6 +245,9 @@ |
||
| 245 | 245 | $this->io->success('EC-CUBE installation successful.'); |
| 246 | 246 | } |
| 247 | 247 | |
| 248 | + /** |
|
| 249 | + * @param string $databaseUrl |
|
| 250 | + */ |
|
| 248 | 251 | protected function getDatabaseName($databaseUrl) |
| 249 | 252 | { |
| 250 | 253 | if (0 === strpos($databaseUrl, 'sqlite')) { |
@@ -114,6 +114,9 @@ |
||
| 114 | 114 | } |
| 115 | 115 | } |
| 116 | 116 | |
| 117 | + /** |
|
| 118 | + * @param string $outputDir |
|
| 119 | + */ |
|
| 117 | 120 | protected function removeOutputDir($outputDir) |
| 118 | 121 | { |
| 119 | 122 | if (file_exists($outputDir)) { |
@@ -4,10 +4,7 @@ discard block |
||
| 4 | 4 | |
| 5 | 5 | use Doctrine\Bundle\DoctrineBundle\Command\Proxy\DoctrineCommandHelper; |
| 6 | 6 | use Doctrine\Bundle\DoctrineBundle\Command\Proxy\UpdateSchemaDoctrineCommand as BaseUpdateSchemaDoctrineCommand; |
| 7 | -use Doctrine\Common\Annotations\AnnotationReader; |
|
| 8 | -use Doctrine\ORM\Tools\Console\Command\SchemaTool\UpdateCommand; |
|
| 9 | 7 | use Doctrine\ORM\Tools\SchemaTool; |
| 10 | -use Eccube\Doctrine\ORM\Mapping\Driver\ReloadSafeAnnotationDriver; |
|
| 11 | 8 | use Eccube\Repository\PluginRepository; |
| 12 | 9 | use Eccube\Service\PluginService; |
| 13 | 10 | use Eccube\Service\SchemaService; |
@@ -16,8 +13,8 @@ discard block |
||
| 16 | 13 | use Symfony\Component\Console\Input\InputOption; |
| 17 | 14 | use Symfony\Component\Console\Output\OutputInterface; |
| 18 | 15 | use Symfony\Component\Console\Style\SymfonyStyle; |
| 19 | -use Symfony\Component\Finder\Finder; |
|
| 20 | 16 | use Symfony\Component\Filesystem\Filesystem; |
| 17 | +use Symfony\Component\Finder\Finder; |
|
| 21 | 18 | |
| 22 | 19 | /** |
| 23 | 20 | * Command to generate the SQL needed to update the database schema to match |
@@ -112,6 +112,9 @@ discard block |
||
| 112 | 112 | $this->eventDispatcher = $eventDispatcher; |
| 113 | 113 | } |
| 114 | 114 | |
| 115 | + /** |
|
| 116 | + * @param string $message |
|
| 117 | + */ |
|
| 115 | 118 | public function addSuccess($message, $namespace = 'front') |
| 116 | 119 | { |
| 117 | 120 | $this->session->getFlashBag()->add('eccube.'.$namespace.'.success', $message); |
@@ -122,6 +125,9 @@ discard block |
||
| 122 | 125 | $this->session->getFlashBag()->add('eccube.'.$namespace.'.error', $message); |
| 123 | 126 | } |
| 124 | 127 | |
| 128 | + /** |
|
| 129 | + * @param string $message |
|
| 130 | + */ |
|
| 125 | 131 | public function addDanger($message, $namespace = 'front') |
| 126 | 132 | { |
| 127 | 133 | $this->session->getFlashBag()->add('eccube.'.$namespace.'.danger', $message); |
@@ -132,6 +138,9 @@ discard block |
||
| 132 | 138 | $this->session->getFlashBag()->add('eccube.'.$namespace.'.warning', $message); |
| 133 | 139 | } |
| 134 | 140 | |
| 141 | + /** |
|
| 142 | + * @param string $message |
|
| 143 | + */ |
|
| 135 | 144 | public function addInfo($message, $namespace = 'front') |
| 136 | 145 | { |
| 137 | 146 | $this->session->getFlashBag()->add('eccube.'.$namespace.'.info', $message); |
@@ -412,7 +412,6 @@ discard block |
||
| 412 | 412 | } |
| 413 | 413 | |
| 414 | 414 | /** |
| 415 | - * @param \Doctrine\ORM\EntityManagerInterface $em |
|
| 416 | 415 | * @param array $excludes |
| 417 | 416 | * |
| 418 | 417 | * @return null|Request |
@@ -445,9 +444,9 @@ discard block |
||
| 445 | 444 | } |
| 446 | 445 | |
| 447 | 446 | /** |
| 448 | - * @param $dateTime |
|
| 447 | + * @param \DateTime $dateTime |
|
| 449 | 448 | * |
| 450 | - * @return array|mixed |
|
| 449 | + * @return null|Request |
|
| 451 | 450 | * |
| 452 | 451 | * @throws \Doctrine\ORM\NonUniqueResultException |
| 453 | 452 | */ |
@@ -483,9 +482,9 @@ discard block |
||
| 483 | 482 | } |
| 484 | 483 | |
| 485 | 484 | /** |
| 486 | - * @param $dateTime |
|
| 485 | + * @param \DateTime $dateTime |
|
| 487 | 486 | * |
| 488 | - * @return array|mixed |
|
| 487 | + * @return null|Request |
|
| 489 | 488 | * |
| 490 | 489 | * @throws \Doctrine\ORM\NonUniqueResultException |
| 491 | 490 | */ |
@@ -523,7 +522,7 @@ discard block |
||
| 523 | 522 | /** |
| 524 | 523 | * 在庫切れ商品数を取得 |
| 525 | 524 | * |
| 526 | - * @return mixed |
|
| 525 | + * @return null|Request |
|
| 527 | 526 | * |
| 528 | 527 | * @throws \Doctrine\ORM\NonUniqueResultException |
| 529 | 528 | */ |
@@ -543,7 +542,7 @@ discard block |
||
| 543 | 542 | /** |
| 544 | 543 | * 商品数を取得 |
| 545 | 544 | * |
| 546 | - * @return mixed |
|
| 545 | + * @return null|Request |
|
| 547 | 546 | * |
| 548 | 547 | * @throws \Doctrine\ORM\NonUniqueResultException |
| 549 | 548 | */ |
@@ -560,7 +559,7 @@ discard block |
||
| 560 | 559 | /** |
| 561 | 560 | * 本会員数を取得 |
| 562 | 561 | * |
| 563 | - * @return mixed |
|
| 562 | + * @return null|Request |
|
| 564 | 563 | * |
| 565 | 564 | * @throws \Doctrine\ORM\NonUniqueResultException |
| 566 | 565 | */ |
@@ -579,7 +578,7 @@ discard block |
||
| 579 | 578 | * |
| 580 | 579 | * @param Carbon $fromDate |
| 581 | 580 | * @param Carbon $toDate |
| 582 | - * @param $format |
|
| 581 | + * @param string $format |
|
| 583 | 582 | * |
| 584 | 583 | * @return array |
| 585 | 584 | */ |
@@ -14,7 +14,6 @@ |
||
| 14 | 14 | namespace Eccube\Controller\Admin\Content; |
| 15 | 15 | |
| 16 | 16 | use Eccube\Controller\AbstractController; |
| 17 | -use Eccube\Form\Type\Admin\MainEditType; |
|
| 18 | 17 | use Sensio\Bundle\FrameworkExtraBundle\Configuration\Template; |
| 19 | 18 | use Symfony\Component\Filesystem\Exception\IOException; |
| 20 | 19 | use Symfony\Component\Filesystem\Filesystem; |