Failed Conditions
Push — experimental/3.1 ( 243c6b...0c67c0 )
by Yangsin
65:47
created
src/Eccube/Controller/Admin/Product/ProductController.php 2 patches
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -792,6 +792,7 @@
 block discarded – undo
792 792
      * ProductCategory作成
793 793
      * @param \Eccube\Entity\Product $Product
794 794
      * @param \Eccube\Entity\Category $Category
795
+     * @param integer $count
795 796
      * @return \Eccube\Entity\ProductCategory
796 797
      */
797 798
     private function createProductCategory($Product, $Category, $count)
Please login to merge, or discard this patch.
Spacing   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -203,7 +203,7 @@  discard block
 block discarded – undo
203 203
                     }
204 204
 
205 205
                     $extension = $image->getClientOriginalExtension();
206
-                    $filename = date('mdHis') . uniqid('_') . '.' . $extension;
206
+                    $filename = date('mdHis').uniqid('_').'.'.$extension;
207 207
                     $image->move($app['config']['image_temp_realdir'], $filename);
208 208
                     $files[] = $filename;
209 209
                 }
@@ -279,7 +279,7 @@  discard block
 block discarded – undo
279 279
         $form = $builder->getForm();
280 280
 
281 281
         if (!$has_class) {
282
-            $ProductClass->setStockUnlimited((boolean)$ProductClass->getStockUnlimited());
282
+            $ProductClass->setStockUnlimited((boolean) $ProductClass->getStockUnlimited());
283 283
             $form['class']->setData($ProductClass);
284 284
         }
285 285
 
@@ -365,8 +365,8 @@  discard block
 block discarded – undo
365 365
                 $Categories = $form->get('Category')->getData();
366 366
                 $categoriesIdList = array();
367 367
                 foreach ($Categories as $Category) {
368
-                    foreach($Category->getPath() as $ParentCategory){
369
-                        if (!isset($categoriesIdList[$ParentCategory->getId()])){
368
+                    foreach ($Category->getPath() as $ParentCategory) {
369
+                        if (!isset($categoriesIdList[$ParentCategory->getId()])) {
370 370
                             $ProductCategory = $this->createProductCategory($Product, $ParentCategory, $count);
371 371
                             $app['orm.em']->persist($ProductCategory);
372 372
                             $count++;
@@ -375,7 +375,7 @@  discard block
 block discarded – undo
375 375
                             $categoriesIdList[$ParentCategory->getId()] = true;
376 376
                         }
377 377
                     }
378
-                    if (!isset($categoriesIdList[$Category->getId()])){
378
+                    if (!isset($categoriesIdList[$Category->getId()])) {
379 379
                         $ProductCategory = $this->createProductCategory($Product, $Category, $count);
380 380
                         $app['orm.em']->persist($ProductCategory);
381 381
                         $count++;
@@ -397,7 +397,7 @@  discard block
 block discarded – undo
397 397
                     $app['orm.em']->persist($ProductImage);
398 398
 
399 399
                     // 移動
400
-                    $file = new File($app['config']['image_temp_realdir'] . '/' . $add_image);
400
+                    $file = new File($app['config']['image_temp_realdir'].'/'.$add_image);
401 401
                     $file->move($app['config']['image_save_realdir']);
402 402
                 }
403 403
 
@@ -417,7 +417,7 @@  discard block
 block discarded – undo
417 417
 
418 418
                     // 削除
419 419
                     $fs = new Filesystem();
420
-                    $fs->remove($app['config']['image_save_realdir'] . '/' . $delete_image);
420
+                    $fs->remove($app['config']['image_save_realdir'].'/'.$delete_image);
421 421
                 }
422 422
                 $app['orm.em']->persist($Product);
423 423
                 $app['orm.em']->flush();
@@ -577,7 +577,7 @@  discard block
 block discarded – undo
577 577
                 foreach ($deleteImages as $deleteImage) {
578 578
                     try {
579 579
                         $fs = new Filesystem();
580
-                        $fs->remove($app['config']['image_save_realdir'] . '/' . $deleteImage);
580
+                        $fs->remove($app['config']['image_save_realdir'].'/'.$deleteImage);
581 581
                     } catch (\Exception $e) {
582 582
                         // エラーが発生しても無視する
583 583
                     }
@@ -647,10 +647,10 @@  discard block
 block discarded – undo
647 647
 
648 648
                     // 画像ファイルを新規作成
649 649
                     $extension = pathinfo($Image->getFileName(), PATHINFO_EXTENSION);
650
-                    $filename = date('mdHis') . uniqid('_') . '.' . $extension;
650
+                    $filename = date('mdHis').uniqid('_').'.'.$extension;
651 651
                     try {
652 652
                         $fs = new Filesystem();
653
-                        $fs->copy($app['config']['image_save_realdir'] . '/' . $Image->getFileName(), $app['config']['image_save_realdir'] . '/' . $filename);
653
+                        $fs->copy($app['config']['image_save_realdir'].'/'.$Image->getFileName(), $app['config']['image_save_realdir'].'/'.$filename);
654 654
                     } catch (\Exception $e) {
655 655
                         // エラーが発生しても無視する
656 656
                     }
@@ -725,7 +725,7 @@  discard block
 block discarded – undo
725 725
         $em->getConfiguration()->setSQLLogger(null);
726 726
 
727 727
         $response = new StreamedResponse();
728
-        $response->setCallback(function () use ($app, $request) {
728
+        $response->setCallback(function() use ($app, $request) {
729 729
 
730 730
             // CSV種別を元に初期化.
731 731
             $app['eccube.service.csv.export']->initCsvType(CsvType::CSV_TYPE_PRODUCT);
@@ -765,7 +765,7 @@  discard block
 block discarded – undo
765 765
             // データ行の出力.
766 766
             $app['eccube.service.csv.export']->setExportQueryBuilder($qb);
767 767
 
768
-            $app['eccube.service.csv.export']->exportData(function ($entity, CsvExportService $csvService) use ($app, $request) {
768
+            $app['eccube.service.csv.export']->exportData(function($entity, CsvExportService $csvService) use ($app, $request) {
769 769
                 $Csvs = $csvService->getCsvs();
770 770
 
771 771
                 /** @var $Product \Eccube\Entity\Product */
@@ -808,9 +808,9 @@  discard block
 block discarded – undo
808 808
         });
809 809
 
810 810
         $now = new \DateTime();
811
-        $filename = 'product_' . $now->format('YmdHis') . '.csv';
811
+        $filename = 'product_'.$now->format('YmdHis').'.csv';
812 812
         $response->headers->set('Content-Type', 'application/octet-stream');
813
-        $response->headers->set('Content-Disposition', 'attachment; filename=' . $filename);
813
+        $response->headers->set('Content-Disposition', 'attachment; filename='.$filename);
814 814
         $response->send();
815 815
 
816 816
         log_info('商品CSV出力ファイル名', array($filename));
Please login to merge, or discard this patch.
src/Eccube/Service/Calculator/Strategy/ShippingStrategy.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -21,12 +21,12 @@
 block discarded – undo
21 21
         // 送料をすべて足す
22 22
         $delivery_fee_total = array_reduce(
23 23
             array_map(
24
-                function ($Shipping) {
24
+                function($Shipping) {
25 25
                     return $Shipping->getShippingDeliveryFee();
26 26
                 },
27 27
                 $this->Order->getShippings()->toArray()
28 28
             ),
29
-            function ($carry, $item) {
29
+            function($carry, $item) {
30 30
                 return $carry += $item;
31 31
             }
32 32
         );
Please login to merge, or discard this patch.
src/Eccube/Service/Calculator/CalculateContext.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -18,7 +18,7 @@
 block discarded – undo
18 18
             $Strategy->execute($this->OrderDetails);
19 19
         }
20 20
 
21
-        foreach($this->OrderDetails as $OrderDetail) {
21
+        foreach ($this->OrderDetails as $OrderDetail) {
22 22
             if (!$this->Order->getOrderDetails()->contains($OrderDetail)) {
23 23
                 $OrderDetail->setOrder($this->Order);
24 24
                 $this->Order->addOrderDetail($OrderDetail);
Please login to merge, or discard this patch.
src/Eccube/Form/Type/Shopping/ShippingType.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -54,7 +54,7 @@  discard block
 block discarded – undo
54 54
         // 配送業者のプルダウンを生成
55 55
         $builder->addEventListener(
56 56
             FormEvents::PRE_SET_DATA,
57
-            function (FormEvent $event) {
57
+            function(FormEvent $event) {
58 58
                 $Shipping = $event->getData();
59 59
                 if (is_null($Shipping) || !$Shipping->getId()) {
60 60
                     return;
@@ -95,7 +95,7 @@  discard block
 block discarded – undo
95 95
         // お届け日のプルダウンを生成
96 96
         $builder->addEventListener(
97 97
             FormEvents::PRE_SET_DATA,
98
-            function (FormEvent $event) {
98
+            function(FormEvent $event) {
99 99
                 $Shipping = $event->getData();
100 100
                 if (is_null($Shipping) || !$Shipping->getId()) {
101 101
                     return;
@@ -131,7 +131,7 @@  discard block
 block discarded – undo
131 131
 
132 132
                 // 配送日数が設定されている
133 133
                 if ($deliveryDateFlag) {
134
-                    $period = new \DatePeriod (
134
+                    $period = new \DatePeriod(
135 135
                         new \DateTime($minDate.' day'),
136 136
                         new \DateInterval('P1D'),
137 137
                         new \DateTime($minDate + $this->config['deliv_date_end_max'].' day')
@@ -159,7 +159,7 @@  discard block
 block discarded – undo
159 159
         // お届け時間のプルダウンを生成
160 160
         $builder->addEventListener(
161 161
             FormEvents::PRE_SET_DATA,
162
-            function (FormEvent $event) {
162
+            function(FormEvent $event) {
163 163
                 $Shipping = $event->getData();
164 164
                 if (is_null($Shipping) || !$Shipping->getId()) {
165 165
                     return;
Please login to merge, or discard this patch.
src/Eccube/InstallApplication.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -39,7 +39,7 @@
 block discarded – undo
39 39
 
40 40
         if (is_writable($logDir)) {
41 41
             if (file_exists($installLog) && !is_writable($installLog)) {
42
-                die($installLog . ' の書込権限を変更して下さい。');
42
+                die($installLog.' の書込権限を変更して下さい。');
43 43
             }
44 44
             // install step2 でログディレクトリに書き込み権限が付与されればログ出力を開始する.
45 45
             $app->register(new \Silex\Provider\MonologServiceProvider(), array(
Please login to merge, or discard this patch.
src/Eccube/Controller/ShoppingController.php 3 patches
Doc Comments   -1 removed lines patch added patch discarded remove patch
@@ -1360,7 +1360,6 @@
 block discarded – undo
1360 1360
     /**
1361 1361
      * フォームの情報からお届け先のインデックスを返す
1362 1362
      *
1363
-     * @param Application $app
1364 1363
      * @param mixed $CustomerAddressData
1365 1364
      * @return int
1366 1365
      */
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1336,7 +1336,7 @@
 block discarded – undo
1336 1336
                 // ステータス履歴も保持しておく? 在庫引き当ての仕様もセットで。
1337 1337
                 if ($dispatcher instanceof Response
1338 1338
                     && ($dispatcher->isRedirection() || $dispatcher->getContent())) { // $paymentMethod->apply() が Response を返した場合は画面遷移
1339
-                    return $dispatcher;                // 画面遷移したいパターンが複数ある場合はどうする? 引数で制御?
1339
+                    return $dispatcher; // 画面遷移したいパターンが複数ある場合はどうする? 引数で制御?
1340 1340
                 }
1341 1341
                 $PaymentResult = $paymentService->doCheckout($paymentMethod); // 決済実行
1342 1342
                 if (!$PaymentResult->isSuccess()) {
Please login to merge, or discard this patch.
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -40,9 +40,7 @@
 block discarded – undo
40 40
 use Eccube\Form\Type\ShippingMultipleType;
41 41
 use Eccube\Form\Type\Shopping\OrderType;
42 42
 use Sensio\Bundle\FrameworkExtraBundle\Configuration\Method;
43
-use Sensio\Bundle\FrameworkExtraBundle\Configuration\ParamConverter;
44 43
 use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route;
45
-use Sensio\Bundle\FrameworkExtraBundle\Configuration\Security;
46 44
 use Sensio\Bundle\FrameworkExtraBundle\Configuration\Template;
47 45
 use Symfony\Component\Form\Extension\Core\Type\CollectionType;
48 46
 use Symfony\Component\HttpFoundation\Request;
Please login to merge, or discard this patch.
src/Eccube/Repository/CustomerRepository.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -153,9 +153,9 @@  discard block
 block discarded – undo
153 153
             $qb
154 154
                 ->andWhere('c.id = :customer_id OR CONCAT(c.name01, c.name02) LIKE :name OR CONCAT(c.kana01, c.kana02) LIKE :kana OR c.email LIKE :email')
155 155
                 ->setParameter('customer_id', $id)
156
-                ->setParameter('name', '%' . $clean_key_multi . '%')
157
-                ->setParameter('kana', '%' . $clean_key_multi . '%')
158
-                ->setParameter('email', '%' . $clean_key_multi . '%');
156
+                ->setParameter('name', '%'.$clean_key_multi.'%')
157
+                ->setParameter('kana', '%'.$clean_key_multi.'%')
158
+                ->setParameter('email', '%'.$clean_key_multi.'%');
159 159
         }
160 160
 
161 161
         // Pref
@@ -205,7 +205,7 @@  discard block
 block discarded – undo
205 205
         if (isset($searchData['tel']) && Str::isNotBlank($searchData['tel'])) {
206 206
             $qb
207 207
                 ->andWhere('CONCAT(c.tel01, c.tel02, c.tel03) LIKE :tel')
208
-                ->setParameter('tel', '%' . $searchData['tel'] . '%');
208
+                ->setParameter('tel', '%'.$searchData['tel'].'%');
209 209
         }
210 210
 
211 211
         // buy_total
@@ -299,7 +299,7 @@  discard block
 block discarded – undo
299 299
                 ->leftJoin('c.Orders', 'o')
300 300
                 ->leftJoin('o.OrderDetails', 'od')
301 301
                 ->andWhere('od.product_name LIKE :buy_product_name OR od.product_code LIKE :buy_product_name')
302
-                ->setParameter('buy_product_name', '%' . $searchData['buy_product_code'] . '%');
302
+                ->setParameter('buy_product_name', '%'.$searchData['buy_product_code'].'%');
303 303
         }
304 304
 
305 305
         // Order By
Please login to merge, or discard this patch.
src/Eccube/Command/GeneratorCommand/EntityFromDbGenerator.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -164,7 +164,7 @@
 block discarded – undo
164 164
             $cmf->setEntityManager($em);
165 165
             $metadatas = $cmf->getAllMetadata();
166 166
 
167
-            $filters = array_map(function ($value) {
167
+            $filters = array_map(function($value) {
168 168
                 return ucfirst(Inflector::camelize(str_replace('plg_', '', $value)));
169 169
             }, $tableList);
170 170
             $metadatas = MetadataFilter::filter($metadatas, $filters);
Please login to merge, or discard this patch.
src/Eccube/Application.php 3 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -964,7 +964,7 @@
 block discarded – undo
964 964
      * 失敗 : \Doctrine\DBAL\DBALExceptionエラーが発生( 接続に失敗した場合 )、エラー画面を表示しdie()
965 965
      * 備考 : app['debug']がtrueの際は処理を行わない
966 966
      *
967
-     * @return boolean true
967
+     * @return null|boolean true
968 968
      *
969 969
      */
970 970
     protected function checkDatabaseConnection()
Please login to merge, or discard this patch.
Indentation   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -543,13 +543,13 @@
 block discarded – undo
543 543
         $pluginConfigs = PluginConfigManager::getPluginConfigAll($this['debug']);
544 544
         $ormMappings = array();
545 545
         $ormMappings[] = array(
546
-             'type' => 'annotation',
547
-             'namespace' => 'Eccube\Entity',
548
-             'path' => array(
549
-                 __DIR__.'/Entity'
550
-             ),
551
-             'use_simple_annotation_reader' => false,
552
-         );
546
+                'type' => 'annotation',
547
+                'namespace' => 'Eccube\Entity',
548
+                'path' => array(
549
+                    __DIR__.'/Entity'
550
+                ),
551
+                'use_simple_annotation_reader' => false,
552
+            );
553 553
 
554 554
         // TODO namespace は暫定
555 555
         $ormMappings[] = array(
Please login to merge, or discard this patch.
Spacing   +25 added lines, -25 removed lines patch added patch discarded remove patch
@@ -160,7 +160,7 @@  discard block
 block discarded – undo
160 160
         $this->register(new \Saxulum\Validator\Provider\SaxulumValidatorProvider());
161 161
         $this->register(new MobileDetectServiceProvider());
162 162
 
163
-        $this->error(function (\Exception $e, Request $request, $code) {
163
+        $this->error(function(\Exception $e, Request $request, $code) {
164 164
             if ($this['debug']) {
165 165
                 return;
166 166
             }
@@ -254,14 +254,14 @@  discard block
 block discarded – undo
254 254
             return $router;
255 255
         });
256 256
 
257
-        $this['eccube.router.origin'] = function ($app) {
257
+        $this['eccube.router.origin'] = function($app) {
258 258
             $resource = __DIR__.'/Controller';
259 259
             $cachePrefix = 'Origin';
260 260
 
261 261
             return $app['eccube.router']($resource, $cachePrefix);
262 262
         };
263 263
 
264
-        $this['eccube.routers.plugin'] = function ($app) {
264
+        $this['eccube.routers.plugin'] = function($app) {
265 265
             // TODO 有効なプラグインを対象とする必要がある.
266 266
             $dirs = Finder::create()
267 267
                 ->in($app['config']['root_dir'].'/app/Plugin')
@@ -278,7 +278,7 @@  discard block
 block discarded – undo
278 278
             return $routers;
279 279
         };
280 280
 
281
-        $this['eccube.router.extend'] = function ($app) {
281
+        $this['eccube.router.extend'] = function($app) {
282 282
             // TODO ディレクトリ名は暫定
283 283
             $resource = $app['config']['root_dir'].'/app/Acme/Controller';
284 284
             $cachePrefix = 'Extend';
@@ -288,7 +288,7 @@  discard block
 block discarded – undo
288 288
             return $router;
289 289
         };
290 290
 
291
-        $this->extend('request_matcher', function ($matcher, $app) {
291
+        $this->extend('request_matcher', function($matcher, $app) {
292 292
             $matchers = [];
293 293
             $matchers[] = $app['eccube.router.extend'];
294 294
             foreach ($app['eccube.routers.plugin'] as $router) {
@@ -300,7 +300,7 @@  discard block
 block discarded – undo
300 300
             return new ChainUrlMatcher($matchers, $app['request_context']);
301 301
         });
302 302
 
303
-        $this->extend('url_generator', function ($generator, $app) {
303
+        $this->extend('url_generator', function($generator, $app) {
304 304
             $generators = [];
305 305
             $generators[] = $app['eccube.router.extend'];
306 306
             foreach ($app['eccube.routers.plugin'] as $router) {
@@ -331,7 +331,7 @@  discard block
 block discarded – undo
331 331
             'translator.cache_dir' => $this['debug'] ? null : $this['config']['root_dir'].'/app/cache/translator',
332 332
             'locale_fallbacks' => ['ja', 'en'],
333 333
         ));
334
-        $this->extend('translator', function ($translator, \Silex\Application $app) {
334
+        $this->extend('translator', function($translator, \Silex\Application $app) {
335 335
             $translator->addLoader('yaml', new \Symfony\Component\Translation\Loader\YamlFileLoader());
336 336
 
337 337
             $file = __DIR__.'/Resource/locale/validator.'.$app['locale'].'.yml';
@@ -378,14 +378,14 @@  discard block
 block discarded – undo
378 378
         $this->register(new \Silex\Provider\TwigServiceProvider(), array(
379 379
             'twig.form.templates' => array('Form/form_layout.twig'),
380 380
         ));
381
-        $this->extend('twig', function (\Twig_Environment $twig, \Silex\Application $app) {
381
+        $this->extend('twig', function(\Twig_Environment $twig, \Silex\Application $app) {
382 382
             $twig->addExtension(new \Eccube\Twig\Extension\EccubeExtension($app));
383 383
             $twig->addExtension(new \Twig_Extension_StringLoader());
384 384
 
385 385
             return $twig;
386 386
         });
387 387
 
388
-        $this->before(function (Request $request, \Silex\Application $app) {
388
+        $this->before(function(Request $request, \Silex\Application $app) {
389 389
             $app['admin'] = $app['front'] = false;
390 390
             $pathinfo = rawurldecode($request->getPathInfo());
391 391
             if (strpos($pathinfo, '/'.trim($app['config']['admin_route'], '/').'/') === 0) {
@@ -401,7 +401,7 @@  discard block
 block discarded – undo
401 401
                 }
402 402
                 $paths[] = $app['config']['template_admin_realdir'];
403 403
                 $paths[] = __DIR__.'/../../app/Plugin';
404
-                $cacheDir =  __DIR__.'/../../app/cache/twig/admin';
404
+                $cacheDir = __DIR__.'/../../app/cache/twig/admin';
405 405
             } else {
406 406
                 // モバイル端末時、smartphoneディレクトリを探索パスに追加する.
407 407
                 if ($app['mobile_detect.device_type'] == \Eccube\Entity\Master\DeviceType::DEVICE_TYPE_SP) {
@@ -416,7 +416,7 @@  discard block
 block discarded – undo
416 416
                 }
417 417
                 $paths[] = $app['config']['template_default_realdir'];
418 418
                 $paths[] = __DIR__.'/../../app/Plugin';
419
-                $cacheDir =  __DIR__.'/../../app/cache/twig/'.$app['config']['template_code'];
419
+                $cacheDir = __DIR__.'/../../app/cache/twig/'.$app['config']['template_code'];
420 420
             }
421 421
             $app['twig']->setCache($app['debug'] ? null : $cacheDir);
422 422
             $app['twig.loader']->addLoader(new \Twig_Loader_Filesystem($paths));
@@ -434,7 +434,7 @@  discard block
 block discarded – undo
434 434
         }, self::EARLY_EVENT);
435 435
 
436 436
         // twigのグローバル変数を定義.
437
-        $this->on(\Symfony\Component\HttpKernel\KernelEvents::CONTROLLER, function (\Symfony\Component\HttpKernel\Event\FilterControllerEvent $event) {
437
+        $this->on(\Symfony\Component\HttpKernel\KernelEvents::CONTROLLER, function(\Symfony\Component\HttpKernel\Event\FilterControllerEvent $event) {
438 438
             // 未ログイン時にマイページや管理画面以下にアクセスするとSubRequestで実行されるため,
439 439
             // $event->isMasterRequest()ではなく、グローバル変数が初期化済かどうかの判定を行う
440 440
             if (isset($this['twig_global_initialized']) && $this['twig_global_initialized'] === true) {
@@ -520,7 +520,7 @@  discard block
 block discarded – undo
520 520
         // メール送信時の文字エンコード指定(デフォルトはUTF-8)
521 521
         if (isset($this['config']['mail']['charset_iso_2022_jp']) && is_bool($this['config']['mail']['charset_iso_2022_jp'])) {
522 522
             if ($this['config']['mail']['charset_iso_2022_jp'] === true) {
523
-                \Swift::init(function () {
523
+                \Swift::init(function() {
524 524
                     \Swift_DependencyContainer::getInstance()
525 525
                         ->register('mime.qpheaderencoder')
526 526
                         ->asAliasOf('mime.base64headerencoder');
@@ -555,7 +555,7 @@  discard block
 block discarded – undo
555 555
         $this->register(new \Saxulum\DoctrineOrmManagerRegistry\Provider\DoctrineOrmManagerRegistryProvider());
556 556
 
557 557
         $app = $this;
558
-        $this->extend('db.event_manager', function ($evm) use ($app) {
558
+        $this->extend('db.event_manager', function($evm) use ($app) {
559 559
             $initSubscriber = new InitSubscriber($app);
560 560
             $evm->addEventSubscriber($initSubscriber);
561 561
 
@@ -650,7 +650,7 @@  discard block
 block discarded – undo
650 650
 
651 651
         $this->extend(
652 652
             'orm.em.config',
653
-            function (\Doctrine\ORM\Configuration $config, \Silex\Application $app) {
653
+            function(\Doctrine\ORM\Configuration $config, \Silex\Application $app) {
654 654
 
655 655
                 /** @var $chain \Doctrine\Common\Persistence\Mapping\Driver\MappingDriverChain */
656 656
                 $chain = $config->getMetadataDriverImpl();
@@ -672,7 +672,7 @@  discard block
 block discarded – undo
672 672
             }
673 673
         );
674 674
 
675
-        $this->extend('orm.em', function (\Doctrine\ORM\EntityManager $em, \Silex\Application $app) {
675
+        $this->extend('orm.em', function(\Doctrine\ORM\EntityManager $em, \Silex\Application $app) {
676 676
             // tax_rule
677 677
             $taxRuleRepository = $em->getRepository('Eccube\Entity\TaxRule');
678 678
             $taxRuleRepository->setApplication($app);
@@ -701,7 +701,7 @@  discard block
 block discarded – undo
701 701
             // second level cacheの設定.
702 702
             $this->extend(
703 703
                 'orm.em.config',
704
-                function (\Doctrine\ORM\Configuration $config, \Silex\Application $app) {
704
+                function(\Doctrine\ORM\Configuration $config, \Silex\Application $app) {
705 705
                     $config->setSecondLevelCacheEnabled();
706 706
                     $cacheConfig = $config->getSecondLevelCacheConfiguration();
707 707
                     $regionConfig = $cacheConfig->getRegionsConfiguration();
@@ -790,31 +790,31 @@  discard block
 block discarded – undo
790 790
             array('^/mypage', 'ROLE_USER', $channel),
791 791
         );
792 792
 
793
-        $this['eccube.password_encoder'] = function ($app) {
793
+        $this['eccube.password_encoder'] = function($app) {
794 794
             return new \Eccube\Security\Core\Encoder\PasswordEncoder($app['config']);
795 795
         };
796
-        $this['security.encoder_factory'] = function ($app) {
796
+        $this['security.encoder_factory'] = function($app) {
797 797
             return new \Symfony\Component\Security\Core\Encoder\EncoderFactory(array(
798 798
                 'Eccube\Entity\Customer' => $app['eccube.password_encoder'],
799 799
                 'Eccube\Entity\Member' => $app['eccube.password_encoder'],
800 800
             ));
801 801
         };
802
-        $this['eccube.event_listner.security'] = function ($app) {
802
+        $this['eccube.event_listner.security'] = function($app) {
803 803
             return new \Eccube\EventListener\SecurityEventListener($app['orm.em']);
804 804
         };
805 805
 
806 806
         // Voterの設定
807
-        $this['authority_voter'] = function ($app) {
807
+        $this['authority_voter'] = function($app) {
808 808
             return new \Eccube\Security\Voter\AuthorityVoter($app);
809 809
         };
810 810
 
811
-        $this->extend('security.voters', function ($voters, \Silex\Application $app) {
811
+        $this->extend('security.voters', function($voters, \Silex\Application $app) {
812 812
             $voters[] = $app['authority_voter'];
813 813
 
814 814
             return $voters;
815 815
         });
816 816
 
817
-        $this['security.access_manager'] = function ($app) {
817
+        $this['security.access_manager'] = function($app) {
818 818
             return new \Symfony\Component\Security\Core\Authorization\AccessDecisionManager($app['security.voters'], 'unanimous');
819 819
         };
820 820
 
@@ -828,7 +828,7 @@  discard block
 block discarded – undo
828 828
     {
829 829
         $config = $this['config'];
830 830
         if (isset($config['trusted_proxies_connection_only']) && !empty($config['trusted_proxies_connection_only'])) {
831
-            $this->on(KernelEvents::REQUEST, function (GetResponseEvent $event) use ($config) {
831
+            $this->on(KernelEvents::REQUEST, function(GetResponseEvent $event) use ($config) {
832 832
                 // サブリクエストのREMOTE_ADDRも動的に設定を行う必要があるため、KernelEvents::REQUESTを使用する
833 833
                 Request::setTrustedProxies(array_merge(array($event->getRequest()->server->get('REMOTE_ADDR')), $config['trusted_proxies']));
834 834
             }, self::EARLY_EVENT);
@@ -994,7 +994,7 @@  discard block
 block discarded – undo
994 994
         $app = $this;
995 995
 
996 996
         // Response Event(http cache対応、event実行は一番遅く設定)
997
-        $this->on(\Symfony\Component\HttpKernel\KernelEvents::RESPONSE, function (\Symfony\Component\HttpKernel\Event\FilterResponseEvent $event) use ($app) {
997
+        $this->on(\Symfony\Component\HttpKernel\KernelEvents::RESPONSE, function(\Symfony\Component\HttpKernel\Event\FilterResponseEvent $event) use ($app) {
998 998
 
999 999
             if (!$event->isMasterRequest()) {
1000 1000
                 return;
Please login to merge, or discard this patch.