@@ -112,7 +112,7 @@ |
||
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())) { |
@@ -52,7 +52,7 @@ |
||
52 | 52 | |
53 | 53 | $this->app = $this->getSilexApplication(); |
54 | 54 | |
55 | - \Eccube\Util\Cache::clear($this->app,$input->getOption('all')); |
|
55 | + \Eccube\Util\Cache::clear($this->app, $input->getOption('all')); |
|
56 | 56 | $output->writeln(sprintf("%s <info>success</info>", 'cache:clear')); |
57 | 57 | |
58 | 58 | } |
@@ -111,7 +111,7 @@ |
||
111 | 111 | $webProcessor = new WebProcessor(); |
112 | 112 | $uidProcessor = new UidProcessor(8); |
113 | 113 | |
114 | - $FingerCrossedHandler->pushProcessor(function ($record) use ($app, $uidProcessor, $webProcessor) { |
|
114 | + $FingerCrossedHandler->pushProcessor(function($record) use ($app, $uidProcessor, $webProcessor) { |
|
115 | 115 | // ログフォーマットに出力する値を独自に設定 |
116 | 116 | |
117 | 117 | $record['level_name'] = sprintf("%-5s", $record['level_name']); |
@@ -41,28 +41,28 @@ discard block |
||
41 | 41 | public function register(BaseApplication $app) |
42 | 42 | { |
43 | 43 | // Service |
44 | - $app['eccube.service.system'] = $app->share(function () use ($app) { |
|
44 | + $app['eccube.service.system'] = $app->share(function() use ($app) { |
|
45 | 45 | return new \Eccube\Service\SystemService($app); |
46 | 46 | }); |
47 | - $app['view'] = $app->share(function () use ($app) { |
|
47 | + $app['view'] = $app->share(function() use ($app) { |
|
48 | 48 | return $app['twig']; |
49 | 49 | }); |
50 | - $app['eccube.service.cart'] = $app->share(function () use ($app) { |
|
50 | + $app['eccube.service.cart'] = $app->share(function() use ($app) { |
|
51 | 51 | return new \Eccube\Service\CartService($app); |
52 | 52 | }); |
53 | - $app['eccube.service.order'] = $app->share(function () use ($app) { |
|
53 | + $app['eccube.service.order'] = $app->share(function() use ($app) { |
|
54 | 54 | return new \Eccube\Service\OrderService($app); |
55 | 55 | }); |
56 | - $app['eccube.service.tax_rule'] = $app->share(function () use ($app) { |
|
56 | + $app['eccube.service.tax_rule'] = $app->share(function() use ($app) { |
|
57 | 57 | return new \Eccube\Service\TaxRuleService($app['eccube.repository.tax_rule']); |
58 | 58 | }); |
59 | - $app['eccube.service.plugin'] = $app->share(function () use ($app) { |
|
59 | + $app['eccube.service.plugin'] = $app->share(function() use ($app) { |
|
60 | 60 | return new \Eccube\Service\PluginService($app); |
61 | 61 | }); |
62 | - $app['eccube.service.mail'] = $app->share(function () use ($app) { |
|
62 | + $app['eccube.service.mail'] = $app->share(function() use ($app) { |
|
63 | 63 | return new \Eccube\Service\MailService($app); |
64 | 64 | }); |
65 | - $app['eccube.service.csv.export'] = $app->share(function () use ($app) { |
|
65 | + $app['eccube.service.csv.export'] = $app->share(function() use ($app) { |
|
66 | 66 | $csvService = new \Eccube\Service\CsvExportService(); |
67 | 67 | $csvService->setEntityManager($app['orm.em']); |
68 | 68 | $csvService->setConfig($app['config']); |
@@ -74,184 +74,184 @@ discard block |
||
74 | 74 | |
75 | 75 | return $csvService; |
76 | 76 | }); |
77 | - $app['eccube.service.shopping'] = $app->share(function () use ($app) { |
|
77 | + $app['eccube.service.shopping'] = $app->share(function() use ($app) { |
|
78 | 78 | return new \Eccube\Service\ShoppingService($app, $app['eccube.service.cart'], $app['eccube.service.order']); |
79 | 79 | }); |
80 | 80 | |
81 | 81 | // Repository |
82 | - $app['eccube.repository.master.authority'] = $app->share(function () use ($app) { |
|
82 | + $app['eccube.repository.master.authority'] = $app->share(function() use ($app) { |
|
83 | 83 | return $app['orm.em']->getRepository('Eccube\Entity\Master\Authority'); |
84 | 84 | }); |
85 | - $app['eccube.repository.master.tag'] = $app->share(function () use ($app) { |
|
85 | + $app['eccube.repository.master.tag'] = $app->share(function() use ($app) { |
|
86 | 86 | return $app['orm.em']->getRepository('Eccube\Entity\Master\Tag'); |
87 | 87 | }); |
88 | - $app['eccube.repository.master.pref'] = $app->share(function () use ($app) { |
|
88 | + $app['eccube.repository.master.pref'] = $app->share(function() use ($app) { |
|
89 | 89 | return $app['orm.em']->getRepository('Eccube\Entity\Master\Pref'); |
90 | 90 | }); |
91 | - $app['eccube.repository.master.sex'] = $app->share(function () use ($app) { |
|
91 | + $app['eccube.repository.master.sex'] = $app->share(function() use ($app) { |
|
92 | 92 | return $app['orm.em']->getRepository('Eccube\Entity\Master\Sex'); |
93 | 93 | }); |
94 | - $app['eccube.repository.master.disp'] = $app->share(function () use ($app) { |
|
94 | + $app['eccube.repository.master.disp'] = $app->share(function() use ($app) { |
|
95 | 95 | return $app['orm.em']->getRepository('Eccube\Entity\Master\Disp'); |
96 | 96 | }); |
97 | - $app['eccube.repository.master.product_type'] = $app->share(function () use ($app) { |
|
97 | + $app['eccube.repository.master.product_type'] = $app->share(function() use ($app) { |
|
98 | 98 | return $app['orm.em']->getRepository('Eccube\Entity\Master\ProductType'); |
99 | 99 | }); |
100 | - $app['eccube.repository.master.page_max'] = $app->share(function () use ($app) { |
|
100 | + $app['eccube.repository.master.page_max'] = $app->share(function() use ($app) { |
|
101 | 101 | return $app['orm.em']->getRepository('Eccube\Entity\Master\PageMax'); |
102 | 102 | }); |
103 | - $app['eccube.repository.master.order_status'] = $app->share(function () use ($app) { |
|
103 | + $app['eccube.repository.master.order_status'] = $app->share(function() use ($app) { |
|
104 | 104 | return $app['orm.em']->getRepository('Eccube\Entity\Master\OrderStatus'); |
105 | 105 | }); |
106 | - $app['eccube.repository.master.device_type'] = $app->share(function () use ($app) { |
|
106 | + $app['eccube.repository.master.device_type'] = $app->share(function() use ($app) { |
|
107 | 107 | return $app['orm.em']->getRepository('Eccube\Entity\Master\DeviceType'); |
108 | 108 | }); |
109 | - $app['eccube.repository.master.csv_type'] = $app->share(function () use ($app) { |
|
109 | + $app['eccube.repository.master.csv_type'] = $app->share(function() use ($app) { |
|
110 | 110 | return $app['orm.em']->getRepository('Eccube\Entity\Master\CsvType'); |
111 | 111 | }); |
112 | 112 | |
113 | - $app['eccube.repository.delivery'] = $app->share(function () use ($app) { |
|
113 | + $app['eccube.repository.delivery'] = $app->share(function() use ($app) { |
|
114 | 114 | return $app['orm.em']->getRepository('Eccube\Entity\Delivery'); |
115 | 115 | }); |
116 | - $app['eccube.repository.delivery_date'] = $app->share(function () use ($app) { |
|
116 | + $app['eccube.repository.delivery_date'] = $app->share(function() use ($app) { |
|
117 | 117 | return $app['orm.em']->getRepository('Eccube\Entity\DeliveryDate'); |
118 | 118 | }); |
119 | - $app['eccube.repository.delivery_fee'] = $app->share(function () use ($app) { |
|
119 | + $app['eccube.repository.delivery_fee'] = $app->share(function() use ($app) { |
|
120 | 120 | return $app['orm.em']->getRepository('Eccube\Entity\DeliveryFee'); |
121 | 121 | }); |
122 | - $app['eccube.repository.delivery_time'] = $app->share(function () use ($app) { |
|
122 | + $app['eccube.repository.delivery_time'] = $app->share(function() use ($app) { |
|
123 | 123 | return $app['orm.em']->getRepository('Eccube\Entity\DeliveryTime'); |
124 | 124 | }); |
125 | - $app['eccube.repository.payment'] = $app->share(function () use ($app) { |
|
125 | + $app['eccube.repository.payment'] = $app->share(function() use ($app) { |
|
126 | 126 | return $app['orm.em']->getRepository('Eccube\Entity\Payment'); |
127 | 127 | }); |
128 | - $app['eccube.repository.payment_option'] = $app->share(function () use ($app) { |
|
128 | + $app['eccube.repository.payment_option'] = $app->share(function() use ($app) { |
|
129 | 129 | return $app['orm.em']->getRepository('Eccube\Entity\PaymentOption'); |
130 | 130 | }); |
131 | - $app['eccube.repository.category'] = $app->share(function () use ($app) { |
|
131 | + $app['eccube.repository.category'] = $app->share(function() use ($app) { |
|
132 | 132 | $CategoryRepository = $app['orm.em']->getRepository('Eccube\Entity\Category'); |
133 | 133 | $CategoryRepository->setApplication($app); |
134 | 134 | |
135 | 135 | return $CategoryRepository; |
136 | 136 | }); |
137 | - $app['eccube.repository.customer'] = $app->share(function () use ($app) { |
|
137 | + $app['eccube.repository.customer'] = $app->share(function() use ($app) { |
|
138 | 138 | return $app['orm.em']->getRepository('Eccube\Entity\Customer'); |
139 | 139 | }); |
140 | - $app['eccube.repository.news'] = $app->share(function () use ($app) { |
|
140 | + $app['eccube.repository.news'] = $app->share(function() use ($app) { |
|
141 | 141 | return $app['orm.em']->getRepository('Eccube\Entity\News'); |
142 | 142 | }); |
143 | - $app['eccube.repository.mail_history'] = $app->share(function () use ($app) { |
|
143 | + $app['eccube.repository.mail_history'] = $app->share(function() use ($app) { |
|
144 | 144 | return $app['orm.em']->getRepository('Eccube\Entity\MailHistory'); |
145 | 145 | }); |
146 | - $app['eccube.repository.member'] = $app->share(function () use ($app) { |
|
146 | + $app['eccube.repository.member'] = $app->share(function() use ($app) { |
|
147 | 147 | $memberRepository = $app['orm.em']->getRepository('Eccube\Entity\Member'); |
148 | 148 | $memberRepository->setEncoderFactorty($app['security.encoder_factory']); |
149 | 149 | return $memberRepository; |
150 | 150 | }); |
151 | - $app['eccube.repository.order'] = $app->share(function () use ($app) { |
|
151 | + $app['eccube.repository.order'] = $app->share(function() use ($app) { |
|
152 | 152 | return $app['orm.em']->getRepository('Eccube\Entity\Order'); |
153 | 153 | }); |
154 | - $app['eccube.repository.product'] = $app->share(function () use ($app) { |
|
154 | + $app['eccube.repository.product'] = $app->share(function() use ($app) { |
|
155 | 155 | $productRepository = $app['orm.em']->getRepository('Eccube\Entity\Product'); |
156 | 156 | $productRepository->setApplication($app); |
157 | 157 | |
158 | 158 | return $productRepository; |
159 | 159 | }); |
160 | - $app['eccube.repository.product_image'] = $app->share(function () use ($app) { |
|
160 | + $app['eccube.repository.product_image'] = $app->share(function() use ($app) { |
|
161 | 161 | return $app['orm.em']->getRepository('Eccube\Entity\ProductImage'); |
162 | 162 | }); |
163 | - $app['eccube.repository.product_class'] = $app->share(function () use ($app) { |
|
163 | + $app['eccube.repository.product_class'] = $app->share(function() use ($app) { |
|
164 | 164 | return $app['orm.em']->getRepository('Eccube\Entity\ProductClass'); |
165 | 165 | }); |
166 | - $app['eccube.repository.product_stock'] = $app->share(function () use ($app) { |
|
166 | + $app['eccube.repository.product_stock'] = $app->share(function() use ($app) { |
|
167 | 167 | return $app['orm.em']->getRepository('Eccube\Entity\ProductStock'); |
168 | 168 | }); |
169 | - $app['eccube.repository.product_tag'] = $app->share(function () use ($app) { |
|
169 | + $app['eccube.repository.product_tag'] = $app->share(function() use ($app) { |
|
170 | 170 | return $app['orm.em']->getRepository('Eccube\Entity\ProductTag'); |
171 | 171 | }); |
172 | - $app['eccube.repository.class_name'] = $app->share(function () use ($app) { |
|
172 | + $app['eccube.repository.class_name'] = $app->share(function() use ($app) { |
|
173 | 173 | return $app['orm.em']->getRepository('Eccube\Entity\ClassName'); |
174 | 174 | }); |
175 | - $app['eccube.repository.class_category'] = $app->share(function () use ($app) { |
|
175 | + $app['eccube.repository.class_category'] = $app->share(function() use ($app) { |
|
176 | 176 | return $app['orm.em']->getRepository('Eccube\Entity\ClassCategory'); |
177 | 177 | }); |
178 | - $app['eccube.repository.customer_favorite_product'] = $app->share(function () use ($app) { |
|
178 | + $app['eccube.repository.customer_favorite_product'] = $app->share(function() use ($app) { |
|
179 | 179 | return $app['orm.em']->getRepository('Eccube\Entity\CustomerFavoriteProduct'); |
180 | 180 | }); |
181 | - $app['eccube.repository.base_info'] = $app->share(function () use ($app) { |
|
181 | + $app['eccube.repository.base_info'] = $app->share(function() use ($app) { |
|
182 | 182 | $BaseInfoRepository = $app['orm.em']->getRepository('Eccube\Entity\BaseInfo'); |
183 | 183 | $BaseInfoRepository->setApplication($app); |
184 | 184 | |
185 | 185 | return $BaseInfoRepository; |
186 | 186 | }); |
187 | - $app['eccube.repository.tax_rule'] = $app->share(function () use ($app) { |
|
187 | + $app['eccube.repository.tax_rule'] = $app->share(function() use ($app) { |
|
188 | 188 | $taxRuleRepository = $app['orm.em']->getRepository('Eccube\Entity\TaxRule'); |
189 | 189 | $taxRuleRepository->setApplication($app); |
190 | 190 | |
191 | 191 | return $taxRuleRepository; |
192 | 192 | }); |
193 | - $app['eccube.repository.page_layout'] = $app->share(function () use ($app) { |
|
193 | + $app['eccube.repository.page_layout'] = $app->share(function() use ($app) { |
|
194 | 194 | $pageLayoutRepository = $app['orm.em']->getRepository('Eccube\Entity\PageLayout'); |
195 | 195 | $pageLayoutRepository->setApplication($app); |
196 | 196 | |
197 | 197 | return $pageLayoutRepository; |
198 | 198 | }); |
199 | - $app['eccube.repository.block'] = $app->share(function () use ($app) { |
|
199 | + $app['eccube.repository.block'] = $app->share(function() use ($app) { |
|
200 | 200 | $blockRepository = $app['orm.em']->getRepository('Eccube\Entity\Block'); |
201 | 201 | $blockRepository->setApplication($app); |
202 | 202 | |
203 | 203 | return $blockRepository; |
204 | 204 | }); |
205 | - $app['eccube.repository.order'] = $app->share(function () use ($app) { |
|
205 | + $app['eccube.repository.order'] = $app->share(function() use ($app) { |
|
206 | 206 | $orderRepository = $app['orm.em']->getRepository('Eccube\Entity\Order'); |
207 | 207 | $orderRepository->setApplication($app); |
208 | 208 | |
209 | 209 | return $orderRepository; |
210 | 210 | }); |
211 | - $app['eccube.repository.customer_address'] = $app->share(function () use ($app) { |
|
211 | + $app['eccube.repository.customer_address'] = $app->share(function() use ($app) { |
|
212 | 212 | return $app['orm.em']->getRepository('Eccube\Entity\CustomerAddress'); |
213 | 213 | }); |
214 | - $app['eccube.repository.shipping'] = $app->share(function () use ($app) { |
|
214 | + $app['eccube.repository.shipping'] = $app->share(function() use ($app) { |
|
215 | 215 | return $app['orm.em']->getRepository('Eccube\Entity\Shipping'); |
216 | 216 | }); |
217 | - $app['eccube.repository.customer_status'] = $app->share(function () use ($app) { |
|
217 | + $app['eccube.repository.customer_status'] = $app->share(function() use ($app) { |
|
218 | 218 | return $app['orm.em']->getRepository('Eccube\Entity\Master\CustomerStatus'); |
219 | 219 | }); |
220 | - $app['eccube.repository.order_status'] = $app->share(function () use ($app) { |
|
220 | + $app['eccube.repository.order_status'] = $app->share(function() use ($app) { |
|
221 | 221 | return $app['orm.em']->getRepository('Eccube\Entity\Master\OrderStatus'); |
222 | 222 | }); |
223 | - $app['eccube.repository.mail_template'] = $app->share(function () use ($app) { |
|
223 | + $app['eccube.repository.mail_template'] = $app->share(function() use ($app) { |
|
224 | 224 | return $app['orm.em']->getRepository('Eccube\Entity\MailTemplate'); |
225 | 225 | }); |
226 | - $app['eccube.repository.csv'] = $app->share(function () use ($app) { |
|
226 | + $app['eccube.repository.csv'] = $app->share(function() use ($app) { |
|
227 | 227 | return $app['orm.em']->getRepository('Eccube\Entity\Csv'); |
228 | 228 | }); |
229 | - $app['eccube.repository.template'] = $app->share(function () use ($app) { |
|
229 | + $app['eccube.repository.template'] = $app->share(function() use ($app) { |
|
230 | 230 | return $app['orm.em']->getRepository('Eccube\Entity\Template'); |
231 | 231 | }); |
232 | - $app['eccube.repository.authority_role'] = $app->share(function () use ($app) { |
|
232 | + $app['eccube.repository.authority_role'] = $app->share(function() use ($app) { |
|
233 | 233 | return $app['orm.em']->getRepository('Eccube\Entity\AuthorityRole'); |
234 | 234 | }); |
235 | 235 | |
236 | - $app['paginator'] = $app->protect(function () { |
|
236 | + $app['paginator'] = $app->protect(function() { |
|
237 | 237 | $paginator = new \Knp\Component\Pager\Paginator(); |
238 | 238 | $paginator->subscribe(new \Eccube\EventListener\PaginatorListener()); |
239 | 239 | |
240 | 240 | return $paginator; |
241 | 241 | }); |
242 | 242 | |
243 | - $app['eccube.repository.help'] = $app->share(function () use ($app) { |
|
243 | + $app['eccube.repository.help'] = $app->share(function() use ($app) { |
|
244 | 244 | return $app['orm.em']->getRepository('Eccube\Entity\Help'); |
245 | 245 | }); |
246 | - $app['eccube.repository.plugin'] = $app->share(function () use ($app) { |
|
246 | + $app['eccube.repository.plugin'] = $app->share(function() use ($app) { |
|
247 | 247 | return $app['orm.em']->getRepository('Eccube\Entity\Plugin'); |
248 | 248 | }); |
249 | - $app['eccube.repository.plugin_event_handler'] = $app->share(function () use ($app) { |
|
249 | + $app['eccube.repository.plugin_event_handler'] = $app->share(function() use ($app) { |
|
250 | 250 | return $app['orm.em']->getRepository('Eccube\Entity\PluginEventHandler'); |
251 | 251 | }); |
252 | 252 | // em |
253 | 253 | if (isset($app['orm.em'])) { |
254 | - $app['orm.em'] = $app->share($app->extend('orm.em', function (\Doctrine\ORM\EntityManager $em, \Silex\Application $app) { |
|
254 | + $app['orm.em'] = $app->share($app->extend('orm.em', function(\Doctrine\ORM\EntityManager $em, \Silex\Application $app) { |
|
255 | 255 | // tax_rule |
256 | 256 | $taxRuleRepository = $em->getRepository('Eccube\Entity\TaxRule'); |
257 | 257 | $taxRuleRepository->setApplication($app); |
@@ -278,13 +278,13 @@ discard block |
||
278 | 278 | } |
279 | 279 | |
280 | 280 | // Form\Type |
281 | - $app['form.type.extensions'] = $app->share($app->extend('form.type.extensions', function ($extensions) use ($app) { |
|
281 | + $app['form.type.extensions'] = $app->share($app->extend('form.type.extensions', function($extensions) use ($app) { |
|
282 | 282 | $extensions[] = new \Eccube\Form\Extension\HelpTypeExtension(); |
283 | 283 | $extensions[] = new \Eccube\Form\Extension\FreezeTypeExtension(); |
284 | 284 | |
285 | 285 | return $extensions; |
286 | 286 | })); |
287 | - $app['form.types'] = $app->share($app->extend('form.types', function ($types) use ($app) { |
|
287 | + $app['form.types'] = $app->share($app->extend('form.types', function($types) use ($app) { |
|
288 | 288 | $types[] = new \Eccube\Form\Type\NameType($app['config']); |
289 | 289 | $types[] = new \Eccube\Form\Type\KanaType($app['config']); |
290 | 290 | $types[] = new \Eccube\Form\Type\TelType($app['config']); |
@@ -235,7 +235,7 @@ discard block |
||
235 | 235 | $em->getConfiguration()->setSQLLogger(null); |
236 | 236 | |
237 | 237 | $response = new StreamedResponse(); |
238 | - $response->setCallback(function () use ($app, $request) { |
|
238 | + $response->setCallback(function() use ($app, $request) { |
|
239 | 239 | |
240 | 240 | // CSV種別を元に初期化. |
241 | 241 | $app['eccube.service.csv.export']->initCsvType(CsvType::CSV_TYPE_CUSTOMER); |
@@ -249,7 +249,7 @@ discard block |
||
249 | 249 | |
250 | 250 | // データ行の出力. |
251 | 251 | $app['eccube.service.csv.export']->setExportQueryBuilder($qb); |
252 | - $app['eccube.service.csv.export']->exportData(function ($entity, $csvService) { |
|
252 | + $app['eccube.service.csv.export']->exportData(function($entity, $csvService) { |
|
253 | 253 | |
254 | 254 | $Csvs = $csvService->getCsvs(); |
255 | 255 | |
@@ -271,9 +271,9 @@ discard block |
||
271 | 271 | }); |
272 | 272 | |
273 | 273 | $now = new \DateTime(); |
274 | - $filename = 'customer_' . $now->format('YmdHis') . '.csv'; |
|
274 | + $filename = 'customer_'.$now->format('YmdHis').'.csv'; |
|
275 | 275 | $response->headers->set('Content-Type', 'application/octet-stream'); |
276 | - $response->headers->set('Content-Disposition', 'attachment; filename=' . $filename); |
|
276 | + $response->headers->set('Content-Disposition', 'attachment; filename='.$filename); |
|
277 | 277 | |
278 | 278 | $response->send(); |
279 | 279 |
@@ -247,7 +247,7 @@ discard block |
||
247 | 247 | $em->getConfiguration()->setSQLLogger(null); |
248 | 248 | |
249 | 249 | $response = new StreamedResponse(); |
250 | - $response->setCallback(function () use ($app, $request) { |
|
250 | + $response->setCallback(function() use ($app, $request) { |
|
251 | 251 | |
252 | 252 | // CSV種別を元に初期化. |
253 | 253 | $app['eccube.service.csv.export']->initCsvType(CsvType::CSV_TYPE_ORDER); |
@@ -261,7 +261,7 @@ discard block |
||
261 | 261 | |
262 | 262 | // データ行の出力. |
263 | 263 | $app['eccube.service.csv.export']->setExportQueryBuilder($qb); |
264 | - $app['eccube.service.csv.export']->exportData(function ($entity, $csvService) { |
|
264 | + $app['eccube.service.csv.export']->exportData(function($entity, $csvService) { |
|
265 | 265 | |
266 | 266 | $Csvs = $csvService->getCsvs(); |
267 | 267 | |
@@ -291,9 +291,9 @@ discard block |
||
291 | 291 | }); |
292 | 292 | |
293 | 293 | $now = new \DateTime(); |
294 | - $filename = 'order_' . $now->format('YmdHis') . '.csv'; |
|
294 | + $filename = 'order_'.$now->format('YmdHis').'.csv'; |
|
295 | 295 | $response->headers->set('Content-Type', 'application/octet-stream'); |
296 | - $response->headers->set('Content-Disposition', 'attachment; filename=' . $filename); |
|
296 | + $response->headers->set('Content-Disposition', 'attachment; filename='.$filename); |
|
297 | 297 | $response->send(); |
298 | 298 | |
299 | 299 | log_info('受注CSV出力ファイル名', array($filename)); |
@@ -318,7 +318,7 @@ discard block |
||
318 | 318 | $em->getConfiguration()->setSQLLogger(null); |
319 | 319 | |
320 | 320 | $response = new StreamedResponse(); |
321 | - $response->setCallback(function () use ($app, $request) { |
|
321 | + $response->setCallback(function() use ($app, $request) { |
|
322 | 322 | |
323 | 323 | // CSV種別を元に初期化. |
324 | 324 | $app['eccube.service.csv.export']->initCsvType(CsvType::CSV_TYPE_SHIPPING); |
@@ -332,7 +332,7 @@ discard block |
||
332 | 332 | |
333 | 333 | // データ行の出力. |
334 | 334 | $app['eccube.service.csv.export']->setExportQueryBuilder($qb); |
335 | - $app['eccube.service.csv.export']->exportData(function ($entity, $csvService) { |
|
335 | + $app['eccube.service.csv.export']->exportData(function($entity, $csvService) { |
|
336 | 336 | |
337 | 337 | $Csvs = $csvService->getCsvs(); |
338 | 338 | |
@@ -370,9 +370,9 @@ discard block |
||
370 | 370 | }); |
371 | 371 | |
372 | 372 | $now = new \DateTime(); |
373 | - $filename = 'shipping_' . $now->format('YmdHis') . '.csv'; |
|
373 | + $filename = 'shipping_'.$now->format('YmdHis').'.csv'; |
|
374 | 374 | $response->headers->set('Content-Type', 'application/octet-stream'); |
375 | - $response->headers->set('Content-Disposition', 'attachment; filename=' . $filename); |
|
375 | + $response->headers->set('Content-Disposition', 'attachment; filename='.$filename); |
|
376 | 376 | $response->send(); |
377 | 377 | |
378 | 378 | log_info('配送CSV出力ファイル名', array($filename)); |
@@ -83,7 +83,7 @@ |
||
83 | 83 | return $log; |
84 | 84 | } |
85 | 85 | |
86 | - foreach (array_reverse(file($logFile, FILE_IGNORE_NEW_LINES | FILE_SKIP_EMPTY_LINES)) as $line) { |
|
86 | + foreach (array_reverse(file($logFile, FILE_IGNORE_NEW_LINES|FILE_SKIP_EMPTY_LINES)) as $line) { |
|
87 | 87 | // 上限に達した場合、処理を抜ける |
88 | 88 | if (count($log) >= $formData['line_max']) { |
89 | 89 | break; |
@@ -93,10 +93,10 @@ discard block |
||
93 | 93 | // ファイルアップロード |
94 | 94 | $file = $form['payment_image']->getData(); |
95 | 95 | $fs = new Filesystem(); |
96 | - if ($file && $fs->exists($app['config']['image_temp_realdir'] . '/' . $file)) { |
|
96 | + if ($file && $fs->exists($app['config']['image_temp_realdir'].'/'.$file)) { |
|
97 | 97 | $fs->rename( |
98 | - $app['config']['image_temp_realdir'] . '/' . $file, |
|
99 | - $app['config']['image_save_realdir'] . '/' . $file |
|
98 | + $app['config']['image_temp_realdir'].'/'.$file, |
|
99 | + $app['config']['image_save_realdir'].'/'.$file |
|
100 | 100 | ); |
101 | 101 | } |
102 | 102 | |
@@ -144,7 +144,7 @@ discard block |
||
144 | 144 | } |
145 | 145 | |
146 | 146 | $extension = $image->guessExtension(); |
147 | - $filename = date('mdHis') . uniqid('_') . '.' . $extension; |
|
147 | + $filename = date('mdHis').uniqid('_').'.'.$extension; |
|
148 | 148 | $image->move($app['config']['image_temp_realdir'], $filename); |
149 | 149 | } |
150 | 150 | $event = new EventArgs( |
@@ -180,7 +180,7 @@ discard block |
||
180 | 180 | foreach ($Payments as $Payment) { |
181 | 181 | if ($Payment->getId() != $id) { |
182 | 182 | $Payment->setRank($rank); |
183 | - $rank ++; |
|
183 | + $rank++; |
|
184 | 184 | } |
185 | 185 | } |
186 | 186 | |
@@ -194,7 +194,7 @@ discard block |
||
194 | 194 | ); |
195 | 195 | $app['eccube.event.dispatcher']->dispatch(EccubeEvents::ADMIN_SETTING_SHOP_PAYMENT_DELETE_COMPLETE, $event); |
196 | 196 | |
197 | - $app->addSuccess('admin.delete.complete', 'admin') ; |
|
197 | + $app->addSuccess('admin.delete.complete', 'admin'); |
|
198 | 198 | |
199 | 199 | return $app->redirect($app->url('admin_setting_shop_payment')); |
200 | 200 | } |
@@ -205,7 +205,7 @@ discard block |
||
205 | 205 | $em->getConfiguration()->setSQLLogger(null); |
206 | 206 | |
207 | 207 | $response = new StreamedResponse(); |
208 | - $response->setCallback(function () use ($app, $request) { |
|
208 | + $response->setCallback(function() use ($app, $request) { |
|
209 | 209 | |
210 | 210 | // CSV種別を元に初期化. |
211 | 211 | $app['eccube.service.csv.export']->initCsvType(CsvType::CSV_TYPE_CATEGORY); |
@@ -219,7 +219,7 @@ discard block |
||
219 | 219 | |
220 | 220 | // データ行の出力. |
221 | 221 | $app['eccube.service.csv.export']->setExportQueryBuilder($qb); |
222 | - $app['eccube.service.csv.export']->exportData(function ($entity, $csvService) { |
|
222 | + $app['eccube.service.csv.export']->exportData(function($entity, $csvService) { |
|
223 | 223 | |
224 | 224 | $Csvs = $csvService->getCsvs(); |
225 | 225 | |
@@ -239,9 +239,9 @@ discard block |
||
239 | 239 | }); |
240 | 240 | |
241 | 241 | $now = new \DateTime(); |
242 | - $filename = 'category_' . $now->format('YmdHis') . '.csv'; |
|
242 | + $filename = 'category_'.$now->format('YmdHis').'.csv'; |
|
243 | 243 | $response->headers->set('Content-Type', 'application/octet-stream'); |
244 | - $response->headers->set('Content-Disposition', 'attachment; filename=' . $filename); |
|
244 | + $response->headers->set('Content-Disposition', 'attachment; filename='.$filename); |
|
245 | 245 | $response->send(); |
246 | 246 | |
247 | 247 | log_info('カテゴリCSV出力ファイル名', array($filename)); |