Completed
Push — master ( c53dd7...979eb7 )
by chihiro
31:42
created
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/ShippingMultipleItemType.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -63,7 +63,7 @@  discard block
 block discarded – undo
63 63
                     new Assert\Regex(array('pattern' => '/^\d+$/')),
64 64
                 ),
65 65
             ))
66
-            ->addEventListener(FormEvents::PRE_SET_DATA, function (FormEvent $event) use ($app) {
66
+            ->addEventListener(FormEvents::PRE_SET_DATA, function(FormEvent $event) use ($app) {
67 67
                 $form = $event->getForm();
68 68
 
69 69
                 if ($app->isGranted('IS_AUTHENTICATED_FULLY')) {
@@ -72,7 +72,7 @@  discard block
 block discarded – undo
72 72
                     $form->add('customer_address', 'entity', array(
73 73
                         'class' => 'Eccube\Entity\CustomerAddress',
74 74
                         'property' => 'shippingMultipleDefaultName',
75
-                        'query_builder' => function (EntityRepository $er) use ($Customer) {
75
+                        'query_builder' => function(EntityRepository $er) use ($Customer) {
76 76
                             return $er->createQueryBuilder('ca')
77 77
                                 ->where('ca.Customer = :Customer')
78 78
                                 ->orderBy("ca.id", "ASC")
@@ -104,7 +104,7 @@  discard block
 block discarded – undo
104 104
                     }
105 105
                 }
106 106
             })
107
-            ->addEventListener(FormEvents::POST_SET_DATA, function (FormEvent $event) {
107
+            ->addEventListener(FormEvents::POST_SET_DATA, function(FormEvent $event) {
108 108
                 /** @var \Eccube\Entity\Shipping $data */
109 109
                 $data = $event->getData();
110 110
                 /** @var \Symfony\Component\Form\Form $form */
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 */
@@ -102,7 +102,7 @@  discard block
 block discarded – undo
102 102
                         'empty_data' => null,
103 103
                     ));
104 104
             })
105
-            ->addEventListener(FormEvents::POST_SET_DATA, function (FormEvent $event) {
105
+            ->addEventListener(FormEvents::POST_SET_DATA, function(FormEvent $event) {
106 106
                 /** @var \Eccube\Entity\Shipping $data */
107 107
                 $data = $event->getData();
108 108
                 /** @var \Symfony\Component\Form\Form $form */
@@ -118,7 +118,7 @@  discard block
 block discarded – undo
118 118
                 }
119 119
 
120 120
             })
121
-            ->addEventListener(FormEvents::POST_SUBMIT, function (FormEvent $event) {
121
+            ->addEventListener(FormEvents::POST_SUBMIT, function(FormEvent $event) {
122 122
                 /** @var \Eccube\Entity\Shipping $data */
123 123
                 $data = $event->getData();
124 124
                 /** @var \Symfony\Component\Form\Form $form */
Please login to merge, or discard this patch.
src/Eccube/Form/Type/Install/Step4Type.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -96,7 +96,7 @@  discard block
 block discarded – undo
96 96
                     new Assert\Callback(array($this, 'validate')),
97 97
                 ),
98 98
             ))
99
-            ->addEventListener(FormEvents::POST_SUBMIT, function ($event) {
99
+            ->addEventListener(FormEvents::POST_SUBMIT, function($event) {
100 100
                 $form = $event->getForm();
101 101
                 $data = $form->getData();
102 102
                 try {
@@ -121,7 +121,7 @@  discard block
 block discarded – undo
121 121
                     $conn = \Doctrine\DBAL\DriverManager::getConnection($connectionParams, $config);
122 122
                     $conn->connect();
123 123
                 } catch (\Exception $e) {
124
-                    $form['database']->addError(new FormError('データベースに接続できませんでした。' . $e->getMessage()));
124
+                    $form['database']->addError(new FormError('データベースに接続できませんでした。'.$e->getMessage()));
125 125
                 }
126 126
             });
127 127
     }
@@ -137,7 +137,7 @@  discard block
 block discarded – undo
137 137
     public function validate($data, ExecutionContext $context, $param = null)
138 138
     {
139 139
         $parameters = $this->app['request']->get('install_step4');
140
-        if ($parameters['database'] != 'pdo_sqlite'){
140
+        if ($parameters['database'] != 'pdo_sqlite') {
141 141
             $context->validateValue($data, array(
142 142
                 new Assert\NotBlank()
143 143
             ));
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
@@ -141,19 +141,19 @@
 block discarded – undo
141 141
                 'help' => 'メーラーバックエンドがSMTPかつSMTP-AUTH使用時のみ指定',
142 142
                 'required' => false,
143 143
             ))
144
-            ->addEventListener(FormEvents::POST_SUBMIT, function ($event) use($app)  {
144
+            ->addEventListener(FormEvents::POST_SUBMIT, function($event) use($app)  {
145 145
                 $form = $event->getForm();
146 146
                 $data = $form->getData();
147 147
 
148 148
                 $ips = preg_split("/\R/", $data['admin_allow_hosts'], null, PREG_SPLIT_NO_EMPTY);
149 149
 
150
-                foreach($ips as $ip) {
150
+                foreach ($ips as $ip) {
151 151
                     $errors = $app['validator']->validateValue($ip, array(
152 152
                             new Assert\Ip(),
153 153
                         )
154 154
                     );
155 155
                     if ($errors->count() != 0) {
156
-                        $form['admin_allow_hosts']->addError(new FormError($ip . 'はIPv4アドレスではありません。'));
156
+                        $form['admin_allow_hosts']->addError(new FormError($ip.'はIPv4アドレスではありません。'));
157 157
                     }
158 158
                 }
159 159
             })
Please login to merge, or discard this patch.
src/Eccube/Form/Type/MasterType.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -41,7 +41,7 @@
 block discarded – undo
41 41
             'expanded' => false,
42 42
             'required' => false,
43 43
             'empty_value' => false,
44
-            'query_builder' => function (EntityRepository $er) {
44
+            'query_builder' => function(EntityRepository $er) {
45 45
                 return $er->createQueryBuilder('m')
46 46
                     ->orderBy('m.rank', 'ASC');
47 47
             },
Please login to merge, or discard this patch.
src/Eccube/Form/Type/AddCartType.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -112,7 +112,7 @@
 block discarded – undo
112 112
                 }
113 113
             }
114 114
 
115
-            $builder->addEventListener(FormEvents::PRE_SUBMIT, function (FormEvent $event) use ($Product) {
115
+            $builder->addEventListener(FormEvents::PRE_SUBMIT, function(FormEvent $event) use ($Product) {
116 116
                 $data = $event->getData();
117 117
                 $form = $event->getForm();
118 118
                 if (!is_null($Product->getClassName2())) {
Please login to merge, or discard this patch.
src/Eccube/Form/Type/Master/PageMaxType.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -37,14 +37,14 @@
 block discarded – undo
37 37
      */
38 38
     public function buildForm(FormBuilderInterface $builder, array $options)
39 39
     {
40
-        $builder->addEventListener(FormEvents::PRE_SET_DATA, function (FormEvent $event) {
40
+        $builder->addEventListener(FormEvents::PRE_SET_DATA, function(FormEvent $event) {
41 41
             $options = $event->getForm()->getConfig()->getOptions();
42 42
             if (!$event->getData()) {
43 43
                 $data = current(array_keys($options['choice_list']->getValues()));
44 44
                 $event->setData($data);
45 45
             }
46 46
         });
47
-        $builder->addEventListener(FormEvents::PRE_SUBMIT, function (FormEvent $event) {
47
+        $builder->addEventListener(FormEvents::PRE_SUBMIT, function(FormEvent $event) {
48 48
             $options = $event->getForm()->getConfig()->getOptions();
49 49
             $values = $options['choice_list']->getValues();
50 50
             if (!in_array($event->getData(), $values)) {
Please login to merge, or discard this patch.
src/Eccube/Form/Type/Master/ProductListMaxType.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -37,14 +37,14 @@
 block discarded – undo
37 37
      */
38 38
     public function buildForm(FormBuilderInterface $builder, array $options)
39 39
     {
40
-        $builder->addEventListener(FormEvents::PRE_SET_DATA, function (FormEvent $event) {
40
+        $builder->addEventListener(FormEvents::PRE_SET_DATA, function(FormEvent $event) {
41 41
             $options = $event->getForm()->getConfig()->getOptions();
42 42
             if (!$event->getData()) {
43 43
                 $data = current(array_keys($options['choice_list']->getValues()));
44 44
                 $event->setData($data);
45 45
             }
46 46
         });
47
-        $builder->addEventListener(FormEvents::PRE_SUBMIT, function (FormEvent $event) {
47
+        $builder->addEventListener(FormEvents::PRE_SUBMIT, function(FormEvent $event) {
48 48
             $options = $event->getForm()->getConfig()->getOptions();
49 49
             $values = $options['choice_list']->getValues();
50 50
             if (!in_array($event->getData(), $values)) {
Please login to merge, or discard this patch.