@@ -205,7 +205,7 @@ discard block |
||
205 | 205 | $em->getConfiguration()->setSQLLogger(null); |
206 | 206 | |
207 | 207 | $response = new StreamedResponse(); |
208 | - $response->setCallback(function () use ($app, $request) { |
|
208 | + $response->setCallback(function() use ($app, $request) { |
|
209 | 209 | |
210 | 210 | // CSV種別を元に初期化. |
211 | 211 | $app['eccube.service.csv.export']->initCsvType(CsvType::CSV_TYPE_CATEGORY); |
@@ -219,7 +219,7 @@ discard block |
||
219 | 219 | |
220 | 220 | // データ行の出力. |
221 | 221 | $app['eccube.service.csv.export']->setExportQueryBuilder($qb); |
222 | - $app['eccube.service.csv.export']->exportData(function ($entity, $csvService) { |
|
222 | + $app['eccube.service.csv.export']->exportData(function($entity, $csvService) { |
|
223 | 223 | |
224 | 224 | $Csvs = $csvService->getCsvs(); |
225 | 225 | |
@@ -239,9 +239,9 @@ discard block |
||
239 | 239 | }); |
240 | 240 | |
241 | 241 | $now = new \DateTime(); |
242 | - $filename = 'category_' . $now->format('YmdHis') . '.csv'; |
|
242 | + $filename = 'category_'.$now->format('YmdHis').'.csv'; |
|
243 | 243 | $response->headers->set('Content-Type', 'application/octet-stream'); |
244 | - $response->headers->set('Content-Disposition', 'attachment; filename=' . $filename); |
|
244 | + $response->headers->set('Content-Disposition', 'attachment; filename='.$filename); |
|
245 | 245 | $response->send(); |
246 | 246 | |
247 | 247 | log_info('カテゴリCSV出力ファイル名', array($filename)); |
@@ -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); |
@@ -83,7 +83,7 @@ |
||
83 | 83 | // 遷移が正しくない場合、デフォルトであるマイページの配送先追加の画面を設定する |
84 | 84 | if (!in_array($parentPage, $allowdParents)) { |
85 | 85 | // @deprecated 使用されていないコード |
86 | - $parentPage = $app->url('mypage_delivery'); |
|
86 | + $parentPage = $app->url('mypage_delivery'); |
|
87 | 87 | } |
88 | 88 | |
89 | 89 | $builder = $app['form.factory'] |
@@ -55,7 +55,7 @@ |
||
55 | 55 | $paths[] = $app['config']['user_data_realdir']; |
56 | 56 | $app['twig.loader']->addLoader(new \Twig_Loader_Filesystem($paths)); |
57 | 57 | |
58 | - $file = $PageLayout->getFileName() . '.twig'; |
|
58 | + $file = $PageLayout->getFileName().'.twig'; |
|
59 | 59 | |
60 | 60 | $event = new EventArgs( |
61 | 61 | array( |
@@ -64,7 +64,7 @@ discard block |
||
64 | 64 | // リセットキーの発行・有効期限の設定 |
65 | 65 | $Customer |
66 | 66 | ->setResetKey($app['eccube.repository.customer']->getUniqueResetKey($app)) |
67 | - ->setResetExpire(new \DateTime('+' . $app['config']['customer_reset_expire'] .' min')); |
|
67 | + ->setResetExpire(new \DateTime('+'.$app['config']['customer_reset_expire'].' min')); |
|
68 | 68 | |
69 | 69 | // リセットキーを更新 |
70 | 70 | $app['orm.em']->persist($Customer); |
@@ -87,7 +87,7 @@ discard block |
||
87 | 87 | |
88 | 88 | // ログ出力 |
89 | 89 | $app['monolog']->addInfo( |
90 | - 'send reset password mail to:' . "{$Customer->getId()} {$Customer->getEmail()} {$request->getClientIp()}" |
|
90 | + 'send reset password mail to:'."{$Customer->getId()} {$Customer->getEmail()} {$request->getClientIp()}" |
|
91 | 91 | ); |
92 | 92 | } else { |
93 | 93 | log_warning('Un active customer try send reset password email: ', array('Enter email' => $form->get('login_email')->getData())); |
@@ -169,7 +169,7 @@ discard block |
||
169 | 169 | |
170 | 170 | // ログ出力 |
171 | 171 | $app['monolog']->addInfo( |
172 | - 'reset password complete:' . "{$Customer->getId()} {$Customer->getEmail()} {$request->getClientIp()}" |
|
172 | + 'reset password complete:'."{$Customer->getId()} {$Customer->getEmail()} {$request->getClientIp()}" |
|
173 | 173 | ); |
174 | 174 | } else { |
175 | 175 | throw new HttpException\AccessDeniedHttpException('不正なアクセスです。'); |
@@ -113,7 +113,7 @@ discard block |
||
113 | 113 | $key = sprintf('keyword%s', $index); |
114 | 114 | $qb |
115 | 115 | ->andWhere(sprintf('NORMALIZE(p.name) LIKE NORMALIZE(:%s) OR NORMALIZE(p.search_word) LIKE NORMALIZE(:%s)', $key, $key)) |
116 | - ->setParameter($key, '%' . $keyword . '%'); |
|
116 | + ->setParameter($key, '%'.$keyword.'%'); |
|
117 | 117 | } |
118 | 118 | } |
119 | 119 | |
@@ -176,7 +176,7 @@ discard block |
||
176 | 176 | $qb |
177 | 177 | ->andWhere('p.id = :id OR p.name LIKE :likeid OR pc.code LIKE :likeid') |
178 | 178 | ->setParameter('id', $id) |
179 | - ->setParameter('likeid', '%' . $searchData['id'] . '%'); |
|
179 | + ->setParameter('likeid', '%'.$searchData['id'].'%'); |
|
180 | 180 | } |
181 | 181 | |
182 | 182 | // code |
@@ -40,14 +40,14 @@ |
||
40 | 40 | $eventName = $view; |
41 | 41 | if ($this->isAdminRequest()) { |
42 | 42 | // 管理画面の場合、event名に「Admin/」を付ける |
43 | - $eventName = 'Admin/' . $view; |
|
43 | + $eventName = 'Admin/'.$view; |
|
44 | 44 | } |
45 | - $this['monolog']->debug('Template Event Name : ' . $eventName); |
|
45 | + $this['monolog']->debug('Template Event Name : '.$eventName); |
|
46 | 46 | |
47 | 47 | // $this['eccube.event.dispatcher']->dispatch($eventName, $event); |
48 | 48 | |
49 | 49 | if ($response instanceof StreamedResponse) { |
50 | - $response->setCallback(function () use ($twig, $view, $parameters) { |
|
50 | + $response->setCallback(function() use ($twig, $view, $parameters) { |
|
51 | 51 | $twig->display($view, $parameters); |
52 | 52 | }); |
53 | 53 | } else { |
@@ -33,7 +33,7 @@ discard block |
||
33 | 33 | $app->match('/plugin/[lower_code]/hello', 'Plugin\[code]\Controller\[code]Controller::index')->bind('plugin_[code]_hello'); |
34 | 34 | |
35 | 35 | // Form |
36 | - $app['form.types'] = $app->extend('form.types', function ($types) use ($app) { |
|
36 | + $app['form.types'] = $app->extend('form.types', function($types) use ($app) { |
|
37 | 37 | $types[] = new [code]ConfigType(); |
38 | 38 | |
39 | 39 | return $types; |
@@ -57,7 +57,7 @@ discard block |
||
57 | 57 | // } |
58 | 58 | |
59 | 59 | // ログファイル設定 |
60 | - $app['monolog.logger.[lower_code]'] = function ($app) { |
|
60 | + $app['monolog.logger.[lower_code]'] = function($app) { |
|
61 | 61 | |
62 | 62 | $logger = new $app['monolog.logger.class']('[lower_code]'); |
63 | 63 |
@@ -22,17 +22,17 @@ discard block |
||
22 | 22 | $app->register(new \Silex\Provider\MonologServiceProvider()); |
23 | 23 | |
24 | 24 | // Log |
25 | - $app['eccube.logger'] = function ($app) { |
|
25 | + $app['eccube.logger'] = function($app) { |
|
26 | 26 | return new Logger($app); |
27 | 27 | }; |
28 | 28 | |
29 | 29 | // ヘルパー作成 |
30 | - $app['eccube.monolog.helper'] = function ($app) { |
|
30 | + $app['eccube.monolog.helper'] = function($app) { |
|
31 | 31 | return new LogHelper($app); |
32 | 32 | }; |
33 | 33 | |
34 | 34 | // ログクラス作成ファクトリー |
35 | - $app['eccube.monolog.factory'] = $app->protect(function (array $channelValues) use ($app) { |
|
35 | + $app['eccube.monolog.factory'] = $app->protect(function(array $channelValues) use ($app) { |
|
36 | 36 | |
37 | 37 | $log = new $app['monolog.logger.class']($channelValues['name']); |
38 | 38 | |
@@ -47,7 +47,7 @@ discard block |
||
47 | 47 | // monologの設定は除外 |
48 | 48 | unset($channels['monolog']); |
49 | 49 | foreach ($channels as $channel => $channelValues) { |
50 | - $app['monolog.logger.'.$channel] = function ($app) use ($channelValues) { |
|
50 | + $app['monolog.logger.'.$channel] = function($app) use ($channelValues) { |
|
51 | 51 | return $app['eccube.monolog.factory']($channelValues); |
52 | 52 | }; |
53 | 53 | } |
@@ -55,15 +55,15 @@ discard block |
||
55 | 55 | // MonologServiceProviderで定義されているmonolog.handlerの置換 |
56 | 56 | $channelValues = $app['config']['log']['channel']['monolog']; |
57 | 57 | $app['monolog.name'] = $channelValues['name']; |
58 | - $app['monolog.handler'] = function ($app) use ($channelValues) { |
|
58 | + $app['monolog.handler'] = function($app) use ($channelValues) { |
|
59 | 59 | return $app['eccube.monolog.helper']->getHandler($channelValues); |
60 | 60 | }; |
61 | 61 | |
62 | - $app['eccube.monolog.listener'] = function () use ($app) { |
|
62 | + $app['eccube.monolog.listener'] = function() use ($app) { |
|
63 | 63 | return new LogListener($app['eccube.logger']); |
64 | 64 | }; |
65 | 65 | |
66 | - $app['listener.requestdump'] = function ($app) { |
|
66 | + $app['listener.requestdump'] = function($app) { |
|
67 | 67 | return new \Eccube\EventListener\RequestDumpListener($app); |
68 | 68 | }; |
69 | 69 | } |