@@ -42,7 +42,7 @@ |
||
42 | 42 | |
43 | 43 | /** |
44 | 44 | * @param ObjectManager $om |
45 | - * @param stging $className |
|
45 | + * @param string $className |
|
46 | 46 | */ |
47 | 47 | public function __construct(ObjectManager $om, $className) |
48 | 48 | { |
@@ -35,6 +35,9 @@ |
||
35 | 35 | { |
36 | 36 | private $app; |
37 | 37 | |
38 | + /** |
|
39 | + * @param \Silex\Application $app |
|
40 | + */ |
|
38 | 41 | public function __construct($app) |
39 | 42 | { |
40 | 43 | $this->app = $app; |
@@ -25,8 +25,6 @@ |
||
25 | 25 | |
26 | 26 | use Symfony\Component\Form\AbstractType; |
27 | 27 | use Symfony\Component\Form\FormBuilderInterface; |
28 | -use Symfony\Component\Form\FormError; |
|
29 | -use Symfony\Component\Form\FormEvents; |
|
30 | 28 | use Symfony\Component\OptionsResolver\OptionsResolverInterface; |
31 | 29 | use Symfony\Component\Security\Core\Validator\Constraints\UserPassword; |
32 | 30 | use Symfony\Component\Validator\Constraints as Assert; |
@@ -39,6 +39,9 @@ |
||
39 | 39 | |
40 | 40 | protected $app; |
41 | 41 | |
42 | + /** |
|
43 | + * @param \Silex\Application $app |
|
44 | + */ |
|
42 | 45 | public function __construct($app) |
43 | 46 | { |
44 | 47 | $this->app = $app; |
@@ -234,7 +234,7 @@ discard block |
||
234 | 234 | '\Eccube\Entity\Customer' |
235 | 235 | ))); |
236 | 236 | |
237 | - $builder->addEventListener(FormEvents::PRE_SUBMIT, function (FormEvent $event) use ($BaseInfo) { |
|
237 | + $builder->addEventListener(FormEvents::PRE_SUBMIT, function(FormEvent $event) use ($BaseInfo) { |
|
238 | 238 | |
239 | 239 | if ($BaseInfo->getOptionMultipleShipping() == Constant::ENABLED) { |
240 | 240 | |
@@ -274,7 +274,7 @@ discard block |
||
274 | 274 | } |
275 | 275 | |
276 | 276 | }); |
277 | - $builder->addEventListener(FormEvents::POST_SUBMIT, function (FormEvent $event) { |
|
277 | + $builder->addEventListener(FormEvents::POST_SUBMIT, function(FormEvent $event) { |
|
278 | 278 | $form = $event->getForm(); |
279 | 279 | $orderDetails = $form['OrderDetails']->getData(); |
280 | 280 | if (empty($orderDetails) || count($orderDetails) < 1) { |
@@ -27,7 +27,6 @@ |
||
27 | 27 | use Symfony\Component\Form\AbstractType; |
28 | 28 | use Symfony\Component\Form\Extension\Core\Type; |
29 | 29 | use Symfony\Component\Form\FormBuilderInterface; |
30 | -use Symfony\Component\Validator\Constraints as Assert; |
|
31 | 30 | |
32 | 31 | class SearchProductType extends AbstractType |
33 | 32 | { |
@@ -36,6 +36,9 @@ |
||
36 | 36 | { |
37 | 37 | protected $app; |
38 | 38 | |
39 | + /** |
|
40 | + * @param \Silex\Application $app |
|
41 | + */ |
|
39 | 42 | public function __construct($app) |
40 | 43 | { |
41 | 44 | $this->app = $app; |
@@ -91,7 +91,7 @@ |
||
91 | 91 | ))); |
92 | 92 | |
93 | 93 | $app = $this->app; |
94 | - $builder->addEventListener(FormEvents::PRE_SUBMIT, function (FormEvent $event) use ($app) { |
|
94 | + $builder->addEventListener(FormEvents::PRE_SUBMIT, function(FormEvent $event) use ($app) { |
|
95 | 95 | // モーダルからのPOST時に、金額等をセットする. |
96 | 96 | if ('modal' === $app['request']->get('modal')) { |
97 | 97 | $data = $event->getData(); |
@@ -131,7 +131,7 @@ |
||
131 | 131 | /** |
132 | 132 | * @param \Eccube\Entity\Member $Member |
133 | 133 | * |
134 | - * @return void |
|
134 | + * @return boolean |
|
135 | 135 | */ |
136 | 136 | public function up(\Eccube\Entity\Member $Member) |
137 | 137 | { |
@@ -65,7 +65,7 @@ |
||
65 | 65 | * @param int|null|\Eccube\Entity\ProductClass $ProductClass 商品規格 |
66 | 66 | * @param int|null|\Eccube\Entity\Master\Pref $Pref 都道府県 |
67 | 67 | * @param int|null|\Eccube\Entity\Master\Country $Country 国 |
68 | - * @return \Eccube\Entity\TaxRule 税設定情報 |
|
68 | + * @return integer 税設定情報 |
|
69 | 69 | * |
70 | 70 | * @throws NoResultException |
71 | 71 | */ |
@@ -231,7 +231,7 @@ |
||
231 | 231 | } |
232 | 232 | |
233 | 233 | /** |
234 | - * @param \Eccube\Entity\ProductClass|integer $ProductClass |
|
234 | + * @param string $ProductClass |
|
235 | 235 | * @param integer $quantity |
236 | 236 | * @return \Eccube\Service\CartService |
237 | 237 | * @throws CartException |
@@ -328,7 +328,6 @@ discard block |
||
328 | 328 | |
329 | 329 | /** |
330 | 330 | * @param $row |
331 | - * @param null $callback |
|
332 | 331 | */ |
333 | 332 | public function fputcsv($row) |
334 | 333 | { |
@@ -425,7 +424,6 @@ discard block |
||
425 | 424 | * XXX self::setExportQueryBuilder() をコールする前に EntityManager を取得したいので、引数で渡している |
426 | 425 | * |
427 | 426 | * @param array $searchData セッションから取得した検索条件の配列 |
428 | - * @param EntityManager $em |
|
429 | 427 | */ |
430 | 428 | protected function findDeserializeObjects(array &$searchData) |
431 | 429 | { |
@@ -26,7 +26,6 @@ |
||
26 | 26 | |
27 | 27 | use Eccube\Common\Constant; |
28 | 28 | use Eccube\Util\EntityUtil; |
29 | -use Symfony\Component\Form\FormFactory; |
|
30 | 29 | use Symfony\Component\HttpFoundation\Request; |
31 | 30 | use Doctrine\Common\Collections\ArrayCollection; |
32 | 31 |
@@ -309,7 +309,7 @@ discard block |
||
309 | 309 | { |
310 | 310 | $config = $this->config; |
311 | 311 | |
312 | - return function ($value) use ($config) { |
|
312 | + return function($value) use ($config) { |
|
313 | 313 | return mb_convert_encoding( |
314 | 314 | (string) $value, $config['csv_export_encoding'], 'UTF-8' |
315 | 315 | ); |
@@ -434,7 +434,7 @@ discard block |
||
434 | 434 | if ($Conditions instanceof ArrayCollection) { |
435 | 435 | $Conditions = new ArrayCollection( |
436 | 436 | array_map( |
437 | - function ($Entity) use ($em) { |
|
437 | + function($Entity) use ($em) { |
|
438 | 438 | return $em->getRepository(get_class($Entity))->find($Entity->getId()); |
439 | 439 | }, $Conditions->toArray() |
440 | 440 | ) |