Failed Conditions
Pull Request — master (#1340)
by Tsuyoshi
16:42
created
src/Eccube/ServiceProvider/DebugServiceProvider.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -66,7 +66,7 @@  discard block
 block discarded – undo
66 66
 {
67 67
     public function register(Application $app)
68 68
     {
69
-        $app['var_dumper.cloner'] = $app->share(function ($app) {
69
+        $app['var_dumper.cloner'] = $app->share(function($app) {
70 70
             $cloner = new VarCloner();
71 71
 
72 72
             if (isset($app['debug.max_items'])) {
@@ -85,19 +85,19 @@  discard block
 block discarded – undo
85 85
             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']);
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,7 +123,7 @@  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 = new CliDumper();
128 128
             $dumper->dump($app['var_dumper.cloner']->cloneVar($var));
129 129
         });
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
@@ -47,7 +47,7 @@  discard block
 block discarded – undo
47 47
                 // リセットキーの発行・有効期限の設定
48 48
                 $Customer
49 49
                     ->setResetKey($app['eccube.repository.customer']->getUniqueResetKey($app))
50
-                    ->setResetExpire(new \DateTime('+' . $app['config']['customer_reset_expire'] .' min'));
50
+                    ->setResetExpire(new \DateTime('+'.$app['config']['customer_reset_expire'].' min'));
51 51
 
52 52
                 // リセットキーを更新
53 53
                 $app['orm.em']->persist($Customer);
@@ -61,7 +61,7 @@  discard block
 block discarded – undo
61 61
 
62 62
                 // ログ出力
63 63
                 $app['monolog']->addInfo(
64
-                    'send reset password mail to:'  . "{$Customer->getId()} {$Customer->getEmail()} {$request->getClientIp()}"
64
+                    'send reset password mail to:'."{$Customer->getId()} {$Customer->getEmail()} {$request->getClientIp()}"
65 65
                 );
66 66
             }
67 67
 
@@ -115,7 +115,7 @@  discard block
 block discarded – undo
115 115
 
116 116
             // ログ出力
117 117
             $app['monolog']->addInfo(
118
-                'reset password complete:' . "{$Customer->getId()} {$Customer->getEmail()} {$request->getClientIp()}"
118
+                'reset password complete:'."{$Customer->getId()} {$Customer->getEmail()} {$request->getClientIp()}"
119 119
             );
120 120
         } else {
121 121
             throw new HttpException\AccessDeniedHttpException('不正なアクセスです。');
Please login to merge, or discard this patch.
src/Eccube/Controller/Mypage/WithdrawController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -60,7 +60,7 @@
 block discarded – undo
60 60
                     // 会員削除
61 61
                     $email = $Customer->getEmail();
62 62
                     // メールアドレスにダミーをセット
63
-                    $Customer->setEmail(Str::random(60) . '@dummy.dummy');
63
+                    $Customer->setEmail(Str::random(60).'@dummy.dummy');
64 64
                     $Customer->setDelFlg(Constant::ENABLED);
65 65
 
66 66
                     $app['orm.em']->flush();
Please login to merge, or discard this patch.
src/Eccube/Event/FormEventSubscriber.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -36,18 +36,18 @@  discard block
 block discarded – undo
36 36
     {
37 37
         $events = array();
38 38
         // YamlでParseしてがんばる
39
-        $basePath = __DIR__ . '/../../../app/Plugin';
39
+        $basePath = __DIR__.'/../../../app/Plugin';
40 40
         $finder = Finder::create()
41 41
             ->in($basePath)
42 42
             ->directories()
43 43
             ->depth(0);
44 44
 
45 45
         foreach ($finder as $dir) {
46
-            $config = Yaml::parse(file_get_contents($dir->getRealPath() . '/config.yml'));
46
+            $config = Yaml::parse(file_get_contents($dir->getRealPath().'/config.yml'));
47 47
 
48 48
             if (isset($config['form'])) {
49 49
                 foreach ($config['form'] as $event => $class) {
50
-                    $events[$event][] = '\\Plugin\\' . $config['code'] . '\\' . $class;
50
+                    $events[$event][] = '\\Plugin\\'.$config['code'].'\\'.$class;
51 51
                 }
52 52
             }
53 53
         }
@@ -71,7 +71,7 @@  discard block
 block discarded – undo
71 71
         $events = self::getEvents();
72 72
 
73 73
         if (isset($events['onPreSetData'])) {
74
-            foreach($events['onPreSetData'] as $formEventClass) {
74
+            foreach ($events['onPreSetData'] as $formEventClass) {
75 75
                 $formEvent = new $formEventClass();
76 76
                 $formEvent->onPreSetData($event);
77 77
             }
@@ -83,7 +83,7 @@  discard block
 block discarded – undo
83 83
         $events = self::getEvents();
84 84
 
85 85
         if (isset($events['onPostSetData'])) {
86
-            foreach($events['onPostSetData'] as $formEventClass) {
86
+            foreach ($events['onPostSetData'] as $formEventClass) {
87 87
                 $formEvent = new $formEventClass();
88 88
                 $formEvent->onPostSetData($event);
89 89
             }
@@ -95,7 +95,7 @@  discard block
 block discarded – undo
95 95
         $events = self::getEvents();
96 96
 
97 97
         if (isset($events['onPreSubmit'])) {
98
-            foreach($events['onPreSubmit'] as $formEventClass) {
98
+            foreach ($events['onPreSubmit'] as $formEventClass) {
99 99
                 $formEvent = new $formEventClass();
100 100
                 $formEvent->onPreSubmit($event);
101 101
             }
@@ -107,7 +107,7 @@  discard block
 block discarded – undo
107 107
         $events = self::getEvents();
108 108
 
109 109
         if (isset($events['onSubmit'])) {
110
-            foreach($events['onSubmit'] as $formEventClass) {
110
+            foreach ($events['onSubmit'] as $formEventClass) {
111 111
                 $formEvent = new $formEventClass();
112 112
                 $formEvent->onSubmit($event);
113 113
             }
@@ -119,7 +119,7 @@  discard block
 block discarded – undo
119 119
         $events = self::getEvents();
120 120
 
121 121
         if (isset($events['onPostSubmit'])) {
122
-            foreach($events['onPostSubmit'] as $formEventClass) {
122
+            foreach ($events['onPostSubmit'] as $formEventClass) {
123 123
                 $formEvent = new $formEventClass();
124 124
                 $formEvent->onPostSubmit($event);
125 125
             }
Please login to merge, or discard this patch.