@@ -88,7 +88,7 @@ |
||
88 | 88 | ->setCompanyName($Customer->getCompanyName()) |
89 | 89 | ->setZip01($Customer->getZip01()) |
90 | 90 | ->setZip02($Customer->getZip02()) |
91 | - ->setZipcode($Customer->getZip01() . $Customer->getZip02()) |
|
91 | + ->setZipcode($Customer->getZip01().$Customer->getZip02()) |
|
92 | 92 | ->setPref($Customer->getPref()) |
93 | 93 | ->setAddr01($Customer->getAddr01()) |
94 | 94 | ->setAddr02($Customer->getAddr02()) |
@@ -231,7 +231,7 @@ discard block |
||
231 | 231 | $em->getConfiguration()->setSQLLogger(null); |
232 | 232 | |
233 | 233 | $response = new StreamedResponse(); |
234 | - $response->setCallback(function () use ($app, $request) { |
|
234 | + $response->setCallback(function() use ($app, $request) { |
|
235 | 235 | |
236 | 236 | // CSV種別を元に初期化. |
237 | 237 | $app['eccube.service.csv.export']->initCsvType(CsvType::CSV_TYPE_CUSTOMER); |
@@ -245,7 +245,7 @@ discard block |
||
245 | 245 | |
246 | 246 | // データ行の出力. |
247 | 247 | $app['eccube.service.csv.export']->setExportQueryBuilder($qb); |
248 | - $app['eccube.service.csv.export']->exportData(function ($entity, $csvService) { |
|
248 | + $app['eccube.service.csv.export']->exportData(function($entity, $csvService) { |
|
249 | 249 | |
250 | 250 | $Csvs = $csvService->getCsvs(); |
251 | 251 | |
@@ -267,9 +267,9 @@ discard block |
||
267 | 267 | }); |
268 | 268 | |
269 | 269 | $now = new \DateTime(); |
270 | - $filename = 'customer_' . $now->format('YmdHis') . '.csv'; |
|
270 | + $filename = 'customer_'.$now->format('YmdHis').'.csv'; |
|
271 | 271 | $response->headers->set('Content-Type', 'application/octet-stream'); |
272 | - $response->headers->set('Content-Disposition', 'attachment; filename=' . $filename); |
|
272 | + $response->headers->set('Content-Disposition', 'attachment; filename='.$filename); |
|
273 | 273 | |
274 | 274 | $response->send(); |
275 | 275 |
@@ -65,12 +65,12 @@ discard block |
||
65 | 65 | { |
66 | 66 | // install.phpのチェック. |
67 | 67 | if (isset($app['config']['eccube_install']) && $app['config']['eccube_install'] == 1) { |
68 | - $file = $app['config']['root_dir'] . '/html/install.php'; |
|
68 | + $file = $app['config']['root_dir'].'/html/install.php'; |
|
69 | 69 | if (file_exists($file)) { |
70 | 70 | $message = $app->trans('admin.install.warning', array('installphpPath' => 'html/install.php')); |
71 | 71 | $app->addWarning($message, 'admin'); |
72 | 72 | } |
73 | - $fileOnRoot = $app['config']['root_dir'] . '/install.php'; |
|
73 | + $fileOnRoot = $app['config']['root_dir'].'/install.php'; |
|
74 | 74 | if (file_exists($fileOnRoot)) { |
75 | 75 | $message = $app->trans('admin.install.warning', array('installphpPath' => 'install.php')); |
76 | 76 | $app->addWarning($message, 'admin'); |
@@ -311,7 +311,7 @@ discard block |
||
311 | 311 | t1.status |
312 | 312 | ORDER BY |
313 | 313 | t1.status'; |
314 | - $rsm = new ResultSetMapping();; |
|
314 | + $rsm = new ResultSetMapping(); ; |
|
315 | 315 | $rsm->addScalarResult('status', 'status'); |
316 | 316 | $rsm->addScalarResult('count', 'count'); |
317 | 317 | $query = $em->createNativeQuery($sql, $rsm); |
@@ -58,7 +58,7 @@ |
||
58 | 58 | } |
59 | 59 | if ($dir == 'doctrine') { |
60 | 60 | // doctrineが指定された場合は, cache driver経由で削除. |
61 | - $config = $app['orm.em']->getConfiguration(); |
|
61 | + $config = $app['orm.em']->getConfiguration(); |
|
62 | 62 | $this->deleteDoctrineCache($config->getMetadataCacheImpl()); |
63 | 63 | $this->deleteDoctrineCache($config->getQueryCacheImpl()); |
64 | 64 | $this->deleteDoctrineCache($config->getResultCacheImpl()); |
@@ -109,20 +109,20 @@ discard block |
||
109 | 109 | $max = count($Blocks); |
110 | 110 | for ($i = 0; $i < $max; $i++) { |
111 | 111 | // block_id が取得できない場合は INSERT しない |
112 | - if (!isset($data['id_' . $i])) { |
|
112 | + if (!isset($data['id_'.$i])) { |
|
113 | 113 | continue; |
114 | 114 | } |
115 | 115 | // 未使用は INSERT しない |
116 | - if ($data['target_id_' . $i] == \Eccube\Entity\PageLayout::TARGET_ID_UNUSED) { |
|
116 | + if ($data['target_id_'.$i] == \Eccube\Entity\PageLayout::TARGET_ID_UNUSED) { |
|
117 | 117 | continue; |
118 | 118 | } |
119 | 119 | // 他のページに anywhere が存在する場合は INSERT しない |
120 | - $anywhere = (isset($data['anywhere_' . $i]) && $data['anywhere_' . $i] == 1) ? 1 : 0; |
|
121 | - if (isset($data['anywhere_' . $i]) && $data['anywhere_' . $i] == 1) { |
|
120 | + $anywhere = (isset($data['anywhere_'.$i]) && $data['anywhere_'.$i] == 1) ? 1 : 0; |
|
121 | + if (isset($data['anywhere_'.$i]) && $data['anywhere_'.$i] == 1) { |
|
122 | 122 | $Other = $app['orm.em']->getRepository('Eccube\Entity\BlockPosition') |
123 | 123 | ->findBy(array( |
124 | 124 | 'anywhere' => 1, |
125 | - 'block_id' => $data['id_' . $i], |
|
125 | + 'block_id' => $data['id_'.$i], |
|
126 | 126 | )); |
127 | 127 | if (count($Other) > 0) { |
128 | 128 | continue; |
@@ -132,14 +132,14 @@ discard block |
||
132 | 132 | $BlockPosition = new \Eccube\Entity\BlockPosition(); |
133 | 133 | $Block = $app['orm.em']->getRepository('Eccube\Entity\Block') |
134 | 134 | ->findOneBy(array( |
135 | - 'id' => $data['id_' . $i], |
|
135 | + 'id' => $data['id_'.$i], |
|
136 | 136 | 'DeviceType' => $DeviceType, |
137 | 137 | )); |
138 | 138 | $BlockPosition |
139 | 139 | ->setPageId($id) |
140 | - ->setBlockId($data['id_' . $i]) |
|
141 | - ->setBlockRow($data['top_' . $i]) |
|
142 | - ->setTargetId($data['target_id_' . $i]) |
|
140 | + ->setBlockId($data['id_'.$i]) |
|
141 | + ->setBlockRow($data['top_'.$i]) |
|
142 | + ->setTargetId($data['target_id_'.$i]) |
|
143 | 143 | ->setBlock($Block) |
144 | 144 | ->setPageLayout($TargetPageLayout) |
145 | 145 | ->setAnywhere($anywhere); |
@@ -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 | } |
@@ -174,7 +174,7 @@ discard block |
||
174 | 174 | // テンプレートが変更されていた場合、DBからはブロック削除されるがtwigファイルは残る |
175 | 175 | if ($Block->getDeletableFlg() > 0) { |
176 | 176 | $tplDir = $app['config']['block_realdir']; |
177 | - $file = $tplDir . '/' . $Block->getFileName() . '.twig'; |
|
177 | + $file = $tplDir.'/'.$Block->getFileName().'.twig'; |
|
178 | 178 | $fs = new Filesystem(); |
179 | 179 | if ($fs->exists($file)) { |
180 | 180 | $fs->remove($file); |
@@ -27,7 +27,7 @@ |
||
27 | 27 | //require __DIR__.'/autoload.php'; |
28 | 28 | |
29 | 29 | ini_set('display_errors', 'Off'); |
30 | -error_reporting(E_ALL & ~E_DEPRECATED & ~E_STRICT); |
|
30 | +error_reporting(E_ALL&~E_DEPRECATED&~E_STRICT); |
|
31 | 31 | |
32 | 32 | // see http://silex.sensiolabs.org/doc/web_servers.html#php-5-4 |
33 | 33 | $filename = __DIR__.preg_replace('#(\?.*)$#', '', $_SERVER['REQUEST_URI']); |
@@ -27,12 +27,12 @@ |
||
27 | 27 | } |
28 | 28 | |
29 | 29 | //[INFO]index.php,install.phpをEC-CUBEルート直下に移動させる場合は、コメントアウトしている行に置き換える |
30 | -require __DIR__ . '/../autoload.php'; |
|
30 | +require __DIR__.'/../autoload.php'; |
|
31 | 31 | //require __DIR__ . '/autoload.php'; |
32 | 32 | |
33 | 33 | $app = new Eccube\InstallApplication(); |
34 | 34 | $app['debug'] = true; |
35 | -$app->before(function (\Symfony\Component\HttpFoundation\Request $request, \Silex\Application $app) { |
|
35 | +$app->before(function(\Symfony\Component\HttpFoundation\Request $request, \Silex\Application $app) { |
|
36 | 36 | if (!$request->getSession()->isStarted()) { |
37 | 37 | $request->getSession()->start(); |
38 | 38 | } |
@@ -69,7 +69,7 @@ |
||
69 | 69 | |
70 | 70 | // load config dev |
71 | 71 | $conf = $app['config']; |
72 | -$app['config'] = $app->share(function () use ($conf) { |
|
72 | +$app['config'] = $app->share(function() use ($conf) { |
|
73 | 73 | $confarray = array(); |
74 | 74 | $config_dev_file = __DIR__.'/../app/config/eccube/config_dev.yml'; |
75 | 75 | if (file_exists($config_dev_file)) { |