Failed Conditions
Push — experimental/3.1 ( 243c6b...0c67c0 )
by Yangsin
65:47
created
src/Eccube/Form/Type/Shopping/OrderType.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -83,7 +83,7 @@  discard block
 block discarded – undo
83 83
         // 支払い方法のプルダウンを生成
84 84
         $builder->addEventListener(
85 85
             FormEvents::PRE_SET_DATA,
86
-            function (FormEvent $event) {
86
+            function(FormEvent $event) {
87 87
                 $Order = $event->getData();
88 88
                 if (is_null($Order) || !$Order->getId()) {
89 89
                     return;
@@ -132,7 +132,7 @@  discard block
 block discarded – undo
132 132
         // TODO Calculatorで行うのが適切.
133 133
         $builder->addEventListener(
134 134
             FormEvents::POST_SUBMIT,
135
-            function (FormEvent $event) {
135
+            function(FormEvent $event) {
136 136
                 /** @var Order $Order */
137 137
                 $Order = $event->getData();
138 138
                 $Payment = $Order->getPayment();
Please login to merge, or discard this patch.
src/Eccube/Doctrine/ORM/Query/Extract.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -121,14 +121,14 @@
 block discarded – undo
121 121
                 $sql = sprintf(
122 122
                     "EXTRACT(%s FROM %s %s $op INTERVAL '$second SECONDS')",
123 123
                     $this->field,
124
-                    (string)$this->type,
124
+                    (string) $this->type,
125 125
                     $this->source->dispatch($sqlWalker));
126 126
                 break;
127 127
             default:
128 128
                 $sql = sprintf(
129 129
                     "EXTRACT(%s FROM %s %s $op INTERVAL $second SECOND)",
130 130
                     $this->field,
131
-                    (string)$this->type,
131
+                    (string) $this->type,
132 132
                     $this->source->dispatch($sqlWalker));
133 133
         }
134 134
 
Please login to merge, or discard this patch.
src/Eccube/Doctrine/Common/CsvDataFixtures/Loader.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -43,7 +43,7 @@
 block discarded – undo
43 43
             ->name('*.csv')
44 44
             ->sort(
45 45
                 // 定義ファイルに記載の順にソート.
46
-                function (\SplFileInfo $a, \SplFileInfo $b) use ($definition) {
46
+                function(\SplFileInfo $a, \SplFileInfo $b) use ($definition) {
47 47
                     if (!isset($definition[$a->getFilename()])) {
48 48
                         throw new \Exception(sprintf('"%s" is undefined in %s', $a->getFilename()));
49 49
                     }
Please login to merge, or discard this patch.
install.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -26,11 +26,11 @@
 block discarded – undo
26 26
     apc_clear_cache();
27 27
 }
28 28
 
29
-require __DIR__ . '/autoload.php';
29
+require __DIR__.'/autoload.php';
30 30
 
31 31
 $app = new Eccube\InstallApplication();
32 32
 $app['debug'] = true;
33
-$app->before(function (\Symfony\Component\HttpFoundation\Request $request, \Silex\Application $app) {
33
+$app->before(function(\Symfony\Component\HttpFoundation\Request $request, \Silex\Application $app) {
34 34
     if (!$request->getSession()->isStarted()) {
35 35
         $request->getSession()->start();
36 36
     }
Please login to merge, or discard this patch.
index.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@
 block discarded – undo
25 25
 require __DIR__.'/autoload.php';
26 26
 
27 27
 ini_set('display_errors', 'Off');
28
-error_reporting(E_ALL & ~E_DEPRECATED & ~E_STRICT);
28
+error_reporting(E_ALL&~E_DEPRECATED&~E_STRICT);
29 29
 
30 30
 // see http://silex.sensiolabs.org/doc/web_servers.html#php-5-4
31 31
 $filename = __DIR__.preg_replace('#(\?.*)$#', '', $_SERVER['REQUEST_URI']);
Please login to merge, or discard this patch.
src/Eccube/Plugin/AbstractPluginManager.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -9,12 +9,12 @@
 block discarded – undo
9 9
 
10 10
     CONST MIGRATION_TABLE_PREFIX = 'migration_';
11 11
 
12
-    public function migrationSchema($app,$migrationFilePath,$pluginCode,$version=null)
12
+    public function migrationSchema($app, $migrationFilePath, $pluginCode, $version = null)
13 13
     {
14 14
         $config = new Configuration($app['db']);
15 15
         $config->setMigrationsNamespace('DoctrineMigrations');
16 16
         $config->setMigrationsDirectory($migrationFilePath);
17
-        $config->registerMigrationsFromDirectory($migrationFilePath );
17
+        $config->registerMigrationsFromDirectory($migrationFilePath);
18 18
         $config->setMigrationsTableName(self::MIGRATION_TABLE_PREFIX.$pluginCode);
19 19
         $migration = new Migration($config);
20 20
         $migration->setNoMigrationException(true);
Please login to merge, or discard this patch.
src/Eccube/Controller/Install/InstallController.php 1 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/Twig/Extension/EccubeExtension.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -66,7 +66,7 @@  discard block
 block discarded – undo
66 66
                     if (is_callable($function)) {
67 67
                         return call_user_func_array($function, $arg_list);
68 68
                     }
69
-                    trigger_error('Called to an undefined function : php_'. $function, E_USER_WARNING);
69
+                    trigger_error('Called to an undefined function : php_'.$function, E_USER_WARNING);
70 70
 
71 71
             }, ['pre_escape' => 'html', 'is_safe' => ['html']]),
72 72
 
@@ -154,7 +154,7 @@  discard block
 block discarded – undo
154 154
     public function getCsrfTokenForAnchor()
155 155
     {
156 156
         $token = $this->app['csrf.token_manager']->getToken(Constant::TOKEN_NAME)->getValue();
157
-        return 'token-for-anchor=\'' . $token . '\'';
157
+        return 'token-for-anchor=\''.$token.'\'';
158 158
     }
159 159
 
160 160
     /**
@@ -189,7 +189,7 @@  discard block
 block discarded – undo
189 189
     public function getPriceFilter($number, $decimals = 0, $decPoint = '.', $thousandsSep = ',')
190 190
     {
191 191
         $price = number_format($number, $decimals, $decPoint, $thousandsSep);
192
-        $price = '¥ ' . $price;
192
+        $price = '¥ '.$price;
193 193
 
194 194
         return $price;
195 195
     }
Please login to merge, or discard this patch.
src/Eccube/Doctrine/ORM/Mapping/Driver/AnnotationDriver.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -54,7 +54,7 @@  discard block
 block discarded – undo
54 54
         $includedFiles = [];
55 55
 
56 56
         foreach ($this->paths as $path) {
57
-            if ( ! is_dir($path)) {
57
+            if (!is_dir($path)) {
58 58
                 throw MappingException::fileMappingDriversRequireConfiguredDirectoryPath($path);
59 59
             }
60 60
 
@@ -63,14 +63,14 @@  discard block
 block discarded – undo
63 63
                     new \RecursiveDirectoryIterator($path, \FilesystemIterator::SKIP_DOTS),
64 64
                     \RecursiveIteratorIterator::LEAVES_ONLY
65 65
                 ),
66
-                '/^.+' . preg_quote($this->fileExtension) . '$/i',
66
+                '/^.+'.preg_quote($this->fileExtension).'$/i',
67 67
                 \RecursiveRegexIterator::GET_MATCH
68 68
             );
69 69
 
70 70
             foreach ($iterator as $file) {
71 71
                 $sourceFile = $file[0];
72 72
 
73
-                if ( ! preg_match('(^phar:)i', $sourceFile)) {
73
+                if (!preg_match('(^phar:)i', $sourceFile)) {
74 74
                     $sourceFile = realpath($sourceFile);
75 75
                 }
76 76
 
@@ -101,7 +101,7 @@  discard block
 block discarded – undo
101 101
         foreach ($declared as $className) {
102 102
             $rc = new \ReflectionClass($className);
103 103
             $sourceFile = $rc->getFileName();
104
-            if (in_array($sourceFile, $includedFiles) && ! $this->isTransient($className)) {
104
+            if (in_array($sourceFile, $includedFiles) && !$this->isTransient($className)) {
105 105
                 $classes[] = $className;
106 106
             }
107 107
         }
Please login to merge, or discard this patch.