@@ -13,6 +13,8 @@ discard block |
||
13 | 13 | |
14 | 14 | namespace Eccube\Form\Type\Admin; |
15 | 15 | |
16 | +use Doctrine\ORM\EntityManagerInterface; |
|
17 | +use Eccube\Entity\ClassCategory; |
|
16 | 18 | use Eccube\Form\DataTransformer; |
17 | 19 | use Eccube\Form\Type\Master\DeliveryDurationType; |
18 | 20 | use Eccube\Form\Type\Master\SaleTypeType; |
@@ -27,8 +29,6 @@ discard block |
||
27 | 29 | use Symfony\Component\Form\FormEvents; |
28 | 30 | use Symfony\Component\OptionsResolver\OptionsResolver; |
29 | 31 | use Symfony\Component\Validator\Constraints as Assert; |
30 | -use Doctrine\ORM\EntityManagerInterface; |
|
31 | -use Eccube\Entity\ClassCategory; |
|
32 | 32 | |
33 | 33 | class ProductClassType extends AbstractType |
34 | 34 | { |
@@ -194,7 +194,7 @@ |
||
194 | 194 | /** |
195 | 195 | * 指定された複数ディレクトリのうち、いずれかのディレクトリ以下にファイルが存在するかを確認。 |
196 | 196 | * |
197 | - * @param $form FormInterface |
|
197 | + * @param FormInterface $form FormInterface |
|
198 | 198 | * @param $dirs array |
199 | 199 | */ |
200 | 200 | private function validateFilePath($form, $dirs) |
@@ -24,8 +24,8 @@ |
||
24 | 24 | use Symfony\Component\Form\Extension\Core\Type\CollectionType; |
25 | 25 | use Symfony\Component\Form\Extension\Core\Type\FileType; |
26 | 26 | use Symfony\Component\Form\Extension\Core\Type\HiddenType; |
27 | -use Symfony\Component\Form\Extension\Core\Type\TextareaType; |
|
28 | 27 | use Symfony\Component\Form\Extension\Core\Type\TextType; |
28 | +use Symfony\Component\Form\Extension\Core\Type\TextareaType; |
|
29 | 29 | use Symfony\Component\Form\FormBuilderInterface; |
30 | 30 | use Symfony\Component\Form\FormError; |
31 | 31 | use Symfony\Component\Form\FormEvent; |
@@ -15,8 +15,8 @@ |
||
15 | 15 | |
16 | 16 | use Eccube\Validator\EmailValidator\NoRFCEmailValidator; |
17 | 17 | use Symfony\Component\Validator\Constraint; |
18 | -use Symfony\Component\Validator\Constraints\EmailValidator as BaseEmailValidator; |
|
19 | 18 | use Symfony\Component\Validator\ConstraintValidator; |
19 | +use Symfony\Component\Validator\Constraints\EmailValidator as BaseEmailValidator; |
|
20 | 20 | use Symfony\Component\Validator\Exception\UnexpectedTypeException; |
21 | 21 | |
22 | 22 | /** |
@@ -14,8 +14,8 @@ |
||
14 | 14 | namespace Eccube\Plugin; |
15 | 15 | |
16 | 16 | use Doctrine\DBAL\Connection; |
17 | -use Doctrine\DBAL\Migrations\Migration; |
|
18 | 17 | use Doctrine\DBAL\Migrations\Configuration\Configuration; |
18 | +use Doctrine\DBAL\Migrations\Migration; |
|
19 | 19 | use Symfony\Component\DependencyInjection\ContainerInterface; |
20 | 20 | |
21 | 21 | abstract class AbstractPluginManager |
@@ -132,7 +132,7 @@ |
||
132 | 132 | * @param string $where 追加の検索条件 |
133 | 133 | * @param string[] $parameters 追加の検索パラメーター |
134 | 134 | * |
135 | - * @return array ページ属性の配列 |
|
135 | + * @return null|\Symfony\Component\HttpFoundation\Request ページ属性の配列 |
|
136 | 136 | */ |
137 | 137 | public function getPageList($where = null, $parameters = []) |
138 | 138 | { |
@@ -37,6 +37,9 @@ discard block |
||
37 | 37 | $logger->error($message, $context); |
38 | 38 | } |
39 | 39 | |
40 | +/** |
|
41 | + * @param string $message |
|
42 | + */ |
|
40 | 43 | function log_warning($message, array $context = []) |
41 | 44 | { |
42 | 45 | $logger = LoggerFacade::create(); |
@@ -55,6 +58,9 @@ discard block |
||
55 | 58 | $logger->info($message, $context); |
56 | 59 | } |
57 | 60 | |
61 | +/** |
|
62 | + * @param string $message |
|
63 | + */ |
|
58 | 64 | function log_debug($message, array $context = []) |
59 | 65 | { |
60 | 66 | $logger = LoggerFacade::create(); |
@@ -82,7 +82,7 @@ |
||
82 | 82 | * |
83 | 83 | * @throws PluginException |
84 | 84 | * |
85 | - * @param string $command |
|
85 | + * @param string[] $commands |
|
86 | 86 | */ |
87 | 87 | public function runCommand($commands, $output = null, $init = true) |
88 | 88 | { |
@@ -28,7 +28,6 @@ |
||
28 | 28 | use Eccube\Repository\OrderRepository; |
29 | 29 | use Eccube\Repository\ProductRepository; |
30 | 30 | use Eccube\Repository\ShippingRepository; |
31 | -use Eccube\Util\EntityUtil; |
|
32 | 31 | use Eccube\Util\FormUtil; |
33 | 32 | use Symfony\Component\Form\FormFactoryInterface; |
34 | 33 | use Symfony\Component\HttpFoundation\Request; |
@@ -240,7 +240,7 @@ |
||
240 | 240 | /** |
241 | 241 | * PDFファイルを出力する. |
242 | 242 | * |
243 | - * @return string|mixed |
|
243 | + * @return string |
|
244 | 244 | */ |
245 | 245 | public function outputPdf() |
246 | 246 | { |
@@ -559,7 +559,7 @@ |
||
559 | 559 | $arrOrder[$i][2] = ''; |
560 | 560 | $arrOrder[$i][3] = ''; |
561 | 561 | |
562 | - foreach($Order->getTaxFreeDiscountItems() as $Item) { |
|
562 | + foreach ($Order->getTaxFreeDiscountItems() as $Item) { |
|
563 | 563 | ++$i; |
564 | 564 | $arrOrder[$i][0] = ''; |
565 | 565 | $arrOrder[$i][1] = ''; |