Failed Conditions
Push — experimental/3.1 ( 923e5e...2823d3 )
by Yangsin
18s
created
src/Eccube/Application.php 4 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -964,7 +964,7 @@
 block discarded – undo
964 964
      * 失敗 : \Doctrine\DBAL\DBALExceptionエラーが発生( 接続に失敗した場合 )、エラー画面を表示しdie()
965 965
      * 備考 : app['debug']がtrueの際は処理を行わない
966 966
      *
967
-     * @return boolean true
967
+     * @return null|boolean true
968 968
      *
969 969
      */
970 970
     protected function checkDatabaseConnection()
Please login to merge, or discard this patch.
Indentation   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -543,13 +543,13 @@
 block discarded – undo
543 543
         $pluginConfigs = PluginConfigManager::getPluginConfigAll($this['debug']);
544 544
         $ormMappings = array();
545 545
         $ormMappings[] = array(
546
-             'type' => 'annotation',
547
-             'namespace' => 'Eccube\Entity',
548
-             'path' => array(
549
-                 __DIR__.'/Entity'
550
-             ),
551
-             'use_simple_annotation_reader' => false,
552
-         );
546
+                'type' => 'annotation',
547
+                'namespace' => 'Eccube\Entity',
548
+                'path' => array(
549
+                    __DIR__.'/Entity'
550
+                ),
551
+                'use_simple_annotation_reader' => false,
552
+            );
553 553
 
554 554
         // TODO namespace は暫定
555 555
         $ormMappings[] = array(
Please login to merge, or discard this patch.
Spacing   +24 added lines, -24 removed lines patch added patch discarded remove patch
@@ -168,7 +168,7 @@  discard block
 block discarded – undo
168 168
         $this->register(new \Silex\Provider\ValidatorServiceProvider());
169 169
         $this->register(new MobileDetectServiceProvider());
170 170
 
171
-        $this->error(function (\Exception $e, Request $request, $code) {
171
+        $this->error(function(\Exception $e, Request $request, $code) {
172 172
             if ($this['debug']) {
173 173
                 return;
174 174
             }
@@ -262,14 +262,14 @@  discard block
 block discarded – undo
262 262
             return $router;
263 263
         });
264 264
 
265
-        $this['eccube.router.origin'] = function ($app) {
265
+        $this['eccube.router.origin'] = function($app) {
266 266
             $resource = __DIR__.'/Controller';
267 267
             $cachePrefix = 'Origin';
268 268
 
269 269
             return $app['eccube.router']($resource, $cachePrefix);
270 270
         };
271 271
 
272
-        $this['eccube.routers.plugin'] = function ($app) {
272
+        $this['eccube.routers.plugin'] = function($app) {
273 273
             // TODO 有効なプラグインを対象とする必要がある.
274 274
             $dirs = Finder::create()
275 275
                 ->in($app['config']['root_dir'].'/app/Plugin')
@@ -286,7 +286,7 @@  discard block
 block discarded – undo
286 286
             return $routers;
287 287
         };
288 288
 
289
-        $this['eccube.router.extend'] = function ($app) {
289
+        $this['eccube.router.extend'] = function($app) {
290 290
             // TODO ディレクトリ名は暫定
291 291
             $resource = $app['config']['root_dir'].'/app/Acme/Controller';
292 292
             $cachePrefix = 'Extend';
@@ -296,7 +296,7 @@  discard block
 block discarded – undo
296 296
             return $router;
297 297
         };
298 298
 
299
-        $this->extend('request_matcher', function ($matcher, $app) {
299
+        $this->extend('request_matcher', function($matcher, $app) {
300 300
             $matchers = [];
301 301
             $matchers[] = $app['eccube.router.extend'];
302 302
             foreach ($app['eccube.routers.plugin'] as $router) {
@@ -308,7 +308,7 @@  discard block
 block discarded – undo
308 308
             return new ChainUrlMatcher($matchers, $app['request_context']);
309 309
         });
310 310
 
311
-        $this->extend('url_generator', function ($generator, $app) {
311
+        $this->extend('url_generator', function($generator, $app) {
312 312
             $generators = [];
313 313
             $generators[] = $app['eccube.router.extend'];
314 314
             foreach ($app['eccube.routers.plugin'] as $router) {
@@ -339,7 +339,7 @@  discard block
 block discarded – undo
339 339
             'translator.cache_dir' => $this['debug'] ? null : $this['config']['root_dir'].'/app/cache/translator',
340 340
             'locale_fallbacks' => ['ja', 'en'],
341 341
         ));
342
-        $this->extend('translator', function ($translator, \Silex\Application $app) {
342
+        $this->extend('translator', function($translator, \Silex\Application $app) {
343 343
             $translator->addLoader('yaml', new \Symfony\Component\Translation\Loader\YamlFileLoader());
344 344
 
345 345
             $file = __DIR__.'/Resource/locale/validator.'.$app['locale'].'.yml';
@@ -386,14 +386,14 @@  discard block
 block discarded – undo
386 386
         $this->register(new \Silex\Provider\TwigServiceProvider(), array(
387 387
             'twig.form.templates' => array('Form/form_layout.twig'),
388 388
         ));
389
-        $this->extend('twig', function (\Twig_Environment $twig, \Silex\Application $app) {
389
+        $this->extend('twig', function(\Twig_Environment $twig, \Silex\Application $app) {
390 390
             $twig->addExtension(new \Eccube\Twig\Extension\EccubeExtension($app));
391 391
             $twig->addExtension(new \Twig_Extension_StringLoader());
392 392
 
393 393
             return $twig;
394 394
         });
395 395
 
396
-        $this->before(function (Request $request, \Silex\Application $app) {
396
+        $this->before(function(Request $request, \Silex\Application $app) {
397 397
             $app['admin'] = $app['front'] = false;
398 398
             $pathinfo = rawurldecode($request->getPathInfo());
399 399
             if (strpos($pathinfo, '/'.trim($app['config']['admin_route'], '/').'/') === 0) {
@@ -409,14 +409,14 @@  discard block
 block discarded – undo
409 409
                 }
410 410
                 $paths[] = $app['config']['template_admin_realdir'];
411 411
                 $paths[] = __DIR__.'/../../app/Plugin';
412
-                $cacheDir =  __DIR__.'/../../app/cache/twig/admin';
412
+                $cacheDir = __DIR__.'/../../app/cache/twig/admin';
413 413
             } else {
414 414
                 if (file_exists($app['config']['template_realdir'])) {
415 415
                     $paths[] = $app['config']['template_realdir'];
416 416
                 }
417 417
                 $paths[] = $app['config']['template_default_realdir'];
418 418
                 $paths[] = __DIR__.'/../../app/Plugin';
419
-                $cacheDir =  __DIR__.'/../../app/cache/twig/'.$app['config']['template_code'];
419
+                $cacheDir = __DIR__.'/../../app/cache/twig/'.$app['config']['template_code'];
420 420
             }
421 421
             $app['twig']->setCache($app['debug'] ? null : $cacheDir);
422 422
             $app['twig.loader']->addLoader(new \Twig_Loader_Filesystem($paths));
@@ -434,7 +434,7 @@  discard block
 block discarded – undo
434 434
         }, self::EARLY_EVENT);
435 435
 
436 436
         // twigのグローバル変数を定義.
437
-        $this->on(\Symfony\Component\HttpKernel\KernelEvents::CONTROLLER, function (\Symfony\Component\HttpKernel\Event\FilterControllerEvent $event) {
437
+        $this->on(\Symfony\Component\HttpKernel\KernelEvents::CONTROLLER, function(\Symfony\Component\HttpKernel\Event\FilterControllerEvent $event) {
438 438
             // 未ログイン時にマイページや管理画面以下にアクセスするとSubRequestで実行されるため,
439 439
             // $event->isMasterRequest()ではなく、グローバル変数が初期化済かどうかの判定を行う
440 440
             if (isset($this['twig_global_initialized']) && $this['twig_global_initialized'] === true) {
@@ -501,7 +501,7 @@  discard block
 block discarded – undo
501 501
         // メール送信時の文字エンコード指定(デフォルトはUTF-8)
502 502
         if (isset($this['config']['mail']['charset_iso_2022_jp']) && is_bool($this['config']['mail']['charset_iso_2022_jp'])) {
503 503
             if ($this['config']['mail']['charset_iso_2022_jp'] === true) {
504
-                \Swift::init(function () {
504
+                \Swift::init(function() {
505 505
                     \Swift_DependencyContainer::getInstance()
506 506
                         ->register('mime.qpheaderencoder')
507 507
                         ->asAliasOf('mime.base64headerencoder');
@@ -620,7 +620,7 @@  discard block
 block discarded – undo
620 620
 
621 621
         $this->extend(
622 622
             'orm.em.config',
623
-            function (\Doctrine\ORM\Configuration $config, \Silex\Application $app) {
623
+            function(\Doctrine\ORM\Configuration $config, \Silex\Application $app) {
624 624
 
625 625
                 /** @var $chain \Doctrine\Common\Persistence\Mapping\Driver\MappingDriverChain */
626 626
                 $chain = $config->getMetadataDriverImpl();
@@ -642,7 +642,7 @@  discard block
 block discarded – undo
642 642
             }
643 643
         );
644 644
 
645
-        $this->extend('orm.em', function (\Doctrine\ORM\EntityManager $em, \Silex\Application $app) {
645
+        $this->extend('orm.em', function(\Doctrine\ORM\EntityManager $em, \Silex\Application $app) {
646 646
             // tax_rule
647 647
             $taxRuleRepository = $em->getRepository('Eccube\Entity\TaxRule');
648 648
             $taxRuleRepository->setApplication($app);
@@ -675,7 +675,7 @@  discard block
 block discarded – undo
675 675
             // second level cacheの設定.
676 676
             $this->extend(
677 677
                 'orm.em.config',
678
-                function (\Doctrine\ORM\Configuration $config, \Silex\Application $app) {
678
+                function(\Doctrine\ORM\Configuration $config, \Silex\Application $app) {
679 679
                     $config->setSecondLevelCacheEnabled();
680 680
                     $cacheConfig = $config->getSecondLevelCacheConfiguration();
681 681
                     $regionConfig = $cacheConfig->getRegionsConfiguration();
@@ -764,31 +764,31 @@  discard block
 block discarded – undo
764 764
             array('^/mypage', 'ROLE_USER', $channel),
765 765
         );
766 766
 
767
-        $this['eccube.password_encoder'] = function ($app) {
767
+        $this['eccube.password_encoder'] = function($app) {
768 768
             return new \Eccube\Security\Core\Encoder\PasswordEncoder($app['config']);
769 769
         };
770
-        $this['security.encoder_factory'] = function ($app) {
770
+        $this['security.encoder_factory'] = function($app) {
771 771
             return new \Symfony\Component\Security\Core\Encoder\EncoderFactory(array(
772 772
                 'Eccube\Entity\Customer' => $app['eccube.password_encoder'],
773 773
                 'Eccube\Entity\Member' => $app['eccube.password_encoder'],
774 774
             ));
775 775
         };
776
-        $this['eccube.event_listner.security'] = function ($app) {
776
+        $this['eccube.event_listner.security'] = function($app) {
777 777
             return new \Eccube\EventListener\SecurityEventListener($app['orm.em']);
778 778
         };
779 779
 
780 780
         // Voterの設定
781
-        $this['authority_voter'] = function ($app) {
781
+        $this['authority_voter'] = function($app) {
782 782
             return new \Eccube\Security\Voter\AuthorityVoter($app);
783 783
         };
784 784
 
785
-        $this->extend('security.voters', function ($voters, \Silex\Application $app) {
785
+        $this->extend('security.voters', function($voters, \Silex\Application $app) {
786 786
             $voters[] = $app['authority_voter'];
787 787
 
788 788
             return $voters;
789 789
         });
790 790
 
791
-        $this['security.access_manager'] = function ($app) {
791
+        $this['security.access_manager'] = function($app) {
792 792
             return new \Symfony\Component\Security\Core\Authorization\AccessDecisionManager($app['security.voters'], 'unanimous');
793 793
         };
794 794
 
@@ -802,7 +802,7 @@  discard block
 block discarded – undo
802 802
     {
803 803
         $config = $this['config'];
804 804
         if (isset($config['trusted_proxies_connection_only']) && !empty($config['trusted_proxies_connection_only'])) {
805
-            $this->on(KernelEvents::REQUEST, function (GetResponseEvent $event) use ($config) {
805
+            $this->on(KernelEvents::REQUEST, function(GetResponseEvent $event) use ($config) {
806 806
                 // サブリクエストのREMOTE_ADDRも動的に設定を行う必要があるため、KernelEvents::REQUESTを使用する
807 807
                 Request::setTrustedProxies(array_merge(array($event->getRequest()->server->get('REMOTE_ADDR')), $config['trusted_proxies']));
808 808
             }, self::EARLY_EVENT);
@@ -968,7 +968,7 @@  discard block
 block discarded – undo
968 968
         $app = $this;
969 969
 
970 970
         // Response Event(http cache対応、event実行は一番遅く設定)
971
-        $this->on(\Symfony\Component\HttpKernel\KernelEvents::RESPONSE, function (\Symfony\Component\HttpKernel\Event\FilterResponseEvent $event) use ($app) {
971
+        $this->on(\Symfony\Component\HttpKernel\KernelEvents::RESPONSE, function(\Symfony\Component\HttpKernel\Event\FilterResponseEvent $event) use ($app) {
972 972
 
973 973
             if (!$event->isMasterRequest()) {
974 974
                 return;
Please login to merge, or discard this patch.
Unused Use Statements   -4 removed lines patch added patch discarded remove patch
@@ -31,8 +31,6 @@  discard block
 block discarded – undo
31 31
 use Eccube\Common\Constant;
32 32
 use Eccube\Doctrine\DBAL\Types\UTCDateTimeType;
33 33
 use Eccube\Doctrine\ORM\Mapping\Driver\AnnotationDriver;
34
-use Eccube\Doctrine\ORM\Mapping\Driver\YamlDriver;
35
-use Eccube\EventListener\TransactionListener;
36 34
 use Eccube\Plugin\ConfigManager as PluginConfigManager;
37 35
 use Eccube\Routing\EccubeRouter;
38 36
 use Eccube\ServiceProvider\EntityEventServiceProvider;
@@ -44,13 +42,11 @@  discard block
 block discarded – undo
44 42
 use Sergiors\Silex\Provider\TemplatingServiceProvider;
45 43
 use Sergiors\Silex\Routing\ChainUrlGenerator;
46 44
 use Sergiors\Silex\Routing\ChainUrlMatcher;
47
-use Symfony\Component\EventDispatcher\EventDispatcher;
48 45
 use Symfony\Component\Finder\Finder;
49 46
 use Symfony\Component\HttpFoundation\Request;
50 47
 use Symfony\Component\HttpFoundation\Response;
51 48
 use Symfony\Component\HttpKernel\Event\FilterResponseEvent;
52 49
 use Symfony\Component\HttpKernel\Event\GetResponseEvent;
53
-use Symfony\Component\HttpKernel\Event\PostResponseEvent;
54 50
 use Symfony\Component\HttpKernel\KernelEvents;
55 51
 use Symfony\Component\Yaml\Yaml;
56 52
 
Please login to merge, or discard this patch.
src/Eccube/Controller/Install/InstallController.php 2 patches
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -329,6 +329,9 @@
 block discarded – undo
329 329
         flush();
330 330
     }
331 331
 
332
+    /**
333
+     * @param InstallApplication $app
334
+     */
332 335
     private function checkModules($app)
333 336
     {
334 337
         foreach ($this->required_modules as $module) {
Please login to merge, or discard this patch.
Spacing   +51 added lines, -51 removed lines patch added patch discarded remove patch
@@ -61,9 +61,9 @@  discard block
 block discarded – undo
61 61
 
62 62
     public function __construct()
63 63
     {
64
-        $this->config_path = __DIR__ . '/../../../../app/config/eccube';
65
-        $this->dist_path = __DIR__ . '/../../Resource/config';
66
-        $this->cache_path = __DIR__ . '/../../../../app/cache';
64
+        $this->config_path = __DIR__.'/../../../../app/config/eccube';
65
+        $this->dist_path = __DIR__.'/../../Resource/config';
66
+        $this->cache_path = __DIR__.'/../../../../app/cache';
67 67
     }
68 68
 
69 69
     private function isValid(Request $request, Form $form)
@@ -113,7 +113,7 @@  discard block
 block discarded – undo
113 113
 
114 114
         return $app['twig']->render('step1.twig', array(
115 115
                 'form' => $form->createView(),
116
-                'publicPath' => '..' . RELATIVE_PUBLIC_DIR_PATH . '/',
116
+                'publicPath' => '..'.RELATIVE_PUBLIC_DIR_PATH.'/',
117 117
         ));
118 118
     }
119 119
 
@@ -136,7 +136,7 @@  discard block
 block discarded – undo
136 136
 
137 137
         return $app['twig']->render('step2.twig', array(
138 138
                 'protectedDirs' => $protectedDirs,
139
-                'publicPath' => '..' . RELATIVE_PUBLIC_DIR_PATH . '/',
139
+                'publicPath' => '..'.RELATIVE_PUBLIC_DIR_PATH.'/',
140 140
         ));
141 141
     }
142 142
 
@@ -150,7 +150,7 @@  discard block
 block discarded – undo
150 150
 
151 151
         if (empty($sessionData['shop_name'])) {
152 152
 
153
-            $config_file = $this->config_path . '/config.yml';
153
+            $config_file = $this->config_path.'/config.yml';
154 154
             $fs = new Filesystem();
155 155
 
156 156
             if ($fs->exists($config_file)) {
@@ -164,11 +164,11 @@  discard block
 block discarded – undo
164 164
                 }
165 165
 
166 166
                 // セキュリティの設定
167
-                $config_file = $this->config_path . '/path.yml';
167
+                $config_file = $this->config_path.'/path.yml';
168 168
                 $config = Yaml::parse(file_get_contents($config_file));
169 169
                 $sessionData['admin_dir'] = $config['admin_route'];
170 170
 
171
-                $config_file = $this->config_path . '/config.yml';
171
+                $config_file = $this->config_path.'/config.yml';
172 172
                 $config = Yaml::parse(file_get_contents($config_file));
173 173
 
174 174
                 $allowHost = $config['admin_allow_host'];
@@ -179,7 +179,7 @@  discard block
 block discarded – undo
179 179
 
180 180
                 // ロードバランサー、プロキシサーバ設定
181 181
                 if (isset($config['trusted_proxies_connection_only'])) {
182
-                    $sessionData['trusted_proxies_connection_only'] = (bool)$config['trusted_proxies_connection_only'];
182
+                    $sessionData['trusted_proxies_connection_only'] = (bool) $config['trusted_proxies_connection_only'];
183 183
                 }
184 184
                 if (isset($config['trusted_proxies'])) {
185 185
                     $trustedProxies = $config['trusted_proxies'];
@@ -188,7 +188,7 @@  discard block
 block discarded – undo
188 188
                     }
189 189
                 }
190 190
                 // メール設定
191
-                $config_file = $this->config_path . '/mail.yml';
191
+                $config_file = $this->config_path.'/mail.yml';
192 192
                 $config = Yaml::parse(file_get_contents($config_file));
193 193
                 $mail = $config['mail'];
194 194
                 $sessionData['mail_backend'] = $mail['transport'];
@@ -211,7 +211,7 @@  discard block
 block discarded – undo
211 211
 
212 212
         return $app['twig']->render('step3.twig', array(
213 213
                 'form' => $form->createView(),
214
-                'publicPath' => '..' . RELATIVE_PUBLIC_DIR_PATH . '/',
214
+                'publicPath' => '..'.RELATIVE_PUBLIC_DIR_PATH.'/',
215 215
         ));
216 216
     }
217 217
 
@@ -226,7 +226,7 @@  discard block
 block discarded – undo
226 226
 
227 227
         if (empty($sessionData['database'])) {
228 228
 
229
-            $config_file = $this->config_path . '/database.yml';
229
+            $config_file = $this->config_path.'/database.yml';
230 230
             $fs = new Filesystem();
231 231
 
232 232
             if ($fs->exists($config_file)) {
@@ -254,7 +254,7 @@  discard block
 block discarded – undo
254 254
 
255 255
         return $app['twig']->render('step4.twig', array(
256 256
                 'form' => $form->createView(),
257
-                'publicPath' => '..' . RELATIVE_PUBLIC_DIR_PATH . '/',
257
+                'publicPath' => '..'.RELATIVE_PUBLIC_DIR_PATH.'/',
258 258
         ));
259 259
     }
260 260
 
@@ -301,7 +301,7 @@  discard block
 block discarded – undo
301 301
                 $host = $request->getSchemeAndHttpHost();
302 302
                 $basePath = $request->getBasePath();
303 303
                 $params = array(
304
-                    'http_url' => $host . $basePath,
304
+                    'http_url' => $host.$basePath,
305 305
                     'shop_name' => $sessionData['shop_name'],
306 306
                 );
307 307
 
@@ -316,16 +316,16 @@  discard block
 block discarded – undo
316 316
 
317 317
         return $app['twig']->render('step5.twig', array(
318 318
                 'form' => $form->createView(),
319
-                'publicPath' => '..' . RELATIVE_PUBLIC_DIR_PATH . '/',
319
+                'publicPath' => '..'.RELATIVE_PUBLIC_DIR_PATH.'/',
320 320
         ));
321 321
     }
322 322
 
323 323
     //    インストール完了
324 324
     public function complete(InstallApplication $app, Request $request)
325 325
     {
326
-        $config_yml = $this->config_path . '/config.yml';
326
+        $config_yml = $this->config_path.'/config.yml';
327 327
         $config = Yaml::parse(file_get_contents($config_yml));
328
-        $config_path = $this->config_path . '/path.yml';
328
+        $config_path = $this->config_path.'/path.yml';
329 329
         $path_yml = Yaml::parse(file_get_contents($config_path));
330 330
 
331 331
         $config = array_replace_recursive($path_yml, $config);
@@ -340,11 +340,11 @@  discard block
 block discarded – undo
340 340
         $host = $request->getSchemeAndHttpHost();
341 341
         $basePath = $request->getBasePath();
342 342
 
343
-        $adminUrl = $host . $basePath . '/' . $config['admin_dir'];
343
+        $adminUrl = $host.$basePath.'/'.$config['admin_dir'];
344 344
 
345 345
         return $app['twig']->render('complete.twig', array(
346 346
                 'admin_url' => $adminUrl,
347
-                'publicPath' => '..' . RELATIVE_PUBLIC_DIR_PATH . '/',
347
+                'publicPath' => '..'.RELATIVE_PUBLIC_DIR_PATH.'/',
348 348
         ));
349 349
     }
350 350
 
@@ -360,12 +360,12 @@  discard block
 block discarded – undo
360 360
     {
361 361
         foreach ($this->required_modules as $module) {
362 362
             if (!extension_loaded($module)) {
363
-                $app->addDanger('[必須] ' . $module . ' 拡張モジュールが有効になっていません。', 'install');
363
+                $app->addDanger('[必須] '.$module.' 拡張モジュールが有効になっていません。', 'install');
364 364
             }
365 365
         }
366 366
 
367 367
         if (!extension_loaded('pdo_mysql') && !extension_loaded('pdo_pgsql')) {
368
-            $app->addDanger('[必須] ' . 'pdo_pgsql又はpdo_mysql 拡張モジュールを有効にしてください。', 'install');
368
+            $app->addDanger('[必須] '.'pdo_pgsql又はpdo_mysql 拡張モジュールを有効にしてください。', 'install');
369 369
         }
370 370
 
371 371
         foreach ($this->recommended_module as $module) {
@@ -393,7 +393,7 @@  discard block
 block discarded – undo
393 393
             if (!function_exists('apache_get_modules')) {
394 394
                 $app->addWarning('mod_rewrite が有効になっているか不明です。', 'install');
395 395
             } elseif (!in_array('mod_rewrite', apache_get_modules())) {
396
-                $app->addDanger('[必須] ' . 'mod_rewriteを有効にしてください。', 'install');
396
+                $app->addDanger('[必須] '.'mod_rewriteを有効にしてください。', 'install');
397 397
             }
398 398
         } elseif (isset($_SERVER['SERVER_SOFTWARE']) && strpos('Microsoft-IIS', $_SERVER['SERVER_SOFTWARE']) !== false) {
399 399
             // iis
@@ -404,7 +404,7 @@  discard block
 block discarded – undo
404 404
 
405 405
     private function setPDO()
406 406
     {
407
-        $config_file = $this->config_path . '/database.yml';
407
+        $config_file = $this->config_path.'/database.yml';
408 408
         $config = Yaml::parse(file_get_contents($config_file));
409 409
 
410 410
         try {
@@ -439,7 +439,7 @@  discard block
 block discarded – undo
439 439
     private function getEntityManager()
440 440
     {
441 441
         if (!isset($this->app['orm.em'])) {
442
-            $config_file = $this->config_path . '/database.yml';
442
+            $config_file = $this->config_path.'/database.yml';
443 443
             $database = Yaml::parse(file_get_contents($config_file));
444 444
 
445 445
             $this->app->register(new \Silex\Provider\DoctrineServiceProvider(), array(
@@ -451,8 +451,8 @@  discard block
 block discarded – undo
451 451
                     'type' => 'yml',
452 452
                     'namespace' => 'Eccube\Entity',
453 453
                     'path' => array(
454
-                        __DIR__ . '/../../Resource/doctrine',
455
-                        __DIR__ . '/../../Resource/doctrine/master',
454
+                        __DIR__.'/../../Resource/doctrine',
455
+                        __DIR__.'/../../Resource/doctrine/master',
456 456
                     ),
457 457
                 ),
458 458
                 array(  // TODO 暫定
@@ -484,7 +484,7 @@  discard block
 block discarded – undo
484 484
                 }
485 485
             }
486 486
             $this->app->register(new \Dflydev\Provider\DoctrineOrm\DoctrineOrmServiceProvider(), array(
487
-                'orm.proxies_dir' => __DIR__ . '/../../app/cache/doctrine',
487
+                'orm.proxies_dir' => __DIR__.'/../../app/cache/doctrine',
488 488
                 'orm.em.options' => array(
489 489
                     'mappings' => $ormMappings
490 490
                 )
@@ -524,11 +524,11 @@  discard block
 block discarded – undo
524 524
     {
525 525
         $this->resetNatTimer();
526 526
 
527
-        $config_file = $this->config_path . '/database.yml';
527
+        $config_file = $this->config_path.'/database.yml';
528 528
         $database = Yaml::parse(file_get_contents($config_file));
529 529
         $config['database'] = $database['database'];
530 530
 
531
-        $config_file = $this->config_path . '/config.yml';
531
+        $config_file = $this->config_path.'/config.yml';
532 532
         $baseConfig = Yaml::parse(file_get_contents($config_file));
533 533
         $config['config'] = $baseConfig;
534 534
 
@@ -586,11 +586,11 @@  discard block
 block discarded – undo
586 586
     {
587 587
         $this->resetNatTimer();
588 588
 
589
-        $config_file = $this->config_path . '/database.yml';
589
+        $config_file = $this->config_path.'/database.yml';
590 590
         $database = Yaml::parse(file_get_contents($config_file));
591 591
         $config['database'] = $database['database'];
592 592
 
593
-        $config_file = $this->config_path . '/config.yml';
593
+        $config_file = $this->config_path.'/config.yml';
594 594
         $baseConfig = Yaml::parse(file_get_contents($config_file));
595 595
         $config['config'] = $baseConfig;
596 596
 
@@ -653,7 +653,7 @@  discard block
 block discarded – undo
653 653
         $config = new Configuration($app['db']);
654 654
         $config->setMigrationsNamespace('DoctrineMigrations');
655 655
 
656
-        $migrationDir = __DIR__ . '/../../Resource/doctrine/migration';
656
+        $migrationDir = __DIR__.'/../../Resource/doctrine/migration';
657 657
         $config->setMigrationsDirectory($migrationDir);
658 658
         $config->registerMigrationsFromDirectory($migrationDir);
659 659
 
@@ -686,7 +686,7 @@  discard block
 block discarded – undo
686 686
     private function getProtectedDirs()
687 687
     {
688 688
         $protectedDirs = array();
689
-        $base = __DIR__ . '/../../../..';
689
+        $base = __DIR__.'/../../../..';
690 690
         $dirs = array(
691 691
             '/html',
692 692
             '/app',
@@ -699,7 +699,7 @@  discard block
 block discarded – undo
699 699
         );
700 700
 
701 701
         foreach ($dirs as $dir) {
702
-            if (!is_writable($base . $dir)) {
702
+            if (!is_writable($base.$dir)) {
703 703
                 $protectedDirs[] = $dir;
704 704
             }
705 705
         }
@@ -710,7 +710,7 @@  discard block
 block discarded – undo
710 710
     private function createConfigYamlFile($data, $auth = true)
711 711
     {
712 712
         $fs = new Filesystem();
713
-        $config_file = $this->config_path . '/config.yml';
713
+        $config_file = $this->config_path.'/config.yml';
714 714
 
715 715
         if ($fs->exists($config_file)) {
716 716
             $config = Yaml::parse(file_get_contents($config_file));
@@ -751,7 +751,7 @@  discard block
 block discarded – undo
751 751
 
752 752
         $fs = new Filesystem();
753 753
         $content = str_replace(
754
-            $target, $replace, file_get_contents($this->dist_path . '/config.yml.dist')
754
+            $target, $replace, file_get_contents($this->dist_path.'/config.yml.dist')
755 755
         );
756 756
         $fs->dumpFile($config_file, $content);
757 757
 
@@ -767,7 +767,7 @@  discard block
 block discarded – undo
767 767
 
768 768
     private function addInstallStatus()
769 769
     {
770
-        $config_file = $this->config_path . '/config.yml';
770
+        $config_file = $this->config_path.'/config.yml';
771 771
         $config = Yaml::parse(file_get_contents($config_file));
772 772
         $config['eccube_install'] = 1;
773 773
         $yml = Yaml::dump($config);
@@ -779,7 +779,7 @@  discard block
 block discarded – undo
779 779
     private function createDatabaseYamlFile($data)
780 780
     {
781 781
         $fs = new Filesystem();
782
-        $config_file = $this->config_path . '/database.yml';
782
+        $config_file = $this->config_path.'/database.yml';
783 783
         if ($fs->exists($config_file)) {
784 784
             $fs->remove($config_file);
785 785
         }
@@ -812,14 +812,14 @@  discard block
 block discarded – undo
812 812
 
813 813
             $fs = new Filesystem();
814 814
             $content = str_replace(
815
-                $target, $replace, file_get_contents($this->dist_path . '/database.yml.dist')
815
+                $target, $replace, file_get_contents($this->dist_path.'/database.yml.dist')
816 816
             );
817 817
         } else {
818 818
             $content = Yaml::dump(
819 819
                     array(
820 820
                         'database' => array(
821 821
                             'driver' => 'pdo_sqlite',
822
-                            'path' => realpath($this->config_path . '/eccube.db')
822
+                            'path' => realpath($this->config_path.'/eccube.db')
823 823
                         )
824 824
                     )
825 825
             );
@@ -832,7 +832,7 @@  discard block
 block discarded – undo
832 832
     private function createMailYamlFile($data)
833 833
     {
834 834
         $fs = new Filesystem();
835
-        $config_file = $this->config_path . '/mail.yml';
835
+        $config_file = $this->config_path.'/mail.yml';
836 836
         if ($fs->exists($config_file)) {
837 837
             $fs->remove($config_file);
838 838
         }
@@ -847,7 +847,7 @@  discard block
 block discarded – undo
847 847
 
848 848
         $fs = new Filesystem();
849 849
         $content = str_replace(
850
-            $target, $replace, file_get_contents($this->dist_path . '/mail.yml.dist')
850
+            $target, $replace, file_get_contents($this->dist_path.'/mail.yml.dist')
851 851
         );
852 852
         $fs->dumpFile($config_file, $content);
853 853
 
@@ -857,7 +857,7 @@  discard block
 block discarded – undo
857 857
     private function createPathYamlFile($data, Request $request)
858 858
     {
859 859
         $fs = new Filesystem();
860
-        $config_file = $this->config_path . '/path.yml';
860
+        $config_file = $this->config_path.'/path.yml';
861 861
         if ($fs->exists($config_file)) {
862 862
             $fs->remove($config_file);
863 863
         }
@@ -867,14 +867,14 @@  discard block
 block discarded – undo
867 867
         $USER_DATA_ROUTE = 'user_data';
868 868
         $ROOT_DIR = '%ROOT_DIR%';
869 869
         $ROOT_URLPATH = $request->getBasePath();
870
-        $ROOT_PUBLIC_URLPATH = $ROOT_URLPATH . RELATIVE_PUBLIC_DIR_PATH;
870
+        $ROOT_PUBLIC_URLPATH = $ROOT_URLPATH.RELATIVE_PUBLIC_DIR_PATH;
871 871
 
872 872
         $target = array('${ADMIN_ROUTE}', '${TEMPLATE_CODE}', '${USER_DATA_ROUTE}', '${ROOT_DIR}', '${ROOT_URLPATH}', '${ROOT_PUBLIC_URLPATH}');
873 873
         $replace = array($ADMIN_ROUTE, $TEMPLATE_CODE, $USER_DATA_ROUTE, $ROOT_DIR, $ROOT_URLPATH, $ROOT_PUBLIC_URLPATH);
874 874
 
875 875
         $fs = new Filesystem();
876 876
         $content = str_replace(
877
-            $target, $replace, file_get_contents($this->dist_path . '/path.yml.dist')
877
+            $target, $replace, file_get_contents($this->dist_path.'/path.yml.dist')
878 878
         );
879 879
         $fs->dumpFile($config_file, $content);
880 880
 
@@ -883,7 +883,7 @@  discard block
 block discarded – undo
883 883
 
884 884
     private function sendAppData($params)
885 885
     {
886
-        $config_file = $this->config_path . '/database.yml';
886
+        $config_file = $this->config_path.'/database.yml';
887 887
         $db_config = Yaml::parse(file_get_contents($config_file));
888 888
 
889 889
         $this->setPDO();
@@ -895,7 +895,7 @@  discard block
 block discarded – undo
895 895
         }
896 896
 
897 897
         if ($db_config['database']['driver'] === 'pdo_mysql') {
898
-            $db_ver = 'MySQL:' . $version;
898
+            $db_ver = 'MySQL:'.$version;
899 899
         } else {
900 900
             $db_ver = $version;
901 901
         }
@@ -913,7 +913,7 @@  discard block
 block discarded – undo
913 913
 
914 914
         $header = array(
915 915
             'Content-Type: application/x-www-form-urlencoded',
916
-            'Content-Length: ' . strlen($data),
916
+            'Content-Length: '.strlen($data),
917 917
         );
918 918
         $context = stream_context_create(
919 919
             array(
@@ -940,7 +940,7 @@  discard block
 block discarded – undo
940 940
     public function migration(InstallApplication $app, Request $request)
941 941
     {
942 942
         return $app['twig']->render('migration.twig', array(
943
-                'publicPath' => '..' . RELATIVE_PUBLIC_DIR_PATH . '/',
943
+                'publicPath' => '..'.RELATIVE_PUBLIC_DIR_PATH.'/',
944 944
         ));
945 945
     }
946 946
 
@@ -969,7 +969,7 @@  discard block
 block discarded – undo
969 969
             return $app['twig']->render('migration_plugin.twig', array(
970 970
                     'Plugins' => $Plugins,
971 971
                     'version' => Constant::VERSION,
972
-                    'publicPath' => '..' . RELATIVE_PUBLIC_DIR_PATH . '/',
972
+                    'publicPath' => '..'.RELATIVE_PUBLIC_DIR_PATH.'/',
973 973
             ));
974 974
         }
975 975
     }
@@ -992,7 +992,7 @@  discard block
 block discarded – undo
992 992
         \Eccube\Util\Cache::clear($config_app, true);
993 993
 
994 994
         return $app['twig']->render('migration_end.twig', array(
995
-                'publicPath' => '..' . RELATIVE_PUBLIC_DIR_PATH . '/',
995
+                'publicPath' => '..'.RELATIVE_PUBLIC_DIR_PATH.'/',
996 996
         ));
997 997
     }
998 998
 }
Please login to merge, or discard this patch.
src/Eccube/Form/Type/Admin/CsvImportType.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -53,8 +53,8 @@
 block discarded – undo
53 53
                 'constraints' => array(
54 54
                     new Assert\NotBlank(array('message' => 'ファイルを選択してください。')),
55 55
                     new Assert\File(array(
56
-                        'maxSize' => $app['config']['csv_size'] . 'M',
57
-                        'maxSizeMessage' => 'CSVファイルは' . $app['config']['csv_size'] . 'M以下でアップロードしてください。',
56
+                        'maxSize' => $app['config']['csv_size'].'M',
57
+                        'maxSizeMessage' => 'CSVファイルは'.$app['config']['csv_size'].'M以下でアップロードしてください。',
58 58
                     )),
59 59
                 ),
60 60
             ));
Please login to merge, or discard this patch.
src/Eccube/Form/Type/AddCartType.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -112,7 +112,7 @@
 block discarded – undo
112 112
                 }
113 113
             }
114 114
 
115
-            $builder->addEventListener(FormEvents::PRE_SUBMIT, function (FormEvent $event) use ($Product) {
115
+            $builder->addEventListener(FormEvents::PRE_SUBMIT, function(FormEvent $event) use ($Product) {
116 116
                 $data = $event->getData();
117 117
                 $form = $event->getForm();
118 118
                 if (!is_null($Product->getClassName2())) {
Please login to merge, or discard this patch.
src/Eccube/Command/CacheClearCommand.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -52,7 +52,7 @@
 block discarded – undo
52 52
 
53 53
         $this->app = $this->getSilexApplication();
54 54
         
55
-        \Eccube\Util\Cache::clear($this->app,$input->getOption('all'));
55
+        \Eccube\Util\Cache::clear($this->app, $input->getOption('all'));
56 56
         $output->writeln(sprintf("%s <info>success</info>", 'cache:clear'));
57 57
 
58 58
     }
Please login to merge, or discard this patch.
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -24,7 +24,6 @@
 block discarded – undo
24 24
 
25 25
 namespace Eccube\Command;
26 26
 
27
-use Symfony\Component\Console\Input\InputArgument;
28 27
 use Symfony\Component\Console\Input\InputInterface;
29 28
 use Symfony\Component\Console\Input\InputOption;
30 29
 use Symfony\Component\Console\Output\OutputInterface;
Please login to merge, or discard this patch.
src/Eccube/Log/Monolog/Helper/LogHelper.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -111,7 +111,7 @@
 block discarded – undo
111 111
         $webProcessor = new WebProcessor();
112 112
         $uidProcessor = new UidProcessor(8);
113 113
 
114
-        $FingerCrossedHandler->pushProcessor(function ($record) use ($app, $uidProcessor, $webProcessor) {
114
+        $FingerCrossedHandler->pushProcessor(function($record) use ($app, $uidProcessor, $webProcessor) {
115 115
             // ログフォーマットに出力する値を独自に設定
116 116
 
117 117
             $record['level_name'] = sprintf("%-5s", $record['level_name']);
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/Setting/Shop/PaymentController.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -93,10 +93,10 @@  discard block
 block discarded – undo
93 93
                 // ファイルアップロード
94 94
                 $file = $form['payment_image']->getData();
95 95
                 $fs = new Filesystem();
96
-                if ($file && $fs->exists($app['config']['image_temp_realdir'] . '/' . $file)) {
96
+                if ($file && $fs->exists($app['config']['image_temp_realdir'].'/'.$file)) {
97 97
                     $fs->rename(
98
-                        $app['config']['image_temp_realdir'] . '/' . $file,
99
-                        $app['config']['image_save_realdir'] . '/' . $file
98
+                        $app['config']['image_temp_realdir'].'/'.$file,
99
+                        $app['config']['image_save_realdir'].'/'.$file
100 100
                     );
101 101
                 }
102 102
 
@@ -144,7 +144,7 @@  discard block
 block discarded – undo
144 144
             }
145 145
 
146 146
             $extension = $image->guessExtension();
147
-            $filename = date('mdHis') . uniqid('_') . '.' . $extension;
147
+            $filename = date('mdHis').uniqid('_').'.'.$extension;
148 148
             $image->move($app['config']['image_temp_realdir'], $filename);
149 149
         }
150 150
         $event = new EventArgs(
@@ -180,7 +180,7 @@  discard block
 block discarded – undo
180 180
         foreach ($Payments as $Payment) {
181 181
             if ($Payment->getId() != $id) {
182 182
                 $Payment->setRank($rank);
183
-                $rank ++;
183
+                $rank++;
184 184
             }
185 185
         }
186 186
 
@@ -194,7 +194,7 @@  discard block
 block discarded – undo
194 194
         );
195 195
         $app['eccube.event.dispatcher']->dispatch(EccubeEvents::ADMIN_SETTING_SHOP_PAYMENT_DELETE_COMPLETE, $event);
196 196
 
197
-        $app->addSuccess('admin.delete.complete', 'admin') ;
197
+        $app->addSuccess('admin.delete.complete', 'admin');
198 198
 
199 199
         return $app->redirect($app->url('admin_setting_shop_payment'));
200 200
     }
Please login to merge, or discard this patch.
src/Eccube/Controller/Admin/Store/TemplateController.php 2 patches
Spacing   +23 added lines, -23 removed lines patch added patch discarded remove patch
@@ -77,7 +77,7 @@  discard block
 block discarded – undo
77 77
                 $config['template_realdir'] = $config['root_dir'].'/app/template/'.$templateCode;
78 78
                 $config['template_html_realdir'] = $config['public_path_realdir'].'/template/'.$templateCode;
79 79
                 $config['front_urlpath'] = $config['root_urlpath'].RELATIVE_PUBLIC_DIR_PATH.'/template/'.$templateCode;
80
-                $config['block_realdir'] =$config['template_realdir'].'/Block';
80
+                $config['block_realdir'] = $config['template_realdir'].'/Block';
81 81
 
82 82
                 if (file_exists($file.'.php')) {
83 83
                     file_put_contents($file.'.php', sprintf('<?php return %s', var_export($config, true)).';');
@@ -117,19 +117,19 @@  discard block
 block discarded – undo
117 117
         // 該当テンプレートのディレクトリ
118 118
         $config = $app['config'];
119 119
         $templateCode = $Template->getCode();
120
-        $targetRealDir = $config['root_dir'] . '/app/template/' . $templateCode;
121
-        $targetHtmlRealDir = $config['root_dir'] . '/html/template/' . $templateCode;
120
+        $targetRealDir = $config['root_dir'].'/app/template/'.$templateCode;
121
+        $targetHtmlRealDir = $config['root_dir'].'/html/template/'.$templateCode;
122 122
 
123 123
         // 一時ディレクトリ
124 124
         $uniqId = sha1(Str::random(32));
125
-        $tmpDir = $config['template_temp_realdir'] . '/' . $uniqId;
126
-        $appDir = $tmpDir . '/app';
127
-        $htmlDir = $tmpDir . '/html';
125
+        $tmpDir = $config['template_temp_realdir'].'/'.$uniqId;
126
+        $appDir = $tmpDir.'/app';
127
+        $htmlDir = $tmpDir.'/html';
128 128
 
129 129
         // ファイル名
130
-        $tarFile = $config['template_temp_realdir'] . '/' . $uniqId . '.tar';
131
-        $tarGzFile = $tarFile . '.gz';
132
-        $downloadFileName = $Template->getCode() . '.tar.gz';
130
+        $tarFile = $config['template_temp_realdir'].'/'.$uniqId.'.tar';
131
+        $tarGzFile = $tarFile.'.gz';
132
+        $downloadFileName = $Template->getCode().'.tar.gz';
133 133
 
134 134
         // 該当テンプレートを一時ディレクトリへコピーする.
135 135
         $fs = new Filesystem();
@@ -149,14 +149,14 @@  discard block
 block discarded – undo
149 149
 
150 150
         // ダウンロード完了後にファイルを削除する.
151 151
         // http://stackoverflow.com/questions/15238897/removing-file-after-delivering-response-with-silex-symfony
152
-        $app->finish(function (Request $request, Response $response, \Silex\Application $app) use (
152
+        $app->finish(function(Request $request, Response $response, \Silex\Application $app) use (
153 153
             $tmpDir,
154 154
             $tarFile,
155 155
             $tarGzFile
156 156
         ) {
157
-            $app['monolog']->addDebug('remove temp file: ' . $tmpDir);
158
-            $app['monolog']->addDebug('remove temp file: ' . $tarFile);
159
-            $app['monolog']->addDebug('remove temp file: ' . $tarGzFile);
157
+            $app['monolog']->addDebug('remove temp file: '.$tmpDir);
158
+            $app['monolog']->addDebug('remove temp file: '.$tarFile);
159
+            $app['monolog']->addDebug('remove temp file: '.$tarGzFile);
160 160
             $fs = new Filesystem();
161 161
             $fs->remove($tmpDir);
162 162
             $fs->remove($tarFile);
@@ -197,8 +197,8 @@  discard block
 block discarded – undo
197 197
         // テンプレートディレクトリの削除
198 198
         $config = $app['config'];
199 199
         $templateCode = $Template->getCode();
200
-        $targetRealDir = $config['root_dir'] . '/app/template/' . $templateCode;
201
-        $targetHtmlRealDir = $config['root_dir'] . '/html/template/' . $templateCode;
200
+        $targetRealDir = $config['root_dir'].'/app/template/'.$templateCode;
201
+        $targetHtmlRealDir = $config['root_dir'].'/html/template/'.$templateCode;
202 202
 
203 203
         $fs = new Filesystem();
204 204
         $fs->remove($targetRealDir);
@@ -241,18 +241,18 @@  discard block
 block discarded – undo
241 241
                 // 該当テンプレートのディレクトリ
242 242
                 $config = $app['config'];
243 243
                 $templateCode = $Template->getCode();
244
-                $targetRealDir = $config['root_dir'] . '/app/template/' . $templateCode;
245
-                $targetHtmlRealDir = $config['root_dir'] . '/html/template/' . $templateCode;
244
+                $targetRealDir = $config['root_dir'].'/app/template/'.$templateCode;
245
+                $targetHtmlRealDir = $config['root_dir'].'/html/template/'.$templateCode;
246 246
 
247 247
                 // 一時ディレクトリ
248 248
                 $uniqId = sha1(Str::random(32));
249
-                $tmpDir = $config['template_temp_realdir'] . '/' . $uniqId;
250
-                $appDir = $tmpDir . '/app';
251
-                $htmlDir = $tmpDir . '/html';
249
+                $tmpDir = $config['template_temp_realdir'].'/'.$uniqId;
250
+                $appDir = $tmpDir.'/app';
251
+                $htmlDir = $tmpDir.'/html';
252 252
 
253 253
                 $formFile = $form['file']->getData();
254 254
                 // ファイル名
255
-                $archive = $templateCode . '.' . $formFile->getClientOriginalExtension();
255
+                $archive = $templateCode.'.'.$formFile->getClientOriginalExtension();
256 256
 
257 257
                 // ファイルを一時ディレクトリへ移動.
258 258
                 $formFile->move($tmpDir, $archive);
@@ -261,11 +261,11 @@  discard block
 block discarded – undo
261 261
                 try {
262 262
                     if ($formFile->getClientOriginalExtension() == 'zip') {
263 263
                         $zip = new \ZipArchive();
264
-                        $zip->open($tmpDir . '/' . $archive);
264
+                        $zip->open($tmpDir.'/'.$archive);
265 265
                         $zip->extractTo($tmpDir);
266 266
                         $zip->close();
267 267
                     } else {
268
-                        $phar = new \PharData($tmpDir . '/' . $archive);
268
+                        $phar = new \PharData($tmpDir.'/'.$archive);
269 269
                         $phar->extractTo($tmpDir, null, true);
270 270
                     }
271 271
                 } catch (\Exception $e) {
Please login to merge, or discard this patch.
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -29,7 +29,6 @@
 block discarded – undo
29 29
 use Eccube\Form\Type\Admin\TemplateType;
30 30
 use Eccube\Util\Str;
31 31
 use Symfony\Component\Filesystem\Filesystem;
32
-use Symfony\Component\Finder\Finder;
33 32
 use Symfony\Component\Form\Extension\Core\Type\HiddenType;
34 33
 use Symfony\Component\Form\FormError;
35 34
 use Symfony\Component\HttpFoundation\Request;
Please login to merge, or discard this patch.