@@ -251,7 +251,7 @@ |
||
251 | 251 | ] |
252 | 252 | ); |
253 | 253 | |
254 | - if(!is_null($qtyInCart)) { |
|
254 | + if (!is_null($qtyInCart)) { |
|
255 | 255 | |
256 | 256 | return [ |
257 | 257 | 'qtyInCart' => $qtyInCart, |
@@ -126,14 +126,14 @@ |
||
126 | 126 | setcookie($this->sessionName, '', 0, ini_get('session.cookie_path'), ini_get('session.cookie_domain'), filter_var(ini_get('session.cookie_secure'), FILTER_VALIDATE_BOOLEAN), filter_var(ini_get('session.cookie_httponly'), FILTER_VALIDATE_BOOLEAN)); |
127 | 127 | } else { |
128 | 128 | setcookie($this->sessionName, '', |
129 | - [ |
|
130 | - 'expires' => 0, |
|
131 | - 'path' => $this->getCookiePath(), |
|
132 | - 'domain' => ini_get('session.cookie_domain'), |
|
133 | - 'secure' => filter_var(ini_get('session.cookie_secure'), FILTER_VALIDATE_BOOLEAN), |
|
134 | - 'httponly' => filter_var(ini_get('session.cookie_httponly'), FILTER_VALIDATE_BOOLEAN), |
|
135 | - 'samesite' => $this->getCookieSameSite(), |
|
136 | - ] |
|
129 | + [ |
|
130 | + 'expires' => 0, |
|
131 | + 'path' => $this->getCookiePath(), |
|
132 | + 'domain' => ini_get('session.cookie_domain'), |
|
133 | + 'secure' => filter_var(ini_get('session.cookie_secure'), FILTER_VALIDATE_BOOLEAN), |
|
134 | + 'httponly' => filter_var(ini_get('session.cookie_httponly'), FILTER_VALIDATE_BOOLEAN), |
|
135 | + 'samesite' => $this->getCookieSameSite(), |
|
136 | + ] |
|
137 | 137 | ); |
138 | 138 | } |
139 | 139 | } |
@@ -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; |
@@ -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 | { |