Failed Conditions
Push — 3.0.9-dev ( 720aa2...3dd81f )
by k-yamamura
60:00 queued 32:44
created
src/Eccube/Form/Type/Admin/SecurityType.php 2 patches
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -55,8 +55,8 @@
 block discarded – undo
55 55
                     new Assert\NotBlank(),
56 56
                     new Assert\Length(array('max' => $this->config['stext_len'])),
57 57
                     new Assert\Regex(array(
58
-                       'pattern' => "/^[0-9a-zA-Z]+$/",
59
-                   )),
58
+                        'pattern' => "/^[0-9a-zA-Z]+$/",
59
+                    )),
60 60
                 ),
61 61
             ))
62 62
             ->add('admin_allow_host', 'textarea', array(
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -70,19 +70,19 @@
 block discarded – undo
70 70
                 'label' => 'SSLを強制',
71 71
                 'required' => false,
72 72
             ))
73
-            ->addEventListener(FormEvents::POST_SUBMIT, function ($event) use($app) {
73
+            ->addEventListener(FormEvents::POST_SUBMIT, function($event) use($app) {
74 74
                 $form = $event->getForm();
75 75
                 $data = $form->getData();
76 76
 
77 77
                 $ips = preg_split("/\R/", $data['admin_allow_host'], null, PREG_SPLIT_NO_EMPTY);
78 78
 
79
-                foreach($ips as $ip) {
79
+                foreach ($ips as $ip) {
80 80
                     $errors = $app['validator']->validateValue($ip, array(
81 81
                             new Assert\Ip(),
82 82
                         )
83 83
                     );
84 84
                     if ($errors->count() != 0) {
85
-                        $form['admin_allow_host']->addError(new FormError($ip . 'はIPv4アドレスではありません。'));
85
+                        $form['admin_allow_host']->addError(new FormError($ip.'はIPv4アドレスではありません。'));
86 86
                     }
87 87
                 }
88 88
             })
Please login to merge, or discard this patch.
src/Eccube/Form/Type/Admin/ShippingType.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -141,7 +141,7 @@  discard block
 block discarded – undo
141 141
                 'format' => 'yyyy-MM-dd',
142 142
                 'required' => false,
143 143
             ))
144
-            ->addEventListener(FormEvents::PRE_SET_DATA, function (FormEvent $event) use ($BaseInfo) {
144
+            ->addEventListener(FormEvents::PRE_SET_DATA, function(FormEvent $event) use ($BaseInfo) {
145 145
                 if ($BaseInfo->getOptionMultipleShipping() == Constant::ENABLED) {
146 146
                     $form = $event->getForm();
147 147
                     $form->add('ShipmentItems', 'collection', array(
@@ -152,7 +152,7 @@  discard block
 block discarded – undo
152 152
                     ));
153 153
                 }
154 154
             })
155
-            ->addEventListener(FormEvents::POST_SET_DATA, function (FormEvent $event) {
155
+            ->addEventListener(FormEvents::POST_SET_DATA, function(FormEvent $event) {
156 156
                 /** @var \Eccube\Entity\Shipping $data */
157 157
                 $data = $event->getData();
158 158
                 /** @var \Symfony\Component\Form\Form $form */
@@ -172,7 +172,7 @@  discard block
 block discarded – undo
172 172
                     'empty_value' => '指定なし',
173 173
                     'empty_data' => null,
174 174
                     'required' => false,
175
-                    'query_builder' => function (EntityRepository $er) use($Delivery) {
175
+                    'query_builder' => function(EntityRepository $er) use($Delivery) {
176 176
                         return $er->createQueryBuilder('dt')
177 177
                             ->where('dt.Delivery = :Delivery')
178 178
                             ->setParameter('Delivery', $Delivery);
@@ -180,7 +180,7 @@  discard block
 block discarded – undo
180 180
                 ));
181 181
 
182 182
             })
183
-            ->addEventListener(FormEvents::PRE_SUBMIT, function (FormEvent $event) use ($app) {
183
+            ->addEventListener(FormEvents::PRE_SUBMIT, function(FormEvent $event) use ($app) {
184 184
                 $data = $event->getData();
185 185
                 $form = $event->getForm();
186 186
                 if (!$data) {
@@ -201,14 +201,14 @@  discard block
 block discarded – undo
201 201
                     'empty_value' => '指定なし',
202 202
                     'empty_data' => null,
203 203
                     'required' => false,
204
-                    'query_builder' => function (EntityRepository $er) use($Delivery) {
204
+                    'query_builder' => function(EntityRepository $er) use($Delivery) {
205 205
                         return $er->createQueryBuilder('dt')
206 206
                             ->where('dt.Delivery = :Delivery')
207 207
                             ->setParameter('Delivery', $Delivery);
208 208
                     },
209 209
                 ));
210 210
             })
211
-            ->addEventListener(FormEvents::POST_SUBMIT, function (FormEvent $event) use ($BaseInfo) {
211
+            ->addEventListener(FormEvents::POST_SUBMIT, function(FormEvent $event) use ($BaseInfo) {
212 212
                 if ($BaseInfo->getOptionMultipleShipping() == Constant::ENABLED) {
213 213
                     $form = $event->getForm();
214 214
                     $shipmentItems = $form['ShipmentItems']->getData();
Please login to merge, or discard this patch.
src/Eccube/Form/Type/Admin/TradelawType.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@
 block discarded – undo
33 33
 {
34 34
     protected $config;
35 35
 
36
-    public function __construct ($config)
36
+    public function __construct($config)
37 37
     {
38 38
         $this->config = $config;
39 39
     }
Please login to merge, or discard this patch.
src/Eccube/Form/Type/Install/Step3Type.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -142,19 +142,19 @@
 block discarded – undo
142 142
                 'help' => 'メーラーバックエンドがSMTPかつSMTP-AUTH使用時のみ指定',
143 143
                 'required' => false,
144 144
             ))
145
-            ->addEventListener(FormEvents::POST_SUBMIT, function ($event) use($app)  {
145
+            ->addEventListener(FormEvents::POST_SUBMIT, function($event) use($app)  {
146 146
                 $form = $event->getForm();
147 147
                 $data = $form->getData();
148 148
 
149 149
                 $ips = preg_split("/\R/", $data['admin_allow_hosts'], null, PREG_SPLIT_NO_EMPTY);
150 150
 
151
-                foreach($ips as $ip) {
151
+                foreach ($ips as $ip) {
152 152
                     $errors = $app['validator']->validateValue($ip, array(
153 153
                             new Assert\Ip(),
154 154
                         )
155 155
                     );
156 156
                     if ($errors->count() != 0) {
157
-                        $form['admin_allow_hosts']->addError(new FormError($ip . 'はIPv4アドレスではありません。'));
157
+                        $form['admin_allow_hosts']->addError(new FormError($ip.'はIPv4アドレスではありません。'));
158 158
                     }
159 159
                 }
160 160
             })
Please login to merge, or discard this patch.
src/Eccube/Form/Type/Master/ProductListOrderByType.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -38,14 +38,14 @@
 block discarded – undo
38 38
      */
39 39
     public function buildForm(FormBuilderInterface $builder, array $options)
40 40
     {
41
-        $builder->addEventListener(FormEvents::PRE_SET_DATA, function (FormEvent $event) {
41
+        $builder->addEventListener(FormEvents::PRE_SET_DATA, function(FormEvent $event) {
42 42
             $options = $event->getForm()->getConfig()->getOptions();
43 43
             if (!$event->getData()) {
44 44
                 $data = current(array_keys($options['choice_list']->getValues()));
45 45
                 $event->setData($data);
46 46
             }
47 47
         });
48
-        $builder->addEventListener(FormEvents::PRE_SUBMIT, function (FormEvent $event) {
48
+        $builder->addEventListener(FormEvents::PRE_SUBMIT, function(FormEvent $event) {
49 49
             $options = $event->getForm()->getConfig()->getOptions();
50 50
             $values = $options['choice_list']->getValues();
51 51
             if (!in_array($event->getData(), $values)) {
Please login to merge, or discard this patch.
src/Eccube/Form/Type/NameType.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -62,10 +62,10 @@
 block discarded – undo
62 62
         }
63 63
 
64 64
         if (empty($options['lastname_name'])) {
65
-            $options['lastname_name'] = $builder->getName() . '01';
65
+            $options['lastname_name'] = $builder->getName().'01';
66 66
         }
67 67
         if (empty($options['firstname_name'])) {
68
-            $options['firstname_name'] = $builder->getName() . '02';
68
+            $options['firstname_name'] = $builder->getName().'02';
69 69
         }
70 70
 
71 71
         $builder
Please login to merge, or discard this patch.
src/Eccube/Form/Type/PriceType.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -47,7 +47,7 @@
 block discarded – undo
47 47
             new Assert\GreaterThanOrEqual(array('value' => 0)),
48 48
         );
49 49
 
50
-        $constraints = function (Options $options) use ($defaultValues) {
50
+        $constraints = function(Options $options) use ($defaultValues) {
51 51
             if (false !== $options['required']) {
52 52
                 return array_merge($defaultValues, array(new Assert\NotBlank()));
53 53
             }
Please login to merge, or discard this patch.
src/Eccube/Form/Type/SearchProductType.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -42,7 +42,7 @@
 block discarded – undo
42 42
         $builder->add('category_id', 'entity', array(
43 43
             'class' => 'Eccube\Entity\Category',
44 44
             'property' => 'NameWithLevel',
45
-            'query_builder' => function (EntityRepository $er) {
45
+            'query_builder' => function(EntityRepository $er) {
46 46
                 return $er
47 47
                     ->createQueryBuilder('c')
48 48
                     ->orderBy('c.rank', 'DESC');
Please login to merge, or discard this patch.
src/Eccube/Form/Type/ShippingItemType.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -48,7 +48,7 @@  discard block
 block discarded – undo
48 48
         $app = $this->app;
49 49
 
50 50
         $builder
51
-            ->addEventListener(FormEvents::PRE_SET_DATA, function ($event) use ($app) {
51
+            ->addEventListener(FormEvents::PRE_SET_DATA, function($event) use ($app) {
52 52
                 /** @var \Eccube\Entity\Shipping $data */
53 53
                 $data = $event->getData();
54 54
                 /** @var \Symfony\Component\Form\Form $form */
@@ -95,7 +95,7 @@  discard block
 block discarded – undo
95 95
                         'empty_data' => null,
96 96
                     ));
97 97
             })
98
-            ->addEventListener(FormEvents::POST_SET_DATA, function (FormEvent $event) {
98
+            ->addEventListener(FormEvents::POST_SET_DATA, function(FormEvent $event) {
99 99
                 /** @var \Eccube\Entity\Shipping $data */
100 100
                 $data = $event->getData();
101 101
                 /** @var \Symfony\Component\Form\Form $form */
@@ -111,7 +111,7 @@  discard block
 block discarded – undo
111 111
                 }
112 112
 
113 113
             })
114
-            ->addEventListener(FormEvents::POST_SUBMIT, function (FormEvent $event) {
114
+            ->addEventListener(FormEvents::POST_SUBMIT, function(FormEvent $event) {
115 115
                 /** @var \Eccube\Entity\Shipping $data */
116 116
                 $data = $event->getData();
117 117
                 /** @var \Symfony\Component\Form\Form $form */
Please login to merge, or discard this patch.