Completed
Pull Request — master (#1538)
by k-yamamura
70:33 queued 42:02
created
src/Eccube/Security/Core/Encoder/PasswordEncoder.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -53,7 +53,7 @@  discard block
 block discarded – undo
53 53
         if ($this->config['auth_type'] == 'PLAIN') {
54 54
             $res = $raw;
55 55
         } else {
56
-            $res = hash_hmac($this->config['password_hash_algos'], $raw . ':' . $this->config['auth_magic'], $salt);
56
+            $res = hash_hmac($this->config['password_hash_algos'], $raw.':'.$this->config['auth_magic'], $salt);
57 57
         }
58 58
 
59 59
         return $res;
@@ -81,7 +81,7 @@  discard block
 block discarded – undo
81 81
         } else {
82 82
             // 旧バージョン(2.11未満)からの移行を考慮
83 83
             if (empty($salt)) {
84
-                $hash = sha1($raw . ':' . $this->config['auth_magic']);
84
+                $hash = sha1($raw.':'.$this->config['auth_magic']);
85 85
             } else {
86 86
                 $hash = $this->encodePassword($raw, $salt);
87 87
             }
Please login to merge, or discard this patch.
src/Eccube/Service/MailService.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -57,7 +57,7 @@  discard block
 block discarded – undo
57 57
         ));
58 58
 
59 59
         $message = \Swift_Message::newInstance()
60
-            ->setSubject('[' . $this->BaseInfo->getShopName() . '] 会員登録のご確認')
60
+            ->setSubject('['.$this->BaseInfo->getShopName().'] 会員登録のご確認')
61 61
             ->setFrom(array($this->BaseInfo->getEmail01() => $this->BaseInfo->getShopName()))
62 62
             ->setTo(array($Customer->getEmail()))
63 63
             ->setBcc($this->BaseInfo->getEmail01())
@@ -82,7 +82,7 @@  discard block
 block discarded – undo
82 82
         ));
83 83
 
84 84
         $message = \Swift_Message::newInstance()
85
-            ->setSubject('[' . $this->BaseInfo->getShopName() . '] 会員登録が完了しました。')
85
+            ->setSubject('['.$this->BaseInfo->getShopName().'] 会員登録が完了しました。')
86 86
             ->setFrom(array($this->BaseInfo->getEmail01() => $this->BaseInfo->getShopName()))
87 87
             ->setTo(array($Customer->getEmail()))
88 88
             ->setBcc($this->BaseInfo->getEmail01())
@@ -111,7 +111,7 @@  discard block
 block discarded – undo
111 111
         ));
112 112
 
113 113
         $message = \Swift_Message::newInstance()
114
-            ->setSubject('[' . $this->BaseInfo->getShopName() . '] 退会手続きのご完了')
114
+            ->setSubject('['.$this->BaseInfo->getShopName().'] 退会手続きのご完了')
115 115
             ->setFrom(array($this->BaseInfo->getEmail01() => $this->BaseInfo->getShopName()))
116 116
             ->setTo(array($email))
117 117
             ->setBcc($this->BaseInfo->getEmail01())
@@ -139,7 +139,7 @@  discard block
 block discarded – undo
139 139
 
140 140
         // 問い合わせ者にメール送信
141 141
         $message = \Swift_Message::newInstance()
142
-            ->setSubject('[' . $this->BaseInfo->getShopName() . '] お問い合わせを受け付けました。')
142
+            ->setSubject('['.$this->BaseInfo->getShopName().'] お問い合わせを受け付けました。')
143 143
             ->setFrom(array($this->BaseInfo->getEmail01() => $this->BaseInfo->getShopName()))
144 144
             ->setTo(array($formData['email']))
145 145
             ->setBcc($this->BaseInfo->getEmail01())
@@ -169,7 +169,7 @@  discard block
 block discarded – undo
169 169
         ));
170 170
 
171 171
         $message = \Swift_Message::newInstance()
172
-            ->setSubject('[' . $this->BaseInfo->getShopName() . '] ' . $MailTemplate->getSubject())
172
+            ->setSubject('['.$this->BaseInfo->getShopName().'] '.$MailTemplate->getSubject())
173 173
             ->setFrom(array($this->BaseInfo->getEmail01() => $this->BaseInfo->getShopName()))
174 174
             ->setTo(array($Order->getEmail()))
175 175
             ->setBcc($this->BaseInfo->getEmail01())
@@ -197,7 +197,7 @@  discard block
 block discarded – undo
197 197
         ));
198 198
 
199 199
         $message = \Swift_Message::newInstance()
200
-            ->setSubject('[' . $this->BaseInfo->getShopName() . '] 会員登録のご確認')
200
+            ->setSubject('['.$this->BaseInfo->getShopName().'] 会員登録のご確認')
201 201
             ->setFrom(array($this->BaseInfo->getEmail03() => $this->BaseInfo->getShopName()))
202 202
             ->setTo(array($Customer->getEmail()))
203 203
             ->setBcc($this->BaseInfo->getEmail01())
@@ -226,7 +226,7 @@  discard block
 block discarded – undo
226 226
         ));
227 227
 
228 228
         $message = \Swift_Message::newInstance()
229
-            ->setSubject('[' . $this->BaseInfo->getShopName() . '] ' . $formData['subject'])
229
+            ->setSubject('['.$this->BaseInfo->getShopName().'] '.$formData['subject'])
230 230
             ->setFrom(array($this->BaseInfo->getEmail01() => $this->BaseInfo->getShopName()))
231 231
             ->setTo(array($Order->getEmail()))
232 232
             ->setBcc($this->BaseInfo->getEmail01())
@@ -251,7 +251,7 @@  discard block
 block discarded – undo
251 251
         ));
252 252
 
253 253
         $message = \Swift_Message::newInstance()
254
-            ->setSubject('[' . $this->BaseInfo->getShopName() . '] パスワード変更のご確認')
254
+            ->setSubject('['.$this->BaseInfo->getShopName().'] パスワード変更のご確認')
255 255
             ->setFrom(array($this->BaseInfo->getEmail01() => $this->BaseInfo->getShopName()))
256 256
             ->setTo(array($Customer->getEmail()))
257 257
             ->setBcc($this->BaseInfo->getEmail01())
@@ -276,7 +276,7 @@  discard block
 block discarded – undo
276 276
         ));
277 277
 
278 278
         $message = \Swift_Message::newInstance()
279
-            ->setSubject('[' . $this->BaseInfo->getShopName() . '] パスワード変更のお知らせ')
279
+            ->setSubject('['.$this->BaseInfo->getShopName().'] パスワード変更のお知らせ')
280 280
             ->setFrom(array($this->BaseInfo->getEmail01() => $this->BaseInfo->getShopName()))
281 281
             ->setTo(array($Customer->getEmail()))
282 282
             ->setBcc($this->BaseInfo->getEmail01())
Please login to merge, or discard this patch.
src/Eccube/ServiceProvider/InstallServiceProvider.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -40,13 +40,13 @@
 block discarded – undo
40 40
      */
41 41
     public function register(BaseApplication $app)
42 42
     {
43
-        $app['form.type.extensions'] = $app->share($app->extend('form.type.extensions', function ($extensions) use ($app) {
43
+        $app['form.type.extensions'] = $app->share($app->extend('form.type.extensions', function($extensions) use ($app) {
44 44
             $extensions[] = new \Eccube\Form\Extension\HelpTypeExtension();
45 45
 
46 46
             return $extensions;
47 47
         }));
48 48
 
49
-        $app['form.types'] = $app->share($app->extend('form.types', function ($types) use ($app) {
49
+        $app['form.types'] = $app->share($app->extend('form.types', function($types) use ($app) {
50 50
             $types[] = new \Eccube\Form\Type\Install\Step1Type($app);
51 51
             $types[] = new \Eccube\Form\Type\Install\Step3Type($app);
52 52
             $types[] = new \Eccube\Form\Type\Install\Step4Type($app);
Please login to merge, or discard this patch.
src/Eccube/ServiceProvider/ValidatorServiceProvider.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@  discard block
 block discarded – undo
28 28
 {
29 29
     public function register(Application $app)
30 30
     {
31
-        $app['validator'] = $app->share(function ($app) {
31
+        $app['validator'] = $app->share(function($app) {
32 32
 
33 33
             return new Validator(
34 34
                 $app['validator.mapping.class_metadata_factory'],
@@ -39,17 +39,17 @@  discard block
 block discarded – undo
39 39
             );
40 40
         });
41 41
 
42
-        $app['validator.mapping.class_metadata_factory'] = $app->share(function ($app) {
42
+        $app['validator.mapping.class_metadata_factory'] = $app->share(function($app) {
43 43
             return new ClassMetadataFactory(new StaticMethodLoader());
44 44
         });
45 45
 
46
-        $app['validator.validator_factory'] = $app->share(function () use ($app) {
46
+        $app['validator.validator_factory'] = $app->share(function() use ($app) {
47 47
             $validators = isset($app['validator.validator_service_ids']) ? $app['validator.validator_service_ids'] : array();
48 48
 
49 49
             return new ConstraintValidatorFactory($app, $validators);
50 50
         });
51 51
 
52
-        $app['validator.object_initializers'] = $app->share(function ($app) {
52
+        $app['validator.object_initializers'] = $app->share(function($app) {
53 53
             return array();
54 54
         });
55 55
     }
Please login to merge, or discard this patch.
src/Eccube/Twig/Extension/EccubeExtension.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -111,7 +111,7 @@  discard block
 block discarded – undo
111 111
     public function getCsrfTokenForAnchor()
112 112
     {
113 113
         $token = $this->app['form.csrf_provider']->getToken(Constant::TOKEN_NAME)->getValue();
114
-        return 'token-for-anchor=\'' . $token . '\'';
114
+        return 'token-for-anchor=\''.$token.'\'';
115 115
     }
116 116
 
117 117
     /**
@@ -146,7 +146,7 @@  discard block
 block discarded – undo
146 146
     public function getPriceFilter($number, $decimals = 0, $decPoint = '.', $thousandsSep = ',')
147 147
     {
148 148
         $price = number_format($number, $decimals, $decPoint, $thousandsSep);
149
-        $price = '¥ ' . $price;
149
+        $price = '¥ '.$price;
150 150
 
151 151
         return $price;
152 152
     }
Please login to merge, or discard this patch.
src/Eccube/Util/Str.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -159,7 +159,7 @@  discard block
 block discarded – undo
159 159
             return $value;
160 160
         }
161 161
 
162
-        return rtrim(mb_substr($value, 0, $length, 'UTF-8')) . $end;
162
+        return rtrim(mb_substr($value, 0, $length, 'UTF-8')).$end;
163 163
     }
164 164
 
165 165
 
@@ -186,18 +186,18 @@  discard block
 block discarded – undo
186 186
         }
187 187
         if ($diff->m == 1 || $diff->days > 0) {
188 188
             if ($diff->days <= 31) {
189
-                return $diff->days . '日前';
189
+                return $diff->days.'日前';
190 190
             }
191 191
             // return $date->format("Y/m/d H:i");
192 192
             return $date->format("Y/m/d");
193 193
         }
194 194
         if ($diff->h > 0) {
195
-            return $diff->h . "時間前";
195
+            return $diff->h."時間前";
196 196
         }
197 197
         if ($diff->i > 0) {
198
-            return $diff->i . "分前";
198
+            return $diff->i."分前";
199 199
         }
200
-        return $diff->s . "秒前";
200
+        return $diff->s."秒前";
201 201
     }
202 202
 
203 203
     /**
Please login to merge, or discard this patch.
src/silex-doctrine-migrations/MigrationServiceProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@
 block discarded – undo
24 24
         $app['db.migrations.table_name'] = null;
25 25
         $app['db.migrations.name'] = null;
26 26
 
27
-        $app['dispatcher']->addListener(ConsoleEvents::INIT, function (ConsoleEvent $event) use ($app) {
27
+        $app['dispatcher']->addListener(ConsoleEvents::INIT, function(ConsoleEvent $event) use ($app) {
28 28
             $application = $event->getApplication();
29 29
 
30 30
             $helpers = array('dialog' => new DialogHelper());
Please login to merge, or discard this patch.
src/Eccube/Controller/Admin/Content/BlockController.php 2 patches
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -28,7 +28,6 @@
 block discarded – undo
28 28
 use Eccube\Entity\Master\DeviceType;
29 29
 use Eccube\Util\Str;
30 30
 use Symfony\Component\Filesystem\Filesystem;
31
-use Symfony\Component\Finder\Finder;
32 31
 use Symfony\Component\Form\FormError;
33 32
 use Symfony\Component\HttpFoundation\Request;
34 33
 use Symfony\Component\HttpFoundation\Response;
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -113,13 +113,13 @@  discard block
 block discarded – undo
113 113
                 // ファイル生成・更新
114 114
                 $tplDir = $app['config']['block_realdir'];
115 115
 
116
-                $filePath = $tplDir . '/' . $Block->getFileName() . '.twig';
116
+                $filePath = $tplDir.'/'.$Block->getFileName().'.twig';
117 117
 
118 118
                 $fs = new Filesystem();
119 119
                 $fs->dumpFile($filePath, $form->get('block_html')->getData());
120 120
                 // 更新でファイル名を変更した場合、以前のファイルを削除
121 121
                 if ($Block->getFileName() != $previous_filename && !is_null($previous_filename)) {
122
-                    $oldFilePath = $tplDir . $previous_filename;
122
+                    $oldFilePath = $tplDir.$previous_filename;
123 123
                     if ($fs->exists($oldFilePath)) {
124 124
                         $fs->remove($oldFilePath);
125 125
                     }
@@ -171,7 +171,7 @@  discard block
 block discarded – undo
171 171
         // テンプレートが変更されていた場合、DBからはブロック削除されるがtwigファイルは残る
172 172
         if ($Block->getDeletableFlg() > 0) {
173 173
             $tplDir = $app['config']['block_realdir'];
174
-            $file = $tplDir . '/' . $Block->getFileName() . '.twig';
174
+            $file = $tplDir.'/'.$Block->getFileName().'.twig';
175 175
             $fs = new Filesystem();
176 176
             if ($fs->exists($file)) {
177 177
                 $fs->remove($file);
Please login to merge, or discard this patch.
src/Eccube/Form/Type/Admin/OrderType.php 2 patches
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -36,6 +36,9 @@
 block discarded – undo
36 36
 {
37 37
     protected $app;
38 38
 
39
+    /**
40
+     * @param \Silex\Application $app
41
+     */
39 42
     public function __construct($app)
40 43
     {
41 44
         $this->app = $app;
Please login to merge, or discard this 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.