@@ -28,7 +28,7 @@ discard block |
||
| 28 | 28 | |
| 29 | 29 | $PageLayout = new PageLayout(); |
| 30 | 30 | $PageLayout->setDeviceType($DeviceType); |
| 31 | - $PageLayout->setName( '商品購入/配送方法選択'); |
|
| 31 | + $PageLayout->setName('商品購入/配送方法選択'); |
|
| 32 | 32 | $PageLayout->setUrl('shopping_delivery'); |
| 33 | 33 | $PageLayout->setFileName('Shopping/index'); |
| 34 | 34 | $PageLayout->setEditFlg(2); |
@@ -37,7 +37,7 @@ discard block |
||
| 37 | 37 | |
| 38 | 38 | $PageLayout = new PageLayout(); |
| 39 | 39 | $PageLayout->setDeviceType($DeviceType); |
| 40 | - $PageLayout->setName( '商品購入/支払方法選択'); |
|
| 40 | + $PageLayout->setName('商品購入/支払方法選択'); |
|
| 41 | 41 | $PageLayout->setUrl('shopping_payment'); |
| 42 | 42 | $PageLayout->setFileName('Shopping/index'); |
| 43 | 43 | $PageLayout->setEditFlg(2); |
@@ -46,7 +46,7 @@ discard block |
||
| 46 | 46 | |
| 47 | 47 | $PageLayout = new PageLayout(); |
| 48 | 48 | $PageLayout->setDeviceType($DeviceType); |
| 49 | - $PageLayout->setName( '商品購入/お届け先変更'); |
|
| 49 | + $PageLayout->setName('商品購入/お届け先変更'); |
|
| 50 | 50 | $PageLayout->setUrl('shopping_shipping_change'); |
| 51 | 51 | $PageLayout->setFileName('Shopping/index'); |
| 52 | 52 | $PageLayout->setEditFlg(2); |
@@ -55,7 +55,7 @@ discard block |
||
| 55 | 55 | |
| 56 | 56 | $PageLayout = new PageLayout(); |
| 57 | 57 | $PageLayout->setDeviceType($DeviceType); |
| 58 | - $PageLayout->setName( '商品購入/お届け先変更'); |
|
| 58 | + $PageLayout->setName('商品購入/お届け先変更'); |
|
| 59 | 59 | $PageLayout->setUrl('shopping_shipping_edit_change'); |
| 60 | 60 | $PageLayout->setFileName('Shopping/index'); |
| 61 | 61 | $PageLayout->setEditFlg(2); |
@@ -64,7 +64,7 @@ discard block |
||
| 64 | 64 | |
| 65 | 65 | $PageLayout = new PageLayout(); |
| 66 | 66 | $PageLayout->setDeviceType($DeviceType); |
| 67 | - $PageLayout->setName( '商品購入/お届け先の複数指定'); |
|
| 67 | + $PageLayout->setName('商品購入/お届け先の複数指定'); |
|
| 68 | 68 | $PageLayout->setUrl('shopping_shipping_multiple_change'); |
| 69 | 69 | $PageLayout->setFileName('Shopping/index'); |
| 70 | 70 | $PageLayout->setEditFlg(2); |
@@ -53,7 +53,7 @@ discard block |
||
| 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 |
||
| 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 | } |
@@ -307,7 +307,7 @@ |
||
| 307 | 307 | { |
| 308 | 308 | $config = $this->config; |
| 309 | 309 | |
| 310 | - return function ($value) use ($config) { |
|
| 310 | + return function($value) use ($config) { |
|
| 311 | 311 | return mb_convert_encoding( |
| 312 | 312 | (string) $value, $config['csv_export_encoding'], 'UTF-8' |
| 313 | 313 | ); |
@@ -117,9 +117,9 @@ discard block |
||
| 117 | 117 | |
| 118 | 118 | $this->file = $file; |
| 119 | 119 | $this->file->setFlags( |
| 120 | - \SplFileObject::READ_CSV | |
|
| 121 | - \SplFileObject::SKIP_EMPTY | |
|
| 122 | - \SplFileObject::READ_AHEAD | |
|
| 120 | + \SplFileObject::READ_CSV| |
|
| 121 | + \SplFileObject::SKIP_EMPTY| |
|
| 122 | + \SplFileObject::READ_AHEAD| |
|
| 123 | 123 | \SplFileObject::DROP_NEW_LINE |
| 124 | 124 | ); |
| 125 | 125 | $this->file->setCsvControl( |
@@ -358,7 +358,7 @@ discard block |
||
| 358 | 358 | if ($count > 1) { |
| 359 | 359 | $incrementedHeaders[] = $header; |
| 360 | 360 | for ($i = 1; $i < $count; $i++) { |
| 361 | - $incrementedHeaders[] = $header . $i; |
|
| 361 | + $incrementedHeaders[] = $header.$i; |
|
| 362 | 362 | } |
| 363 | 363 | } else { |
| 364 | 364 | $incrementedHeaders[] = $header; |
@@ -57,7 +57,7 @@ discard block |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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()) |
@@ -270,7 +270,7 @@ discard block |
||
| 270 | 270 | ->setFax03($Customer->getFax03()) |
| 271 | 271 | ->setZip01($Customer->getZip01()) |
| 272 | 272 | ->setZip02($Customer->getZip02()) |
| 273 | - ->setZipCode($Customer->getZip01() . $Customer->getZip02()) |
|
| 273 | + ->setZipCode($Customer->getZip01().$Customer->getZip02()) |
|
| 274 | 274 | ->setPref($Customer->getPref()) |
| 275 | 275 | ->setAddr01($Customer->getAddr01()) |
| 276 | 276 | ->setAddr02($Customer->getAddr02()) |
@@ -409,7 +409,7 @@ discard block |
||
| 409 | 409 | ->setFax03($CustomerAddress->getFax03()) |
| 410 | 410 | ->setZip01($CustomerAddress->getZip01()) |
| 411 | 411 | ->setZip02($CustomerAddress->getZip02()) |
| 412 | - ->setZipCode($CustomerAddress->getZip01() . $CustomerAddress->getZip02()) |
|
| 412 | + ->setZipCode($CustomerAddress->getZip01().$CustomerAddress->getZip02()) |
|
| 413 | 413 | ->setPref($CustomerAddress->getPref()) |
| 414 | 414 | ->setAddr01($CustomerAddress->getAddr01()) |
| 415 | 415 | ->setAddr02($CustomerAddress->getAddr02()); |
@@ -428,7 +428,7 @@ discard block |
||
| 428 | 428 | ->setFax03($Customer->getFax03()) |
| 429 | 429 | ->setZip01($Customer->getZip01()) |
| 430 | 430 | ->setZip02($Customer->getZip02()) |
| 431 | - ->setZipCode($Customer->getZip01() . $Customer->getZip02()) |
|
| 431 | + ->setZipCode($Customer->getZip01().$Customer->getZip02()) |
|
| 432 | 432 | ->setPref($Customer->getPref()) |
| 433 | 433 | ->setAddr01($Customer->getAddr01()) |
| 434 | 434 | ->setAddr02($Customer->getAddr02()); |
@@ -913,10 +913,10 @@ discard block |
||
| 913 | 913 | |
| 914 | 914 | // 配送日数が設定されている |
| 915 | 915 | if ($deliveryDateFlag) { |
| 916 | - $period = new \DatePeriod ( |
|
| 917 | - new \DateTime($minDate . ' day'), |
|
| 916 | + $period = new \DatePeriod( |
|
| 917 | + new \DateTime($minDate.' day'), |
|
| 918 | 918 | new \DateInterval('P1D'), |
| 919 | - new \DateTime($minDate + $this->app['config']['deliv_date_end_max'] . ' day') |
|
| 919 | + new \DateTime($minDate + $this->app['config']['deliv_date_end_max'].' day') |
|
| 920 | 920 | ); |
| 921 | 921 | |
| 922 | 922 | foreach ($period as $day) { |
@@ -40,13 +40,13 @@ |
||
| 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); |
@@ -28,7 +28,7 @@ discard block |
||
| 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 |
||
| 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 | } |
@@ -111,7 +111,7 @@ discard block |
||
| 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 |
||
| 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 | } |