@@ -53,8 +53,8 @@ |
||
53 | 53 | 'constraints' => array( |
54 | 54 | new Assert\NotBlank(array('message' => 'ファイルを選択してください。')), |
55 | 55 | new Assert\File(array( |
56 | - 'maxSize' => $app['config']['csv_size'] . 'M', |
|
57 | - 'maxSizeMessage' => 'CSVファイルは' . $app['config']['csv_size'] . 'M以下でアップロードしてください。', |
|
56 | + 'maxSize' => $app['config']['csv_size'].'M', |
|
57 | + 'maxSizeMessage' => 'CSVファイルは'.$app['config']['csv_size'].'M以下でアップロードしてください。', |
|
58 | 58 | )), |
59 | 59 | ), |
60 | 60 | )); |
@@ -112,7 +112,7 @@ |
||
112 | 112 | } |
113 | 113 | } |
114 | 114 | |
115 | - $builder->addEventListener(FormEvents::PRE_SUBMIT, function (FormEvent $event) use ($Product) { |
|
115 | + $builder->addEventListener(FormEvents::PRE_SUBMIT, function(FormEvent $event) use ($Product) { |
|
116 | 116 | $data = $event->getData(); |
117 | 117 | $form = $event->getForm(); |
118 | 118 | if (!is_null($Product->getClassName2())) { |
@@ -61,7 +61,7 @@ discard block |
||
61 | 61 | )); |
62 | 62 | |
63 | 63 | $message = \Swift_Message::newInstance() |
64 | - ->setSubject('[' . $this->BaseInfo->getShopName() . '] 会員登録のご確認') |
|
64 | + ->setSubject('['.$this->BaseInfo->getShopName().'] 会員登録のご確認') |
|
65 | 65 | ->setFrom(array($this->BaseInfo->getEmail01() => $this->BaseInfo->getShopName())) |
66 | 66 | ->setTo(array($Customer->getEmail())) |
67 | 67 | ->setBcc($this->BaseInfo->getEmail01()) |
@@ -102,7 +102,7 @@ discard block |
||
102 | 102 | )); |
103 | 103 | |
104 | 104 | $message = \Swift_Message::newInstance() |
105 | - ->setSubject('[' . $this->BaseInfo->getShopName() . '] 会員登録が完了しました。') |
|
105 | + ->setSubject('['.$this->BaseInfo->getShopName().'] 会員登録が完了しました。') |
|
106 | 106 | ->setFrom(array($this->BaseInfo->getEmail01() => $this->BaseInfo->getShopName())) |
107 | 107 | ->setTo(array($Customer->getEmail())) |
108 | 108 | ->setBcc($this->BaseInfo->getEmail01()) |
@@ -144,7 +144,7 @@ discard block |
||
144 | 144 | )); |
145 | 145 | |
146 | 146 | $message = \Swift_Message::newInstance() |
147 | - ->setSubject('[' . $this->BaseInfo->getShopName() . '] 退会手続きのご完了') |
|
147 | + ->setSubject('['.$this->BaseInfo->getShopName().'] 退会手続きのご完了') |
|
148 | 148 | ->setFrom(array($this->BaseInfo->getEmail01() => $this->BaseInfo->getShopName())) |
149 | 149 | ->setTo(array($email)) |
150 | 150 | ->setBcc($this->BaseInfo->getEmail01()) |
@@ -187,7 +187,7 @@ discard block |
||
187 | 187 | |
188 | 188 | // 問い合わせ者にメール送信 |
189 | 189 | $message = \Swift_Message::newInstance() |
190 | - ->setSubject('[' . $this->BaseInfo->getShopName() . '] お問い合わせを受け付けました。') |
|
190 | + ->setSubject('['.$this->BaseInfo->getShopName().'] お問い合わせを受け付けました。') |
|
191 | 191 | ->setFrom(array($this->BaseInfo->getEmail02() => $this->BaseInfo->getShopName())) |
192 | 192 | ->setTo(array($formData['email'])) |
193 | 193 | ->setBcc($this->BaseInfo->getEmail02()) |
@@ -244,7 +244,7 @@ discard block |
||
244 | 244 | )); |
245 | 245 | |
246 | 246 | $message = \Swift_Message::newInstance() |
247 | - ->setSubject('[' . $this->BaseInfo->getShopName() . '] ' . $MailTemplate->getSubject()) |
|
247 | + ->setSubject('['.$this->BaseInfo->getShopName().'] '.$MailTemplate->getSubject()) |
|
248 | 248 | ->setFrom(array($this->BaseInfo->getEmail01() => $this->BaseInfo->getShopName())) |
249 | 249 | ->setTo(array($Order->getEmail())) |
250 | 250 | ->setBcc($this->BaseInfo->getEmail01()) |
@@ -288,7 +288,7 @@ discard block |
||
288 | 288 | )); |
289 | 289 | |
290 | 290 | $message = \Swift_Message::newInstance() |
291 | - ->setSubject('[' . $this->BaseInfo->getShopName() . '] 会員登録のご確認') |
|
291 | + ->setSubject('['.$this->BaseInfo->getShopName().'] 会員登録のご確認') |
|
292 | 292 | ->setFrom(array($this->BaseInfo->getEmail03() => $this->BaseInfo->getShopName())) |
293 | 293 | ->setTo(array($Customer->getEmail())) |
294 | 294 | ->setBcc($this->BaseInfo->getEmail01()) |
@@ -332,7 +332,7 @@ discard block |
||
332 | 332 | )); |
333 | 333 | |
334 | 334 | $message = \Swift_Message::newInstance() |
335 | - ->setSubject('[' . $this->BaseInfo->getShopName() . '] ' . $formData['subject']) |
|
335 | + ->setSubject('['.$this->BaseInfo->getShopName().'] '.$formData['subject']) |
|
336 | 336 | ->setFrom(array($this->BaseInfo->getEmail01() => $this->BaseInfo->getShopName())) |
337 | 337 | ->setTo(array($Order->getEmail())) |
338 | 338 | ->setBcc($this->BaseInfo->getEmail01()) |
@@ -373,7 +373,7 @@ discard block |
||
373 | 373 | )); |
374 | 374 | |
375 | 375 | $message = \Swift_Message::newInstance() |
376 | - ->setSubject('[' . $this->BaseInfo->getShopName() . '] パスワード変更のご確認') |
|
376 | + ->setSubject('['.$this->BaseInfo->getShopName().'] パスワード変更のご確認') |
|
377 | 377 | ->setFrom(array($this->BaseInfo->getEmail01() => $this->BaseInfo->getShopName())) |
378 | 378 | ->setTo(array($Customer->getEmail())) |
379 | 379 | ->setBcc($this->BaseInfo->getEmail01()) |
@@ -414,7 +414,7 @@ discard block |
||
414 | 414 | )); |
415 | 415 | |
416 | 416 | $message = \Swift_Message::newInstance() |
417 | - ->setSubject('[' . $this->BaseInfo->getShopName() . '] パスワード変更のお知らせ') |
|
417 | + ->setSubject('['.$this->BaseInfo->getShopName().'] パスワード変更のお知らせ') |
|
418 | 418 | ->setFrom(array($this->BaseInfo->getEmail01() => $this->BaseInfo->getShopName())) |
419 | 419 | ->setTo(array($Customer->getEmail())) |
420 | 420 | ->setBcc($this->BaseInfo->getEmail01()) |
@@ -52,7 +52,7 @@ |
||
52 | 52 | |
53 | 53 | $this->app = $this->getSilexApplication(); |
54 | 54 | |
55 | - \Eccube\Util\Cache::clear($this->app,$input->getOption('all')); |
|
55 | + \Eccube\Util\Cache::clear($this->app, $input->getOption('all')); |
|
56 | 56 | $output->writeln(sprintf("%s <info>success</info>", 'cache:clear')); |
57 | 57 | |
58 | 58 | } |
@@ -24,7 +24,6 @@ |
||
24 | 24 | |
25 | 25 | namespace Eccube\Command; |
26 | 26 | |
27 | -use Symfony\Component\Console\Input\InputArgument; |
|
28 | 27 | use Symfony\Component\Console\Input\InputInterface; |
29 | 28 | use Symfony\Component\Console\Input\InputOption; |
30 | 29 | use Symfony\Component\Console\Output\OutputInterface; |
@@ -111,7 +111,7 @@ |
||
111 | 111 | $webProcessor = new WebProcessor(); |
112 | 112 | $uidProcessor = new UidProcessor(8); |
113 | 113 | |
114 | - $FingerCrossedHandler->pushProcessor(function ($record) use ($app, $uidProcessor, $webProcessor) { |
|
114 | + $FingerCrossedHandler->pushProcessor(function($record) use ($app, $uidProcessor, $webProcessor) { |
|
115 | 115 | // ログフォーマットに出力する値を独自に設定 |
116 | 116 | |
117 | 117 | $record['level_name'] = sprintf("%-5s", $record['level_name']); |
@@ -83,7 +83,7 @@ |
||
83 | 83 | return $log; |
84 | 84 | } |
85 | 85 | |
86 | - foreach (array_reverse(file($logFile, FILE_IGNORE_NEW_LINES | FILE_SKIP_EMPTY_LINES)) as $line) { |
|
86 | + foreach (array_reverse(file($logFile, FILE_IGNORE_NEW_LINES|FILE_SKIP_EMPTY_LINES)) as $line) { |
|
87 | 87 | // 上限に達した場合、処理を抜ける |
88 | 88 | if (count($log) >= $formData['line_max']) { |
89 | 89 | break; |
@@ -93,10 +93,10 @@ discard block |
||
93 | 93 | // ファイルアップロード |
94 | 94 | $file = $form['payment_image']->getData(); |
95 | 95 | $fs = new Filesystem(); |
96 | - if ($file && $fs->exists($app['config']['image_temp_realdir'] . '/' . $file)) { |
|
96 | + if ($file && $fs->exists($app['config']['image_temp_realdir'].'/'.$file)) { |
|
97 | 97 | $fs->rename( |
98 | - $app['config']['image_temp_realdir'] . '/' . $file, |
|
99 | - $app['config']['image_save_realdir'] . '/' . $file |
|
98 | + $app['config']['image_temp_realdir'].'/'.$file, |
|
99 | + $app['config']['image_save_realdir'].'/'.$file |
|
100 | 100 | ); |
101 | 101 | } |
102 | 102 | |
@@ -144,7 +144,7 @@ discard block |
||
144 | 144 | } |
145 | 145 | |
146 | 146 | $extension = $image->guessExtension(); |
147 | - $filename = date('mdHis') . uniqid('_') . '.' . $extension; |
|
147 | + $filename = date('mdHis').uniqid('_').'.'.$extension; |
|
148 | 148 | $image->move($app['config']['image_temp_realdir'], $filename); |
149 | 149 | } |
150 | 150 | $event = new EventArgs( |
@@ -180,7 +180,7 @@ discard block |
||
180 | 180 | foreach ($Payments as $Payment) { |
181 | 181 | if ($Payment->getId() != $id) { |
182 | 182 | $Payment->setRank($rank); |
183 | - $rank ++; |
|
183 | + $rank++; |
|
184 | 184 | } |
185 | 185 | } |
186 | 186 | |
@@ -194,7 +194,7 @@ discard block |
||
194 | 194 | ); |
195 | 195 | $app['eccube.event.dispatcher']->dispatch(EccubeEvents::ADMIN_SETTING_SHOP_PAYMENT_DELETE_COMPLETE, $event); |
196 | 196 | |
197 | - $app->addSuccess('admin.delete.complete', 'admin') ; |
|
197 | + $app->addSuccess('admin.delete.complete', 'admin'); |
|
198 | 198 | |
199 | 199 | return $app->redirect($app->url('admin_setting_shop_payment')); |
200 | 200 | } |
@@ -77,7 +77,7 @@ discard block |
||
77 | 77 | $config['template_realdir'] = $config['root_dir'].'/app/template/'.$templateCode; |
78 | 78 | $config['template_html_realdir'] = $config['public_path_realdir'].'/template/'.$templateCode; |
79 | 79 | $config['front_urlpath'] = $config['root_urlpath'].RELATIVE_PUBLIC_DIR_PATH.'/template/'.$templateCode; |
80 | - $config['block_realdir'] =$config['template_realdir'].'/Block'; |
|
80 | + $config['block_realdir'] = $config['template_realdir'].'/Block'; |
|
81 | 81 | |
82 | 82 | if (file_exists($file.'.php')) { |
83 | 83 | file_put_contents($file.'.php', sprintf('<?php return %s', var_export($config, true)).';'); |
@@ -117,19 +117,19 @@ discard block |
||
117 | 117 | // 該当テンプレートのディレクトリ |
118 | 118 | $config = $app['config']; |
119 | 119 | $templateCode = $Template->getCode(); |
120 | - $targetRealDir = $config['root_dir'] . '/app/template/' . $templateCode; |
|
121 | - $targetHtmlRealDir = $config['root_dir'] . '/html/template/' . $templateCode; |
|
120 | + $targetRealDir = $config['root_dir'].'/app/template/'.$templateCode; |
|
121 | + $targetHtmlRealDir = $config['root_dir'].'/html/template/'.$templateCode; |
|
122 | 122 | |
123 | 123 | // 一時ディレクトリ |
124 | 124 | $uniqId = sha1(Str::random(32)); |
125 | - $tmpDir = $config['template_temp_realdir'] . '/' . $uniqId; |
|
126 | - $appDir = $tmpDir . '/app'; |
|
127 | - $htmlDir = $tmpDir . '/html'; |
|
125 | + $tmpDir = $config['template_temp_realdir'].'/'.$uniqId; |
|
126 | + $appDir = $tmpDir.'/app'; |
|
127 | + $htmlDir = $tmpDir.'/html'; |
|
128 | 128 | |
129 | 129 | // ファイル名 |
130 | - $tarFile = $config['template_temp_realdir'] . '/' . $uniqId . '.tar'; |
|
131 | - $tarGzFile = $tarFile . '.gz'; |
|
132 | - $downloadFileName = $Template->getCode() . '.tar.gz'; |
|
130 | + $tarFile = $config['template_temp_realdir'].'/'.$uniqId.'.tar'; |
|
131 | + $tarGzFile = $tarFile.'.gz'; |
|
132 | + $downloadFileName = $Template->getCode().'.tar.gz'; |
|
133 | 133 | |
134 | 134 | // 該当テンプレートを一時ディレクトリへコピーする. |
135 | 135 | $fs = new Filesystem(); |
@@ -149,14 +149,14 @@ discard block |
||
149 | 149 | |
150 | 150 | // ダウンロード完了後にファイルを削除する. |
151 | 151 | // http://stackoverflow.com/questions/15238897/removing-file-after-delivering-response-with-silex-symfony |
152 | - $app->finish(function (Request $request, Response $response, \Silex\Application $app) use ( |
|
152 | + $app->finish(function(Request $request, Response $response, \Silex\Application $app) use ( |
|
153 | 153 | $tmpDir, |
154 | 154 | $tarFile, |
155 | 155 | $tarGzFile |
156 | 156 | ) { |
157 | - $app['monolog']->addDebug('remove temp file: ' . $tmpDir); |
|
158 | - $app['monolog']->addDebug('remove temp file: ' . $tarFile); |
|
159 | - $app['monolog']->addDebug('remove temp file: ' . $tarGzFile); |
|
157 | + $app['monolog']->addDebug('remove temp file: '.$tmpDir); |
|
158 | + $app['monolog']->addDebug('remove temp file: '.$tarFile); |
|
159 | + $app['monolog']->addDebug('remove temp file: '.$tarGzFile); |
|
160 | 160 | $fs = new Filesystem(); |
161 | 161 | $fs->remove($tmpDir); |
162 | 162 | $fs->remove($tarFile); |
@@ -197,8 +197,8 @@ discard block |
||
197 | 197 | // テンプレートディレクトリの削除 |
198 | 198 | $config = $app['config']; |
199 | 199 | $templateCode = $Template->getCode(); |
200 | - $targetRealDir = $config['root_dir'] . '/app/template/' . $templateCode; |
|
201 | - $targetHtmlRealDir = $config['root_dir'] . '/html/template/' . $templateCode; |
|
200 | + $targetRealDir = $config['root_dir'].'/app/template/'.$templateCode; |
|
201 | + $targetHtmlRealDir = $config['root_dir'].'/html/template/'.$templateCode; |
|
202 | 202 | |
203 | 203 | $fs = new Filesystem(); |
204 | 204 | $fs->remove($targetRealDir); |
@@ -241,18 +241,18 @@ discard block |
||
241 | 241 | // 該当テンプレートのディレクトリ |
242 | 242 | $config = $app['config']; |
243 | 243 | $templateCode = $Template->getCode(); |
244 | - $targetRealDir = $config['root_dir'] . '/app/template/' . $templateCode; |
|
245 | - $targetHtmlRealDir = $config['root_dir'] . '/html/template/' . $templateCode; |
|
244 | + $targetRealDir = $config['root_dir'].'/app/template/'.$templateCode; |
|
245 | + $targetHtmlRealDir = $config['root_dir'].'/html/template/'.$templateCode; |
|
246 | 246 | |
247 | 247 | // 一時ディレクトリ |
248 | 248 | $uniqId = sha1(Str::random(32)); |
249 | - $tmpDir = $config['template_temp_realdir'] . '/' . $uniqId; |
|
250 | - $appDir = $tmpDir . '/app'; |
|
251 | - $htmlDir = $tmpDir . '/html'; |
|
249 | + $tmpDir = $config['template_temp_realdir'].'/'.$uniqId; |
|
250 | + $appDir = $tmpDir.'/app'; |
|
251 | + $htmlDir = $tmpDir.'/html'; |
|
252 | 252 | |
253 | 253 | $formFile = $form['file']->getData(); |
254 | 254 | // ファイル名 |
255 | - $archive = $templateCode . '.' . $formFile->getClientOriginalExtension(); |
|
255 | + $archive = $templateCode.'.'.$formFile->getClientOriginalExtension(); |
|
256 | 256 | |
257 | 257 | // ファイルを一時ディレクトリへ移動. |
258 | 258 | $formFile->move($tmpDir, $archive); |
@@ -261,11 +261,11 @@ discard block |
||
261 | 261 | try { |
262 | 262 | if ($formFile->getClientOriginalExtension() == 'zip') { |
263 | 263 | $zip = new \ZipArchive(); |
264 | - $zip->open($tmpDir . '/' . $archive); |
|
264 | + $zip->open($tmpDir.'/'.$archive); |
|
265 | 265 | $zip->extractTo($tmpDir); |
266 | 266 | $zip->close(); |
267 | 267 | } else { |
268 | - $phar = new \PharData($tmpDir . '/' . $archive); |
|
268 | + $phar = new \PharData($tmpDir.'/'.$archive); |
|
269 | 269 | $phar->extractTo($tmpDir, null, true); |
270 | 270 | } |
271 | 271 | } catch (\Exception $e) { |
@@ -29,7 +29,6 @@ |
||
29 | 29 | use Eccube\Form\Type\Admin\TemplateType; |
30 | 30 | use Eccube\Util\Str; |
31 | 31 | use Symfony\Component\Filesystem\Filesystem; |
32 | -use Symfony\Component\Finder\Finder; |
|
33 | 32 | use Symfony\Component\Form\Extension\Core\Type\HiddenType; |
34 | 33 | use Symfony\Component\Form\FormError; |
35 | 34 | use Symfony\Component\HttpFoundation\Request; |
@@ -114,7 +114,7 @@ discard block |
||
114 | 114 | // ファイル生成・更新 |
115 | 115 | $tplDir = $app['config']['block_realdir']; |
116 | 116 | |
117 | - $filePath = $tplDir . '/' . $Block->getFileName() . '.twig'; |
|
117 | + $filePath = $tplDir.'/'.$Block->getFileName().'.twig'; |
|
118 | 118 | |
119 | 119 | $fs = new Filesystem(); |
120 | 120 | $blockData = $form->get('block_html')->getData(); |
@@ -122,7 +122,7 @@ discard block |
||
122 | 122 | $fs->dumpFile($filePath, $blockData); |
123 | 123 | // 更新でファイル名を変更した場合、以前のファイルを削除 |
124 | 124 | if ($Block->getFileName() != $previous_filename && !is_null($previous_filename)) { |
125 | - $oldFilePath = $tplDir . '/' . $previous_filename . '.twig'; |
|
125 | + $oldFilePath = $tplDir.'/'.$previous_filename.'.twig'; |
|
126 | 126 | if ($fs->exists($oldFilePath)) { |
127 | 127 | $fs->remove($oldFilePath); |
128 | 128 | } |
@@ -175,7 +175,7 @@ discard block |
||
175 | 175 | // テンプレートが変更されていた場合、DBからはブロック削除されるがtwigファイルは残る |
176 | 176 | if ($Block->getDeletableFlg() > 0) { |
177 | 177 | $tplDir = $app['config']['block_realdir']; |
178 | - $file = $tplDir . '/' . $Block->getFileName() . '.twig'; |
|
178 | + $file = $tplDir.'/'.$Block->getFileName().'.twig'; |
|
179 | 179 | $fs = new Filesystem(); |
180 | 180 | if ($fs->exists($file)) { |
181 | 181 | $fs->remove($file); |