Failed Conditions
Pull Request — master (#1665)
by k-yamamura
38:49
created
src/Eccube/Security/Voter/AuthorityVoter.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@
 block discarded – undo
36 36
 
37 37
     public function __construct(Application $app)
38 38
     {
39
-        $this->app     = $app;
39
+        $this->app = $app;
40 40
     }
41 41
 
42 42
     public function supportsAttribute($attribute)
Please login to merge, or discard this patch.
src/Eccube/ServiceProvider/EccubeServiceProvider.php 1 patch
Spacing   +58 added lines, -58 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->setConfig($app['config']);
68 68
             $csvService->setCsvRepository($app['eccube.repository.csv']);
@@ -73,170 +73,170 @@  discard block
 block discarded – undo
73 73
 
74 74
             return $csvService;
75 75
         });
76
-        $app['eccube.service.shopping'] = $app->share(function () use ($app) {
76
+        $app['eccube.service.shopping'] = $app->share(function() use ($app) {
77 77
             return new \Eccube\Service\ShoppingService($app, $app['eccube.service.cart'], $app['eccube.service.order']);
78 78
         });
79 79
 
80 80
         // Repository
81
-        $app['eccube.repository.master.authority'] = $app->share(function () use ($app) {
81
+        $app['eccube.repository.master.authority'] = $app->share(function() use ($app) {
82 82
             return $app['orm.em']->getRepository('Eccube\Entity\Master\Authority');
83 83
         });
84
-        $app['eccube.repository.master.tag'] = $app->share(function () use ($app) {
84
+        $app['eccube.repository.master.tag'] = $app->share(function() use ($app) {
85 85
             return $app['orm.em']->getRepository('Eccube\Entity\Master\Tag');
86 86
         });
87
-        $app['eccube.repository.master.pref'] = $app->share(function () use ($app) {
87
+        $app['eccube.repository.master.pref'] = $app->share(function() use ($app) {
88 88
             return $app['orm.em']->getRepository('Eccube\Entity\Master\Pref');
89 89
         });
90
-        $app['eccube.repository.master.sex'] = $app->share(function () use ($app) {
90
+        $app['eccube.repository.master.sex'] = $app->share(function() use ($app) {
91 91
             return $app['orm.em']->getRepository('Eccube\Entity\Master\Sex');
92 92
         });
93
-        $app['eccube.repository.master.disp'] = $app->share(function () use ($app) {
93
+        $app['eccube.repository.master.disp'] = $app->share(function() use ($app) {
94 94
             return $app['orm.em']->getRepository('Eccube\Entity\Master\Disp');
95 95
         });
96
-        $app['eccube.repository.master.product_type'] = $app->share(function () use ($app) {
96
+        $app['eccube.repository.master.product_type'] = $app->share(function() use ($app) {
97 97
             return $app['orm.em']->getRepository('Eccube\Entity\Master\ProductType');
98 98
         });
99
-        $app['eccube.repository.master.page_max'] = $app->share(function () use ($app) {
99
+        $app['eccube.repository.master.page_max'] = $app->share(function() use ($app) {
100 100
             return $app['orm.em']->getRepository('Eccube\Entity\Master\PageMax');
101 101
         });
102
-        $app['eccube.repository.master.order_status'] = $app->share(function () use ($app) {
102
+        $app['eccube.repository.master.order_status'] = $app->share(function() use ($app) {
103 103
             return $app['orm.em']->getRepository('Eccube\Entity\Master\OrderStatus');
104 104
         });
105
-        $app['eccube.repository.master.device_type'] = $app->share(function () use ($app) {
105
+        $app['eccube.repository.master.device_type'] = $app->share(function() use ($app) {
106 106
             return $app['orm.em']->getRepository('Eccube\Entity\Master\DeviceType');
107 107
         });
108
-        $app['eccube.repository.master.csv_type'] = $app->share(function () use ($app) {
108
+        $app['eccube.repository.master.csv_type'] = $app->share(function() use ($app) {
109 109
             return $app['orm.em']->getRepository('Eccube\Entity\Master\CsvType');
110 110
         });
111 111
 
112
-        $app['eccube.repository.delivery'] = $app->share(function () use ($app) {
112
+        $app['eccube.repository.delivery'] = $app->share(function() use ($app) {
113 113
             return $app['orm.em']->getRepository('Eccube\Entity\Delivery');
114 114
         });
115
-        $app['eccube.repository.delivery_date'] = $app->share(function () use ($app) {
115
+        $app['eccube.repository.delivery_date'] = $app->share(function() use ($app) {
116 116
             return $app['orm.em']->getRepository('Eccube\Entity\DeliveryDate');
117 117
         });
118
-        $app['eccube.repository.delivery_fee'] = $app->share(function () use ($app) {
118
+        $app['eccube.repository.delivery_fee'] = $app->share(function() use ($app) {
119 119
             return $app['orm.em']->getRepository('Eccube\Entity\DeliveryFee');
120 120
         });
121
-        $app['eccube.repository.delivery_time'] = $app->share(function () use ($app) {
121
+        $app['eccube.repository.delivery_time'] = $app->share(function() use ($app) {
122 122
             return $app['orm.em']->getRepository('Eccube\Entity\DeliveryTime');
123 123
         });
124
-        $app['eccube.repository.payment'] = $app->share(function () use ($app) {
124
+        $app['eccube.repository.payment'] = $app->share(function() use ($app) {
125 125
             return $app['orm.em']->getRepository('Eccube\Entity\Payment');
126 126
         });
127
-        $app['eccube.repository.payment_option'] = $app->share(function () use ($app) {
127
+        $app['eccube.repository.payment_option'] = $app->share(function() use ($app) {
128 128
             return $app['orm.em']->getRepository('Eccube\Entity\PaymentOption');
129 129
         });
130
-        $app['eccube.repository.category'] = $app->share(function () use ($app) {
130
+        $app['eccube.repository.category'] = $app->share(function() use ($app) {
131 131
             return $app['orm.em']->getRepository('Eccube\Entity\Category');
132 132
         });
133
-        $app['eccube.repository.customer'] = $app->share(function () use ($app) {
133
+        $app['eccube.repository.customer'] = $app->share(function() use ($app) {
134 134
             return $app['orm.em']->getRepository('Eccube\Entity\Customer');
135 135
         });
136
-        $app['eccube.repository.news'] = $app->share(function () use ($app) {
136
+        $app['eccube.repository.news'] = $app->share(function() use ($app) {
137 137
             return $app['orm.em']->getRepository('Eccube\Entity\News');
138 138
         });
139
-        $app['eccube.repository.mail_history'] = $app->share(function () use ($app) {
139
+        $app['eccube.repository.mail_history'] = $app->share(function() use ($app) {
140 140
             return $app['orm.em']->getRepository('Eccube\Entity\MailHistory');
141 141
         });
142
-        $app['eccube.repository.member'] = $app->share(function () use ($app) {
142
+        $app['eccube.repository.member'] = $app->share(function() use ($app) {
143 143
             $memberRepository = $app['orm.em']->getRepository('Eccube\Entity\Member');
144 144
             $memberRepository->setEncoderFactorty($app['security.encoder_factory']);
145 145
             return $memberRepository;
146 146
         });
147
-        $app['eccube.repository.order'] = $app->share(function () use ($app) {
147
+        $app['eccube.repository.order'] = $app->share(function() use ($app) {
148 148
             return $app['orm.em']->getRepository('Eccube\Entity\Order');
149 149
         });
150
-        $app['eccube.repository.product'] = $app->share(function () use ($app) {
150
+        $app['eccube.repository.product'] = $app->share(function() use ($app) {
151 151
             $productRepository = $app['orm.em']->getRepository('Eccube\Entity\Product');
152 152
             return $productRepository;
153 153
         });
154
-        $app['eccube.repository.product_image'] = $app->share(function () use ($app) {
154
+        $app['eccube.repository.product_image'] = $app->share(function() use ($app) {
155 155
             return $app['orm.em']->getRepository('Eccube\Entity\ProductImage');
156 156
         });
157
-        $app['eccube.repository.product_class'] = $app->share(function () use ($app) {
157
+        $app['eccube.repository.product_class'] = $app->share(function() use ($app) {
158 158
             return $app['orm.em']->getRepository('Eccube\Entity\ProductClass');
159 159
         });
160
-        $app['eccube.repository.product_stock'] = $app->share(function () use ($app) {
160
+        $app['eccube.repository.product_stock'] = $app->share(function() use ($app) {
161 161
             return $app['orm.em']->getRepository('Eccube\Entity\ProductStock');
162 162
         });
163
-        $app['eccube.repository.class_name'] = $app->share(function () use ($app) {
163
+        $app['eccube.repository.class_name'] = $app->share(function() use ($app) {
164 164
             return $app['orm.em']->getRepository('Eccube\Entity\ClassName');
165 165
         });
166
-        $app['eccube.repository.class_category'] = $app->share(function () use ($app) {
166
+        $app['eccube.repository.class_category'] = $app->share(function() use ($app) {
167 167
             return $app['orm.em']->getRepository('Eccube\Entity\ClassCategory');
168 168
         });
169
-        $app['eccube.repository.customer_favorite_product'] = $app->share(function () use ($app) {
169
+        $app['eccube.repository.customer_favorite_product'] = $app->share(function() use ($app) {
170 170
             return $app['orm.em']->getRepository('Eccube\Entity\CustomerFavoriteProduct');
171 171
         });
172
-        $app['eccube.repository.base_info'] = $app->share(function () use ($app) {
172
+        $app['eccube.repository.base_info'] = $app->share(function() use ($app) {
173 173
             return $app['orm.em']->getRepository('Eccube\Entity\BaseInfo');
174 174
         });
175
-        $app['eccube.repository.tax_rule'] = $app->share(function () use ($app) {
175
+        $app['eccube.repository.tax_rule'] = $app->share(function() use ($app) {
176 176
             $taxRuleRepository = $app['orm.em']->getRepository('Eccube\Entity\TaxRule');
177 177
             $taxRuleRepository->setApplication($app);
178 178
 
179 179
             return $taxRuleRepository;
180 180
         });
181
-        $app['eccube.repository.page_layout'] = $app->share(function () use ($app) {
181
+        $app['eccube.repository.page_layout'] = $app->share(function() use ($app) {
182 182
             $pageLayoutRepository = $app['orm.em']->getRepository('Eccube\Entity\PageLayout');
183 183
             $pageLayoutRepository->setApplication($app);
184 184
 
185 185
             return $pageLayoutRepository;
186 186
         });
187
-        $app['eccube.repository.block'] = $app->share(function () use ($app) {
187
+        $app['eccube.repository.block'] = $app->share(function() use ($app) {
188 188
             $blockRepository = $app['orm.em']->getRepository('Eccube\Entity\Block');
189 189
             $blockRepository->setApplication($app);
190 190
 
191 191
             return $blockRepository;
192 192
         });
193
-        $app['eccube.repository.order'] = $app->share(function () use ($app) {
193
+        $app['eccube.repository.order'] = $app->share(function() use ($app) {
194 194
             $orderRepository = $app['orm.em']->getRepository('Eccube\Entity\Order');
195 195
             $orderRepository->setApplication($app);
196 196
 
197 197
             return $orderRepository;
198 198
         });
199
-        $app['eccube.repository.customer_address'] = $app->share(function () use ($app) {
199
+        $app['eccube.repository.customer_address'] = $app->share(function() use ($app) {
200 200
             return $app['orm.em']->getRepository('Eccube\Entity\CustomerAddress');
201 201
         });
202
-        $app['eccube.repository.shipping'] = $app->share(function () use ($app) {
202
+        $app['eccube.repository.shipping'] = $app->share(function() use ($app) {
203 203
             return $app['orm.em']->getRepository('Eccube\Entity\Shipping');
204 204
         });
205
-        $app['eccube.repository.customer_status'] = $app->share(function () use ($app) {
205
+        $app['eccube.repository.customer_status'] = $app->share(function() use ($app) {
206 206
             return $app['orm.em']->getRepository('Eccube\Entity\Master\CustomerStatus');
207 207
         });
208
-        $app['eccube.repository.order_status'] = $app->share(function () use ($app) {
208
+        $app['eccube.repository.order_status'] = $app->share(function() use ($app) {
209 209
             return $app['orm.em']->getRepository('Eccube\Entity\Master\OrderStatus');
210 210
         });
211
-        $app['eccube.repository.mail_template'] = $app->share(function () use ($app) {
211
+        $app['eccube.repository.mail_template'] = $app->share(function() use ($app) {
212 212
             return $app['orm.em']->getRepository('Eccube\Entity\MailTemplate');
213 213
         });
214
-        $app['eccube.repository.csv'] = $app->share(function () use ($app) {
214
+        $app['eccube.repository.csv'] = $app->share(function() use ($app) {
215 215
             return $app['orm.em']->getRepository('Eccube\Entity\Csv');
216 216
         });
217
-        $app['eccube.repository.template'] = $app->share(function () use ($app) {
217
+        $app['eccube.repository.template'] = $app->share(function() use ($app) {
218 218
             return $app['orm.em']->getRepository('Eccube\Entity\Template');
219 219
         });
220
-        $app['eccube.repository.authority_role'] = $app->share(function () use ($app) {
220
+        $app['eccube.repository.authority_role'] = $app->share(function() use ($app) {
221 221
             return $app['orm.em']->getRepository('Eccube\Entity\AuthorityRole');
222 222
         });
223 223
 
224
-        $app['paginator'] = $app->protect(function () {
224
+        $app['paginator'] = $app->protect(function() {
225 225
             return new \Knp\Component\Pager\Paginator();
226 226
         });
227 227
 
228
-        $app['eccube.repository.help'] = $app->share(function () use ($app) {
228
+        $app['eccube.repository.help'] = $app->share(function() use ($app) {
229 229
             return $app['orm.em']->getRepository('Eccube\Entity\Help');
230 230
         });
231
-        $app['eccube.repository.plugin'] = $app->share(function () use ($app) {
231
+        $app['eccube.repository.plugin'] = $app->share(function() use ($app) {
232 232
             return $app['orm.em']->getRepository('Eccube\Entity\Plugin');
233 233
         });
234
-        $app['eccube.repository.plugin_event_handler'] = $app->share(function () use ($app) {
234
+        $app['eccube.repository.plugin_event_handler'] = $app->share(function() use ($app) {
235 235
             return $app['orm.em']->getRepository('Eccube\Entity\PluginEventHandler');
236 236
         });
237 237
         // em
238 238
         if (isset($app['orm.em'])) {
239
-            $app['orm.em'] = $app->share($app->extend('orm.em', function (\Doctrine\ORM\EntityManager $em, \Silex\Application $app) {
239
+            $app['orm.em'] = $app->share($app->extend('orm.em', function(\Doctrine\ORM\EntityManager $em, \Silex\Application $app) {
240 240
                 // tax_rule
241 241
                 $taxRuleRepository = $em->getRepository('Eccube\Entity\TaxRule');
242 242
                 $taxRuleRepository->setApplication($app);
@@ -259,13 +259,13 @@  discard block
 block discarded – undo
259 259
         }
260 260
 
261 261
         // Form\Type
262
-        $app['form.type.extensions'] = $app->share($app->extend('form.type.extensions', function ($extensions) use ($app) {
262
+        $app['form.type.extensions'] = $app->share($app->extend('form.type.extensions', function($extensions) use ($app) {
263 263
             $extensions[] = new \Eccube\Form\Extension\HelpTypeExtension();
264 264
             $extensions[] = new \Eccube\Form\Extension\FreezeTypeExtension();
265 265
 
266 266
             return $extensions;
267 267
         }));
268
-        $app['form.types'] = $app->share($app->extend('form.types', function ($types) use ($app) {
268
+        $app['form.types'] = $app->share($app->extend('form.types', function($types) use ($app) {
269 269
             $types[] = new \Eccube\Form\Type\NameType($app['config']);
270 270
             $types[] = new \Eccube\Form\Type\KanaType($app['config']);
271 271
             $types[] = new \Eccube\Form\Type\TelType($app['config']);
Please login to merge, or discard this patch.
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/Form/Type/Admin/OrderType.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -234,7 +234,7 @@  discard block
 block discarded – undo
234 234
                     '\Eccube\Entity\Customer'
235 235
                 )));
236 236
 
237
-        $builder->addEventListener(FormEvents::PRE_SUBMIT, function (FormEvent $event) use ($BaseInfo) {
237
+        $builder->addEventListener(FormEvents::PRE_SUBMIT, function(FormEvent $event) use ($BaseInfo) {
238 238
 
239 239
             if ($BaseInfo->getOptionMultipleShipping() == Constant::ENABLED) {
240 240
 
@@ -274,7 +274,7 @@  discard block
 block discarded – undo
274 274
             }
275 275
 
276 276
         });
277
-        $builder->addEventListener(FormEvents::POST_SUBMIT, function (FormEvent $event) {
277
+        $builder->addEventListener(FormEvents::POST_SUBMIT, function(FormEvent $event) {
278 278
             $form = $event->getForm();
279 279
             $orderDetails = $form['OrderDetails']->getData();
280 280
             if (empty($orderDetails) || count($orderDetails) < 1) {
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/Controller/Install/InstallController.php 1 patch
Spacing   +40 added lines, -40 removed lines patch added patch discarded remove patch
@@ -60,9 +60,9 @@  discard block
 block discarded – undo
60 60
 
61 61
     public function __construct()
62 62
     {
63
-        $this->config_path = __DIR__ . '/../../../../app/config/eccube';
64
-        $this->dist_path = __DIR__ . '/../../Resource/config';
65
-        $this->cache_path = __DIR__ . '/../../../../app/cache';
63
+        $this->config_path = __DIR__.'/../../../../app/config/eccube';
64
+        $this->dist_path = __DIR__.'/../../Resource/config';
65
+        $this->cache_path = __DIR__.'/../../../../app/cache';
66 66
     }
67 67
 
68 68
     private function isValid(Request $request, Form $form)
@@ -147,7 +147,7 @@  discard block
 block discarded – undo
147 147
 
148 148
         if (empty($sessionData['shop_name'])) {
149 149
 
150
-            $config_file = $this->config_path . '/config.yml';
150
+            $config_file = $this->config_path.'/config.yml';
151 151
             $fs = new Filesystem();
152 152
 
153 153
             if ($fs->exists($config_file)) {
@@ -161,21 +161,21 @@  discard block
 block discarded – undo
161 161
                 }
162 162
 
163 163
                 // セキュリティの設定
164
-                $config_file = $this->config_path . '/path.yml';
164
+                $config_file = $this->config_path.'/path.yml';
165 165
                 $config = Yaml::parse(file_get_contents($config_file));
166 166
                 $sessionData['admin_dir'] = $config['admin_route'];
167 167
 
168
-                $config_file = $this->config_path . '/config.yml';
168
+                $config_file = $this->config_path.'/config.yml';
169 169
                 $config = Yaml::parse(file_get_contents($config_file));
170 170
 
171 171
                 $allowHost = $config['admin_allow_host'];
172 172
                 if (count($allowHost) > 0) {
173 173
                     $sessionData['admin_allow_hosts'] = Str::convertLineFeed(implode("\n", $allowHost));
174 174
                 }
175
-                $sessionData['admin_force_ssl'] = (bool)$config['force_ssl'];
175
+                $sessionData['admin_force_ssl'] = (bool) $config['force_ssl'];
176 176
 
177 177
                 // メール設定
178
-                $config_file = $this->config_path . '/mail.yml';
178
+                $config_file = $this->config_path.'/mail.yml';
179 179
                 $config = Yaml::parse(file_get_contents($config_file));
180 180
                 $mail = $config['mail'];
181 181
                 $sessionData['mail_backend'] = $mail['transport'];
@@ -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
 
@@ -306,13 +306,13 @@  discard block
 block discarded – undo
306 306
     //    インストール完了
307 307
     public function complete(InstallApplication $app, Request $request)
308 308
     {
309
-        $config_file = $this->config_path . '/path.yml';
309
+        $config_file = $this->config_path.'/path.yml';
310 310
         $config = Yaml::parse(file_get_contents($config_file));
311 311
 
312 312
         $host = $request->getSchemeAndHttpHost();
313 313
         $basePath = $request->getBasePath();
314 314
 
315
-        $adminUrl = $host . $basePath . '/' . $config['admin_dir'];
315
+        $adminUrl = $host.$basePath.'/'.$config['admin_dir'];
316 316
 
317 317
         return $app['twig']->render('complete.twig', array(
318 318
             'admin_url' => $adminUrl,
@@ -332,17 +332,17 @@  discard block
 block discarded – undo
332 332
     {
333 333
         foreach ($this->required_modules as $module) {
334 334
             if (!extension_loaded($module)) {
335
-                $app->addDanger('[必須] ' . $module . ' 拡張モジュールが有効になっていません。', 'install');
335
+                $app->addDanger('[必須] '.$module.' 拡張モジュールが有効になっていません。', 'install');
336 336
             }
337 337
         }
338 338
 
339 339
         if (!extension_loaded('pdo_mysql') && !extension_loaded('pdo_pgsql')) {
340
-            $app->addDanger('[必須] ' . 'pdo_pgsql又はpdo_mysql 拡張モジュールを有効にしてください。', 'install');
340
+            $app->addDanger('[必須] '.'pdo_pgsql又はpdo_mysql 拡張モジュールを有効にしてください。', 'install');
341 341
         }
342 342
 
343 343
         foreach ($this->recommended_module as $module) {
344 344
             if (!extension_loaded($module)) {
345
-                $app->addWarning('[推奨] ' . $module . ' 拡張モジュールが有効になっていません。', 'install');
345
+                $app->addWarning('[推奨] '.$module.' 拡張モジュールが有効になっていません。', 'install');
346 346
             }
347 347
         }
348 348
 
@@ -360,7 +360,7 @@  discard block
 block discarded – undo
360 360
             if (!function_exists('apache_get_modules')) {
361 361
                 $app->addWarning('mod_rewrite が有効になっているか不明です。', 'install');
362 362
             } elseif (!in_array('mod_rewrite', apache_get_modules())) {
363
-                $app->addDanger('[必須] ' . 'mod_rewriteを有効にしてください。', 'install');
363
+                $app->addDanger('[必須] '.'mod_rewriteを有効にしてください。', 'install');
364 364
             }
365 365
         } elseif (isset($_SERVER['SERVER_SOFTWARE']) && strpos('Microsoft-IIS', $_SERVER['SERVER_SOFTWARE']) !== false) {
366 366
             // iis
@@ -371,7 +371,7 @@  discard block
 block discarded – undo
371 371
 
372 372
     private function setPDO()
373 373
     {
374
-        $config_file = $this->config_path . '/database.yml';
374
+        $config_file = $this->config_path.'/database.yml';
375 375
         $config = Yaml::parse(file_get_contents($config_file));
376 376
 
377 377
         try {
@@ -406,7 +406,7 @@  discard block
 block discarded – undo
406 406
      */
407 407
     private function getEntityManager()
408 408
     {
409
-        $config_file = $this->config_path . '/database.yml';
409
+        $config_file = $this->config_path.'/database.yml';
410 410
         $database = Yaml::parse(file_get_contents($config_file));
411 411
 
412 412
         $this->app->register(new \Silex\Provider\DoctrineServiceProvider(), array(
@@ -414,15 +414,15 @@  discard block
 block discarded – undo
414 414
         ));
415 415
 
416 416
         $this->app->register(new \Dflydev\Silex\Provider\DoctrineOrm\DoctrineOrmServiceProvider(), array(
417
-            'orm.proxies_dir' => __DIR__ . '/../../app/cache/doctrine',
417
+            'orm.proxies_dir' => __DIR__.'/../../app/cache/doctrine',
418 418
             'orm.em.options' => array(
419 419
                 'mappings' => array(
420 420
                     array(
421 421
                         'type' => 'yml',
422 422
                         'namespace' => 'Eccube\Entity',
423 423
                         'path' => array(
424
-                            __DIR__ . '/../../Resource/doctrine',
425
-                            __DIR__ . '/../../Resource/doctrine/master',
424
+                            __DIR__.'/../../Resource/doctrine',
425
+                            __DIR__.'/../../Resource/doctrine/master',
426 426
                         ),
427 427
                     ),
428 428
 
@@ -450,11 +450,11 @@  discard block
 block discarded – undo
450 450
     {
451 451
         $this->resetNatTimer();
452 452
 
453
-        $config_file = $this->config_path . '/database.yml';
453
+        $config_file = $this->config_path.'/database.yml';
454 454
         $database = Yaml::parse(file_get_contents($config_file));
455 455
         $config['database'] = $database['database'];
456 456
 
457
-        $config_file = $this->config_path . '/config.yml';
457
+        $config_file = $this->config_path.'/config.yml';
458 458
         $baseConfig = Yaml::parse(file_get_contents($config_file));
459 459
         $config['config'] = $baseConfig;
460 460
 
@@ -510,11 +510,11 @@  discard block
 block discarded – undo
510 510
     {
511 511
         $this->resetNatTimer();
512 512
 
513
-        $config_file = $this->config_path . '/database.yml';
513
+        $config_file = $this->config_path.'/database.yml';
514 514
         $database = Yaml::parse(file_get_contents($config_file));
515 515
         $config['database'] = $database['database'];
516 516
 
517
-        $config_file = $this->config_path . '/config.yml';
517
+        $config_file = $this->config_path.'/config.yml';
518 518
         $baseConfig = Yaml::parse(file_get_contents($config_file));
519 519
         $config['config'] = $baseConfig;
520 520
 
@@ -579,7 +579,7 @@  discard block
 block discarded – undo
579 579
         $config = new Configuration($app['db']);
580 580
         $config->setMigrationsNamespace('DoctrineMigrations');
581 581
 
582
-        $migrationDir = __DIR__ . '/../../Resource/doctrine/migration';
582
+        $migrationDir = __DIR__.'/../../Resource/doctrine/migration';
583 583
         $config->setMigrationsDirectory($migrationDir);
584 584
         $config->registerMigrationsFromDirectory($migrationDir);
585 585
 
@@ -610,7 +610,7 @@  discard block
 block discarded – undo
610 610
     private function getProtectedDirs()
611 611
     {
612 612
         $protectedDirs = array();
613
-        $base = __DIR__ . '/../../../..';
613
+        $base = __DIR__.'/../../../..';
614 614
         $dirs = array(
615 615
             '/html',
616 616
             '/app',
@@ -623,7 +623,7 @@  discard block
 block discarded – undo
623 623
         );
624 624
 
625 625
         foreach ($dirs as $dir) {
626
-            if (!is_writable($base . $dir)) {
626
+            if (!is_writable($base.$dir)) {
627 627
                 $protectedDirs[] = $dir;
628 628
             }
629 629
         }
@@ -634,7 +634,7 @@  discard block
 block discarded – undo
634 634
     private function createConfigYamlFile($data, $auth = true)
635 635
     {
636 636
         $fs = new Filesystem();
637
-        $config_file = $this->config_path . '/config.yml';
637
+        $config_file = $this->config_path.'/config.yml';
638 638
 
639 639
         if ($fs->exists($config_file)) {
640 640
             $config = Yaml::parse(file_get_contents($config_file));
@@ -665,7 +665,7 @@  discard block
 block discarded – undo
665 665
         $content = str_replace(
666 666
             $target,
667 667
             $replace,
668
-            file_get_contents($this->dist_path . '/config.yml.dist')
668
+            file_get_contents($this->dist_path.'/config.yml.dist')
669 669
         );
670 670
         $fs->dumpFile($config_file, $content);
671 671
 
@@ -679,7 +679,7 @@  discard block
 block discarded – undo
679 679
 
680 680
     private function addInstallStatus()
681 681
     {
682
-        $config_file = $this->config_path . '/config.yml';
682
+        $config_file = $this->config_path.'/config.yml';
683 683
         $config = Yaml::parse(file_get_contents($config_file));
684 684
         $config['eccube_install'] = 1;
685 685
         $yml = Yaml::dump($config);
@@ -691,7 +691,7 @@  discard block
 block discarded – undo
691 691
     private function createDatabaseYamlFile($data)
692 692
     {
693 693
         $fs = new Filesystem();
694
-        $config_file = $this->config_path . '/database.yml';
694
+        $config_file = $this->config_path.'/database.yml';
695 695
         if ($fs->exists($config_file)) {
696 696
             $fs->remove($config_file);
697 697
         }
@@ -725,7 +725,7 @@  discard block
 block discarded – undo
725 725
             $content = str_replace(
726 726
                 $target,
727 727
                 $replace,
728
-                file_get_contents($this->dist_path . '/database.yml.dist')
728
+                file_get_contents($this->dist_path.'/database.yml.dist')
729 729
             );
730 730
 
731 731
         } else {
@@ -744,7 +744,7 @@  discard block
 block discarded – undo
744 744
     private function createMailYamlFile($data)
745 745
     {
746 746
         $fs = new Filesystem();
747
-        $config_file = $this->config_path . '/mail.yml';
747
+        $config_file = $this->config_path.'/mail.yml';
748 748
         if ($fs->exists($config_file)) {
749 749
             $fs->remove($config_file);
750 750
         }
@@ -761,7 +761,7 @@  discard block
 block discarded – undo
761 761
         $content = str_replace(
762 762
             $target,
763 763
             $replace,
764
-            file_get_contents($this->dist_path . '/mail.yml.dist')
764
+            file_get_contents($this->dist_path.'/mail.yml.dist')
765 765
         );
766 766
         $fs->dumpFile($config_file, $content);
767 767
 
@@ -771,7 +771,7 @@  discard block
 block discarded – undo
771 771
     private function createPathYamlFile($data, Request $request)
772 772
     {
773 773
         $fs = new Filesystem();
774
-        $config_file = $this->config_path . '/path.yml';
774
+        $config_file = $this->config_path.'/path.yml';
775 775
         if ($fs->exists($config_file)) {
776 776
             $fs->remove($config_file);
777 777
         }
@@ -779,7 +779,7 @@  discard block
 block discarded – undo
779 779
         $ADMIN_ROUTE = $data['admin_dir'];
780 780
         $TEMPLATE_CODE = 'default';
781 781
         $USER_DATA_ROUTE = 'user_data';
782
-        $ROOT_DIR = realpath(__DIR__ . '/../../../../');
782
+        $ROOT_DIR = realpath(__DIR__.'/../../../../');
783 783
         $ROOT_URLPATH = $request->getBasePath();
784 784
 
785 785
         $target = array('${ADMIN_ROUTE}', '${TEMPLATE_CODE}', '${USER_DATA_ROUTE}', '${ROOT_DIR}', '${ROOT_URLPATH}');
@@ -789,7 +789,7 @@  discard block
 block discarded – undo
789 789
         $content = str_replace(
790 790
             $target,
791 791
             $replace,
792
-            file_get_contents($this->dist_path . '/path.yml.dist')
792
+            file_get_contents($this->dist_path.'/path.yml.dist')
793 793
         );
794 794
         $fs->dumpFile($config_file, $content);
795 795
 
@@ -798,7 +798,7 @@  discard block
 block discarded – undo
798 798
 
799 799
     private function sendAppData($params)
800 800
     {
801
-        $config_file = $this->config_path . '/database.yml';
801
+        $config_file = $this->config_path.'/database.yml';
802 802
         $db_config = Yaml::parse(file_get_contents($config_file));
803 803
 
804 804
         $this->setPDO();
@@ -810,7 +810,7 @@  discard block
 block discarded – undo
810 810
         }
811 811
 
812 812
         if ($db_config['database']['driver'] === 'pdo_mysql') {
813
-            $db_ver = 'MySQL:' . $version;
813
+            $db_ver = 'MySQL:'.$version;
814 814
         } else {
815 815
             $db_ver = $version;
816 816
         }
@@ -828,7 +828,7 @@  discard block
 block discarded – undo
828 828
 
829 829
         $header = array(
830 830
             'Content-Type: application/x-www-form-urlencoded',
831
-            'Content-Length: ' . strlen($data),
831
+            'Content-Length: '.strlen($data),
832 832
         );
833 833
         $context = stream_context_create(
834 834
             array(
Please login to merge, or discard this patch.
src/Eccube/Form/Type/Install/Step4Type.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -96,7 +96,7 @@  discard block
 block discarded – undo
96 96
                     new Assert\Callback(array($this, 'validate')),
97 97
                 ),
98 98
             ))
99
-            ->addEventListener(FormEvents::POST_SUBMIT, function ($event) {
99
+            ->addEventListener(FormEvents::POST_SUBMIT, function($event) {
100 100
                 $form = $event->getForm();
101 101
                 $data = $form->getData();
102 102
                 try {
@@ -121,7 +121,7 @@  discard block
 block discarded – undo
121 121
                     $conn = \Doctrine\DBAL\DriverManager::getConnection($connectionParams, $config);
122 122
                     $conn->connect();
123 123
                 } catch (\Exception $e) {
124
-                    $form['database']->addError(new FormError('データベースに接続できませんでした。' . $e->getMessage()));
124
+                    $form['database']->addError(new FormError('データベースに接続できませんでした。'.$e->getMessage()));
125 125
                 }
126 126
             });
127 127
     }
@@ -137,7 +137,7 @@  discard block
 block discarded – undo
137 137
     public function validate($data, ExecutionContext $context, $param = null)
138 138
     {
139 139
         $parameters = $this->app['request']->get('install_step4');
140
-        if ($parameters['database'] != 'pdo_sqlite'){
140
+        if ($parameters['database'] != 'pdo_sqlite') {
141 141
             $context->validateValue($data, array(
142 142
                 new Assert\NotBlank()
143 143
             ));
Please login to merge, or discard this patch.
src/Eccube/Service/PluginService.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -119,7 +119,7 @@
 block discarded – undo
119 119
     public function checkPluginArchiveContent($dir)
120 120
     {
121 121
         try {
122
-            $meta = $this->readYml($dir . '/config.yml');
122
+            $meta = $this->readYml($dir.'/config.yml');
123 123
         } catch (\Symfony\Component\Yaml\Exception\ParseException $e) {
124 124
             $this->app['monolog']->warning($e->getMessage());
125 125
             throw new PluginException($e->getMessage(), $e->getCode(), $e);
Please login to merge, or discard this patch.