Completed
Pull Request — experimental/sf (#3157)
by Kentaro
151:58 queued 143:16
created
src/Eccube/Twig/Extension/RepositoryExtension.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@
 block discarded – undo
32 32
     public function getFunctions()
33 33
     {
34 34
         return [
35
-            new TwigFunction('repository', function ($entity) {
35
+            new TwigFunction('repository', function($entity) {
36 36
                 $repository = $this->em->getRepository($entity);
37 37
 
38 38
                 return $repository;
Please login to merge, or discard this patch.
src/Eccube/ServiceProvider/PaymentServiceProvider.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@  discard block
 block discarded – undo
20 20
 {
21 21
     public function register(Container $app)
22 22
     {
23
-        $app['payment.method'] = $app->protect(function ($clazz, $form) use ($app) {
23
+        $app['payment.method'] = $app->protect(function($clazz, $form) use ($app) {
24 24
             $PaymentMethod = new $clazz();
25 25
             $PaymentMethod->setApplication($app);
26 26
             $PaymentMethod->setFormType($form);
@@ -28,7 +28,7 @@  discard block
 block discarded – undo
28 28
             return $PaymentMethod;
29 29
         });
30 30
 
31
-        $app['payment.method.request'] = $app->protect(function ($clazz, $form, $request) use ($app) {
31
+        $app['payment.method.request'] = $app->protect(function($clazz, $form, $request) use ($app) {
32 32
             $PaymentMethod = new $clazz();
33 33
             $PaymentMethod->setApplication($app);
34 34
             $PaymentMethod->setFormType($form);
@@ -37,7 +37,7 @@  discard block
 block discarded – undo
37 37
             return $PaymentMethod;
38 38
         });
39 39
 
40
-        $app['eccube.service.payment'] = $app->protect(function ($clazz) use ($app) {
40
+        $app['eccube.service.payment'] = $app->protect(function($clazz) use ($app) {
41 41
             $Service = new $clazz($app['request_stack']);
42 42
 
43 43
             return $Service;
Please login to merge, or discard this patch.
src/Eccube/ServiceProvider/EccubeServiceProvider.php 1 patch
Spacing   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -23,11 +23,11 @@  discard block
 block discarded – undo
23 23
      */
24 24
     public function register(Application $app)
25 25
     {
26
-        $app['orm.em'] = $app->share(function () use ($app) {
26
+        $app['orm.em'] = $app->share(function() use ($app) {
27 27
             return $app->getParentContainer()->get('doctrine')->getManager();
28 28
         });
29 29
 
30
-        $app['config'] = $app->share(function () use ($app) {
30
+        $app['config'] = $app->share(function() use ($app) {
31 31
             if ($app->getParentContainer()->has(EccubeConfig::class)) {
32 32
                 return $app->getParentContainer()->get(EccubeConfig::class);
33 33
             }
@@ -35,41 +35,41 @@  discard block
 block discarded – undo
35 35
             return [];
36 36
         });
37 37
 
38
-        $app['monolog.logger'] = $app->share(function () use ($app) {
38
+        $app['monolog.logger'] = $app->share(function() use ($app) {
39 39
             return $app->getParentContainer()->get('logger');
40 40
         });
41
-        $app['monolog'] = $app->share(function () use ($app) {
41
+        $app['monolog'] = $app->share(function() use ($app) {
42 42
             return $app['monolog.logger'];
43 43
         });
44
-        $app['eccube.logger'] = $app->share(function () use ($app) {
44
+        $app['eccube.logger'] = $app->share(function() use ($app) {
45 45
             return $app->getParentContainer()->get('eccube.logger');
46 46
         });
47 47
 
48
-        $app['session'] = $app->share(function () use ($app) {
48
+        $app['session'] = $app->share(function() use ($app) {
49 49
             return $app->getParentContainer()->get('session');
50 50
         });
51 51
 
52
-        $app['form.factory'] = $app->share(function () use ($app) {
52
+        $app['form.factory'] = $app->share(function() use ($app) {
53 53
             return $app->getParentContainer()->get('form.factory');
54 54
         });
55 55
 
56
-        $app['security'] = $app->share(function () use ($app) {
56
+        $app['security'] = $app->share(function() use ($app) {
57 57
             return $app->getParentContainer()->get('security.token_storage');
58 58
         });
59 59
 
60
-        $app['user'] = $app->share(function () use ($app) {
60
+        $app['user'] = $app->share(function() use ($app) {
61 61
             return $app['security']->getToken()->getUser();
62 62
         });
63 63
 
64
-        $app['dispatcher'] = $app->share(function () use ($app) {
64
+        $app['dispatcher'] = $app->share(function() use ($app) {
65 65
             return $app->getParentContainer()->get('event_dispatcher');
66 66
         });
67 67
 
68
-        $app['translator'] = $app->share(function () use ($app) {
68
+        $app['translator'] = $app->share(function() use ($app) {
69 69
             return $app->getParentContainer()->get('translator');
70 70
         });
71 71
 
72
-        $app['eccube.event.dispatcher'] = $app->share(function () use ($app) {
72
+        $app['eccube.event.dispatcher'] = $app->share(function() use ($app) {
73 73
             return $app['dispatcher'];
74 74
         });
75 75
     }
Please login to merge, or discard this patch.
src/Eccube/ServiceProvider/EccubePluginServiceProvider.php 1 patch
Spacing   +15 added lines, -15 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@  discard block
 block discarded – undo
33 33
     public function register(Container $app)
34 34
     {
35 35
         // EventDispatcher
36
-        $app['eccube.event.dispatcher'] = function () use ($app) {
36
+        $app['eccube.event.dispatcher'] = function() use ($app) {
37 37
             return $app['dispatcher'];
38 38
         };
39 39
 
@@ -42,8 +42,8 @@  discard block
 block discarded – undo
42 42
 
43 43
         $enabledPlugins = $app['orm.em']->getRepository('Eccube\Entity\Plugin')->findAllEnabled();
44 44
 
45
-        $app['eccube.routers.plugin'] = function ($app) use ($enabledPlugins) {
46
-            $pluginDirs = array_map(function ($plugin) use ($app) {
45
+        $app['eccube.routers.plugin'] = function($app) use ($enabledPlugins) {
46
+            $pluginDirs = array_map(function($plugin) use ($app) {
47 47
                 return $app['config']['root_dir'].'/app/Plugin/'.$plugin->getCode();
48 48
             }, $enabledPlugins);
49 49
 
@@ -69,7 +69,7 @@  discard block
 block discarded – undo
69 69
             $config = $pluginConfig['config'];
70 70
 
71 71
             if (isset($config['const'])) {
72
-                $app->extend('config', function ($eccubeConfig) use ($config) {
72
+                $app->extend('config', function($eccubeConfig) use ($config) {
73 73
                     $eccubeConfig[$config['code']] = [
74 74
                         'const' => $config['const'],
75 75
                     ];
@@ -92,7 +92,7 @@  discard block
 block discarded – undo
92 92
     public function initPluginEventDispatcher(Application $app)
93 93
     {
94 94
         // hook point
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
             }
@@ -100,7 +100,7 @@  discard block
 block discarded – undo
100 100
             $app['eccube.event.dispatcher']->dispatch($hookpoint, $event);
101 101
         }, Application::EARLY_EVENT);
102 102
 
103
-        $app->on(KernelEvents::REQUEST, function (GetResponseEvent $event) use ($app) {
103
+        $app->on(KernelEvents::REQUEST, function(GetResponseEvent $event) use ($app) {
104 104
             if (!$event->isMasterRequest()) {
105 105
                 return;
106 106
             }
@@ -109,7 +109,7 @@  discard block
 block discarded – undo
109 109
             $app['eccube.event.dispatcher']->dispatch($hookpoint, $event);
110 110
         });
111 111
 
112
-        $app->on(KernelEvents::RESPONSE, function (FilterResponseEvent $event) use ($app) {
112
+        $app->on(KernelEvents::RESPONSE, function(FilterResponseEvent $event) use ($app) {
113 113
             if (!$event->isMasterRequest()) {
114 114
                 return;
115 115
             }
@@ -118,7 +118,7 @@  discard block
 block discarded – undo
118 118
             $app['eccube.event.dispatcher']->dispatch($hookpoint, $event);
119 119
         });
120 120
 
121
-        $app->on(KernelEvents::RESPONSE, function (FilterResponseEvent $event) use ($app) {
121
+        $app->on(KernelEvents::RESPONSE, function(FilterResponseEvent $event) use ($app) {
122 122
             if (!$event->isMasterRequest()) {
123 123
                 return;
124 124
             }
@@ -126,13 +126,13 @@  discard block
 block discarded – undo
126 126
             $app['eccube.event.dispatcher']->dispatch($hookpoint, $event);
127 127
         }, Application::LATE_EVENT);
128 128
 
129
-        $app->on(KernelEvents::TERMINATE, function (PostResponseEvent $event) use ($app) {
129
+        $app->on(KernelEvents::TERMINATE, function(PostResponseEvent $event) use ($app) {
130 130
             $route = $event->getRequest()->attributes->get('_route');
131 131
             $hookpoint = "eccube.event.controller.$route.finish";
132 132
             $app['eccube.event.dispatcher']->dispatch($hookpoint, $event);
133 133
         });
134 134
 
135
-        $app->on(\Symfony\Component\HttpKernel\KernelEvents::RESPONSE, function (\Symfony\Component\HttpKernel\Event\FilterResponseEvent $event) use ($app) {
135
+        $app->on(\Symfony\Component\HttpKernel\KernelEvents::RESPONSE, function(\Symfony\Component\HttpKernel\Event\FilterResponseEvent $event) use ($app) {
136 136
             if (!$event->isMasterRequest()) {
137 137
                 return;
138 138
             }
@@ -141,7 +141,7 @@  discard block
 block discarded – undo
141 141
         });
142 142
 
143 143
         // Request Event
144
-        $app->on(\Symfony\Component\HttpKernel\KernelEvents::REQUEST, function (\Symfony\Component\HttpKernel\Event\GetResponseEvent $event) use ($app) {
144
+        $app->on(\Symfony\Component\HttpKernel\KernelEvents::REQUEST, function(\Symfony\Component\HttpKernel\Event\GetResponseEvent $event) use ($app) {
145 145
             if (!$event->isMasterRequest()) {
146 146
                 return;
147 147
             }
@@ -170,7 +170,7 @@  discard block
 block discarded – undo
170 170
         }, 30); // Routing(32)が解決し, 認証判定(8)が実行される前のタイミング.
171 171
 
172 172
         // Controller Event
173
-        $app->on(\Symfony\Component\HttpKernel\KernelEvents::CONTROLLER, function (\Symfony\Component\HttpKernel\Event\FilterControllerEvent $event) use ($app) {
173
+        $app->on(\Symfony\Component\HttpKernel\KernelEvents::CONTROLLER, function(\Symfony\Component\HttpKernel\Event\FilterControllerEvent $event) use ($app) {
174 174
             if (!$event->isMasterRequest()) {
175 175
                 return;
176 176
             }
@@ -198,7 +198,7 @@  discard block
 block discarded – undo
198 198
         });
199 199
 
200 200
         // Response Event
201
-        $app->on(\Symfony\Component\HttpKernel\KernelEvents::RESPONSE, function (\Symfony\Component\HttpKernel\Event\FilterResponseEvent $event) use ($app) {
201
+        $app->on(\Symfony\Component\HttpKernel\KernelEvents::RESPONSE, function(\Symfony\Component\HttpKernel\Event\FilterResponseEvent $event) use ($app) {
202 202
             if (!$event->isMasterRequest()) {
203 203
                 return;
204 204
             }
@@ -227,7 +227,7 @@  discard block
 block discarded – undo
227 227
         });
228 228
 
229 229
         // Exception Event
230
-        $app->on(\Symfony\Component\HttpKernel\KernelEvents::EXCEPTION, function (\Symfony\Component\HttpKernel\Event\GetResponseForExceptionEvent $event) use ($app) {
230
+        $app->on(\Symfony\Component\HttpKernel\KernelEvents::EXCEPTION, function(\Symfony\Component\HttpKernel\Event\GetResponseForExceptionEvent $event) use ($app) {
231 231
             if (!$event->isMasterRequest()) {
232 232
                 return;
233 233
             }
@@ -256,7 +256,7 @@  discard block
 block discarded – undo
256 256
         });
257 257
 
258 258
         // Terminate Event
259
-        $app->on(\Symfony\Component\HttpKernel\KernelEvents::TERMINATE, function (\Symfony\Component\HttpKernel\Event\PostResponseEvent $event) use ($app) {
259
+        $app->on(\Symfony\Component\HttpKernel\KernelEvents::TERMINATE, function(\Symfony\Component\HttpKernel\Event\PostResponseEvent $event) use ($app) {
260 260
             $route = $event->getRequest()->attributes->get('_route');
261 261
 
262 262
             if (is_null($route)) {
Please login to merge, or discard this patch.
codeception/acceptance/EA08SysteminfoCest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -374,7 +374,7 @@
 block discarded – undo
374 374
 
375 375
         $findPlugins = Fixtures::get('findPlugins');
376 376
         $Plugins = $findPlugins();
377
-        if (is_array($Plugins) && count($Plugins) > 0 ) {
377
+        if (is_array($Plugins) && count($Plugins) > 0) {
378 378
             $I->getScenario()->skip('プラグインのアンインストールが必要なため、テストをスキップします');
379 379
         }
380 380
 
Please login to merge, or discard this patch.
codeception/acceptance/EA01TopCest.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
         $config = Fixtures::get('config');
46 46
         $findOrders = Fixtures::get('findOrders');
47
-        $NewOrders = array_filter($findOrders(), function ($Order) use ($config) {
47
+        $NewOrders = array_filter($findOrders(), function($Order) use ($config) {
48 48
             return $Order->getOrderStatus()->getId() == \Eccube\Entity\Master\OrderStatus::NEW;
49 49
         });
50 50
         $I->see(count($NewOrders), TopPage::$受付状況_新規受付数);
Please login to merge, or discard this patch.
codeception/acceptance/EF06OtherCest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -81,7 +81,7 @@
 block discarded – undo
81 81
         $createCustomer = Fixtures::get('createCustomer');
82 82
         $customer = $createCustomer();
83 83
         $I->resetEmails();
84
-        $I->submitForm('#form1',[
84
+        $I->submitForm('#form1', [
85 85
             'login_email' => $customer->getEmail()
86 86
         ]);
87 87
         $I->see('パスワード発行メールの送信 完了', 'div.ec-pageHeader h1');
Please login to merge, or discard this patch.
codeception/acceptance/EF03OrderCest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -461,11 +461,11 @@
 block discarded – undo
461 461
 
462 462
         // 名前を比較してお届け先が上下どちらに表示されるか判断
463 463
         $compared = strnatcmp($customer->getName01(), $nameSei);
464
-        if($compared === 0) {
464
+        if ($compared === 0) {
465 465
             $compared = strnatcmp($customer->getName02(), $nameMei);
466 466
         }
467 467
         // 上下それぞれで名前、商品個数を設定
468
-        if($compared < 0) {
468
+        if ($compared < 0) {
469 469
             $quantity1 = $shipping1_quantity;
470 470
             $quantity2 = $shipping2_quantity;
471 471
             $name1 = $customer->getName01();
Please login to merge, or discard this patch.
codeception/acceptance/EF04CustomerCest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -95,7 +95,7 @@  discard block
 block discarded – undo
95 95
 
96 96
         // 会員情報入力フォームに、会員情報を入力する
97 97
         // 「同意する」ボタンを押下する
98
-        $I->submitForm(['css' => '.ec-layoutRole__main form'],[
98
+        $I->submitForm(['css' => '.ec-layoutRole__main form'], [
99 99
             'entry[name][name01]' => '姓',
100 100
             'entry[name][name02]' => '名',
101 101
             'entry[kana][kana01]' => 'セイ',
@@ -128,7 +128,7 @@  discard block
 block discarded – undo
128 128
 
129 129
         // 会員情報入力フォームに、会員情報を入力する
130 130
         // 「同意する」ボタンを押下する
131
-        $I->submitForm(['css' => '.ec-layoutRole__main form'],[
131
+        $I->submitForm(['css' => '.ec-layoutRole__main form'], [
132 132
             'entry[name][name01]' => '',
133 133
             'entry[name][name02]' => '名',
134 134
             'entry[kana][kana01]' => 'セイ',
Please login to merge, or discard this patch.