Failed Conditions
Push — master ( 1e5239...9c9d2b )
by chihiro
39:16
created
src/Eccube/ServiceProvider/EccubeServiceProvider.php 1 patch
Spacing   +59 added lines, -59 removed lines patch added patch discarded remove patch
@@ -41,28 +41,28 @@  discard block
 block discarded – undo
41 41
     public function register(BaseApplication $app)
42 42
     {
43 43
         // Service
44
-        $app['eccube.service.system'] = $app->share(function () use ($app) {
44
+        $app['eccube.service.system'] = $app->share(function() use ($app) {
45 45
             return new \Eccube\Service\SystemService($app);
46 46
         });
47
-        $app['view'] = $app->share(function () use ($app) {
47
+        $app['view'] = $app->share(function() use ($app) {
48 48
             return $app['twig'];
49 49
         });
50
-        $app['eccube.service.cart'] = $app->share(function () use ($app) {
50
+        $app['eccube.service.cart'] = $app->share(function() use ($app) {
51 51
             return new \Eccube\Service\CartService($app);
52 52
         });
53
-        $app['eccube.service.order'] = $app->share(function () use ($app) {
53
+        $app['eccube.service.order'] = $app->share(function() use ($app) {
54 54
             return new \Eccube\Service\OrderService($app);
55 55
         });
56
-        $app['eccube.service.tax_rule'] = $app->share(function () use ($app) {
56
+        $app['eccube.service.tax_rule'] = $app->share(function() use ($app) {
57 57
             return new \Eccube\Service\TaxRuleService($app['eccube.repository.tax_rule']);
58 58
         });
59
-        $app['eccube.service.plugin'] = $app->share(function () use ($app) {
59
+        $app['eccube.service.plugin'] = $app->share(function() use ($app) {
60 60
             return new \Eccube\Service\PluginService($app);
61 61
         });
62
-        $app['eccube.service.mail'] = $app->share(function () use ($app) {
62
+        $app['eccube.service.mail'] = $app->share(function() use ($app) {
63 63
             return new \Eccube\Service\MailService($app);
64 64
         });
65
-        $app['eccube.service.csv.export'] = $app->share(function () use ($app) {
65
+        $app['eccube.service.csv.export'] = $app->share(function() use ($app) {
66 66
             $csvService = new \Eccube\Service\CsvExportService();
67 67
             $csvService->setEntityManager($app['orm.em']);
68 68
             $csvService->setConfig($app['config']);
@@ -74,184 +74,184 @@  discard block
 block discarded – undo
74 74
 
75 75
             return $csvService;
76 76
         });
77
-        $app['eccube.service.shopping'] = $app->share(function () use ($app) {
77
+        $app['eccube.service.shopping'] = $app->share(function() use ($app) {
78 78
             return new \Eccube\Service\ShoppingService($app, $app['eccube.service.cart'], $app['eccube.service.order']);
79 79
         });
80 80
 
81 81
         // Repository
82
-        $app['eccube.repository.master.authority'] = $app->share(function () use ($app) {
82
+        $app['eccube.repository.master.authority'] = $app->share(function() use ($app) {
83 83
             return $app['orm.em']->getRepository('Eccube\Entity\Master\Authority');
84 84
         });
85
-        $app['eccube.repository.master.tag'] = $app->share(function () use ($app) {
85
+        $app['eccube.repository.master.tag'] = $app->share(function() use ($app) {
86 86
             return $app['orm.em']->getRepository('Eccube\Entity\Master\Tag');
87 87
         });
88
-        $app['eccube.repository.master.pref'] = $app->share(function () use ($app) {
88
+        $app['eccube.repository.master.pref'] = $app->share(function() use ($app) {
89 89
             return $app['orm.em']->getRepository('Eccube\Entity\Master\Pref');
90 90
         });
91
-        $app['eccube.repository.master.sex'] = $app->share(function () use ($app) {
91
+        $app['eccube.repository.master.sex'] = $app->share(function() use ($app) {
92 92
             return $app['orm.em']->getRepository('Eccube\Entity\Master\Sex');
93 93
         });
94
-        $app['eccube.repository.master.disp'] = $app->share(function () use ($app) {
94
+        $app['eccube.repository.master.disp'] = $app->share(function() use ($app) {
95 95
             return $app['orm.em']->getRepository('Eccube\Entity\Master\Disp');
96 96
         });
97
-        $app['eccube.repository.master.product_type'] = $app->share(function () use ($app) {
97
+        $app['eccube.repository.master.product_type'] = $app->share(function() use ($app) {
98 98
             return $app['orm.em']->getRepository('Eccube\Entity\Master\ProductType');
99 99
         });
100
-        $app['eccube.repository.master.page_max'] = $app->share(function () use ($app) {
100
+        $app['eccube.repository.master.page_max'] = $app->share(function() use ($app) {
101 101
             return $app['orm.em']->getRepository('Eccube\Entity\Master\PageMax');
102 102
         });
103
-        $app['eccube.repository.master.order_status'] = $app->share(function () use ($app) {
103
+        $app['eccube.repository.master.order_status'] = $app->share(function() use ($app) {
104 104
             return $app['orm.em']->getRepository('Eccube\Entity\Master\OrderStatus');
105 105
         });
106
-        $app['eccube.repository.master.device_type'] = $app->share(function () use ($app) {
106
+        $app['eccube.repository.master.device_type'] = $app->share(function() use ($app) {
107 107
             return $app['orm.em']->getRepository('Eccube\Entity\Master\DeviceType');
108 108
         });
109
-        $app['eccube.repository.master.csv_type'] = $app->share(function () use ($app) {
109
+        $app['eccube.repository.master.csv_type'] = $app->share(function() use ($app) {
110 110
             return $app['orm.em']->getRepository('Eccube\Entity\Master\CsvType');
111 111
         });
112 112
 
113
-        $app['eccube.repository.delivery'] = $app->share(function () use ($app) {
113
+        $app['eccube.repository.delivery'] = $app->share(function() use ($app) {
114 114
             return $app['orm.em']->getRepository('Eccube\Entity\Delivery');
115 115
         });
116
-        $app['eccube.repository.delivery_date'] = $app->share(function () use ($app) {
116
+        $app['eccube.repository.delivery_date'] = $app->share(function() use ($app) {
117 117
             return $app['orm.em']->getRepository('Eccube\Entity\DeliveryDate');
118 118
         });
119
-        $app['eccube.repository.delivery_fee'] = $app->share(function () use ($app) {
119
+        $app['eccube.repository.delivery_fee'] = $app->share(function() use ($app) {
120 120
             return $app['orm.em']->getRepository('Eccube\Entity\DeliveryFee');
121 121
         });
122
-        $app['eccube.repository.delivery_time'] = $app->share(function () use ($app) {
122
+        $app['eccube.repository.delivery_time'] = $app->share(function() use ($app) {
123 123
             return $app['orm.em']->getRepository('Eccube\Entity\DeliveryTime');
124 124
         });
125
-        $app['eccube.repository.payment'] = $app->share(function () use ($app) {
125
+        $app['eccube.repository.payment'] = $app->share(function() use ($app) {
126 126
             return $app['orm.em']->getRepository('Eccube\Entity\Payment');
127 127
         });
128
-        $app['eccube.repository.payment_option'] = $app->share(function () use ($app) {
128
+        $app['eccube.repository.payment_option'] = $app->share(function() use ($app) {
129 129
             return $app['orm.em']->getRepository('Eccube\Entity\PaymentOption');
130 130
         });
131
-        $app['eccube.repository.category'] = $app->share(function () use ($app) {
131
+        $app['eccube.repository.category'] = $app->share(function() use ($app) {
132 132
             $CategoryRepository = $app['orm.em']->getRepository('Eccube\Entity\Category');
133 133
             $CategoryRepository->setApplication($app);
134 134
 
135 135
             return $CategoryRepository;
136 136
         });
137
-        $app['eccube.repository.customer'] = $app->share(function () use ($app) {
137
+        $app['eccube.repository.customer'] = $app->share(function() use ($app) {
138 138
             return $app['orm.em']->getRepository('Eccube\Entity\Customer');
139 139
         });
140
-        $app['eccube.repository.news'] = $app->share(function () use ($app) {
140
+        $app['eccube.repository.news'] = $app->share(function() use ($app) {
141 141
             return $app['orm.em']->getRepository('Eccube\Entity\News');
142 142
         });
143
-        $app['eccube.repository.mail_history'] = $app->share(function () use ($app) {
143
+        $app['eccube.repository.mail_history'] = $app->share(function() use ($app) {
144 144
             return $app['orm.em']->getRepository('Eccube\Entity\MailHistory');
145 145
         });
146
-        $app['eccube.repository.member'] = $app->share(function () use ($app) {
146
+        $app['eccube.repository.member'] = $app->share(function() use ($app) {
147 147
             $memberRepository = $app['orm.em']->getRepository('Eccube\Entity\Member');
148 148
             $memberRepository->setEncoderFactorty($app['security.encoder_factory']);
149 149
             return $memberRepository;
150 150
         });
151
-        $app['eccube.repository.order'] = $app->share(function () use ($app) {
151
+        $app['eccube.repository.order'] = $app->share(function() use ($app) {
152 152
             return $app['orm.em']->getRepository('Eccube\Entity\Order');
153 153
         });
154
-        $app['eccube.repository.product'] = $app->share(function () use ($app) {
154
+        $app['eccube.repository.product'] = $app->share(function() use ($app) {
155 155
             $productRepository = $app['orm.em']->getRepository('Eccube\Entity\Product');
156 156
             $productRepository->setApplication($app);
157 157
 
158 158
             return $productRepository;
159 159
         });
160
-        $app['eccube.repository.product_image'] = $app->share(function () use ($app) {
160
+        $app['eccube.repository.product_image'] = $app->share(function() use ($app) {
161 161
             return $app['orm.em']->getRepository('Eccube\Entity\ProductImage');
162 162
         });
163
-        $app['eccube.repository.product_class'] = $app->share(function () use ($app) {
163
+        $app['eccube.repository.product_class'] = $app->share(function() use ($app) {
164 164
             return $app['orm.em']->getRepository('Eccube\Entity\ProductClass');
165 165
         });
166
-        $app['eccube.repository.product_stock'] = $app->share(function () use ($app) {
166
+        $app['eccube.repository.product_stock'] = $app->share(function() use ($app) {
167 167
             return $app['orm.em']->getRepository('Eccube\Entity\ProductStock');
168 168
         });
169
-        $app['eccube.repository.product_tag'] = $app->share(function () use ($app) {
169
+        $app['eccube.repository.product_tag'] = $app->share(function() use ($app) {
170 170
             return $app['orm.em']->getRepository('Eccube\Entity\ProductTag');
171 171
         });
172
-        $app['eccube.repository.class_name'] = $app->share(function () use ($app) {
172
+        $app['eccube.repository.class_name'] = $app->share(function() use ($app) {
173 173
             return $app['orm.em']->getRepository('Eccube\Entity\ClassName');
174 174
         });
175
-        $app['eccube.repository.class_category'] = $app->share(function () use ($app) {
175
+        $app['eccube.repository.class_category'] = $app->share(function() use ($app) {
176 176
             return $app['orm.em']->getRepository('Eccube\Entity\ClassCategory');
177 177
         });
178
-        $app['eccube.repository.customer_favorite_product'] = $app->share(function () use ($app) {
178
+        $app['eccube.repository.customer_favorite_product'] = $app->share(function() use ($app) {
179 179
             return $app['orm.em']->getRepository('Eccube\Entity\CustomerFavoriteProduct');
180 180
         });
181
-        $app['eccube.repository.base_info'] = $app->share(function () use ($app) {
181
+        $app['eccube.repository.base_info'] = $app->share(function() use ($app) {
182 182
             $BaseInfoRepository = $app['orm.em']->getRepository('Eccube\Entity\BaseInfo');
183 183
             $BaseInfoRepository->setApplication($app);
184 184
 
185 185
             return $BaseInfoRepository;
186 186
         });
187
-        $app['eccube.repository.tax_rule'] = $app->share(function () use ($app) {
187
+        $app['eccube.repository.tax_rule'] = $app->share(function() use ($app) {
188 188
             $taxRuleRepository = $app['orm.em']->getRepository('Eccube\Entity\TaxRule');
189 189
             $taxRuleRepository->setApplication($app);
190 190
 
191 191
             return $taxRuleRepository;
192 192
         });
193
-        $app['eccube.repository.page_layout'] = $app->share(function () use ($app) {
193
+        $app['eccube.repository.page_layout'] = $app->share(function() use ($app) {
194 194
             $pageLayoutRepository = $app['orm.em']->getRepository('Eccube\Entity\PageLayout');
195 195
             $pageLayoutRepository->setApplication($app);
196 196
 
197 197
             return $pageLayoutRepository;
198 198
         });
199
-        $app['eccube.repository.block'] = $app->share(function () use ($app) {
199
+        $app['eccube.repository.block'] = $app->share(function() use ($app) {
200 200
             $blockRepository = $app['orm.em']->getRepository('Eccube\Entity\Block');
201 201
             $blockRepository->setApplication($app);
202 202
 
203 203
             return $blockRepository;
204 204
         });
205
-        $app['eccube.repository.order'] = $app->share(function () use ($app) {
205
+        $app['eccube.repository.order'] = $app->share(function() use ($app) {
206 206
             $orderRepository = $app['orm.em']->getRepository('Eccube\Entity\Order');
207 207
             $orderRepository->setApplication($app);
208 208
 
209 209
             return $orderRepository;
210 210
         });
211
-        $app['eccube.repository.customer_address'] = $app->share(function () use ($app) {
211
+        $app['eccube.repository.customer_address'] = $app->share(function() use ($app) {
212 212
             return $app['orm.em']->getRepository('Eccube\Entity\CustomerAddress');
213 213
         });
214
-        $app['eccube.repository.shipping'] = $app->share(function () use ($app) {
214
+        $app['eccube.repository.shipping'] = $app->share(function() use ($app) {
215 215
             return $app['orm.em']->getRepository('Eccube\Entity\Shipping');
216 216
         });
217
-        $app['eccube.repository.customer_status'] = $app->share(function () use ($app) {
217
+        $app['eccube.repository.customer_status'] = $app->share(function() use ($app) {
218 218
             return $app['orm.em']->getRepository('Eccube\Entity\Master\CustomerStatus');
219 219
         });
220
-        $app['eccube.repository.order_status'] = $app->share(function () use ($app) {
220
+        $app['eccube.repository.order_status'] = $app->share(function() use ($app) {
221 221
             return $app['orm.em']->getRepository('Eccube\Entity\Master\OrderStatus');
222 222
         });
223
-        $app['eccube.repository.mail_template'] = $app->share(function () use ($app) {
223
+        $app['eccube.repository.mail_template'] = $app->share(function() use ($app) {
224 224
             return $app['orm.em']->getRepository('Eccube\Entity\MailTemplate');
225 225
         });
226
-        $app['eccube.repository.csv'] = $app->share(function () use ($app) {
226
+        $app['eccube.repository.csv'] = $app->share(function() use ($app) {
227 227
             return $app['orm.em']->getRepository('Eccube\Entity\Csv');
228 228
         });
229
-        $app['eccube.repository.template'] = $app->share(function () use ($app) {
229
+        $app['eccube.repository.template'] = $app->share(function() use ($app) {
230 230
             return $app['orm.em']->getRepository('Eccube\Entity\Template');
231 231
         });
232
-        $app['eccube.repository.authority_role'] = $app->share(function () use ($app) {
232
+        $app['eccube.repository.authority_role'] = $app->share(function() use ($app) {
233 233
             return $app['orm.em']->getRepository('Eccube\Entity\AuthorityRole');
234 234
         });
235 235
 
236
-        $app['paginator'] = $app->protect(function () {
236
+        $app['paginator'] = $app->protect(function() {
237 237
             $paginator = new \Knp\Component\Pager\Paginator();
238 238
             $paginator->subscribe(new \Eccube\EventListener\PaginatorListener());
239 239
 
240 240
             return $paginator;
241 241
         });
242 242
 
243
-        $app['eccube.repository.help'] = $app->share(function () use ($app) {
243
+        $app['eccube.repository.help'] = $app->share(function() use ($app) {
244 244
             return $app['orm.em']->getRepository('Eccube\Entity\Help');
245 245
         });
246
-        $app['eccube.repository.plugin'] = $app->share(function () use ($app) {
246
+        $app['eccube.repository.plugin'] = $app->share(function() use ($app) {
247 247
             return $app['orm.em']->getRepository('Eccube\Entity\Plugin');
248 248
         });
249
-        $app['eccube.repository.plugin_event_handler'] = $app->share(function () use ($app) {
249
+        $app['eccube.repository.plugin_event_handler'] = $app->share(function() use ($app) {
250 250
             return $app['orm.em']->getRepository('Eccube\Entity\PluginEventHandler');
251 251
         });
252 252
         // em
253 253
         if (isset($app['orm.em'])) {
254
-            $app['orm.em'] = $app->share($app->extend('orm.em', function (\Doctrine\ORM\EntityManager $em, \Silex\Application $app) {
254
+            $app['orm.em'] = $app->share($app->extend('orm.em', function(\Doctrine\ORM\EntityManager $em, \Silex\Application $app) {
255 255
                 // tax_rule
256 256
                 $taxRuleRepository = $em->getRepository('Eccube\Entity\TaxRule');
257 257
                 $taxRuleRepository->setApplication($app);
@@ -278,13 +278,13 @@  discard block
 block discarded – undo
278 278
         }
279 279
 
280 280
         // Form\Type
281
-        $app['form.type.extensions'] = $app->share($app->extend('form.type.extensions', function ($extensions) use ($app) {
281
+        $app['form.type.extensions'] = $app->share($app->extend('form.type.extensions', function($extensions) use ($app) {
282 282
             $extensions[] = new \Eccube\Form\Extension\HelpTypeExtension();
283 283
             $extensions[] = new \Eccube\Form\Extension\FreezeTypeExtension();
284 284
 
285 285
             return $extensions;
286 286
         }));
287
-        $app['form.types'] = $app->share($app->extend('form.types', function ($types) use ($app) {
287
+        $app['form.types'] = $app->share($app->extend('form.types', function($types) use ($app) {
288 288
             $types[] = new \Eccube\Form\Type\NameType($app['config']);
289 289
             $types[] = new \Eccube\Form\Type\KanaType($app['config']);
290 290
             $types[] = new \Eccube\Form\Type\TelType($app['config']);
Please login to merge, or discard this patch.
src/Eccube/ServiceProvider/DebugServiceProvider.php 1 patch
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -67,7 +67,7 @@  discard block
 block discarded – undo
67 67
 {
68 68
     public function register(Application $app)
69 69
     {
70
-        $app['var_dumper.cloner'] = $app->share(function ($app) {
70
+        $app['var_dumper.cloner'] = $app->share(function($app) {
71 71
             $cloner = new VarCloner();
72 72
 
73 73
             if (isset($app['debug.max_items'])) {
@@ -81,23 +81,23 @@  discard block
 block discarded – undo
81 81
             return $cloner;
82 82
         });
83 83
 
84
-        $app['data_collector.templates'] = $app->share($app->extend('data_collector.templates', function ($templates) {
84
+        $app['data_collector.templates'] = $app->share($app->extend('data_collector.templates', function($templates) {
85 85
             return array_merge($templates, array(array('dump', '@Debug/Profiler/dump.html.twig')));
86 86
         }));
87 87
 
88
-        $app['data_collector.dump'] = $app->share(function ($app) {
88
+        $app['data_collector.dump'] = $app->share(function($app) {
89 89
             return new DumpDataCollector($app['stopwatch'], $app['code.file_link_format'], null, null, new HtmlDumper());
90 90
         });
91 91
 
92
-        $app['data_collectors'] = $app->share($app->extend('data_collectors', function ($collectors, $app) {
93
-            $collectors['dump'] = $app->share(function ($app) {
92
+        $app['data_collectors'] = $app->share($app->extend('data_collectors', function($collectors, $app) {
93
+            $collectors['dump'] = $app->share(function($app) {
94 94
                 return $app['data_collector.dump'];
95 95
             });
96 96
 
97 97
             return $collectors;
98 98
         }));
99 99
 
100
-        $app['twig'] = $app->share($app->extend('twig', function ($twig, $app) {
100
+        $app['twig'] = $app->share($app->extend('twig', function($twig, $app) {
101 101
             if (class_exists('\Symfony\Bridge\Twig\Extension\DumpExtension')) {
102 102
                 $twig->addExtension(new DumpExtension($app['var_dumper.cloner']));
103 103
             }
@@ -105,13 +105,13 @@  discard block
 block discarded – undo
105 105
             return $twig;
106 106
         }));
107 107
 
108
-        $app['twig.loader.filesystem'] = $app->share($app->extend('twig.loader.filesystem', function ($loader, $app) {
108
+        $app['twig.loader.filesystem'] = $app->share($app->extend('twig.loader.filesystem', function($loader, $app) {
109 109
             $loader->addPath($app['debug.templates_path'], 'Debug');
110 110
 
111 111
             return $loader;
112 112
         }));
113 113
 
114
-        $app['debug.templates_path'] = function () {
114
+        $app['debug.templates_path'] = function() {
115 115
             $r = new \ReflectionClass('Symfony\Bundle\DebugBundle\DependencyInjection\Configuration');
116 116
 
117 117
             return dirname(dirname($r->getFileName())).'/Resources/views';
@@ -123,11 +123,11 @@  discard block
 block discarded – undo
123 123
         // This code is here to lazy load the dump stack. This default
124 124
         // configuration for CLI mode is overridden in HTTP mode on
125 125
         // 'kernel.request' event
126
-        VarDumper::setHandler(function ($var) use ($app) {
126
+        VarDumper::setHandler(function($var) use ($app) {
127 127
             $dumper = $app['data_collector.dump'];
128 128
             $cloner = $app['var_dumper.cloner'];
129 129
 
130
-            $handler = function ($var) use ($dumper, $cloner) {
130
+            $handler = function($var) use ($dumper, $cloner) {
131 131
                 $dumper->dump($cloner->cloneVar($var));
132 132
             };
133 133
 
Please login to merge, or discard this patch.
src/Eccube/Controller/Admin/Order/OrderController.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -247,7 +247,7 @@  discard block
 block discarded – undo
247 247
         $em->getConfiguration()->setSQLLogger(null);
248 248
 
249 249
         $response = new StreamedResponse();
250
-        $response->setCallback(function () use ($app, $request) {
250
+        $response->setCallback(function() use ($app, $request) {
251 251
 
252 252
             // CSV種別を元に初期化.
253 253
             $app['eccube.service.csv.export']->initCsvType(CsvType::CSV_TYPE_ORDER);
@@ -261,7 +261,7 @@  discard block
 block discarded – undo
261 261
 
262 262
             // データ行の出力.
263 263
             $app['eccube.service.csv.export']->setExportQueryBuilder($qb);
264
-            $app['eccube.service.csv.export']->exportData(function ($entity, $csvService) {
264
+            $app['eccube.service.csv.export']->exportData(function($entity, $csvService) {
265 265
 
266 266
                 $Csvs = $csvService->getCsvs();
267 267
 
@@ -291,9 +291,9 @@  discard block
 block discarded – undo
291 291
         });
292 292
 
293 293
         $now = new \DateTime();
294
-        $filename = 'order_' . $now->format('YmdHis') . '.csv';
294
+        $filename = 'order_'.$now->format('YmdHis').'.csv';
295 295
         $response->headers->set('Content-Type', 'application/octet-stream');
296
-        $response->headers->set('Content-Disposition', 'attachment; filename=' . $filename);
296
+        $response->headers->set('Content-Disposition', 'attachment; filename='.$filename);
297 297
         $response->send();
298 298
 
299 299
         log_info('受注CSV出力ファイル名', array($filename));
@@ -318,7 +318,7 @@  discard block
 block discarded – undo
318 318
         $em->getConfiguration()->setSQLLogger(null);
319 319
 
320 320
         $response = new StreamedResponse();
321
-        $response->setCallback(function () use ($app, $request) {
321
+        $response->setCallback(function() use ($app, $request) {
322 322
 
323 323
             // CSV種別を元に初期化.
324 324
             $app['eccube.service.csv.export']->initCsvType(CsvType::CSV_TYPE_SHIPPING);
@@ -332,7 +332,7 @@  discard block
 block discarded – undo
332 332
 
333 333
             // データ行の出力.
334 334
             $app['eccube.service.csv.export']->setExportQueryBuilder($qb);
335
-            $app['eccube.service.csv.export']->exportData(function ($entity, $csvService) {
335
+            $app['eccube.service.csv.export']->exportData(function($entity, $csvService) {
336 336
 
337 337
                 $Csvs = $csvService->getCsvs();
338 338
 
@@ -370,9 +370,9 @@  discard block
 block discarded – undo
370 370
         });
371 371
 
372 372
         $now = new \DateTime();
373
-        $filename = 'shipping_' . $now->format('YmdHis') . '.csv';
373
+        $filename = 'shipping_'.$now->format('YmdHis').'.csv';
374 374
         $response->headers->set('Content-Type', 'application/octet-stream');
375
-        $response->headers->set('Content-Disposition', 'attachment; filename=' . $filename);
375
+        $response->headers->set('Content-Disposition', 'attachment; filename='.$filename);
376 376
         $response->send();
377 377
 
378 378
         log_info('配送CSV出力ファイル名', array($filename));
Please login to merge, or discard this patch.
src/Eccube/Controller/Admin/Setting/System/LogController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -83,7 +83,7 @@
 block discarded – undo
83 83
             return $log;
84 84
         }
85 85
 
86
-        foreach (array_reverse(file($logFile, FILE_IGNORE_NEW_LINES | FILE_SKIP_EMPTY_LINES)) as $line) {
86
+        foreach (array_reverse(file($logFile, FILE_IGNORE_NEW_LINES|FILE_SKIP_EMPTY_LINES)) as $line) {
87 87
             // 上限に達した場合、処理を抜ける
88 88
             if (count($log) >= $formData['line_max']) {
89 89
                 break;
Please login to merge, or discard this patch.
src/Eccube/Controller/Admin/Product/CategoryController.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -205,7 +205,7 @@  discard block
 block discarded – undo
205 205
         $em->getConfiguration()->setSQLLogger(null);
206 206
 
207 207
         $response = new StreamedResponse();
208
-        $response->setCallback(function () use ($app, $request) {
208
+        $response->setCallback(function() use ($app, $request) {
209 209
 
210 210
             // CSV種別を元に初期化.
211 211
             $app['eccube.service.csv.export']->initCsvType(CsvType::CSV_TYPE_CATEGORY);
@@ -219,7 +219,7 @@  discard block
 block discarded – undo
219 219
 
220 220
             // データ行の出力.
221 221
             $app['eccube.service.csv.export']->setExportQueryBuilder($qb);
222
-            $app['eccube.service.csv.export']->exportData(function ($entity, $csvService) {
222
+            $app['eccube.service.csv.export']->exportData(function($entity, $csvService) {
223 223
 
224 224
                 $Csvs = $csvService->getCsvs();
225 225
 
@@ -239,9 +239,9 @@  discard block
 block discarded – undo
239 239
         });
240 240
 
241 241
         $now = new \DateTime();
242
-        $filename = 'category_' . $now->format('YmdHis') . '.csv';
242
+        $filename = 'category_'.$now->format('YmdHis').'.csv';
243 243
         $response->headers->set('Content-Type', 'application/octet-stream');
244
-        $response->headers->set('Content-Disposition', 'attachment; filename=' . $filename);
244
+        $response->headers->set('Content-Disposition', 'attachment; filename='.$filename);
245 245
         $response->send();
246 246
 
247 247
         log_info('カテゴリCSV出力ファイル名', array($filename));
Please login to merge, or discard this patch.
src/Eccube/Controller/Admin/Content/FileController.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -39,7 +39,7 @@  discard block
 block discarded – undo
39 39
     private $error = null;
40 40
     private $encode = '';
41 41
 
42
-    public function __construct(){
42
+    public function __construct() {
43 43
         $this->encode = self::UTF;
44 44
         if ('\\' === DIRECTORY_SEPARATOR) {
45 45
             $this->encode = self::SJIS;
@@ -84,7 +84,7 @@  discard block
 block discarded – undo
84 84
         $arrFileList = $this->getFileList($app, $nowDir);
85 85
 
86 86
         $javascript = $this->getJsArrayList($tree);
87
-        $onload = "eccube.fileManager.viewFileTree('tree', arrTree, '" . $nowDir . "', 'tree_select_file', 'tree_status', 'move');";
87
+        $onload = "eccube.fileManager.viewFileTree('tree', arrTree, '".$nowDir."', 'tree_select_file', 'tree_status', 'move');";
88 88
 
89 89
         return $app->render('Content/file.twig', array(
90 90
             'form' => $form->createView(),
@@ -141,7 +141,7 @@  discard block
 block discarded – undo
141 141
                 $nowDir = $this->checkDir($request->get('now_dir'), $topDir)
142 142
                     ? $this->normalizePath($request->get('now_dir'))
143 143
                     : $topDir;
144
-                $fs->mkdir($nowDir . '/' . $filename);
144
+                $fs->mkdir($nowDir.'/'.$filename);
145 145
             }
146 146
         }
147 147
     }
@@ -219,7 +219,7 @@  discard block
 block discarded – undo
219 219
     {
220 220
         $str = "arrTree = new Array();\n";
221 221
         foreach ($tree as $key => $val) {
222
-            $str .= 'arrTree[' . $key . "] = new Array(" . $key . ", '" . $val['type'] . "', '" . $val['path'] . "', " . $val['rank'] . ',';
222
+            $str .= 'arrTree['.$key."] = new Array(".$key.", '".$val['type']."', '".$val['path']."', ".$val['rank'].',';
223 223
             if ($val['open']) {
224 224
                 $str .= "true);\n";
225 225
             } else {
@@ -270,7 +270,7 @@  discard block
 block discarded – undo
270 270
     private function getFileList($app, $nowDir)
271 271
     {
272 272
         $topDir = $app['config']['user_data_realdir'];
273
-        $filter = function (\SplFileInfo $file) use ($topDir) {
273
+        $filter = function(\SplFileInfo $file) use ($topDir) {
274 274
             $acceptPath = realpath($topDir);
275 275
             $targetPath = $file->getRealPath();
276 276
             return (strpos($targetPath, $acceptPath) === 0);
Please login to merge, or discard this patch.
src/Eccube/Controller/Mypage/DeliveryController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -83,7 +83,7 @@
 block discarded – undo
83 83
         // 遷移が正しくない場合、デフォルトであるマイページの配送先追加の画面を設定する
84 84
         if (!in_array($parentPage, $allowdParents)) {
85 85
             // @deprecated 使用されていないコード
86
-            $parentPage  = $app->url('mypage_delivery');
86
+            $parentPage = $app->url('mypage_delivery');
87 87
         }
88 88
 
89 89
         $builder = $app['form.factory']
Please login to merge, or discard this patch.
src/Eccube/Controller/Install/InstallController.php 1 patch
Spacing   +50 added lines, -50 removed lines patch added patch discarded remove patch
@@ -56,9 +56,9 @@  discard block
 block discarded – undo
56 56
 
57 57
     public function __construct()
58 58
     {
59
-        $this->config_path = __DIR__ . '/../../../../app/config/eccube';
60
-        $this->dist_path = __DIR__ . '/../../Resource/config';
61
-        $this->cache_path = __DIR__ . '/../../../../app/cache';
59
+        $this->config_path = __DIR__.'/../../../../app/config/eccube';
60
+        $this->dist_path = __DIR__.'/../../Resource/config';
61
+        $this->cache_path = __DIR__.'/../../../../app/cache';
62 62
     }
63 63
 
64 64
     private function isValid(Request $request, Form $form)
@@ -108,7 +108,7 @@  discard block
 block discarded – undo
108 108
 
109 109
         return $app['twig']->render('step1.twig', array(
110 110
                 'form' => $form->createView(),
111
-                'publicPath' => '..' . RELATIVE_PUBLIC_DIR_PATH . '/',
111
+                'publicPath' => '..'.RELATIVE_PUBLIC_DIR_PATH.'/',
112 112
         ));
113 113
     }
114 114
 
@@ -131,7 +131,7 @@  discard block
 block discarded – undo
131 131
 
132 132
         return $app['twig']->render('step2.twig', array(
133 133
                 'protectedDirs' => $protectedDirs,
134
-                'publicPath' => '..' . RELATIVE_PUBLIC_DIR_PATH . '/',
134
+                'publicPath' => '..'.RELATIVE_PUBLIC_DIR_PATH.'/',
135 135
         ));
136 136
     }
137 137
 
@@ -145,7 +145,7 @@  discard block
 block discarded – undo
145 145
 
146 146
         if (empty($sessionData['shop_name'])) {
147 147
 
148
-            $config_file = $this->config_path . '/config.yml';
148
+            $config_file = $this->config_path.'/config.yml';
149 149
             $fs = new Filesystem();
150 150
 
151 151
             if ($fs->exists($config_file)) {
@@ -159,11 +159,11 @@  discard block
 block discarded – undo
159 159
                 }
160 160
 
161 161
                 // セキュリティの設定
162
-                $config_file = $this->config_path . '/path.yml';
162
+                $config_file = $this->config_path.'/path.yml';
163 163
                 $config = Yaml::parse(file_get_contents($config_file));
164 164
                 $sessionData['admin_dir'] = $config['admin_route'];
165 165
 
166
-                $config_file = $this->config_path . '/config.yml';
166
+                $config_file = $this->config_path.'/config.yml';
167 167
                 $config = Yaml::parse(file_get_contents($config_file));
168 168
 
169 169
                 $allowHost = $config['admin_allow_host'];
@@ -173,7 +173,7 @@  discard block
 block discarded – undo
173 173
                 $sessionData['admin_force_ssl'] = (bool) $config['force_ssl'];
174 174
 
175 175
                 // メール設定
176
-                $config_file = $this->config_path . '/mail.yml';
176
+                $config_file = $this->config_path.'/mail.yml';
177 177
                 $config = Yaml::parse(file_get_contents($config_file));
178 178
                 $mail = $config['mail'];
179 179
                 $sessionData['mail_backend'] = $mail['transport'];
@@ -196,7 +196,7 @@  discard block
 block discarded – undo
196 196
 
197 197
         return $app['twig']->render('step3.twig', array(
198 198
                 'form' => $form->createView(),
199
-                'publicPath' => '..' . RELATIVE_PUBLIC_DIR_PATH . '/',
199
+                'publicPath' => '..'.RELATIVE_PUBLIC_DIR_PATH.'/',
200 200
         ));
201 201
     }
202 202
 
@@ -211,7 +211,7 @@  discard block
 block discarded – undo
211 211
 
212 212
         if (empty($sessionData['database'])) {
213 213
 
214
-            $config_file = $this->config_path . '/database.yml';
214
+            $config_file = $this->config_path.'/database.yml';
215 215
             $fs = new Filesystem();
216 216
 
217 217
             if ($fs->exists($config_file)) {
@@ -239,7 +239,7 @@  discard block
 block discarded – undo
239 239
 
240 240
         return $app['twig']->render('step4.twig', array(
241 241
                 'form' => $form->createView(),
242
-                'publicPath' => '..' . RELATIVE_PUBLIC_DIR_PATH . '/',
242
+                'publicPath' => '..'.RELATIVE_PUBLIC_DIR_PATH.'/',
243 243
         ));
244 244
     }
245 245
 
@@ -285,7 +285,7 @@  discard block
 block discarded – undo
285 285
                 $host = $request->getSchemeAndHttpHost();
286 286
                 $basePath = $request->getBasePath();
287 287
                 $params = array(
288
-                    'http_url' => $host . $basePath,
288
+                    'http_url' => $host.$basePath,
289 289
                     'shop_name' => $sessionData['shop_name'],
290 290
                 );
291 291
 
@@ -300,24 +300,24 @@  discard block
 block discarded – undo
300 300
 
301 301
         return $app['twig']->render('step5.twig', array(
302 302
                 'form' => $form->createView(),
303
-                'publicPath' => '..' . RELATIVE_PUBLIC_DIR_PATH . '/',
303
+                'publicPath' => '..'.RELATIVE_PUBLIC_DIR_PATH.'/',
304 304
         ));
305 305
     }
306 306
 
307 307
     //    インストール完了
308 308
     public function complete(InstallApplication $app, Request $request)
309 309
     {
310
-        $config_file = $this->config_path . '/path.yml';
310
+        $config_file = $this->config_path.'/path.yml';
311 311
         $config = Yaml::parse(file_get_contents($config_file));
312 312
 
313 313
         $host = $request->getSchemeAndHttpHost();
314 314
         $basePath = $request->getBasePath();
315 315
 
316
-        $adminUrl = $host . $basePath . '/' . $config['admin_dir'];
316
+        $adminUrl = $host.$basePath.'/'.$config['admin_dir'];
317 317
 
318 318
         return $app['twig']->render('complete.twig', array(
319 319
                 'admin_url' => $adminUrl,
320
-                'publicPath' => '..' . RELATIVE_PUBLIC_DIR_PATH . '/',
320
+                'publicPath' => '..'.RELATIVE_PUBLIC_DIR_PATH.'/',
321 321
         ));
322 322
     }
323 323
 
@@ -333,12 +333,12 @@  discard block
 block discarded – undo
333 333
     {
334 334
         foreach ($this->required_modules as $module) {
335 335
             if (!extension_loaded($module)) {
336
-                $app->addDanger('[必須] ' . $module . ' 拡張モジュールが有効になっていません。', 'install');
336
+                $app->addDanger('[必須] '.$module.' 拡張モジュールが有効になっていません。', 'install');
337 337
             }
338 338
         }
339 339
 
340 340
         if (!extension_loaded('pdo_mysql') && !extension_loaded('pdo_pgsql')) {
341
-            $app->addDanger('[必須] ' . 'pdo_pgsql又はpdo_mysql 拡張モジュールを有効にしてください。', 'install');
341
+            $app->addDanger('[必須] '.'pdo_pgsql又はpdo_mysql 拡張モジュールを有効にしてください。', 'install');
342 342
         }
343 343
 
344 344
         foreach ($this->recommended_module as $module) {
@@ -366,7 +366,7 @@  discard block
 block discarded – undo
366 366
             if (!function_exists('apache_get_modules')) {
367 367
                 $app->addWarning('mod_rewrite が有効になっているか不明です。', 'install');
368 368
             } elseif (!in_array('mod_rewrite', apache_get_modules())) {
369
-                $app->addDanger('[必須] ' . 'mod_rewriteを有効にしてください。', 'install');
369
+                $app->addDanger('[必須] '.'mod_rewriteを有効にしてください。', 'install');
370 370
             }
371 371
         } elseif (isset($_SERVER['SERVER_SOFTWARE']) && strpos('Microsoft-IIS', $_SERVER['SERVER_SOFTWARE']) !== false) {
372 372
             // iis
@@ -377,7 +377,7 @@  discard block
 block discarded – undo
377 377
 
378 378
     private function setPDO()
379 379
     {
380
-        $config_file = $this->config_path . '/database.yml';
380
+        $config_file = $this->config_path.'/database.yml';
381 381
         $config = Yaml::parse(file_get_contents($config_file));
382 382
 
383 383
         try {
@@ -411,7 +411,7 @@  discard block
 block discarded – undo
411 411
      */
412 412
     private function getEntityManager()
413 413
     {
414
-        $config_file = $this->config_path . '/database.yml';
414
+        $config_file = $this->config_path.'/database.yml';
415 415
         $database = Yaml::parse(file_get_contents($config_file));
416 416
 
417 417
         $this->app->register(new \Silex\Provider\DoctrineServiceProvider(), array(
@@ -419,15 +419,15 @@  discard block
 block discarded – undo
419 419
         ));
420 420
 
421 421
         $this->app->register(new \Dflydev\Silex\Provider\DoctrineOrm\DoctrineOrmServiceProvider(), array(
422
-            'orm.proxies_dir' => __DIR__ . '/../../app/cache/doctrine',
422
+            'orm.proxies_dir' => __DIR__.'/../../app/cache/doctrine',
423 423
             'orm.em.options' => array(
424 424
                 'mappings' => array(
425 425
                     array(
426 426
                         'type' => 'yml',
427 427
                         'namespace' => 'Eccube\Entity',
428 428
                         'path' => array(
429
-                            __DIR__ . '/../../Resource/doctrine',
430
-                            __DIR__ . '/../../Resource/doctrine/master',
429
+                            __DIR__.'/../../Resource/doctrine',
430
+                            __DIR__.'/../../Resource/doctrine/master',
431 431
                         ),
432 432
                     ),
433 433
                 ),
@@ -454,11 +454,11 @@  discard block
 block discarded – undo
454 454
     {
455 455
         $this->resetNatTimer();
456 456
 
457
-        $config_file = $this->config_path . '/database.yml';
457
+        $config_file = $this->config_path.'/database.yml';
458 458
         $database = Yaml::parse(file_get_contents($config_file));
459 459
         $config['database'] = $database['database'];
460 460
 
461
-        $config_file = $this->config_path . '/config.yml';
461
+        $config_file = $this->config_path.'/config.yml';
462 462
         $baseConfig = Yaml::parse(file_get_contents($config_file));
463 463
         $config['config'] = $baseConfig;
464 464
 
@@ -514,11 +514,11 @@  discard block
 block discarded – undo
514 514
     {
515 515
         $this->resetNatTimer();
516 516
 
517
-        $config_file = $this->config_path . '/database.yml';
517
+        $config_file = $this->config_path.'/database.yml';
518 518
         $database = Yaml::parse(file_get_contents($config_file));
519 519
         $config['database'] = $database['database'];
520 520
 
521
-        $config_file = $this->config_path . '/config.yml';
521
+        $config_file = $this->config_path.'/config.yml';
522 522
         $baseConfig = Yaml::parse(file_get_contents($config_file));
523 523
         $config['config'] = $baseConfig;
524 524
 
@@ -581,7 +581,7 @@  discard block
 block discarded – undo
581 581
         $config = new Configuration($app['db']);
582 582
         $config->setMigrationsNamespace('DoctrineMigrations');
583 583
 
584
-        $migrationDir = __DIR__ . '/../../Resource/doctrine/migration';
584
+        $migrationDir = __DIR__.'/../../Resource/doctrine/migration';
585 585
         $config->setMigrationsDirectory($migrationDir);
586 586
         $config->registerMigrationsFromDirectory($migrationDir);
587 587
 
@@ -613,7 +613,7 @@  discard block
 block discarded – undo
613 613
     private function getProtectedDirs()
614 614
     {
615 615
         $protectedDirs = array();
616
-        $base = __DIR__ . '/../../../..';
616
+        $base = __DIR__.'/../../../..';
617 617
         $dirs = array(
618 618
             '/html',
619 619
             '/app',
@@ -626,7 +626,7 @@  discard block
 block discarded – undo
626 626
         );
627 627
 
628 628
         foreach ($dirs as $dir) {
629
-            if (!is_writable($base . $dir)) {
629
+            if (!is_writable($base.$dir)) {
630 630
                 $protectedDirs[] = $dir;
631 631
             }
632 632
         }
@@ -637,7 +637,7 @@  discard block
 block discarded – undo
637 637
     private function createConfigYamlFile($data, $auth = true)
638 638
     {
639 639
         $fs = new Filesystem();
640
-        $config_file = $this->config_path . '/config.yml';
640
+        $config_file = $this->config_path.'/config.yml';
641 641
 
642 642
         if ($fs->exists($config_file)) {
643 643
             $config = Yaml::parse(file_get_contents($config_file));
@@ -666,7 +666,7 @@  discard block
 block discarded – undo
666 666
 
667 667
         $fs = new Filesystem();
668 668
         $content = str_replace(
669
-            $target, $replace, file_get_contents($this->dist_path . '/config.yml.dist')
669
+            $target, $replace, file_get_contents($this->dist_path.'/config.yml.dist')
670 670
         );
671 671
         $fs->dumpFile($config_file, $content);
672 672
 
@@ -680,7 +680,7 @@  discard block
 block discarded – undo
680 680
 
681 681
     private function addInstallStatus()
682 682
     {
683
-        $config_file = $this->config_path . '/config.yml';
683
+        $config_file = $this->config_path.'/config.yml';
684 684
         $config = Yaml::parse(file_get_contents($config_file));
685 685
         $config['eccube_install'] = 1;
686 686
         $yml = Yaml::dump($config);
@@ -692,7 +692,7 @@  discard block
 block discarded – undo
692 692
     private function createDatabaseYamlFile($data)
693 693
     {
694 694
         $fs = new Filesystem();
695
-        $config_file = $this->config_path . '/database.yml';
695
+        $config_file = $this->config_path.'/database.yml';
696 696
         if ($fs->exists($config_file)) {
697 697
             $fs->remove($config_file);
698 698
         }
@@ -725,14 +725,14 @@  discard block
 block discarded – undo
725 725
 
726 726
             $fs = new Filesystem();
727 727
             $content = str_replace(
728
-                $target, $replace, file_get_contents($this->dist_path . '/database.yml.dist')
728
+                $target, $replace, file_get_contents($this->dist_path.'/database.yml.dist')
729 729
             );
730 730
         } else {
731 731
             $content = Yaml::dump(
732 732
                     array(
733 733
                         'database' => array(
734 734
                             'driver' => 'pdo_sqlite',
735
-                            'path' => realpath($this->config_path . '/eccube.db')
735
+                            'path' => realpath($this->config_path.'/eccube.db')
736 736
                         )
737 737
                     )
738 738
             );
@@ -745,7 +745,7 @@  discard block
 block discarded – undo
745 745
     private function createMailYamlFile($data)
746 746
     {
747 747
         $fs = new Filesystem();
748
-        $config_file = $this->config_path . '/mail.yml';
748
+        $config_file = $this->config_path.'/mail.yml';
749 749
         if ($fs->exists($config_file)) {
750 750
             $fs->remove($config_file);
751 751
         }
@@ -760,7 +760,7 @@  discard block
 block discarded – undo
760 760
 
761 761
         $fs = new Filesystem();
762 762
         $content = str_replace(
763
-            $target, $replace, file_get_contents($this->dist_path . '/mail.yml.dist')
763
+            $target, $replace, file_get_contents($this->dist_path.'/mail.yml.dist')
764 764
         );
765 765
         $fs->dumpFile($config_file, $content);
766 766
 
@@ -770,7 +770,7 @@  discard block
 block discarded – undo
770 770
     private function createPathYamlFile($data, Request $request)
771 771
     {
772 772
         $fs = new Filesystem();
773
-        $config_file = $this->config_path . '/path.yml';
773
+        $config_file = $this->config_path.'/path.yml';
774 774
         if ($fs->exists($config_file)) {
775 775
             $fs->remove($config_file);
776 776
         }
@@ -778,16 +778,16 @@  discard block
 block discarded – undo
778 778
         $ADMIN_ROUTE = $data['admin_dir'];
779 779
         $TEMPLATE_CODE = 'default';
780 780
         $USER_DATA_ROUTE = 'user_data';
781
-        $ROOT_DIR = realpath(__DIR__ . '/../../../../');
781
+        $ROOT_DIR = realpath(__DIR__.'/../../../../');
782 782
         $ROOT_URLPATH = $request->getBasePath();
783
-        $ROOT_PUBLIC_URLPATH = $ROOT_URLPATH . RELATIVE_PUBLIC_DIR_PATH;
783
+        $ROOT_PUBLIC_URLPATH = $ROOT_URLPATH.RELATIVE_PUBLIC_DIR_PATH;
784 784
 
785 785
         $target = array('${ADMIN_ROUTE}', '${TEMPLATE_CODE}', '${USER_DATA_ROUTE}', '${ROOT_DIR}', '${ROOT_URLPATH}', '${ROOT_PUBLIC_URLPATH}');
786 786
         $replace = array($ADMIN_ROUTE, $TEMPLATE_CODE, $USER_DATA_ROUTE, $ROOT_DIR, $ROOT_URLPATH, $ROOT_PUBLIC_URLPATH);
787 787
 
788 788
         $fs = new Filesystem();
789 789
         $content = str_replace(
790
-            $target, $replace, file_get_contents($this->dist_path . '/path.yml.dist')
790
+            $target, $replace, file_get_contents($this->dist_path.'/path.yml.dist')
791 791
         );
792 792
         $fs->dumpFile($config_file, $content);
793 793
 
@@ -796,7 +796,7 @@  discard block
 block discarded – undo
796 796
 
797 797
     private function sendAppData($params)
798 798
     {
799
-        $config_file = $this->config_path . '/database.yml';
799
+        $config_file = $this->config_path.'/database.yml';
800 800
         $db_config = Yaml::parse(file_get_contents($config_file));
801 801
 
802 802
         $this->setPDO();
@@ -808,7 +808,7 @@  discard block
 block discarded – undo
808 808
         }
809 809
 
810 810
         if ($db_config['database']['driver'] === 'pdo_mysql') {
811
-            $db_ver = 'MySQL:' . $version;
811
+            $db_ver = 'MySQL:'.$version;
812 812
         } else {
813 813
             $db_ver = $version;
814 814
         }
@@ -826,7 +826,7 @@  discard block
 block discarded – undo
826 826
 
827 827
         $header = array(
828 828
             'Content-Type: application/x-www-form-urlencoded',
829
-            'Content-Length: ' . strlen($data),
829
+            'Content-Length: '.strlen($data),
830 830
         );
831 831
         $context = stream_context_create(
832 832
             array(
@@ -853,7 +853,7 @@  discard block
 block discarded – undo
853 853
     public function migration(InstallApplication $app, Request $request)
854 854
     {
855 855
         return $app['twig']->render('migration.twig', array(
856
-                'publicPath' => '..' . RELATIVE_PUBLIC_DIR_PATH . '/',
856
+                'publicPath' => '..'.RELATIVE_PUBLIC_DIR_PATH.'/',
857 857
         ));
858 858
     }
859 859
 
@@ -882,7 +882,7 @@  discard block
 block discarded – undo
882 882
             return $app['twig']->render('migration_plugin.twig', array(
883 883
                     'Plugins' => $Plugins,
884 884
                     'version' => Constant::VERSION,
885
-                    'publicPath' => '..' . RELATIVE_PUBLIC_DIR_PATH . '/',
885
+                    'publicPath' => '..'.RELATIVE_PUBLIC_DIR_PATH.'/',
886 886
             ));
887 887
         }
888 888
     }
@@ -905,7 +905,7 @@  discard block
 block discarded – undo
905 905
         \Eccube\Util\Cache::clear($config_app, true);
906 906
 
907 907
         return $app['twig']->render('migration_end.twig', array(
908
-                'publicPath' => '..' . RELATIVE_PUBLIC_DIR_PATH . '/',
908
+                'publicPath' => '..'.RELATIVE_PUBLIC_DIR_PATH.'/',
909 909
         ));
910 910
     }
911 911
 }
Please login to merge, or discard this patch.
src/Eccube/Controller/ForgotController.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -64,7 +64,7 @@  discard block
 block discarded – undo
64 64
                 // リセットキーの発行・有効期限の設定
65 65
                 $Customer
66 66
                     ->setResetKey($app['eccube.repository.customer']->getUniqueResetKey($app))
67
-                    ->setResetExpire(new \DateTime('+' . $app['config']['customer_reset_expire'] .' min'));
67
+                    ->setResetExpire(new \DateTime('+'.$app['config']['customer_reset_expire'].' min'));
68 68
 
69 69
                 // リセットキーを更新
70 70
                 $app['orm.em']->persist($Customer);
@@ -87,7 +87,7 @@  discard block
 block discarded – undo
87 87
 
88 88
                 // ログ出力
89 89
                 $app['monolog']->addInfo(
90
-                    'send reset password mail to:'  . "{$Customer->getId()} {$Customer->getEmail()} {$request->getClientIp()}"
90
+                    'send reset password mail to:'."{$Customer->getId()} {$Customer->getEmail()} {$request->getClientIp()}"
91 91
                 );
92 92
             } else {
93 93
                 log_warning('Un active customer try send reset password email: ', array('Enter email' => $form->get('login_email')->getData()));
@@ -169,7 +169,7 @@  discard block
 block discarded – undo
169 169
 
170 170
             // ログ出力
171 171
             $app['monolog']->addInfo(
172
-                'reset password complete:' . "{$Customer->getId()} {$Customer->getEmail()} {$request->getClientIp()}"
172
+                'reset password complete:'."{$Customer->getId()} {$Customer->getEmail()} {$request->getClientIp()}"
173 173
             );
174 174
         } else {
175 175
             throw new HttpException\AccessDeniedHttpException('不正なアクセスです。');
Please login to merge, or discard this patch.