@@ -432,7 +432,7 @@ |
||
432 | 432 | * |
433 | 433 | * @param array $data リクエストパラメータ |
434 | 434 | * |
435 | - * @return array |
|
435 | + * @return \Symfony\Component\Validator\ConstraintViolationListInterface[] |
|
436 | 436 | */ |
437 | 437 | protected function customerValidation(array &$data) |
438 | 438 | { |
@@ -73,6 +73,9 @@ discard block |
||
73 | 73 | $this->configureTranslations($container, $enabled, $pluginDir); |
74 | 74 | } |
75 | 75 | |
76 | + /** |
|
77 | + * @param string $pluginDir |
|
78 | + */ |
|
76 | 79 | protected function configureTwigPaths(ContainerBuilder $container, $enabled, $pluginDir) |
77 | 80 | { |
78 | 81 | $paths = []; |
@@ -92,6 +95,9 @@ discard block |
||
92 | 95 | } |
93 | 96 | } |
94 | 97 | |
98 | + /** |
|
99 | + * @param string $pluginDir |
|
100 | + */ |
|
95 | 101 | protected function configureTranslations(ContainerBuilder $container, $enabled, $pluginDir) |
96 | 102 | { |
97 | 103 | $paths = []; |
@@ -56,11 +56,11 @@ discard block |
||
56 | 56 | $stmt = $conn->query('select * from dtb_plugin'); |
57 | 57 | $plugins = $stmt->fetchAll(); |
58 | 58 | |
59 | - $enabled = array_filter($plugins, function ($plugin) { |
|
59 | + $enabled = array_filter($plugins, function($plugin) { |
|
60 | 60 | return true === (bool) $plugin['enabled']; |
61 | 61 | }); |
62 | 62 | |
63 | - $disabled = array_filter($plugins, function ($plugin) { |
|
63 | + $disabled = array_filter($plugins, function($plugin) { |
|
64 | 64 | return false === (bool) $plugin['enabled']; |
65 | 65 | }); |
66 | 66 | |
@@ -126,7 +126,7 @@ discard block |
||
126 | 126 | $sm = $conn->getSchemaManager(); |
127 | 127 | $tables = array_filter( |
128 | 128 | $sm->listTables(), |
129 | - function ($table) { |
|
129 | + function($table) { |
|
130 | 130 | return $table->getName() === 'dtb_plugin'; |
131 | 131 | } |
132 | 132 | ); |
@@ -55,7 +55,7 @@ |
||
55 | 55 | /** |
56 | 56 | * JoinClause constructor. |
57 | 57 | * |
58 | - * @param $leftJoin |
|
58 | + * @param boolean $leftJoin |
|
59 | 59 | * @param $join |
60 | 60 | * @param $alias |
61 | 61 | * @param $conditionType |
@@ -50,6 +50,9 @@ |
||
50 | 50 | $this->params = $params; |
51 | 51 | } |
52 | 52 | |
53 | + /** |
|
54 | + * @param Expr\Comparison $expr |
|
55 | + */ |
|
53 | 56 | private static function newWhereClause($expr, $x, $y) |
54 | 57 | { |
55 | 58 | if ($y) { |
@@ -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) { |
@@ -164,7 +164,7 @@ discard block |
||
164 | 164 | if (!$this->baseInfoRepository->get()->isOptionProductTaxRule()) { |
165 | 165 | return; |
166 | 166 | } |
167 | - $builder->addEventListener(FormEvents::POST_SET_DATA, function (FormEvent $event) { |
|
167 | + $builder->addEventListener(FormEvents::POST_SET_DATA, function(FormEvent $event) { |
|
168 | 168 | $data = $event->getData(); |
169 | 169 | if (!$data instanceof ProductClass) { |
170 | 170 | return; |
@@ -183,7 +183,7 @@ discard block |
||
183 | 183 | */ |
184 | 184 | protected function setCheckbox(FormBuilderInterface $builder) |
185 | 185 | { |
186 | - $builder->addEventListener(FormEvents::POST_SET_DATA, function (FormEvent $event) { |
|
186 | + $builder->addEventListener(FormEvents::POST_SET_DATA, function(FormEvent $event) { |
|
187 | 187 | $data = $event->getData(); |
188 | 188 | if (!$data instanceof ProductClass) { |
189 | 189 | return; |
@@ -194,7 +194,7 @@ discard block |
||
194 | 194 | } |
195 | 195 | }); |
196 | 196 | |
197 | - $builder->addEventListener(FormEvents::POST_SUBMIT, function (FormEvent $event) { |
|
197 | + $builder->addEventListener(FormEvents::POST_SUBMIT, function(FormEvent $event) { |
|
198 | 198 | $form = $event->getForm(); |
199 | 199 | $data = $event->getData(); |
200 | 200 | $data->setVisible($form['checked']->getData() ? true : false); |
@@ -203,7 +203,7 @@ discard block |
||
203 | 203 | |
204 | 204 | protected function addValidations(FormBuilderInterface $builder) |
205 | 205 | { |
206 | - $builder->addEventListener(FormEvents::POST_SUBMIT, function (FormEvent $event) { |
|
206 | + $builder->addEventListener(FormEvents::POST_SUBMIT, function(FormEvent $event) { |
|
207 | 207 | $form = $event->getForm(); |
208 | 208 | $data = $form->getData(); |
209 | 209 |
@@ -47,7 +47,6 @@ |
||
47 | 47 | protected $eccubeConfig; |
48 | 48 | |
49 | 49 | /** |
50 | - * @param array $config |
|
51 | 50 | */ |
52 | 51 | public function __construct(EccubeConfig $eccubeConfig) |
53 | 52 | { |
@@ -48,7 +48,6 @@ |
||
48 | 48 | /** |
49 | 49 | * SearchProductType constructor. |
50 | 50 | * |
51 | - * @param Application $app |
|
52 | 51 | */ |
53 | 52 | public function __construct(CategoryRepository $categoryRepository) |
54 | 53 | { |
@@ -63,7 +63,7 @@ discard block |
||
63 | 63 | * @param $block_id |
64 | 64 | * @param $DeviceType |
65 | 65 | * |
66 | - * @return array|\Eccube\Entity\Block |
|
66 | + * @return Block|null |
|
67 | 67 | */ |
68 | 68 | public function findOrCreate($block_id, $DeviceType) |
69 | 69 | { |
@@ -124,7 +124,7 @@ discard block |
||
124 | 124 | * |
125 | 125 | * @param \Eccube\Entity\Master\DeviceType $DeviceType |
126 | 126 | * |
127 | - * @return array |
|
127 | + * @return null|\Symfony\Component\HttpFoundation\Request |
|
128 | 128 | */ |
129 | 129 | public function getList($DeviceType) |
130 | 130 | { |
@@ -100,7 +100,7 @@ |
||
100 | 100 | * @param int|null|\Eccube\Entity\Master\Pref $Pref 都道府県 |
101 | 101 | * @param int|null|\Eccube\Entity\Master\Country $Country 国 |
102 | 102 | * |
103 | - * @return \Eccube\Entity\TaxRule 税設定情報 |
|
103 | + * @return integer 税設定情報 |
|
104 | 104 | * |
105 | 105 | * @throws NoResultException |
106 | 106 | */ |
@@ -228,7 +228,7 @@ |
||
228 | 228 | } |
229 | 229 | |
230 | 230 | // 適用日降順, sortNo 降順にソートする |
231 | - usort($TaxRules, function ($a, $b) { |
|
231 | + usort($TaxRules, function($a, $b) { |
|
232 | 232 | return $a->compareTo($b); |
233 | 233 | }); |
234 | 234 |