Completed
Pull Request — experimental/3.1 (#1985)
by Kentaro
482:56 queued 476:00
created
src/Eccube/Routing/EccubeRouter.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -14,7 +14,7 @@
 block discarded – undo
14 14
 
15 15
     public function setRequireHttps($requireHttps)
16 16
     {
17
-        $this->requireHttps = (bool)$requireHttps;
17
+        $this->requireHttps = (bool) $requireHttps;
18 18
     }
19 19
 
20 20
     public function setAdminPrefix($adminPrefix)
Please login to merge, or discard this patch.
src/Eccube/ServiceProvider/DebugServiceProvider.php 2 patches
Unused Use Statements   -3 removed lines patch added patch discarded remove patch
@@ -24,18 +24,15 @@
 block discarded – undo
24 24
 
25 25
 namespace Eccube\ServiceProvider;
26 26
 
27
-use Eccube\Common\Constant;
28 27
 use Eccube\DataCollector\EccubeDataCollector;
29 28
 use Pimple\Container;
30 29
 use Pimple\ServiceProviderInterface;
31 30
 use Silex\Api\BootableProviderInterface;
32 31
 use Silex\Application;
33 32
 use Symfony\Bridge\Twig\Extension\DumpExtension;
34
-use Symfony\Component\EventDispatcher\EventDispatcherInterface;
35 33
 use Symfony\Component\HttpKernel\DataCollector\DumpDataCollector;
36 34
 use Symfony\Component\HttpKernel\EventListener\DumpListener;
37 35
 use Symfony\Component\VarDumper\Cloner\VarCloner;
38
-use Symfony\Component\VarDumper\Dumper\CliDumper;
39 36
 use Symfony\Component\VarDumper\Dumper\HtmlDumper;
40 37
 use Symfony\Component\VarDumper\VarDumper;
41 38
 
Please login to merge, or discard this patch.
Spacing   +13 added lines, -13 removed lines patch added patch discarded remove patch
@@ -72,7 +72,7 @@  discard block
 block discarded – undo
72 72
 {
73 73
     public function register(Container $app)
74 74
     {
75
-        $app['var_dumper.cloner'] = function ($app) {
75
+        $app['var_dumper.cloner'] = function($app) {
76 76
             $cloner = new VarCloner();
77 77
 
78 78
             if (isset($app['debug.max_items'])) {
@@ -86,37 +86,37 @@  discard block
 block discarded – undo
86 86
             return $cloner;
87 87
         };
88 88
 
89
-        $app->extend('data_collector.templates', function ($templates) {
89
+        $app->extend('data_collector.templates', function($templates) {
90 90
             return array_merge($templates, array(array('dump', '@Debug/Profiler/dump.html.twig')));
91 91
         });
92 92
 
93
-        $app['data_collector.dump'] = function ($app) {
93
+        $app['data_collector.dump'] = function($app) {
94 94
             return new DumpDataCollector($app['stopwatch'], $app['code.file_link_format'], null, null, new HtmlDumper());
95 95
         };
96 96
 
97
-        $app->extend('data_collectors', function ($collectors, $app) {
98
-            $collectors['dump'] = function ($app) {
97
+        $app->extend('data_collectors', function($collectors, $app) {
98
+            $collectors['dump'] = function($app) {
99 99
                 return $app['data_collector.dump'];
100 100
             };
101 101
 
102
-            $collectors['eccube'] = function ($app) {
102
+            $collectors['eccube'] = function($app) {
103 103
                 return new EccubeDataCollector($app);
104 104
             };
105 105
             return $collectors;
106 106
         });
107 107
 
108
-        $app->extend('data_collector.templates', function ($templates, $app) {
108
+        $app->extend('data_collector.templates', function($templates, $app) {
109 109
                 array_unshift($templates, ['eccube', '@EccubeProfiler/eccube.html.twig']);
110 110
                 return $templates;
111 111
             }
112 112
         );
113 113
 
114
-        $app->extend('twig.loader.filesystem', function ($filesystem, $app) {
114
+        $app->extend('twig.loader.filesystem', function($filesystem, $app) {
115 115
                 return $filesystem;
116 116
             }
117 117
         );
118 118
 
119
-        $app->extend('twig', function ($twig, $app) {
119
+        $app->extend('twig', function($twig, $app) {
120 120
             if (class_exists('\Symfony\Bridge\Twig\Extension\DumpExtension')) {
121 121
                 $twig->addExtension(new DumpExtension($app['var_dumper.cloner']));
122 122
             }
@@ -124,14 +124,14 @@  discard block
 block discarded – undo
124 124
             return $twig;
125 125
         });
126 126
 
127
-        $app->extend('twig.loader.filesystem', function ($loader, $app) {
127
+        $app->extend('twig.loader.filesystem', function($loader, $app) {
128 128
             $loader->addPath($app['debug.templates_path'], 'Debug');
129 129
             $loader->addPath(__DIR__.'/../Resource/template/toolbar', 'EccubeProfiler');
130 130
 
131 131
             return $loader;
132 132
         });
133 133
 
134
-        $app['debug.templates_path'] = function () {
134
+        $app['debug.templates_path'] = function() {
135 135
             $r = new \ReflectionClass('Symfony\Bundle\DebugBundle\DependencyInjection\Configuration');
136 136
 
137 137
             return dirname(dirname($r->getFileName())).'/Resources/views';
@@ -143,11 +143,11 @@  discard block
 block discarded – undo
143 143
         // This code is here to lazy load the dump stack. This default
144 144
         // configuration for CLI mode is overridden in HTTP mode on
145 145
         // 'kernel.request' event
146
-        VarDumper::setHandler(function ($var) use ($app) {
146
+        VarDumper::setHandler(function($var) use ($app) {
147 147
             $dumper = $app['data_collector.dump'];
148 148
             $cloner = $app['var_dumper.cloner'];
149 149
 
150
-            $handler = function ($var) use ($dumper, $cloner) {
150
+            $handler = function($var) use ($dumper, $cloner) {
151 151
                 $dumper->dump($cloner->cloneVar($var));
152 152
             };
153 153
 
Please login to merge, or discard this patch.