Completed
Branch support-coverage (9b57a3)
by Kentaro
16:23 queued 06:37
created
src/Eccube/ServiceProvider/EccubeServiceProvider.php 1 patch
Spacing   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -33,11 +33,11 @@  discard block
 block discarded – undo
33 33
      */
34 34
     public function register(Application $app)
35 35
     {
36
-        $app['orm.em'] = $app->share(function () use ($app) {
36
+        $app['orm.em'] = $app->share(function() use ($app) {
37 37
             return $app->getParentContainer()->get('doctrine')->getManager();
38 38
         });
39 39
 
40
-        $app['config'] = $app->share(function () use ($app) {
40
+        $app['config'] = $app->share(function() use ($app) {
41 41
             if ($app->getParentContainer()->has(EccubeConfig::class)) {
42 42
                 return $app->getParentContainer()->get(EccubeConfig::class);
43 43
             }
@@ -45,41 +45,41 @@  discard block
 block discarded – undo
45 45
             return [];
46 46
         });
47 47
 
48
-        $app['monolog.logger'] = $app->share(function () use ($app) {
48
+        $app['monolog.logger'] = $app->share(function() use ($app) {
49 49
             return $app->getParentContainer()->get('logger');
50 50
         });
51
-        $app['monolog'] = $app->share(function () use ($app) {
51
+        $app['monolog'] = $app->share(function() use ($app) {
52 52
             return $app['monolog.logger'];
53 53
         });
54
-        $app['eccube.logger'] = $app->share(function () use ($app) {
54
+        $app['eccube.logger'] = $app->share(function() use ($app) {
55 55
             return $app->getParentContainer()->get('eccube.logger');
56 56
         });
57 57
 
58
-        $app['session'] = $app->share(function () use ($app) {
58
+        $app['session'] = $app->share(function() use ($app) {
59 59
             return $app->getParentContainer()->get('session');
60 60
         });
61 61
 
62
-        $app['form.factory'] = $app->share(function () use ($app) {
62
+        $app['form.factory'] = $app->share(function() use ($app) {
63 63
             return $app->getParentContainer()->get('form.factory');
64 64
         });
65 65
 
66
-        $app['security'] = $app->share(function () use ($app) {
66
+        $app['security'] = $app->share(function() use ($app) {
67 67
             return $app->getParentContainer()->get('security.token_storage');
68 68
         });
69 69
 
70
-        $app['user'] = $app->share(function () use ($app) {
70
+        $app['user'] = $app->share(function() use ($app) {
71 71
             return $app['security']->getToken()->getUser();
72 72
         });
73 73
 
74
-        $app['dispatcher'] = $app->share(function () use ($app) {
74
+        $app['dispatcher'] = $app->share(function() use ($app) {
75 75
             return $app->getParentContainer()->get('event_dispatcher');
76 76
         });
77 77
 
78
-        $app['translator'] = $app->share(function () use ($app) {
78
+        $app['translator'] = $app->share(function() use ($app) {
79 79
             return $app->getParentContainer()->get('translator');
80 80
         });
81 81
 
82
-        $app['eccube.event.dispatcher'] = $app->share(function () use ($app) {
82
+        $app['eccube.event.dispatcher'] = $app->share(function() use ($app) {
83 83
             return $app['dispatcher'];
84 84
         });
85 85
     }
Please login to merge, or discard this patch.
src/Eccube/ServiceProvider/InstallServiceProvider.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -40,13 +40,13 @@
 block discarded – undo
40 40
      */
41 41
     public function register(Container $app)
42 42
     {
43
-        $app->extend('form.type.extensions', function ($extensions) use ($app) {
43
+        $app->extend('form.type.extensions', function($extensions) use ($app) {
44 44
             $extensions[] = new \Eccube\Form\Extension\HelpTypeExtension();
45 45
 
46 46
             return $extensions;
47 47
         });
48 48
 
49
-        $app->extend('form.types', function ($types) use ($app) {
49
+        $app->extend('form.types', function($types) use ($app) {
50 50
             $types[] = new \Eccube\Form\Type\Install\Step1Type($app);
51 51
             $types[] = new \Eccube\Form\Type\Install\Step3Type($app);
52 52
             $types[] = new \Eccube\Form\Type\Install\Step4Type($app);
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
@@ -9,7 +9,7 @@  discard block
 block discarded – undo
9 9
 {
10 10
     public function register(Container $app)
11 11
     {
12
-        $app['payment.method'] = $app->protect(function ($clazz, $form) use ($app) {
12
+        $app['payment.method'] = $app->protect(function($clazz, $form) use ($app) {
13 13
             $PaymentMethod = new $clazz();
14 14
             $PaymentMethod->setApplication($app);
15 15
             $PaymentMethod->setFormType($form);
@@ -17,7 +17,7 @@  discard block
 block discarded – undo
17 17
             return $PaymentMethod;
18 18
         });
19 19
 
20
-        $app['payment.method.request'] = $app->protect(function ($clazz, $form, $request) use ($app) {
20
+        $app['payment.method.request'] = $app->protect(function($clazz, $form, $request) use ($app) {
21 21
             $PaymentMethod = new $clazz();
22 22
             $PaymentMethod->setApplication($app);
23 23
             $PaymentMethod->setFormType($form);
@@ -26,7 +26,7 @@  discard block
 block discarded – undo
26 26
             return $PaymentMethod;
27 27
         });
28 28
 
29
-        $app['eccube.service.payment'] = $app->protect(function ($clazz) use ($app) {
29
+        $app['eccube.service.payment'] = $app->protect(function($clazz) use ($app) {
30 30
             $Service = new $clazz($app['request_stack']);
31 31
 
32 32
             return $Service;
Please login to merge, or discard this patch.