Completed
Push — master ( 070d90...073cbe )
by Yangsin
389:05 queued 383:38
created
src/Eccube/Controller/Admin/Customer/CustomerEditController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -88,7 +88,7 @@
 block discarded – undo
88 88
                         ->setCompanyName($Customer->getCompanyName())
89 89
                         ->setZip01($Customer->getZip01())
90 90
                         ->setZip02($Customer->getZip02())
91
-                        ->setZipcode($Customer->getZip01() . $Customer->getZip02())
91
+                        ->setZipcode($Customer->getZip01().$Customer->getZip02())
92 92
                         ->setPref($Customer->getPref())
93 93
                         ->setAddr01($Customer->getAddr01())
94 94
                         ->setAddr02($Customer->getAddr02())
Please login to merge, or discard this patch.
src/Eccube/Controller/Admin/Content/BlockController.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -113,13 +113,13 @@  discard block
 block discarded – undo
113 113
                 // ファイル生成・更新
114 114
                 $tplDir = $app['config']['block_realdir'];
115 115
 
116
-                $filePath = $tplDir . '/' . $Block->getFileName() . '.twig';
116
+                $filePath = $tplDir.'/'.$Block->getFileName().'.twig';
117 117
 
118 118
                 $fs = new Filesystem();
119 119
                 $fs->dumpFile($filePath, $form->get('block_html')->getData());
120 120
                 // 更新でファイル名を変更した場合、以前のファイルを削除
121 121
                 if ($Block->getFileName() != $previous_filename && !is_null($previous_filename)) {
122
-                    $oldFilePath = $tplDir . '/' . $previous_filename . '.twig';
122
+                    $oldFilePath = $tplDir.'/'.$previous_filename.'.twig';
123 123
                     if ($fs->exists($oldFilePath)) {
124 124
                         $fs->remove($oldFilePath);
125 125
                     }
@@ -171,7 +171,7 @@  discard block
 block discarded – undo
171 171
         // テンプレートが変更されていた場合、DBからはブロック削除されるがtwigファイルは残る
172 172
         if ($Block->getDeletableFlg() > 0) {
173 173
             $tplDir = $app['config']['block_realdir'];
174
-            $file = $tplDir . '/' . $Block->getFileName() . '.twig';
174
+            $file = $tplDir.'/'.$Block->getFileName().'.twig';
175 175
             $fs = new Filesystem();
176 176
             if ($fs->exists($file)) {
177 177
                 $fs->remove($file);
Please login to merge, or discard this patch.
src/Eccube/Controller/Admin/Setting/System/SecurityController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -102,7 +102,7 @@
 block discarded – undo
102 102
             if (count($allowHost) > 0) {
103 103
                 $form->get('admin_allow_host')->setData(Str::convertLineFeed(implode("\n", $allowHost)));
104 104
             }
105
-            $form->get('force_ssl')->setData((bool)$app['config']['force_ssl']);
105
+            $form->get('force_ssl')->setData((bool) $app['config']['force_ssl']);
106 106
         }
107 107
 
108 108
         return $app->render('Setting/System/security.twig', array(
Please login to merge, or discard this patch.
src/Eccube/Controller/Admin/Product/CsvImportController.php 1 patch
Spacing   +75 added lines, -75 removed lines patch added patch discarded remove patch
@@ -106,7 +106,7 @@  discard block
 block discarded – undo
106 106
                     foreach ($data as $row) {
107 107
 
108 108
                         if ($headerSize != count($row)) {
109
-                            $this->addErrors(($data->key() + 1) . '行目のCSVフォーマットが一致しません。');
109
+                            $this->addErrors(($data->key() + 1).'行目のCSVフォーマットが一致しません。');
110 110
                             return $this->render($app, $form, $headers, $this->productTwig);
111 111
                         }
112 112
 
@@ -117,33 +117,33 @@  discard block
 block discarded – undo
117 117
                             if (is_numeric($row['商品ID'])) {
118 118
                                 $Product = $app['eccube.repository.product']->find($row['商品ID']);
119 119
                                 if (!$Product) {
120
-                                    $this->addErrors(($data->key() + 1) . '行目の商品IDが存在しません。');
120
+                                    $this->addErrors(($data->key() + 1).'行目の商品IDが存在しません。');
121 121
                                     return $this->render($app, $form, $headers, $this->productTwig);
122 122
                                 }
123 123
                             } else {
124
-                                $this->addErrors(($data->key() + 1) . '行目の商品IDが存在しません。');
124
+                                $this->addErrors(($data->key() + 1).'行目の商品IDが存在しません。');
125 125
                                 return $this->render($app, $form, $headers, $this->productTwig);
126 126
                             }
127 127
 
128 128
                         }
129 129
 
130 130
                         if ($row['公開ステータス(ID)'] == '') {
131
-                            $this->addErrors(($data->key() + 1) . '行目の公開ステータス(ID)が設定されていません。');
131
+                            $this->addErrors(($data->key() + 1).'行目の公開ステータス(ID)が設定されていません。');
132 132
                         } else {
133 133
                             if (is_numeric($row['公開ステータス(ID)'])) {
134 134
                                 $Disp = $app['eccube.repository.master.disp']->find($row['公開ステータス(ID)']);
135 135
                                 if (!$Disp) {
136
-                                    $this->addErrors(($data->key() + 1) . '行目の公開ステータス(ID)が存在しません。');
136
+                                    $this->addErrors(($data->key() + 1).'行目の公開ステータス(ID)が存在しません。');
137 137
                                 } else {
138 138
                                     $Product->setStatus($Disp);
139 139
                                 }
140 140
                             } else {
141
-                                $this->addErrors(($data->key() + 1) . '行目の公開ステータス(ID)が存在しません。');
141
+                                $this->addErrors(($data->key() + 1).'行目の公開ステータス(ID)が存在しません。');
142 142
                             }
143 143
                         }
144 144
 
145 145
                         if (Str::isBlank($row['商品名'])) {
146
-                            $this->addErrors(($data->key() + 1) . '行目の商品名が設定されていません。');
146
+                            $this->addErrors(($data->key() + 1).'行目の商品名が設定されていません。');
147 147
                             return $this->render($app, $form, $headers, $this->productTwig);
148 148
                         } else {
149 149
                             $Product->setName(Str::trimAll($row['商品名']));
@@ -182,10 +182,10 @@  discard block
 block discarded – undo
182 182
                         if ($row['商品削除フラグ'] == '') {
183 183
                             $Product->setDelFlg(Constant::DISABLED);
184 184
                         } else {
185
-                            if ($row['商品削除フラグ'] == (string)Constant::DISABLED || $row['商品削除フラグ'] == (string)Constant::ENABLED) {
185
+                            if ($row['商品削除フラグ'] == (string) Constant::DISABLED || $row['商品削除フラグ'] == (string) Constant::ENABLED) {
186 186
                                 $Product->setDelFlg($row['商品削除フラグ']);
187 187
                             } else {
188
-                                $this->addErrors(($data->key() + 1) . '行目の商品削除フラグが設定されていません。');
188
+                                $this->addErrors(($data->key() + 1).'行目の商品削除フラグが設定されていません。');
189 189
                                 return $this->render($app, $form, $headers, $this->productTwig);
190 190
                             }
191 191
                         }
@@ -212,7 +212,7 @@  discard block
 block discarded – undo
212 212
                                     if (is_numeric($deliveryFee) && $deliveryFee >= 0) {
213 213
                                         $ProductClassOrg->setDeliveryFee($deliveryFee);
214 214
                                     } else {
215
-                                        $this->addErrors(($data->key() + 1) . '行目の送料は0以上の数値を設定してください。');
215
+                                        $this->addErrors(($data->key() + 1).'行目の送料は0以上の数値を設定してください。');
216 216
                                     }
217 217
                                 }
218 218
                             }
@@ -220,7 +220,7 @@  discard block
 block discarded – undo
220 220
                             if ($row['規格分類1(ID)'] != '') {
221 221
 
222 222
                                 if ($row['規格分類1(ID)'] == $row['規格分類2(ID)']) {
223
-                                    $this->addErrors(($data->key() + 1) . '行目の規格分類1(ID)と規格分類2(ID)には同じ値を使用できません。');
223
+                                    $this->addErrors(($data->key() + 1).'行目の規格分類1(ID)と規格分類2(ID)には同じ値を使用できません。');
224 224
                                 } else {
225 225
                                     // 商品規格あり
226 226
                                     // 企画分類あり商品を作成
@@ -235,30 +235,30 @@  discard block
 block discarded – undo
235 235
                                     if (is_numeric($row['規格分類1(ID)'])) {
236 236
                                         $ClassCategory1 = $app['eccube.repository.class_category']->find($row['規格分類1(ID)']);
237 237
                                         if (!$ClassCategory1) {
238
-                                            $this->addErrors(($data->key() + 1) . '行目の規格分類1(ID)が存在しません。');
238
+                                            $this->addErrors(($data->key() + 1).'行目の規格分類1(ID)が存在しません。');
239 239
                                         } else {
240 240
                                             $ProductClass->setClassCategory1($ClassCategory1);
241 241
                                         }
242 242
                                     } else {
243
-                                        $this->addErrors(($data->key() + 1) . '行目の規格分類1(ID)が存在しません。');
243
+                                        $this->addErrors(($data->key() + 1).'行目の規格分類1(ID)が存在しません。');
244 244
                                     }
245 245
 
246 246
                                     if ($row['規格分類2(ID)'] != '') {
247 247
                                         if (is_numeric($row['規格分類2(ID)'])) {
248 248
                                             $ClassCategory2 = $app['eccube.repository.class_category']->find($row['規格分類2(ID)']);
249 249
                                             if (!$ClassCategory2) {
250
-                                                $this->addErrors(($data->key() + 1) . '行目の規格分類2(ID)が存在しません。');
250
+                                                $this->addErrors(($data->key() + 1).'行目の規格分類2(ID)が存在しません。');
251 251
                                             } else {
252 252
                                                 if ($ClassCategory1 &&
253 253
                                                     ($ClassCategory1->getClassName()->getId() == $ClassCategory2->getClassName()->getId())
254 254
                                                 ) {
255
-                                                    $this->addErrors(($data->key() + 1) . '行目の規格分類1(ID)と規格分類2(ID)の規格名が同じです。');
255
+                                                    $this->addErrors(($data->key() + 1).'行目の規格分類1(ID)と規格分類2(ID)の規格名が同じです。');
256 256
                                                 } else {
257 257
                                                     $ProductClass->setClassCategory2($ClassCategory2);
258 258
                                                 }
259 259
                                             }
260 260
                                         } else {
261
-                                            $this->addErrors(($data->key() + 1) . '行目の規格分類2(ID)が存在しません。');
261
+                                            $this->addErrors(($data->key() + 1).'行目の規格分類2(ID)が存在しません。');
262 262
                                         }
263 263
                                     }
264 264
                                     $ProductClass->setProductStock($ProductStock);
@@ -270,7 +270,7 @@  discard block
 block discarded – undo
270 270
 
271 271
                             } else {
272 272
                                 if ($row['規格分類2(ID)'] != '') {
273
-                                    $this->addErrors(($data->key() + 1) . '行目の規格分類1(ID)が存在しません。');
273
+                                    $this->addErrors(($data->key() + 1).'行目の規格分類1(ID)が存在しません。');
274 274
                                 }
275 275
                             }
276 276
 
@@ -298,7 +298,7 @@  discard block
 block discarded – undo
298 298
                                             if (is_numeric($deliveryFee) && $deliveryFee >= 0) {
299 299
                                                 $pc->setDeliveryFee($deliveryFee);
300 300
                                             } else {
301
-                                                $this->addErrors(($data->key() + 1) . '行目の送料は0以上の数値を設定してください。');
301
+                                                $this->addErrors(($data->key() + 1).'行目の送料は0以上の数値を設定してください。');
302 302
                                             }
303 303
                                         }
304 304
                                     }
@@ -320,7 +320,7 @@  discard block
 block discarded – undo
320 320
                                 }
321 321
 
322 322
                                 if ($row['規格分類1(ID)'] == $row['規格分類2(ID)']) {
323
-                                    $this->addErrors(($data->key() + 1) . '行目の規格分類1(ID)と規格分類2(ID)には同じ値を使用できません。');
323
+                                    $this->addErrors(($data->key() + 1).'行目の規格分類1(ID)と規格分類2(ID)には同じ値を使用できません。');
324 324
                                 } else {
325 325
 
326 326
                                     // 必ず規格分類1がセットされている
@@ -329,36 +329,36 @@  discard block
 block discarded – undo
329 329
                                     if (is_numeric($classCategoryId1)) {
330 330
                                         $ClassCategory1 = $app['eccube.repository.class_category']->find($classCategoryId1);
331 331
                                         if (!$ClassCategory1) {
332
-                                            $this->addErrors(($data->key() + 1) . '行目の規格分類1(ID)が存在しません。');
332
+                                            $this->addErrors(($data->key() + 1).'行目の規格分類1(ID)が存在しません。');
333 333
                                         }
334 334
                                     } else {
335
-                                        $this->addErrors(($data->key() + 1) . '行目の規格分類1(ID)が存在しません。');
335
+                                        $this->addErrors(($data->key() + 1).'行目の規格分類1(ID)が存在しません。');
336 336
                                     }
337 337
 
338 338
                                     $ClassCategory2 = null;
339 339
                                     if ($row['規格分類2(ID)'] != '') {
340 340
                                         if ($pc->getClassCategory1() != null && $pc->getClassCategory2() == null) {
341
-                                            $this->addErrors(($data->key() + 1) . '行目の規格分類2(ID)は設定できません。');
341
+                                            $this->addErrors(($data->key() + 1).'行目の規格分類2(ID)は設定できません。');
342 342
                                         } else {
343 343
                                             if (is_numeric($classCategoryId2)) {
344 344
                                                 $ClassCategory2 = $app['eccube.repository.class_category']->find($classCategoryId2);
345 345
                                                 if (!$ClassCategory2) {
346
-                                                    $this->addErrors(($data->key() + 1) . '行目の規格分類2(ID)が存在しません。');
346
+                                                    $this->addErrors(($data->key() + 1).'行目の規格分類2(ID)が存在しません。');
347 347
                                                 } else {
348 348
                                                     if ($ClassCategory1 &&
349 349
                                                         ($ClassCategory1->getClassName()->getId() == $ClassCategory2->getClassName()->getId())
350 350
                                                     ) {
351
-                                                        $this->addErrors(($data->key() + 1) . '行目の規格分類1(ID)と規格分類2(ID)の規格名が同じです。');
351
+                                                        $this->addErrors(($data->key() + 1).'行目の規格分類1(ID)と規格分類2(ID)の規格名が同じです。');
352 352
                                                     }
353 353
                                                 }
354 354
                                             } else {
355
-                                                $this->addErrors(($data->key() + 1) . '行目の規格分類2(ID)が存在しません。');
355
+                                                $this->addErrors(($data->key() + 1).'行目の規格分類2(ID)が存在しません。');
356 356
                                             }
357 357
 
358 358
                                         }
359 359
                                     } else {
360 360
                                         if ($pc->getClassCategory1() != null && $pc->getClassCategory2() != null) {
361
-                                            $this->addErrors(($data->key() + 1) . '行目の規格分類2(ID)に値を設定してください。');
361
+                                            $this->addErrors(($data->key() + 1).'行目の規格分類2(ID)に値を設定してください。');
362 362
                                         }
363 363
                                     }
364 364
                                     $ProductClass = $this->createProductClass($row, $Product, $app, $data, $ClassCategory1, $ClassCategory2);
@@ -369,7 +369,7 @@  discard block
 block discarded – undo
369 369
                                             if (is_numeric($deliveryFee) && $deliveryFee >= 0) {
370 370
                                                 $ProductClass->setDeliveryFee($deliveryFee);
371 371
                                             } else {
372
-                                                $this->addErrors(($data->key() + 1) . '行目の送料は0以上の数値を設定してください。');
372
+                                                $this->addErrors(($data->key() + 1).'行目の送料は0以上の数値を設定してください。');
373 373
                                             }
374 374
                                         }
375 375
                                     }
@@ -452,7 +452,7 @@  discard block
 block discarded – undo
452 452
                     foreach ($data as $row) {
453 453
 
454 454
                         if ($headerSize != count($row)) {
455
-                            $this->addErrors(($data->key() + 1) . '行目のCSVフォーマットが一致しません。');
455
+                            $this->addErrors(($data->key() + 1).'行目のCSVフォーマットが一致しません。');
456 456
                             return $this->render($app, $form, $headers, $this->categoryTwig);
457 457
                         }
458 458
 
@@ -460,23 +460,23 @@  discard block
 block discarded – undo
460 460
                             $Category = new Category();
461 461
                         } else {
462 462
                             if (!is_numeric($row['カテゴリID'])) {
463
-                                $this->addErrors(($data->key() + 1) . '行目のカテゴリIDが存在しません。');
463
+                                $this->addErrors(($data->key() + 1).'行目のカテゴリIDが存在しません。');
464 464
                                 return $this->render($app, $form, $headers, $this->categoryTwig);
465 465
                             }
466 466
                             $Category = $app['eccube.repository.category']->find($row['カテゴリID']);
467 467
                             if (!$Category) {
468
-                                $this->addErrors(($data->key() + 1) . '行目のカテゴリIDが存在しません。');
468
+                                $this->addErrors(($data->key() + 1).'行目のカテゴリIDが存在しません。');
469 469
                                 return $this->render($app, $form, $headers, $this->categoryTwig);
470 470
                             }
471 471
                             if ($row['カテゴリID'] == $row['親カテゴリID']) {
472
-                                $this->addErrors(($data->key() + 1) . '行目のカテゴリIDと親カテゴリIDが同じです。');
472
+                                $this->addErrors(($data->key() + 1).'行目のカテゴリIDと親カテゴリIDが同じです。');
473 473
                                 return $this->render($app, $form, $headers, $this->categoryTwig);
474 474
                             }
475 475
 
476 476
                         }
477 477
 
478 478
                         if (Str::isBlank($row['カテゴリ名'])) {
479
-                            $this->addErrors(($data->key() + 1) . '行目のカテゴリ名が設定されていません。');
479
+                            $this->addErrors(($data->key() + 1).'行目のカテゴリ名が設定されていません。');
480 480
                             return $this->render($app, $form, $headers, $this->categoryTwig);
481 481
                         } else {
482 482
                             $Category->setName(Str::trimAll($row['カテゴリ名']));
@@ -485,13 +485,13 @@  discard block
 block discarded – undo
485 485
                         if ($row['親カテゴリID'] != '') {
486 486
 
487 487
                             if (!is_numeric($row['親カテゴリID'])) {
488
-                                $this->addErrors(($data->key() + 1) . '行目の親カテゴリIDが存在しません。');
488
+                                $this->addErrors(($data->key() + 1).'行目の親カテゴリIDが存在しません。');
489 489
                                 return $this->render($app, $form, $headers, $this->categoryTwig);
490 490
                             }
491 491
 
492 492
                             $ParentCategory = $app['eccube.repository.category']->find($row['親カテゴリID']);
493 493
                             if (!$ParentCategory) {
494
-                                $this->addErrors(($data->key() + 1) . '行目の親カテゴリIDが存在しません。');
494
+                                $this->addErrors(($data->key() + 1).'行目の親カテゴリIDが存在しません。');
495 495
                                 return $this->render($app, $form, $headers, $this->categoryTwig);
496 496
                             }
497 497
 
@@ -507,14 +507,14 @@  discard block
 block discarded – undo
507 507
                         }
508 508
 
509 509
                         if ($app['config']['category_nest_level'] < $Category->getLevel()) {
510
-                            $this->addErrors(($data->key() + 1) . '行目のカテゴリが最大レベルを超えているため設定できません。');
510
+                            $this->addErrors(($data->key() + 1).'行目のカテゴリが最大レベルを超えているため設定できません。');
511 511
                             return $this->render($app, $form, $headers, $this->categoryTwig);
512 512
                         }
513 513
 
514 514
                         $status = $app['eccube.repository.category']->save($Category);
515 515
 
516 516
                         if (!$status) {
517
-                            $this->addErrors(($data->key() + 1) . '行目のカテゴリが設定できません。');
517
+                            $this->addErrors(($data->key() + 1).'行目のカテゴリが設定できません。');
518 518
                         }
519 519
 
520 520
                         if ($this->hasErrors()) {
@@ -557,7 +557,7 @@  discard block
 block discarded – undo
557 557
             throw new NotFoundHttpException();
558 558
         }
559 559
 
560
-        $response->setCallback(function () use ($app, $request, $headers) {
560
+        $response->setCallback(function() use ($app, $request, $headers) {
561 561
 
562 562
             // ヘッダ行の出力
563 563
             $row = array();
@@ -572,7 +572,7 @@  discard block
 block discarded – undo
572 572
         });
573 573
 
574 574
         $response->headers->set('Content-Type', 'application/octet-stream');
575
-        $response->headers->set('Content-Disposition', 'attachment; filename=' . $filename);
575
+        $response->headers->set('Content-Disposition', 'attachment; filename='.$filename);
576 576
         $response->send();
577 577
 
578 578
         return $response;
@@ -595,7 +595,7 @@  discard block
 block discarded – undo
595 595
         if (!empty($this->fileName)) {
596 596
             try {
597 597
                 $fs = new Filesystem();
598
-                $fs->remove($app['config']['csv_temp_realdir'] . '/' . $this->fileName);
598
+                $fs->remove($app['config']['csv_temp_realdir'].'/'.$this->fileName);
599 599
             } catch (\Exception $e) {
600 600
                 // エラーが発生しても無視する
601 601
             }
@@ -618,10 +618,10 @@  discard block
 block discarded – undo
618 618
     protected function getImportData($app, $formFile)
619 619
     {
620 620
         // アップロードされたCSVファイルを一時ディレクトリに保存
621
-        $this->fileName = 'upload_' . Str::random() . '.' . $formFile->getClientOriginalExtension();
621
+        $this->fileName = 'upload_'.Str::random().'.'.$formFile->getClientOriginalExtension();
622 622
         $formFile->move($app['config']['csv_temp_realdir'], $this->fileName);
623 623
 
624
-        $file = file_get_contents($app['config']['csv_temp_realdir'] . '/' . $this->fileName);
624
+        $file = file_get_contents($app['config']['csv_temp_realdir'].'/'.$this->fileName);
625 625
         // アップロードされたファイルがUTF-8以外は文字コード変換を行う
626 626
         $encode = Str::characterEncoding(substr($file, 0, 6));
627 627
         if ($encode != 'UTF-8') {
@@ -763,7 +763,7 @@  discard block
 block discarded – undo
763 763
                 }
764 764
             }
765 765
             if (!$Tag) {
766
-                $this->addErrors(($data->key() + 1) . '行目のタグ(ID)「' . $tag_id . '」が存在しません。');
766
+                $this->addErrors(($data->key() + 1).'行目のタグ(ID)「'.$tag_id.'」が存在しません。');
767 767
             }
768 768
         }
769 769
     }
@@ -781,17 +781,17 @@  discard block
 block discarded – undo
781 781
 
782 782
 
783 783
         if ($row['商品種別(ID)'] == '') {
784
-            $this->addErrors(($data->key() + 1) . '行目の商品種別(ID)が設定されていません。');
784
+            $this->addErrors(($data->key() + 1).'行目の商品種別(ID)が設定されていません。');
785 785
         } else {
786 786
             if (is_numeric($row['商品種別(ID)'])) {
787 787
                 $ProductType = $app['eccube.repository.master.product_type']->find($row['商品種別(ID)']);
788 788
                 if (!$ProductType) {
789
-                    $this->addErrors(($data->key() + 1) . '行目の商品種別(ID)が存在しません。');
789
+                    $this->addErrors(($data->key() + 1).'行目の商品種別(ID)が存在しません。');
790 790
                 } else {
791 791
                     $ProductClass->setProductType($ProductType);
792 792
                 }
793 793
             } else {
794
-                $this->addErrors(($data->key() + 1) . '行目の商品種別(ID)が存在しません。');
794
+                $this->addErrors(($data->key() + 1).'行目の商品種別(ID)が存在しません。');
795 795
             }
796 796
         }
797 797
 
@@ -802,12 +802,12 @@  discard block
 block discarded – undo
802 802
             if (is_numeric($row['発送日目安(ID)'])) {
803 803
                 $DeliveryDate = $app['eccube.repository.delivery_date']->find($row['発送日目安(ID)']);
804 804
                 if (!$DeliveryDate) {
805
-                    $this->addErrors(($data->key() + 1) . '行目の発送日目安(ID)が存在しません。');
805
+                    $this->addErrors(($data->key() + 1).'行目の発送日目安(ID)が存在しません。');
806 806
                 } else {
807 807
                     $ProductClass->setDeliveryDate($DeliveryDate);
808 808
                 }
809 809
             } else {
810
-                $this->addErrors(($data->key() + 1) . '行目の発送日目安(ID)が存在しません。');
810
+                $this->addErrors(($data->key() + 1).'行目の発送日目安(ID)が存在しません。');
811 811
             }
812 812
         }
813 813
 
@@ -818,19 +818,19 @@  discard block
 block discarded – undo
818 818
         }
819 819
 
820 820
         if ($row['在庫数無制限フラグ'] == '') {
821
-            $this->addErrors(($data->key() + 1) . '行目の在庫数無制限フラグが設定されていません。');
821
+            $this->addErrors(($data->key() + 1).'行目の在庫数無制限フラグが設定されていません。');
822 822
         } else {
823 823
             if ($row['在庫数無制限フラグ'] == (string) Constant::DISABLED) {
824 824
                 $ProductClass->setStockUnlimited(Constant::DISABLED);
825 825
                 // 在庫数が設定されていなければエラー
826 826
                 if ($row['在庫数'] == '') {
827
-                    $this->addErrors(($data->key() + 1) . '行目の在庫数が設定されていません。');
827
+                    $this->addErrors(($data->key() + 1).'行目の在庫数が設定されていません。');
828 828
                 } else {
829 829
                     $stock = str_replace(',', '', $row['在庫数']);
830 830
                     if (is_numeric($stock) && $stock >= 0) {
831 831
                         $ProductClass->setStock($stock);
832 832
                     } else {
833
-                        $this->addErrors(($data->key() + 1) . '行目の在庫数は0以上の数値を設定してください。');
833
+                        $this->addErrors(($data->key() + 1).'行目の在庫数は0以上の数値を設定してください。');
834 834
                     }
835 835
                 }
836 836
 
@@ -838,7 +838,7 @@  discard block
 block discarded – undo
838 838
                 $ProductClass->setStockUnlimited(Constant::ENABLED);
839 839
                 $ProductClass->setStock(null);
840 840
             } else {
841
-                $this->addErrors(($data->key() + 1) . '行目の在庫数無制限フラグが設定されていません。');
841
+                $this->addErrors(($data->key() + 1).'行目の在庫数無制限フラグが設定されていません。');
842 842
             }
843 843
         }
844 844
 
@@ -847,7 +847,7 @@  discard block
 block discarded – undo
847 847
             if (is_numeric($saleLimit) && $saleLimit >= 0) {
848 848
                 $ProductClass->setSaleLimit($saleLimit);
849 849
             } else {
850
-                $this->addErrors(($data->key() + 1) . '行目の販売制限数は0以上の数値を設定してください。');
850
+                $this->addErrors(($data->key() + 1).'行目の販売制限数は0以上の数値を設定してください。');
851 851
             }
852 852
         }
853 853
 
@@ -856,18 +856,18 @@  discard block
 block discarded – undo
856 856
             if (is_numeric($price01) && $price01 >= 0) {
857 857
                 $ProductClass->setPrice01($price01);
858 858
             } else {
859
-                $this->addErrors(($data->key() + 1) . '行目の通常価格は0以上の数値を設定してください。');
859
+                $this->addErrors(($data->key() + 1).'行目の通常価格は0以上の数値を設定してください。');
860 860
             }
861 861
         }
862 862
 
863 863
         if ($row['販売価格'] == '') {
864
-            $this->addErrors(($data->key() + 1) . '行目の販売価格が設定されていません。');
864
+            $this->addErrors(($data->key() + 1).'行目の販売価格が設定されていません。');
865 865
         } else {
866 866
             $price02 = str_replace(',', '', $row['販売価格']);
867 867
             if (is_numeric($price02) && $price02 >= 0) {
868 868
                 $ProductClass->setPrice02($price02);
869 869
             } else {
870
-                $this->addErrors(($data->key() + 1) . '行目の販売価格は0以上の数値を設定してください。');
870
+                $this->addErrors(($data->key() + 1).'行目の販売価格は0以上の数値を設定してください。');
871 871
             }
872 872
         }
873 873
 
@@ -876,7 +876,7 @@  discard block
 block discarded – undo
876 876
             if (is_numeric($delivery_fee) && $delivery_fee >= 0) {
877 877
                 $ProductClass->setDeliveryFee($delivery_fee);
878 878
             } else {
879
-                $this->addErrors(($data->key() + 1) . '行目の送料は0以上の数値を設定してください。');
879
+                $this->addErrors(($data->key() + 1).'行目の送料は0以上の数値を設定してください。');
880 880
             }
881 881
         }
882 882
 
@@ -886,7 +886,7 @@  discard block
 block discarded – undo
886 886
             if ($row['商品規格削除フラグ'] == (string) Constant::DISABLED || $row['商品規格削除フラグ'] == (string) Constant::ENABLED) {
887 887
                 $ProductClass->setDelFlg($row['商品規格削除フラグ']);
888 888
             } else {
889
-                $this->addErrors(($data->key() + 1) . '行目の商品規格削除フラグが設定されていません。');
889
+                $this->addErrors(($data->key() + 1).'行目の商品規格削除フラグが設定されていません。');
890 890
             }
891 891
         }
892 892
 
@@ -919,17 +919,17 @@  discard block
 block discarded – undo
919 919
         $ProductClass->setProduct($Product);
920 920
 
921 921
         if ($row['商品種別(ID)'] == '') {
922
-            $this->addErrors(($data->key() + 1) . '行目の商品種別(ID)が設定されていません。');
922
+            $this->addErrors(($data->key() + 1).'行目の商品種別(ID)が設定されていません。');
923 923
         } else {
924 924
             if (is_numeric($row['商品種別(ID)'])) {
925 925
                 $ProductType = $app['eccube.repository.master.product_type']->find($row['商品種別(ID)']);
926 926
                 if (!$ProductType) {
927
-                    $this->addErrors(($data->key() + 1) . '行目の商品種別(ID)が存在しません。');
927
+                    $this->addErrors(($data->key() + 1).'行目の商品種別(ID)が存在しません。');
928 928
                 } else {
929 929
                     $ProductClass->setProductType($ProductType);
930 930
                 }
931 931
             } else {
932
-                $this->addErrors(($data->key() + 1) . '行目の商品種別(ID)が存在しません。');
932
+                $this->addErrors(($data->key() + 1).'行目の商品種別(ID)が存在しません。');
933 933
             }
934 934
         }
935 935
 
@@ -938,12 +938,12 @@  discard block
 block discarded – undo
938 938
             if (is_numeric($row['規格分類1(ID)'])) {
939 939
                 $ClassCategory = $app['eccube.repository.class_category']->find($row['規格分類1(ID)']);
940 940
                 if (!$ClassCategory) {
941
-                    $this->addErrors(($data->key() + 1) . '行目の規格分類1(ID)が存在しません。');
941
+                    $this->addErrors(($data->key() + 1).'行目の規格分類1(ID)が存在しません。');
942 942
                 } else {
943 943
                     $ProductClass->setClassCategory1($ClassCategory);
944 944
                 }
945 945
             } else {
946
-                $this->addErrors(($data->key() + 1) . '行目の規格分類1(ID)が存在しません。');
946
+                $this->addErrors(($data->key() + 1).'行目の規格分類1(ID)が存在しません。');
947 947
             }
948 948
         }
949 949
 
@@ -951,12 +951,12 @@  discard block
 block discarded – undo
951 951
             if (is_numeric($row['規格分類2(ID)'])) {
952 952
                 $ClassCategory = $app['eccube.repository.class_category']->find($row['規格分類2(ID)']);
953 953
                 if (!$ClassCategory) {
954
-                    $this->addErrors(($data->key() + 1) . '行目の規格分類2(ID)が存在しません。');
954
+                    $this->addErrors(($data->key() + 1).'行目の規格分類2(ID)が存在しません。');
955 955
                 } else {
956 956
                     $ProductClass->setClassCategory2($ClassCategory);
957 957
                 }
958 958
             } else {
959
-                $this->addErrors(($data->key() + 1) . '行目の規格分類2(ID)が存在しません。');
959
+                $this->addErrors(($data->key() + 1).'行目の規格分類2(ID)が存在しません。');
960 960
             }
961 961
         }
962 962
 
@@ -964,12 +964,12 @@  discard block
 block discarded – undo
964 964
             if (is_numeric($row['発送日目安(ID)'])) {
965 965
                 $DeliveryDate = $app['eccube.repository.delivery_date']->find($row['発送日目安(ID)']);
966 966
                 if (!$DeliveryDate) {
967
-                    $this->addErrors(($data->key() + 1) . '行目の発送日目安(ID)が存在しません。');
967
+                    $this->addErrors(($data->key() + 1).'行目の発送日目安(ID)が存在しません。');
968 968
                 } else {
969 969
                     $ProductClass->setDeliveryDate($DeliveryDate);
970 970
                 }
971 971
             } else {
972
-                $this->addErrors(($data->key() + 1) . '行目の発送日目安(ID)が存在しません。');
972
+                $this->addErrors(($data->key() + 1).'行目の発送日目安(ID)が存在しません。');
973 973
             }
974 974
         }
975 975
 
@@ -980,19 +980,19 @@  discard block
 block discarded – undo
980 980
         }
981 981
 
982 982
         if ($row['在庫数無制限フラグ'] == '') {
983
-            $this->addErrors(($data->key() + 1) . '行目の在庫数無制限フラグが設定されていません。');
983
+            $this->addErrors(($data->key() + 1).'行目の在庫数無制限フラグが設定されていません。');
984 984
         } else {
985 985
             if ($row['在庫数無制限フラグ'] == (string) Constant::DISABLED) {
986 986
                 $ProductClass->setStockUnlimited(Constant::DISABLED);
987 987
                 // 在庫数が設定されていなければエラー
988 988
                 if ($row['在庫数'] == '') {
989
-                    $this->addErrors(($data->key() + 1) . '行目の在庫数が設定されていません。');
989
+                    $this->addErrors(($data->key() + 1).'行目の在庫数が設定されていません。');
990 990
                 } else {
991 991
                     $stock = str_replace(',', '', $row['在庫数']);
992 992
                     if (is_numeric($stock) && $stock >= 0) {
993 993
                         $ProductClass->setStock($row['在庫数']);
994 994
                     } else {
995
-                        $this->addErrors(($data->key() + 1) . '行目の在庫数は0以上の数値を設定してください。');
995
+                        $this->addErrors(($data->key() + 1).'行目の在庫数は0以上の数値を設定してください。');
996 996
                     }
997 997
                 }
998 998
 
@@ -1000,7 +1000,7 @@  discard block
 block discarded – undo
1000 1000
                 $ProductClass->setStockUnlimited(Constant::ENABLED);
1001 1001
                 $ProductClass->setStock(null);
1002 1002
             } else {
1003
-                $this->addErrors(($data->key() + 1) . '行目の在庫数無制限フラグが設定されていません。');
1003
+                $this->addErrors(($data->key() + 1).'行目の在庫数無制限フラグが設定されていません。');
1004 1004
             }
1005 1005
         }
1006 1006
 
@@ -1009,7 +1009,7 @@  discard block
 block discarded – undo
1009 1009
             if (is_numeric($saleLimit) && $saleLimit >= 0) {
1010 1010
                 $ProductClass->setSaleLimit($saleLimit);
1011 1011
             } else {
1012
-                $this->addErrors(($data->key() + 1) . '行目の販売制限数は0以上の数値を設定してください。');
1012
+                $this->addErrors(($data->key() + 1).'行目の販売制限数は0以上の数値を設定してください。');
1013 1013
             }
1014 1014
         }
1015 1015
 
@@ -1018,18 +1018,18 @@  discard block
 block discarded – undo
1018 1018
             if (is_numeric($price01) && $price01 >= 0) {
1019 1019
                 $ProductClass->setPrice01($price01);
1020 1020
             } else {
1021
-                $this->addErrors(($data->key() + 1) . '行目の通常価格は0以上の数値を設定してください。');
1021
+                $this->addErrors(($data->key() + 1).'行目の通常価格は0以上の数値を設定してください。');
1022 1022
             }
1023 1023
         }
1024 1024
 
1025 1025
         if ($row['販売価格'] == '') {
1026
-            $this->addErrors(($data->key() + 1) . '行目の販売価格が設定されていません。');
1026
+            $this->addErrors(($data->key() + 1).'行目の販売価格が設定されていません。');
1027 1027
         } else {
1028 1028
             $price02 = str_replace(',', '', $row['販売価格']);
1029 1029
             if (is_numeric($price02) && $price02 >= 0) {
1030 1030
                 $ProductClass->setPrice02($price02);
1031 1031
             } else {
1032
-                $this->addErrors(($data->key() + 1) . '行目の販売価格は0以上の数値を設定してください。');
1032
+                $this->addErrors(($data->key() + 1).'行目の販売価格は0以上の数値を設定してください。');
1033 1033
             }
1034 1034
         }
1035 1035
 
@@ -1039,7 +1039,7 @@  discard block
 block discarded – undo
1039 1039
             if ($row['商品規格削除フラグ'] == (string) Constant::DISABLED || $row['商品規格削除フラグ'] == (string) Constant::ENABLED) {
1040 1040
                 $ProductClass->setDelFlg($row['商品規格削除フラグ']);
1041 1041
             } else {
1042
-                $this->addErrors(($data->key() + 1) . '行目の商品規格削除フラグが設定されていません。');
1042
+                $this->addErrors(($data->key() + 1).'行目の商品規格削除フラグが設定されていません。');
1043 1043
             }
1044 1044
         }
1045 1045
 
Please login to merge, or discard this patch.
src/Eccube/Service/ShoppingService.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -920,7 +920,7 @@
 block discarded – undo
920 920
 
921 921
         // 配送日数が設定されている
922 922
         if ($deliveryDateFlag) {
923
-            $period = new \DatePeriod (
923
+            $period = new \DatePeriod(
924 924
                 new \DateTime($minDate.' day'),
925 925
                 new \DateInterval('P1D'),
926 926
                 new \DateTime($minDate + $this->app['config']['deliv_date_end_max'].' day')
Please login to merge, or discard this patch.
src/Eccube/Controller/Admin/Order/MailController.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -336,10 +336,10 @@
 block discarded – undo
336 336
                 }
337 337
             }
338 338
         } else {
339
-            $filter = function ($v) {
339
+            $filter = function($v) {
340 340
                 return preg_match('/^ids\d+$/', $v);
341 341
             };
342
-            $map = function ($v) {
342
+            $map = function($v) {
343 343
                 return preg_replace('/[^\d+]/', '', $v);
344 344
             };
345 345
             $keys = array_keys($request->query->all());
Please login to merge, or discard this patch.
src/Eccube/Resource/doctrine/migration/Version20160413151321.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@
 block discarded – undo
21 21
 
22 22
         // path.ymlの更新
23 23
         $app = Application::getInstance();
24
-        $file = $app['config']['root_dir'] . '/app/config/eccube/path.yml';
24
+        $file = $app['config']['root_dir'].'/app/config/eccube/path.yml';
25 25
         $config = Yaml::parse(file_get_contents($file));
26 26
 
27 27
         if (!array_key_exists('public_path', $config)) {
Please login to merge, or discard this patch.
src/Eccube/ServiceProvider/DebugServiceProvider.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -66,7 +66,7 @@  discard block
 block discarded – undo
66 66
 {
67 67
     public function register(Application $app)
68 68
     {
69
-        $app['var_dumper.cloner'] = $app->share(function ($app) {
69
+        $app['var_dumper.cloner'] = $app->share(function($app) {
70 70
             $cloner = new VarCloner();
71 71
 
72 72
             if (isset($app['debug.max_items'])) {
@@ -80,23 +80,23 @@  discard block
 block discarded – undo
80 80
             return $cloner;
81 81
         });
82 82
 
83
-        $app['data_collector.templates'] = $app->share($app->extend('data_collector.templates', function ($templates) {
83
+        $app['data_collector.templates'] = $app->share($app->extend('data_collector.templates', function($templates) {
84 84
             return array_merge($templates, array(array('dump', '@Debug/Profiler/dump.html.twig')));
85 85
         }));
86 86
 
87
-        $app['data_collector.dump'] = $app->share(function ($app) {
87
+        $app['data_collector.dump'] = $app->share(function($app) {
88 88
             return new DumpDataCollector($app['stopwatch'], $app['code.file_link_format']);
89 89
         });
90 90
 
91
-        $app['data_collectors'] = $app->share($app->extend('data_collectors', function ($collectors, $app) {
92
-            $collectors['dump'] = $app->share(function ($app) {
91
+        $app['data_collectors'] = $app->share($app->extend('data_collectors', function($collectors, $app) {
92
+            $collectors['dump'] = $app->share(function($app) {
93 93
                 return $app['data_collector.dump'];
94 94
             });
95 95
 
96 96
             return $collectors;
97 97
         }));
98 98
 
99
-        $app['twig'] = $app->share($app->extend('twig', function ($twig, $app) {
99
+        $app['twig'] = $app->share($app->extend('twig', function($twig, $app) {
100 100
             if (class_exists('\Symfony\Bridge\Twig\Extension\DumpExtension')) {
101 101
                 $twig->addExtension(new DumpExtension($app['var_dumper.cloner']));
102 102
             }
@@ -104,13 +104,13 @@  discard block
 block discarded – undo
104 104
             return $twig;
105 105
         }));
106 106
 
107
-        $app['twig.loader.filesystem'] = $app->share($app->extend('twig.loader.filesystem', function ($loader, $app) {
107
+        $app['twig.loader.filesystem'] = $app->share($app->extend('twig.loader.filesystem', function($loader, $app) {
108 108
             $loader->addPath($app['debug.templates_path'], 'Debug');
109 109
 
110 110
             return $loader;
111 111
         }));
112 112
 
113
-        $app['debug.templates_path'] = function () {
113
+        $app['debug.templates_path'] = function() {
114 114
             $r = new \ReflectionClass('Symfony\Bundle\DebugBundle\DependencyInjection\Configuration');
115 115
 
116 116
             return dirname(dirname($r->getFileName())).'/Resources/views';
@@ -122,7 +122,7 @@  discard block
 block discarded – undo
122 122
         // This code is here to lazy load the dump stack. This default
123 123
         // configuration for CLI mode is overridden in HTTP mode on
124 124
         // 'kernel.request' event
125
-        VarDumper::setHandler(function ($var) use ($app) {
125
+        VarDumper::setHandler(function($var) use ($app) {
126 126
             $dumper = new CliDumper();
127 127
             $dumper->dump($app['var_dumper.cloner']->cloneVar($var));
128 128
         });
Please login to merge, or discard this patch.
src/Eccube/Application.php 1 patch
Spacing   +28 added lines, -28 removed lines patch added patch discarded remove patch
@@ -133,7 +133,7 @@  discard block
 block discarded – undo
133 133
         $this->register(new \Eccube\ServiceProvider\ValidatorServiceProvider());
134 134
 
135 135
         $app = $this;
136
-        $this->error(function (\Exception $e, $code) use ($app) {
136
+        $this->error(function(\Exception $e, $code) use ($app) {
137 137
             if ($app['debug']) {
138 138
                 return;
139 139
             }
@@ -197,7 +197,7 @@  discard block
 block discarded – undo
197 197
         $this->register(new \Silex\Provider\TranslationServiceProvider(), array(
198 198
             'locale' => $this['config']['locale'],
199 199
         ));
200
-        $this['translator'] = $this->share($this->extend('translator', function ($translator, \Silex\Application $app) {
200
+        $this['translator'] = $this->share($this->extend('translator', function($translator, \Silex\Application $app) {
201 201
             $translator->addLoader('yaml', new \Symfony\Component\Translation\Loader\YamlFileLoader());
202 202
 
203 203
             $r = new \ReflectionClass('Symfony\Component\Validator\Validator');
@@ -241,16 +241,16 @@  discard block
 block discarded – undo
241 241
         $this->register(new \Silex\Provider\TwigServiceProvider(), array(
242 242
             'twig.form.templates' => array('Form/form_layout.twig'),
243 243
         ));
244
-        $this['twig'] = $this->share($this->extend('twig', function (\Twig_Environment $twig, \Silex\Application $app) {
244
+        $this['twig'] = $this->share($this->extend('twig', function(\Twig_Environment $twig, \Silex\Application $app) {
245 245
             $twig->addExtension(new \Eccube\Twig\Extension\EccubeExtension($app));
246 246
             $twig->addExtension(new \Twig_Extension_StringLoader());
247 247
 
248 248
             return $twig;
249 249
         }));
250 250
 
251
-        $this->before(function (Request $request, \Silex\Application $app) {
251
+        $this->before(function(Request $request, \Silex\Application $app) {
252 252
             // フロント or 管理画面ごとにtwigの探索パスを切り替える.
253
-            $app['twig'] = $app->share($app->extend('twig', function (\Twig_Environment $twig, \Silex\Application $app) {
253
+            $app['twig'] = $app->share($app->extend('twig', function(\Twig_Environment $twig, \Silex\Application $app) {
254 254
                 $paths = array();
255 255
 
256 256
                 // 互換性がないのでprofiler とproduction 時のcacheを分離する
@@ -302,7 +302,7 @@  discard block
 block discarded – undo
302 302
 
303 303
         // twigのグローバル変数を定義.
304 304
         $app = $this;
305
-        $this->on(\Symfony\Component\HttpKernel\KernelEvents::CONTROLLER, function (\Symfony\Component\HttpKernel\Event\FilterControllerEvent $event) use ($app) {
305
+        $this->on(\Symfony\Component\HttpKernel\KernelEvents::CONTROLLER, function(\Symfony\Component\HttpKernel\Event\FilterControllerEvent $event) use ($app) {
306 306
             // ショップ基本情報
307 307
             $BaseInfo = $app['eccube.repository.base_info']->get();
308 308
             $app['twig']->addGlobal('BaseInfo', $BaseInfo);
@@ -362,7 +362,7 @@  discard block
 block discarded – undo
362 362
         // メール送信時の文字エンコード指定(デフォルトはUTF-8)
363 363
         if (isset($this['config']['mail']['charset_iso_2022_jp']) && is_bool($this['config']['mail']['charset_iso_2022_jp'])) {
364 364
             if ($this['config']['mail']['charset_iso_2022_jp'] === true) {
365
-                \Swift::init(function () {
365
+                \Swift::init(function() {
366 366
                     \Swift_DependencyContainer::getInstance()
367 367
                         ->register('mime.qpheaderencoder')
368 368
                         ->asAliasOf('mime.base64headerencoder');
@@ -529,19 +529,19 @@  discard block
 block discarded – undo
529 529
             array('^/mypage', 'ROLE_USER'),
530 530
         );
531 531
 
532
-        $this['eccube.password_encoder'] = $this->share(function ($app) {
532
+        $this['eccube.password_encoder'] = $this->share(function($app) {
533 533
             return new \Eccube\Security\Core\Encoder\PasswordEncoder($app['config']);
534 534
         });
535
-        $this['security.encoder_factory'] = $this->share(function ($app) {
535
+        $this['security.encoder_factory'] = $this->share(function($app) {
536 536
             return new \Symfony\Component\Security\Core\Encoder\EncoderFactory(array(
537 537
                 'Eccube\Entity\Customer' => $app['eccube.password_encoder'],
538 538
                 'Eccube\Entity\Member' => $app['eccube.password_encoder'],
539 539
             ));
540 540
         });
541
-        $this['eccube.event_listner.security'] = $this->share(function ($app) {
541
+        $this['eccube.event_listner.security'] = $this->share(function($app) {
542 542
             return new \Eccube\EventListener\SecurityEventListener($app['orm.em']);
543 543
         });
544
-        $this['user'] = function ($app) {
544
+        $this['user'] = function($app) {
545 545
             $token = $app['security']->getToken();
546 546
 
547 547
             return ($token !== null) ? $token->getUser() : null;
@@ -552,17 +552,17 @@  discard block
 block discarded – undo
552 552
 
553 553
         // Voterの設定
554 554
         $app = $this;
555
-        $this['authority_voter'] = $this->share(function ($app) {
555
+        $this['authority_voter'] = $this->share(function($app) {
556 556
             return new \Eccube\Security\Voter\AuthorityVoter($app);
557 557
         });
558 558
 
559
-        $app['security.voters'] = $app->extend('security.voters', function ($voters) use ($app) {
559
+        $app['security.voters'] = $app->extend('security.voters', function($voters) use ($app) {
560 560
             $voters[] = $app['authority_voter'];
561 561
 
562 562
             return $voters;
563 563
         });
564 564
 
565
-        $this['security.access_manager'] = $this->share(function ($app) {
565
+        $this['security.access_manager'] = $this->share(function($app) {
566 566
             return new \Symfony\Component\Security\Core\Authorization\AccessDecisionManager($app['security.voters'], 'unanimous');
567 567
         });
568 568
 
@@ -586,14 +586,14 @@  discard block
 block discarded – undo
586 586
     public function initPluginEventDispatcher()
587 587
     {
588 588
         // EventDispatcher
589
-        $this['eccube.event.dispatcher'] = $this->share(function () {
589
+        $this['eccube.event.dispatcher'] = $this->share(function() {
590 590
             return new EventDispatcher();
591 591
         });
592 592
 
593 593
         $app = $this;
594 594
 
595 595
         // hook point
596
-        $this->on(KernelEvents::REQUEST, function (GetResponseEvent $event) use ($app) {
596
+        $this->on(KernelEvents::REQUEST, function(GetResponseEvent $event) use ($app) {
597 597
             if (!$event->isMasterRequest()) {
598 598
                 return;
599 599
             }
@@ -601,7 +601,7 @@  discard block
 block discarded – undo
601 601
             $app['eccube.event.dispatcher']->dispatch($hookpoint, $event);
602 602
         }, self::EARLY_EVENT);
603 603
 
604
-        $this->on(KernelEvents::REQUEST, function (GetResponseEvent $event) use ($app) {
604
+        $this->on(KernelEvents::REQUEST, function(GetResponseEvent $event) use ($app) {
605 605
             if (!$event->isMasterRequest()) {
606 606
                 return;
607 607
             }
@@ -610,7 +610,7 @@  discard block
 block discarded – undo
610 610
             $app['eccube.event.dispatcher']->dispatch($hookpoint, $event);
611 611
         });
612 612
 
613
-        $this->on(KernelEvents::RESPONSE, function (FilterResponseEvent $event) use ($app) {
613
+        $this->on(KernelEvents::RESPONSE, function(FilterResponseEvent $event) use ($app) {
614 614
             if (!$event->isMasterRequest()) {
615 615
                 return;
616 616
             }
@@ -619,7 +619,7 @@  discard block
 block discarded – undo
619 619
             $app['eccube.event.dispatcher']->dispatch($hookpoint, $event);
620 620
         });
621 621
 
622
-        $this->on(KernelEvents::RESPONSE, function (FilterResponseEvent $event) use ($app) {
622
+        $this->on(KernelEvents::RESPONSE, function(FilterResponseEvent $event) use ($app) {
623 623
             if (!$event->isMasterRequest()) {
624 624
                 return;
625 625
             }
@@ -627,19 +627,19 @@  discard block
 block discarded – undo
627 627
             $app['eccube.event.dispatcher']->dispatch($hookpoint, $event);
628 628
         }, self::LATE_EVENT);
629 629
 
630
-        $this->on(KernelEvents::TERMINATE, function (PostResponseEvent $event) use ($app) {
630
+        $this->on(KernelEvents::TERMINATE, function(PostResponseEvent $event) use ($app) {
631 631
             $route = $event->getRequest()->attributes->get('_route');
632 632
             $hookpoint = "eccube.event.controller.$route.finish";
633 633
             $app['eccube.event.dispatcher']->dispatch($hookpoint, $event);
634 634
         });
635 635
 
636
-        $this->on(\Symfony\Component\HttpKernel\KernelEvents::RESPONSE, function (\Symfony\Component\HttpKernel\Event\FilterResponseEvent $event) use ($app) {
636
+        $this->on(\Symfony\Component\HttpKernel\KernelEvents::RESPONSE, function(\Symfony\Component\HttpKernel\Event\FilterResponseEvent $event) use ($app) {
637 637
             $route = $event->getRequest()->attributes->get('_route');
638 638
             $app['eccube.event.dispatcher']->dispatch('eccube.event.render.'.$route.'.before', $event);
639 639
         });
640 640
 
641 641
         // Request Event
642
-        $this->on(\Symfony\Component\HttpKernel\KernelEvents::REQUEST, function (\Symfony\Component\HttpKernel\Event\GetResponseEvent $event) use ($app) {
642
+        $this->on(\Symfony\Component\HttpKernel\KernelEvents::REQUEST, function(\Symfony\Component\HttpKernel\Event\GetResponseEvent $event) use ($app) {
643 643
 
644 644
             if (\Symfony\Component\HttpKernel\HttpKernelInterface::MASTER_REQUEST !== $event->getRequestType()) {
645 645
                 return;
@@ -670,7 +670,7 @@  discard block
 block discarded – undo
670 670
         }, 30); // Routing(32)が解決しし, 認証判定(8)が実行される前のタイミング.
671 671
 
672 672
         // Controller Event
673
-        $this->on(\Symfony\Component\HttpKernel\KernelEvents::CONTROLLER, function (\Symfony\Component\HttpKernel\Event\FilterControllerEvent $event) use ($app) {
673
+        $this->on(\Symfony\Component\HttpKernel\KernelEvents::CONTROLLER, function(\Symfony\Component\HttpKernel\Event\FilterControllerEvent $event) use ($app) {
674 674
 
675 675
             if (\Symfony\Component\HttpKernel\HttpKernelInterface::MASTER_REQUEST !== $event->getRequestType()) {
676 676
                 return;
@@ -701,7 +701,7 @@  discard block
 block discarded – undo
701 701
         });
702 702
 
703 703
         // Response Event
704
-        $this->on(\Symfony\Component\HttpKernel\KernelEvents::RESPONSE, function (\Symfony\Component\HttpKernel\Event\FilterResponseEvent $event) use ($app) {
704
+        $this->on(\Symfony\Component\HttpKernel\KernelEvents::RESPONSE, function(\Symfony\Component\HttpKernel\Event\FilterResponseEvent $event) use ($app) {
705 705
 
706 706
             if (\Symfony\Component\HttpKernel\HttpKernelInterface::MASTER_REQUEST !== $event->getRequestType()) {
707 707
                 return;
@@ -731,7 +731,7 @@  discard block
 block discarded – undo
731 731
         });
732 732
 
733 733
         // Exception Event
734
-        $this->on(\Symfony\Component\HttpKernel\KernelEvents::EXCEPTION, function (\Symfony\Component\HttpKernel\Event\GetResponseForExceptionEvent $event) use ($app) {
734
+        $this->on(\Symfony\Component\HttpKernel\KernelEvents::EXCEPTION, function(\Symfony\Component\HttpKernel\Event\GetResponseForExceptionEvent $event) use ($app) {
735 735
 
736 736
             if (\Symfony\Component\HttpKernel\HttpKernelInterface::MASTER_REQUEST !== $event->getRequestType()) {
737 737
                 return;
@@ -761,7 +761,7 @@  discard block
 block discarded – undo
761 761
         });
762 762
 
763 763
         // Terminate Event
764
-        $this->on(\Symfony\Component\HttpKernel\KernelEvents::TERMINATE, function (\Symfony\Component\HttpKernel\Event\PostResponseEvent $event) use ($app) {
764
+        $this->on(\Symfony\Component\HttpKernel\KernelEvents::TERMINATE, function(\Symfony\Component\HttpKernel\Event\PostResponseEvent $event) use ($app) {
765 765
 
766 766
             $route = $event->getRequest()->attributes->get('_route');
767 767
 
@@ -840,7 +840,7 @@  discard block
 block discarded – undo
840 840
 
841 841
             // const
842 842
             if (isset($config['const'])) {
843
-                $this['config'] = $this->share($this->extend('config', function ($eccubeConfig) use ($config) {
843
+                $this['config'] = $this->share($this->extend('config', function($eccubeConfig) use ($config) {
844 844
                     $eccubeConfig[$config['code']] = array(
845 845
                         'const' => $config['const'],
846 846
                     );
@@ -982,7 +982,7 @@  discard block
 block discarded – undo
982 982
         $app = $this;
983 983
 
984 984
         // Response Event(http cache対応、event実行は一番遅く設定)
985
-        $this->on(\Symfony\Component\HttpKernel\KernelEvents::RESPONSE, function (\Symfony\Component\HttpKernel\Event\FilterResponseEvent $event) use ($app) {
985
+        $this->on(\Symfony\Component\HttpKernel\KernelEvents::RESPONSE, function(\Symfony\Component\HttpKernel\Event\FilterResponseEvent $event) use ($app) {
986 986
 
987 987
             if ($app['config']['http_cache']['enabled']) {
988 988
                 // httpキャッシュが有効の場合
Please login to merge, or discard this patch.