Completed
Pull Request — experimental/3.1 (#2566)
by chihiro
155:15 queued 121:52
created
src/Eccube/Form/Type/Admin/ShippingType.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -207,7 +207,7 @@  discard block
 block discarded – undo
207 207
                 'allow_delete' => true,
208 208
                 'prototype' => true,
209 209
             ))
210
-            ->addEventListener(FormEvents::POST_SET_DATA, function (FormEvent $event) {
210
+            ->addEventListener(FormEvents::POST_SET_DATA, function(FormEvent $event) {
211 211
                 /** @var \Eccube\Entity\Shipping $data */
212 212
                 $data = $event->getData();
213 213
                 /** @var \Symfony\Component\Form\Form $form */
@@ -228,7 +228,7 @@  discard block
 block discarded – undo
228 228
                     'placeholder' => '指定なし',
229 229
                     'required' => false,
230 230
                     'data' => $DeliveryTime,
231
-                    'query_builder' => function (EntityRepository $er) use ($Delivery) {
231
+                    'query_builder' => function(EntityRepository $er) use ($Delivery) {
232 232
                         $qb = $er->createQueryBuilder('dt');
233 233
                         if ($Delivery) {
234 234
                             $qb
@@ -240,7 +240,7 @@  discard block
 block discarded – undo
240 240
                     'mapped' => false,
241 241
                 ));
242 242
             })
243
-            ->addEventListener(FormEvents::PRE_SUBMIT, function (FormEvent $event) {
243
+            ->addEventListener(FormEvents::PRE_SUBMIT, function(FormEvent $event) {
244 244
                 $data = $event->getData();
245 245
                 $form = $event->getForm();
246 246
 
@@ -261,7 +261,7 @@  discard block
 block discarded – undo
261 261
                     'choice_label' => 'delivery_time',
262 262
                     'placeholder' => '指定なし',
263 263
                     'required' => false,
264
-                    'query_builder' => function (EntityRepository $er) use ($Delivery) {
264
+                    'query_builder' => function(EntityRepository $er) use ($Delivery) {
265 265
                         $qb = $er->createQueryBuilder('dt');
266 266
                         if ($Delivery) {
267 267
                             $qb
@@ -273,7 +273,7 @@  discard block
 block discarded – undo
273 273
                     'mapped' => false,
274 274
                 ));
275 275
             })
276
-            ->addEventListener(FormEvents::POST_SUBMIT, function (FormEvent $event) {
276
+            ->addEventListener(FormEvents::POST_SUBMIT, function(FormEvent $event) {
277 277
                 $form = $event->getForm();
278 278
                 $OrderItems = $form['OrderItems']->getData();
279 279
 
@@ -282,7 +282,7 @@  discard block
 block discarded – undo
282 282
                     $form['shipping_delivery_date']->addError(new FormError('商品が追加されていません。'));
283 283
                 }
284 284
             })
285
-            ->addEventListener(FormEvents::POST_SUBMIT, function (FormEvent $event) {
285
+            ->addEventListener(FormEvents::POST_SUBMIT, function(FormEvent $event) {
286 286
                 $form = $event->getForm();
287 287
                 $Shipping = $event->getData();
288 288
                 $Delivery = $Shipping->getDelivery();
Please login to merge, or discard this patch.
src/Eccube/Application.php 1 patch
Spacing   +27 added lines, -27 removed lines patch added patch discarded remove patch
@@ -206,7 +206,7 @@  discard block
 block discarded – undo
206 206
         $this->register(new MobileDetectServiceProvider());
207 207
         $this->register(new TwigLintServiceProvider());
208 208
 
209
-        $this->error(function (\Exception $e, Request $request, $code) {
209
+        $this->error(function(\Exception $e, Request $request, $code) {
210 210
             if ($this['debug']) {
211 211
                 return;
212 212
             }
@@ -273,7 +273,7 @@  discard block
 block discarded – undo
273 273
 
274 274
         $pluginSubDirs = (function($dirName) use ($enabledPluginDirs) {
275 275
             return array_map(function($pluginDir) use ($dirName) {
276
-                return $pluginDir . '/' . $dirName;
276
+                return $pluginDir.'/'.$dirName;
277 277
             }, $enabledPluginDirs);
278 278
         });
279 279
 
@@ -340,7 +340,7 @@  discard block
 block discarded – undo
340 340
             return $router;
341 341
         });
342 342
 
343
-        $this['eccube.router.origin'] = function ($app) {
343
+        $this['eccube.router.origin'] = function($app) {
344 344
             $resource = __DIR__.'/Controller';
345 345
             $cachePrefix = 'Origin';
346 346
 
@@ -350,7 +350,7 @@  discard block
 block discarded – undo
350 350
         $this['eccube.routers.plugin'] = [];
351 351
 
352 352
         if (isset($this['config']['vendor_dir']) && file_exists($this['config']['vendor_dir'].'/Controller')) {
353
-            $this['eccube.router.extend'] = function ($app) {
353
+            $this['eccube.router.extend'] = function($app) {
354 354
                 $resource = $app['config']['vendor_dir'].'/Controller';
355 355
                 $cachePrefix = 'Extend';
356 356
 
@@ -359,7 +359,7 @@  discard block
 block discarded – undo
359 359
                 return $router;
360 360
             };
361 361
         }
362
-        $this->extend('request_matcher', function ($matcher, $app) {
362
+        $this->extend('request_matcher', function($matcher, $app) {
363 363
             $matchers = [];
364 364
             if (isset($app['eccube.router.extend'])) {
365 365
                 $matchers[] = $app['eccube.router.extend'];
@@ -373,7 +373,7 @@  discard block
 block discarded – undo
373 373
             return new ChainUrlMatcher($matchers, $app['request_context']);
374 374
         });
375 375
 
376
-        $this->extend('url_generator', function ($generator, $app) {
376
+        $this->extend('url_generator', function($generator, $app) {
377 377
             $generators = [];
378 378
             if (isset($app['eccube.router.extend'])) {
379 379
                 $generators[] = $app['eccube.router.extend'];
@@ -388,7 +388,7 @@  discard block
 block discarded – undo
388 388
         });
389 389
 
390 390
         // Route CollectionにEC-CUBEで定義したルーティングを追加(debug tool barに出力するため)
391
-        $this->extend('routes', function ($routes, $app) {
391
+        $this->extend('routes', function($routes, $app) {
392 392
             if (isset($app['eccube.router.extend'])) {
393 393
                 $routes->addCollection($app['eccube.router.extend']->getRouteCollection());
394 394
             }
@@ -423,7 +423,7 @@  discard block
 block discarded – undo
423 423
             'translator.cache_dir' => $this['debug'] ? null : $this['config']['root_dir'].'/app/cache/translator',
424 424
             'locale_fallbacks' => ['ja', 'en'],
425 425
         ));
426
-        $this->extend('translator', function ($translator, \Silex\Application $app) {
426
+        $this->extend('translator', function($translator, \Silex\Application $app) {
427 427
             $translator->addLoader('php', new \Symfony\Component\Translation\Loader\PhpFileLoader());
428 428
 
429 429
             $file = __DIR__.'/Resource/locale/messages.'.$app['locale'].'.php';
@@ -466,14 +466,14 @@  discard block
 block discarded – undo
466 466
         $this->register(new \Silex\Provider\TwigServiceProvider(), array(
467 467
             'twig.form.templates' => array('Form/form_layout.twig'),
468 468
         ));
469
-        $this->extend('twig', function (\Twig_Environment $twig, \Silex\Application $app) {
469
+        $this->extend('twig', function(\Twig_Environment $twig, \Silex\Application $app) {
470 470
             $twig->addExtension(new \Eccube\Twig\Extension\EccubeExtension($app));
471 471
             $twig->addExtension(new \Twig_Extension_StringLoader());
472 472
 
473 473
             return $twig;
474 474
         });
475 475
 
476
-        $this->before(function (Request $request, \Silex\Application $app) {
476
+        $this->before(function(Request $request, \Silex\Application $app) {
477 477
             $app['admin'] = $app['front'] = false;
478 478
             $pathinfo = rawurldecode($request->getPathInfo());
479 479
             if (strpos($pathinfo, '/'.trim($app['config']['admin_route'], '/').'/') === 0) {
@@ -489,7 +489,7 @@  discard block
 block discarded – undo
489 489
                 }
490 490
                 $paths[] = $app['config']['template_admin_realdir'];
491 491
                 $paths[] = __DIR__.'/../../app/Plugin';
492
-                $cacheDir =  __DIR__.'/../../app/cache/twig/admin';
492
+                $cacheDir = __DIR__.'/../../app/cache/twig/admin';
493 493
             } else {
494 494
                 // モバイル端末時、smartphoneディレクトリを探索パスに追加する.
495 495
                 if ($app['mobile_detect.device_type'] == \Eccube\Entity\Master\DeviceType::DEVICE_TYPE_SP) {
@@ -504,7 +504,7 @@  discard block
 block discarded – undo
504 504
                 }
505 505
                 $paths[] = $app['config']['template_default_realdir'];
506 506
                 $paths[] = __DIR__.'/../../app/Plugin';
507
-                $cacheDir =  __DIR__.'/../../app/cache/twig/'.$app['config']['template_code'];
507
+                $cacheDir = __DIR__.'/../../app/cache/twig/'.$app['config']['template_code'];
508 508
             }
509 509
             $app['twig']->setCache($app['debug'] ? null : $cacheDir);
510 510
             $app['twig.loader']->addLoader(new \Twig_Loader_Filesystem($paths));
@@ -522,7 +522,7 @@  discard block
 block discarded – undo
522 522
         }, self::EARLY_EVENT);
523 523
 
524 524
         // twigのグローバル変数を定義.
525
-        $this->on(\Symfony\Component\HttpKernel\KernelEvents::CONTROLLER, function (\Symfony\Component\HttpKernel\Event\FilterControllerEvent $event) {
525
+        $this->on(\Symfony\Component\HttpKernel\KernelEvents::CONTROLLER, function(\Symfony\Component\HttpKernel\Event\FilterControllerEvent $event) {
526 526
             // 未ログイン時にマイページや管理画面以下にアクセスするとSubRequestで実行されるため,
527 527
             // $event->isMasterRequest()ではなく、グローバル変数が初期化済かどうかの判定を行う
528 528
             if (isset($this['twig_global_initialized']) && $this['twig_global_initialized'] === true) {
@@ -607,7 +607,7 @@  discard block
 block discarded – undo
607 607
         // メール送信時の文字エンコード指定(デフォルトはUTF-8)
608 608
         if (isset($this['config']['mail']['charset_iso_2022_jp']) && is_bool($this['config']['mail']['charset_iso_2022_jp'])) {
609 609
             if ($this['config']['mail']['charset_iso_2022_jp'] === true) {
610
-                \Swift::init(function () {
610
+                \Swift::init(function() {
611 611
                     \Swift_DependencyContainer::getInstance()
612 612
                         ->register('mime.qpheaderencoder')
613 613
                         ->asAliasOf('mime.base64headerencoder');
@@ -642,7 +642,7 @@  discard block
 block discarded – undo
642 642
         $this->register(new \Saxulum\DoctrineOrmManagerRegistry\Provider\DoctrineOrmManagerRegistryProvider());
643 643
 
644 644
         $app = $this;
645
-        $this->extend('db.event_manager', function ($evm) use ($app) {
645
+        $this->extend('db.event_manager', function($evm) use ($app) {
646 646
             $initSubscriber = new InitSubscriber($app);
647 647
             $evm->addEventSubscriber($initSubscriber);
648 648
 
@@ -759,7 +759,7 @@  discard block
 block discarded – undo
759 759
 
760 760
         $this->extend(
761 761
             'orm.em.config',
762
-            function (\Doctrine\ORM\Configuration $config, \Silex\Application $app) {
762
+            function(\Doctrine\ORM\Configuration $config, \Silex\Application $app) {
763 763
 
764 764
                 /** @var $chain \Doctrine\Common\Persistence\Mapping\Driver\MappingDriverChain */
765 765
                 $chain = $config->getMetadataDriverImpl();
@@ -781,7 +781,7 @@  discard block
 block discarded – undo
781 781
             }
782 782
         );
783 783
 
784
-        $this->extend('orm.em', function (\Doctrine\ORM\EntityManager $em, \Silex\Application $app) {
784
+        $this->extend('orm.em', function(\Doctrine\ORM\EntityManager $em, \Silex\Application $app) {
785 785
             // save
786 786
             $saveEventSubscriber = new \Eccube\Doctrine\EventSubscriber\SaveEventSubscriber($app);
787 787
             $em->getEventManager()->addEventSubscriber($saveEventSubscriber);
@@ -806,7 +806,7 @@  discard block
 block discarded – undo
806 806
             // second level cacheの設定.
807 807
             $this->extend(
808 808
                 'orm.em.config',
809
-                function (\Doctrine\ORM\Configuration $config, \Silex\Application $app) {
809
+                function(\Doctrine\ORM\Configuration $config, \Silex\Application $app) {
810 810
                     $config->setSecondLevelCacheEnabled();
811 811
                     $cacheConfig = $config->getSecondLevelCacheConfiguration();
812 812
                     $regionConfig = $cacheConfig->getRegionsConfiguration();
@@ -895,31 +895,31 @@  discard block
 block discarded – undo
895 895
             array('^/mypage', 'ROLE_USER', $channel),
896 896
         );
897 897
 
898
-        $this['eccube.password_encoder'] = function ($app) {
898
+        $this['eccube.password_encoder'] = function($app) {
899 899
             return new \Eccube\Security\Core\Encoder\PasswordEncoder($app['config']);
900 900
         };
901
-        $this['security.encoder_factory'] = function ($app) {
901
+        $this['security.encoder_factory'] = function($app) {
902 902
             return new \Symfony\Component\Security\Core\Encoder\EncoderFactory(array(
903 903
                 'Eccube\Entity\Customer' => $app['eccube.password_encoder'],
904 904
                 'Eccube\Entity\Member' => $app['eccube.password_encoder'],
905 905
             ));
906 906
         };
907
-        $this['eccube.event_listner.security'] = function ($app) {
907
+        $this['eccube.event_listner.security'] = function($app) {
908 908
             return new \Eccube\EventListener\SecurityEventListener($app['orm.em']);
909 909
         };
910 910
 
911 911
         // Voterの設定
912
-        $this['authority_voter'] = function ($app) {
912
+        $this['authority_voter'] = function($app) {
913 913
             return new \Eccube\Security\Voter\AuthorityVoter($app);
914 914
         };
915 915
 
916
-        $this->extend('security.voters', function ($voters, \Silex\Application $app) {
916
+        $this->extend('security.voters', function($voters, \Silex\Application $app) {
917 917
             $voters[] = $app['authority_voter'];
918 918
 
919 919
             return $voters;
920 920
         });
921 921
 
922
-        $this['security.access_manager'] = function ($app) {
922
+        $this['security.access_manager'] = function($app) {
923 923
             return new \Symfony\Component\Security\Core\Authorization\AccessDecisionManager($app['security.voters'], 'unanimous');
924 924
         };
925 925
 
@@ -933,7 +933,7 @@  discard block
 block discarded – undo
933 933
     {
934 934
         $config = $this['config'];
935 935
         if (isset($config['trusted_proxies_connection_only']) && !empty($config['trusted_proxies_connection_only'])) {
936
-            $this->on(KernelEvents::REQUEST, function (GetResponseEvent $event) use ($config) {
936
+            $this->on(KernelEvents::REQUEST, function(GetResponseEvent $event) use ($config) {
937 937
                 // サブリクエストのREMOTE_ADDRも動的に設定を行う必要があるため、KernelEvents::REQUESTを使用する
938 938
                 Request::setTrustedProxies(array_merge(array($event->getRequest()->server->get('REMOTE_ADDR')), $config['trusted_proxies']));
939 939
             }, self::EARLY_EVENT);
@@ -950,7 +950,7 @@  discard block
 block discarded – undo
950 950
         $this->register(new ServiceProvider\EccubePluginServiceProvider());
951 951
 
952 952
         // TODO Acme\ServiceProvider の初期化はここで OK?
953
-        if (array_key_exists('service',$this['config'])) {
953
+        if (array_key_exists('service', $this['config'])) {
954 954
             foreach ($this['config']['service'] as $service) {
955 955
                 $this->register(new $service);
956 956
             }
@@ -1092,7 +1092,7 @@  discard block
 block discarded – undo
1092 1092
         $app = $this;
1093 1093
 
1094 1094
         // Response Event(http cache対応、event実行は一番遅く設定)
1095
-        $this->on(\Symfony\Component\HttpKernel\KernelEvents::RESPONSE, function (\Symfony\Component\HttpKernel\Event\FilterResponseEvent $event) use ($app) {
1095
+        $this->on(\Symfony\Component\HttpKernel\KernelEvents::RESPONSE, function(\Symfony\Component\HttpKernel\Event\FilterResponseEvent $event) use ($app) {
1096 1096
 
1097 1097
             if (!$event->isMasterRequest()) {
1098 1098
                 return;
Please login to merge, or discard this patch.
src/Eccube/ServiceProvider/EccubePluginServiceProvider.php 1 patch
Spacing   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@  discard block
 block discarded – undo
26 26
     public function register(Container $app)
27 27
     {
28 28
         // EventDispatcher
29
-        $app['eccube.event.dispatcher'] = function () use ($app) {
29
+        $app['eccube.event.dispatcher'] = function() use ($app) {
30 30
             return $app['dispatcher'];
31 31
         };
32 32
 
@@ -35,7 +35,7 @@  discard block
 block discarded – undo
35 35
 
36 36
         $enabledPlugins = $app['orm.em']->getRepository('Eccube\Entity\Plugin')->findAllEnabled();
37 37
 
38
-        $app['eccube.routers.plugin'] = function ($app) use ($enabledPlugins) {
38
+        $app['eccube.routers.plugin'] = function($app) use ($enabledPlugins) {
39 39
             $pluginDirs = array_map(function($plugin) use ($app) {
40 40
                 return $app['config']['root_dir'].'/app/Plugin/'.$plugin->getCode();
41 41
             }, $enabledPlugins);
@@ -62,7 +62,7 @@  discard block
 block discarded – undo
62 62
             $config = $pluginConfig['config'];
63 63
 
64 64
             if (isset($config['const'])) {
65
-                $app->extend('config', function ($eccubeConfig) use ($config) {
65
+                $app->extend('config', function($eccubeConfig) use ($config) {
66 66
                     $eccubeConfig[$config['code']] = array(
67 67
                         'const' => $config['const'],
68 68
                     );
@@ -84,7 +84,7 @@  discard block
 block discarded – undo
84 84
     public function initPluginEventDispatcher(Application $app)
85 85
     {
86 86
         // hook point
87
-        $app->on(KernelEvents::REQUEST, function (GetResponseEvent $event) use ($app) {
87
+        $app->on(KernelEvents::REQUEST, function(GetResponseEvent $event) use ($app) {
88 88
             if (!$event->isMasterRequest()) {
89 89
                 return;
90 90
             }
@@ -92,7 +92,7 @@  discard block
 block discarded – undo
92 92
             $app['eccube.event.dispatcher']->dispatch($hookpoint, $event);
93 93
         }, Application::EARLY_EVENT);
94 94
 
95
-        $app->on(KernelEvents::REQUEST, function (GetResponseEvent $event) use ($app) {
95
+        $app->on(KernelEvents::REQUEST, function(GetResponseEvent $event) use ($app) {
96 96
             if (!$event->isMasterRequest()) {
97 97
                 return;
98 98
             }
@@ -101,7 +101,7 @@  discard block
 block discarded – undo
101 101
             $app['eccube.event.dispatcher']->dispatch($hookpoint, $event);
102 102
         });
103 103
 
104
-        $app->on(KernelEvents::RESPONSE, function (FilterResponseEvent $event) use ($app) {
104
+        $app->on(KernelEvents::RESPONSE, function(FilterResponseEvent $event) use ($app) {
105 105
             if (!$event->isMasterRequest()) {
106 106
                 return;
107 107
             }
@@ -110,7 +110,7 @@  discard block
 block discarded – undo
110 110
             $app['eccube.event.dispatcher']->dispatch($hookpoint, $event);
111 111
         });
112 112
 
113
-        $app->on(KernelEvents::RESPONSE, function (FilterResponseEvent $event) use ($app) {
113
+        $app->on(KernelEvents::RESPONSE, function(FilterResponseEvent $event) use ($app) {
114 114
             if (!$event->isMasterRequest()) {
115 115
                 return;
116 116
             }
@@ -118,13 +118,13 @@  discard block
 block discarded – undo
118 118
             $app['eccube.event.dispatcher']->dispatch($hookpoint, $event);
119 119
         }, Application::LATE_EVENT);
120 120
 
121
-        $app->on(KernelEvents::TERMINATE, function (PostResponseEvent $event) use ($app) {
121
+        $app->on(KernelEvents::TERMINATE, function(PostResponseEvent $event) use ($app) {
122 122
             $route = $event->getRequest()->attributes->get('_route');
123 123
             $hookpoint = "eccube.event.controller.$route.finish";
124 124
             $app['eccube.event.dispatcher']->dispatch($hookpoint, $event);
125 125
         });
126 126
 
127
-        $app->on(\Symfony\Component\HttpKernel\KernelEvents::RESPONSE, function (\Symfony\Component\HttpKernel\Event\FilterResponseEvent $event) use ($app) {
127
+        $app->on(\Symfony\Component\HttpKernel\KernelEvents::RESPONSE, function(\Symfony\Component\HttpKernel\Event\FilterResponseEvent $event) use ($app) {
128 128
             if (!$event->isMasterRequest()) {
129 129
                 return;
130 130
             }
@@ -133,7 +133,7 @@  discard block
 block discarded – undo
133 133
         });
134 134
 
135 135
         // Request Event
136
-        $app->on(\Symfony\Component\HttpKernel\KernelEvents::REQUEST, function (\Symfony\Component\HttpKernel\Event\GetResponseEvent $event) use ($app) {
136
+        $app->on(\Symfony\Component\HttpKernel\KernelEvents::REQUEST, function(\Symfony\Component\HttpKernel\Event\GetResponseEvent $event) use ($app) {
137 137
 
138 138
             if (!$event->isMasterRequest()) {
139 139
                 return;
@@ -164,7 +164,7 @@  discard block
 block discarded – undo
164 164
         }, 30); // Routing(32)が解決し, 認証判定(8)が実行される前のタイミング.
165 165
 
166 166
         // Controller Event
167
-        $app->on(\Symfony\Component\HttpKernel\KernelEvents::CONTROLLER, function (\Symfony\Component\HttpKernel\Event\FilterControllerEvent $event) use ($app) {
167
+        $app->on(\Symfony\Component\HttpKernel\KernelEvents::CONTROLLER, function(\Symfony\Component\HttpKernel\Event\FilterControllerEvent $event) use ($app) {
168 168
 
169 169
             if (!$event->isMasterRequest()) {
170 170
                 return;
@@ -193,7 +193,7 @@  discard block
 block discarded – undo
193 193
         });
194 194
 
195 195
         // Response Event
196
-        $app->on(\Symfony\Component\HttpKernel\KernelEvents::RESPONSE, function (\Symfony\Component\HttpKernel\Event\FilterResponseEvent $event) use ($app) {
196
+        $app->on(\Symfony\Component\HttpKernel\KernelEvents::RESPONSE, function(\Symfony\Component\HttpKernel\Event\FilterResponseEvent $event) use ($app) {
197 197
             if (!$event->isMasterRequest()) {
198 198
                 return;
199 199
             }
@@ -222,7 +222,7 @@  discard block
 block discarded – undo
222 222
         });
223 223
 
224 224
         // Exception Event
225
-        $app->on(\Symfony\Component\HttpKernel\KernelEvents::EXCEPTION, function (\Symfony\Component\HttpKernel\Event\GetResponseForExceptionEvent $event) use ($app) {
225
+        $app->on(\Symfony\Component\HttpKernel\KernelEvents::EXCEPTION, function(\Symfony\Component\HttpKernel\Event\GetResponseForExceptionEvent $event) use ($app) {
226 226
 
227 227
             if (!$event->isMasterRequest()) {
228 228
                 return;
@@ -252,7 +252,7 @@  discard block
 block discarded – undo
252 252
         });
253 253
 
254 254
         // Terminate Event
255
-        $app->on(\Symfony\Component\HttpKernel\KernelEvents::TERMINATE, function (\Symfony\Component\HttpKernel\Event\PostResponseEvent $event) use ($app) {
255
+        $app->on(\Symfony\Component\HttpKernel\KernelEvents::TERMINATE, function(\Symfony\Component\HttpKernel\Event\PostResponseEvent $event) use ($app) {
256 256
 
257 257
             $route = $event->getRequest()->attributes->get('_route');
258 258
 
Please login to merge, or discard this patch.
src/Eccube/Controller/Admin/Store/OwnerStoreController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -128,7 +128,7 @@
 block discarded – undo
128 128
                         $i++;
129 129
                     }
130 130
                 } else {
131
-                    $message = $data['error_code'] . ' : ' . $data['error_message'];
131
+                    $message = $data['error_code'].' : '.$data['error_message'];
132 132
                 }
133 133
             } else {
134 134
                 $success = 0;
Please login to merge, or discard this patch.
src/Eccube/Service/SchemaService.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -44,7 +44,7 @@
 block discarded – undo
44 44
 
45 45
     public function updateSchema($generatedFiles, $proxiesDirectory)
46 46
     {
47
-        $outputDir = sys_get_temp_dir() . '/proxy_' . Str::random(12);
47
+        $outputDir = sys_get_temp_dir().'/proxy_'.Str::random(12);
48 48
         mkdir($outputDir);
49 49
 
50 50
         try {
Please login to merge, or discard this patch.
src/Eccube/Service/PluginService.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -97,7 +97,7 @@  discard block
 block discarded – undo
97 97
 
98 98
         // Proxyのクラスをロードせずにスキーマを更新するために、
99 99
         // インストール時には一時的なディレクトリにProxyを生成する
100
-        $tmpProxyOutputDir = sys_get_temp_dir() . '/proxy_' . Str::random(12);
100
+        $tmpProxyOutputDir = sys_get_temp_dir().'/proxy_'.Str::random(12);
101 101
         @mkdir($tmpProxyOutputDir);
102 102
 
103 103
         try {
@@ -189,7 +189,7 @@  discard block
 block discarded – undo
189 189
             if (!empty($config_cache)) {
190 190
                 $meta = $config_cache;
191 191
             } else {
192
-                $meta = $this->readYml($dir . '/config.yml');
192
+                $meta = $this->readYml($dir.'/config.yml');
193 193
             }
194 194
         } catch (\Symfony\Component\Yaml\Exception\ParseException $e) {
195 195
             throw new PluginException($e->getMessage(), $e->getCode(), $e);
Please login to merge, or discard this patch.
src/Eccube/DI/DIServiceProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@
 block discarded – undo
12 12
 {
13 13
     public function register(Container $app)
14 14
     {
15
-        $app['eccube.di'] = function (Container $app) {
15
+        $app['eccube.di'] = function(Container $app) {
16 16
             $di = new DependencyBuilder(
17 17
                 $app['eccube.di.generator.dir'],
18 18
                 $app['eccube.di.generator.class'],
Please login to merge, or discard this patch.
src/Eccube/Resource/config/path.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,8 +1,8 @@
 block discarded – undo
1 1
 <?php return [
2 2
   'root_dir' => '%ROOT_DIR%',
3 3
   'root_urlpath' => env('ECCUBE_ROOT_URLPATH', null),
4
-  'template_code' => env('ECCUBE_TEMPLATE_CODE','default'),
5
-  'admin_route' => env('ECCUBE_ADMIN_ROUTE','admin'),
4
+  'template_code' => env('ECCUBE_TEMPLATE_CODE', 'default'),
5
+  'admin_route' => env('ECCUBE_ADMIN_ROUTE', 'admin'),
6 6
   'user_data_route' => env('ECCUBE_USER_DATA_ROUTE', 'user_data'),
7 7
   'public_path' => env('ECCUBE_ROOT_URLPATH', null).'/html',
8 8
   'public_path_realdir' => '%ROOT_DIR%/html',
Please login to merge, or discard this patch.
src/Eccube/Doctrine/Common/CsvDataFixtures/CsvFixture.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@
 block discarded – undo
34 34
         }
35 35
 
36 36
         // CSV Reader に設定
37
-        $this->file->setFlags(\SplFileObject::READ_CSV | \SplFileObject::READ_AHEAD | \SplFileObject::SKIP_EMPTY |\SplFileObject::DROP_NEW_LINE);
37
+        $this->file->setFlags(\SplFileObject::READ_CSV|\SplFileObject::READ_AHEAD|\SplFileObject::SKIP_EMPTY|\SplFileObject::DROP_NEW_LINE);
38 38
 
39 39
         // ヘッダ行を取得
40 40
         $headers = $this->file->current();
Please login to merge, or discard this patch.