@@ -235,7 +235,7 @@ discard block |
||
| 235 | 235 | $em->getConfiguration()->setSQLLogger(null); |
| 236 | 236 | |
| 237 | 237 | $response = new StreamedResponse(); |
| 238 | - $response->setCallback(function () use ($app, $request) { |
|
| 238 | + $response->setCallback(function() use ($app, $request) { |
|
| 239 | 239 | |
| 240 | 240 | // CSV種別を元に初期化. |
| 241 | 241 | $app['eccube.service.csv.export']->initCsvType(CsvType::CSV_TYPE_CUSTOMER); |
@@ -249,7 +249,7 @@ discard block |
||
| 249 | 249 | |
| 250 | 250 | // データ行の出力. |
| 251 | 251 | $app['eccube.service.csv.export']->setExportQueryBuilder($qb); |
| 252 | - $app['eccube.service.csv.export']->exportData(function ($entity, $csvService) use ($app, $request) { |
|
| 252 | + $app['eccube.service.csv.export']->exportData(function($entity, $csvService) use ($app, $request) { |
|
| 253 | 253 | |
| 254 | 254 | $Csvs = $csvService->getCsvs(); |
| 255 | 255 | |
@@ -284,9 +284,9 @@ discard block |
||
| 284 | 284 | }); |
| 285 | 285 | |
| 286 | 286 | $now = new \DateTime(); |
| 287 | - $filename = 'customer_' . $now->format('YmdHis') . '.csv'; |
|
| 287 | + $filename = 'customer_'.$now->format('YmdHis').'.csv'; |
|
| 288 | 288 | $response->headers->set('Content-Type', 'application/octet-stream'); |
| 289 | - $response->headers->set('Content-Disposition', 'attachment; filename=' . $filename); |
|
| 289 | + $response->headers->set('Content-Disposition', 'attachment; filename='.$filename); |
|
| 290 | 290 | |
| 291 | 291 | $response->send(); |
| 292 | 292 | |
@@ -240,7 +240,7 @@ discard block |
||
| 240 | 240 | $em->getConfiguration()->setSQLLogger(null); |
| 241 | 241 | |
| 242 | 242 | $response = new StreamedResponse(); |
| 243 | - $response->setCallback(function () use ($app, $request) { |
|
| 243 | + $response->setCallback(function() use ($app, $request) { |
|
| 244 | 244 | |
| 245 | 245 | // CSV種別を元に初期化. |
| 246 | 246 | $app['eccube.service.csv.export']->initCsvType(CsvType::CSV_TYPE_ORDER); |
@@ -254,7 +254,7 @@ discard block |
||
| 254 | 254 | |
| 255 | 255 | // データ行の出力. |
| 256 | 256 | $app['eccube.service.csv.export']->setExportQueryBuilder($qb); |
| 257 | - $app['eccube.service.csv.export']->exportData(function ($entity, $csvService) use ($app, $request) { |
|
| 257 | + $app['eccube.service.csv.export']->exportData(function($entity, $csvService) use ($app, $request) { |
|
| 258 | 258 | |
| 259 | 259 | $Csvs = $csvService->getCsvs(); |
| 260 | 260 | |
@@ -295,9 +295,9 @@ discard block |
||
| 295 | 295 | }); |
| 296 | 296 | |
| 297 | 297 | $now = new \DateTime(); |
| 298 | - $filename = 'order_' . $now->format('YmdHis') . '.csv'; |
|
| 298 | + $filename = 'order_'.$now->format('YmdHis').'.csv'; |
|
| 299 | 299 | $response->headers->set('Content-Type', 'application/octet-stream'); |
| 300 | - $response->headers->set('Content-Disposition', 'attachment; filename=' . $filename); |
|
| 300 | + $response->headers->set('Content-Disposition', 'attachment; filename='.$filename); |
|
| 301 | 301 | $response->send(); |
| 302 | 302 | |
| 303 | 303 | log_info('受注CSV出力ファイル名', array($filename)); |
@@ -322,7 +322,7 @@ discard block |
||
| 322 | 322 | $em->getConfiguration()->setSQLLogger(null); |
| 323 | 323 | |
| 324 | 324 | $response = new StreamedResponse(); |
| 325 | - $response->setCallback(function () use ($app, $request) { |
|
| 325 | + $response->setCallback(function() use ($app, $request) { |
|
| 326 | 326 | |
| 327 | 327 | // CSV種別を元に初期化. |
| 328 | 328 | $app['eccube.service.csv.export']->initCsvType(CsvType::CSV_TYPE_SHIPPING); |
@@ -336,7 +336,7 @@ discard block |
||
| 336 | 336 | |
| 337 | 337 | // データ行の出力. |
| 338 | 338 | $app['eccube.service.csv.export']->setExportQueryBuilder($qb); |
| 339 | - $app['eccube.service.csv.export']->exportData(function ($entity, $csvService) use ($app, $request) { |
|
| 339 | + $app['eccube.service.csv.export']->exportData(function($entity, $csvService) use ($app, $request) { |
|
| 340 | 340 | |
| 341 | 341 | $Csvs = $csvService->getCsvs(); |
| 342 | 342 | |
@@ -386,9 +386,9 @@ discard block |
||
| 386 | 386 | }); |
| 387 | 387 | |
| 388 | 388 | $now = new \DateTime(); |
| 389 | - $filename = 'shipping_' . $now->format('YmdHis') . '.csv'; |
|
| 389 | + $filename = 'shipping_'.$now->format('YmdHis').'.csv'; |
|
| 390 | 390 | $response->headers->set('Content-Type', 'application/octet-stream'); |
| 391 | - $response->headers->set('Content-Disposition', 'attachment; filename=' . $filename); |
|
| 391 | + $response->headers->set('Content-Disposition', 'attachment; filename='.$filename); |
|
| 392 | 392 | $response->send(); |
| 393 | 393 | |
| 394 | 394 | log_info('配送CSV出力ファイル名', array($filename)); |
@@ -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) use ($app, $request) { |
|
| 222 | + $app['eccube.service.csv.export']->exportData(function($entity, $csvService) use ($app, $request) { |
|
| 223 | 223 | |
| 224 | 224 | $Csvs = $csvService->getCsvs(); |
| 225 | 225 | |
@@ -252,9 +252,9 @@ discard block |
||
| 252 | 252 | }); |
| 253 | 253 | |
| 254 | 254 | $now = new \DateTime(); |
| 255 | - $filename = 'category_' . $now->format('YmdHis') . '.csv'; |
|
| 255 | + $filename = 'category_'.$now->format('YmdHis').'.csv'; |
|
| 256 | 256 | $response->headers->set('Content-Type', 'application/octet-stream'); |
| 257 | - $response->headers->set('Content-Disposition', 'attachment; filename=' . $filename); |
|
| 257 | + $response->headers->set('Content-Disposition', 'attachment; filename='.$filename); |
|
| 258 | 258 | $response->send(); |
| 259 | 259 | |
| 260 | 260 | log_info('カテゴリCSV出力ファイル名', array($filename)); |
@@ -1360,7 +1360,6 @@ |
||
| 1360 | 1360 | /** |
| 1361 | 1361 | * フォームの情報からお届け先のインデックスを返す |
| 1362 | 1362 | * |
| 1363 | - * @param Application $app |
|
| 1364 | 1363 | * @param mixed $CustomerAddressData |
| 1365 | 1364 | * @return int |
| 1366 | 1365 | */ |
@@ -153,9 +153,9 @@ discard block |
||
| 153 | 153 | $qb |
| 154 | 154 | ->andWhere('c.id = :customer_id OR CONCAT(c.name01, c.name02) LIKE :name OR CONCAT(c.kana01, c.kana02) LIKE :kana OR c.email LIKE :email') |
| 155 | 155 | ->setParameter('customer_id', $id) |
| 156 | - ->setParameter('name', '%' . $clean_key_multi . '%') |
|
| 157 | - ->setParameter('kana', '%' . $clean_key_multi . '%') |
|
| 158 | - ->setParameter('email', '%' . $clean_key_multi . '%'); |
|
| 156 | + ->setParameter('name', '%'.$clean_key_multi.'%') |
|
| 157 | + ->setParameter('kana', '%'.$clean_key_multi.'%') |
|
| 158 | + ->setParameter('email', '%'.$clean_key_multi.'%'); |
|
| 159 | 159 | } |
| 160 | 160 | |
| 161 | 161 | // Pref |
@@ -205,7 +205,7 @@ discard block |
||
| 205 | 205 | if (isset($searchData['tel']) && Str::isNotBlank($searchData['tel'])) { |
| 206 | 206 | $qb |
| 207 | 207 | ->andWhere('CONCAT(c.tel01, c.tel02, c.tel03) LIKE :tel') |
| 208 | - ->setParameter('tel', '%' . $searchData['tel'] . '%'); |
|
| 208 | + ->setParameter('tel', '%'.$searchData['tel'].'%'); |
|
| 209 | 209 | } |
| 210 | 210 | |
| 211 | 211 | // buy_total |
@@ -299,7 +299,7 @@ discard block |
||
| 299 | 299 | ->leftJoin('c.Orders', 'o') |
| 300 | 300 | ->leftJoin('o.OrderDetails', 'od') |
| 301 | 301 | ->andWhere('od.product_name LIKE :buy_product_name OR od.product_code LIKE :buy_product_name') |
| 302 | - ->setParameter('buy_product_name', '%' . $searchData['buy_product_code'] . '%'); |
|
| 302 | + ->setParameter('buy_product_name', '%'.$searchData['buy_product_code'].'%'); |
|
| 303 | 303 | } |
| 304 | 304 | |
| 305 | 305 | // Order By |
@@ -164,7 +164,7 @@ |
||
| 164 | 164 | $cmf->setEntityManager($em); |
| 165 | 165 | $metadatas = $cmf->getAllMetadata(); |
| 166 | 166 | |
| 167 | - $filters = array_map(function ($value) { |
|
| 167 | + $filters = array_map(function($value) { |
|
| 168 | 168 | return ucfirst(Inflector::camelize(str_replace('plg_', '', $value))); |
| 169 | 169 | }, $tableList); |
| 170 | 170 | $metadatas = MetadataFilter::filter($metadatas, $filters); |
@@ -39,7 +39,7 @@ discard block |
||
| 39 | 39 | private $error = null; |
| 40 | 40 | private $encode = ''; |
| 41 | 41 | |
| 42 | - public function __construct(){ |
|
| 42 | + public function __construct() { |
|
| 43 | 43 | $this->encode = self::UTF; |
| 44 | 44 | if ('\\' === DIRECTORY_SEPARATOR) { |
| 45 | 45 | $this->encode = self::SJIS; |
@@ -84,7 +84,7 @@ discard block |
||
| 84 | 84 | $arrFileList = $this->getFileList($app, $nowDir); |
| 85 | 85 | |
| 86 | 86 | $javascript = $this->getJsArrayList($tree); |
| 87 | - $onload = "eccube.fileManager.viewFileTree('tree', arrTree, '" . $nowDir . "', 'tree_select_file', 'tree_status', 'move');"; |
|
| 87 | + $onload = "eccube.fileManager.viewFileTree('tree', arrTree, '".$nowDir."', 'tree_select_file', 'tree_status', 'move');"; |
|
| 88 | 88 | |
| 89 | 89 | return $app->render('Content/file.twig', array( |
| 90 | 90 | 'form' => $form->createView(), |
@@ -141,7 +141,7 @@ discard block |
||
| 141 | 141 | $nowDir = $this->checkDir($request->get('now_dir'), $topDir) |
| 142 | 142 | ? $this->normalizePath($request->get('now_dir')) |
| 143 | 143 | : $topDir; |
| 144 | - $fs->mkdir($nowDir . '/' . $filename); |
|
| 144 | + $fs->mkdir($nowDir.'/'.$filename); |
|
| 145 | 145 | } |
| 146 | 146 | } |
| 147 | 147 | } |
@@ -219,7 +219,7 @@ discard block |
||
| 219 | 219 | { |
| 220 | 220 | $str = "arrTree = new Array();\n"; |
| 221 | 221 | foreach ($tree as $key => $val) { |
| 222 | - $str .= 'arrTree[' . $key . "] = new Array(" . $key . ", '" . $val['type'] . "', '" . $val['path'] . "', " . $val['rank'] . ','; |
|
| 222 | + $str .= 'arrTree['.$key."] = new Array(".$key.", '".$val['type']."', '".$val['path']."', ".$val['rank'].','; |
|
| 223 | 223 | if ($val['open']) { |
| 224 | 224 | $str .= "true);\n"; |
| 225 | 225 | } else { |
@@ -270,7 +270,7 @@ discard block |
||
| 270 | 270 | private function getFileList($app, $nowDir) |
| 271 | 271 | { |
| 272 | 272 | $topDir = $app['config']['user_data_realdir']; |
| 273 | - $filter = function (\SplFileInfo $file) use ($topDir) { |
|
| 273 | + $filter = function(\SplFileInfo $file) use ($topDir) { |
|
| 274 | 274 | $acceptPath = realpath($topDir); |
| 275 | 275 | $targetPath = $file->getRealPath(); |
| 276 | 276 | return (strpos($targetPath, $acceptPath) === 0); |
@@ -100,14 +100,14 @@ discard block |
||
| 100 | 100 | if (isset($searchData['name']) && Str::isNotBlank($searchData['name'])) { |
| 101 | 101 | $qb |
| 102 | 102 | ->andWhere('CONCAT(o.name01, o.name02) LIKE :name') |
| 103 | - ->setParameter('name', '%' . $searchData['name'] . '%'); |
|
| 103 | + ->setParameter('name', '%'.$searchData['name'].'%'); |
|
| 104 | 104 | } |
| 105 | 105 | |
| 106 | 106 | // kana |
| 107 | 107 | if (isset($searchData['kana']) && Str::isNotBlank($searchData['kana'])) { |
| 108 | 108 | $qb |
| 109 | 109 | ->andWhere('CONCAT(o.kana01, o.kana02) LIKE :kana') |
| 110 | - ->setParameter('kana', '%' . $searchData['kana'] . '%'); |
|
| 110 | + ->setParameter('kana', '%'.$searchData['kana'].'%'); |
|
| 111 | 111 | } |
| 112 | 112 | |
| 113 | 113 | |
@@ -244,7 +244,7 @@ discard block |
||
| 244 | 244 | $qb |
| 245 | 245 | ->leftJoin('o.OrderDetails', 'od') |
| 246 | 246 | ->andWhere('od.product_name LIKE :buy_product_name') |
| 247 | - ->setParameter('buy_product_name', '%' . $searchData['buy_product_name'] . '%'); |
|
| 247 | + ->setParameter('buy_product_name', '%'.$searchData['buy_product_name'].'%'); |
|
| 248 | 248 | } |
| 249 | 249 | |
| 250 | 250 | // Order By |
@@ -270,13 +270,13 @@ discard block |
||
| 270 | 270 | ->setParameter('order_id_start', $searchData['order_id_start']); |
| 271 | 271 | } |
| 272 | 272 | // multi |
| 273 | - if (isset( $searchData['multi']) && Str::isNotBlank($searchData['multi'])) { |
|
| 273 | + if (isset($searchData['multi']) && Str::isNotBlank($searchData['multi'])) { |
|
| 274 | 274 | $multi = preg_match('/^\d+$/', $searchData['multi']) ? $searchData['multi'] : null; |
| 275 | 275 | $qb |
| 276 | - ->andWhere('o.id = :multi OR o.name01 LIKE :likemulti OR o.name02 LIKE :likemulti OR ' . |
|
| 276 | + ->andWhere('o.id = :multi OR o.name01 LIKE :likemulti OR o.name02 LIKE :likemulti OR '. |
|
| 277 | 277 | 'o.kana01 LIKE :likemulti OR o.kana02 LIKE :likemulti OR o.company_name LIKE :likemulti') |
| 278 | 278 | ->setParameter('multi', $multi) |
| 279 | - ->setParameter('likemulti', '%' . $searchData['multi'] . '%'); |
|
| 279 | + ->setParameter('likemulti', '%'.$searchData['multi'].'%'); |
|
| 280 | 280 | } |
| 281 | 281 | |
| 282 | 282 | // order_id_end |
@@ -313,28 +313,28 @@ discard block |
||
| 313 | 313 | if (isset($searchData['name']) && Str::isNotBlank($searchData['name'])) { |
| 314 | 314 | $qb |
| 315 | 315 | ->andWhere('CONCAT(o.name01, o.name02) LIKE :name') |
| 316 | - ->setParameter('name', '%' . $searchData['name'] . '%'); |
|
| 316 | + ->setParameter('name', '%'.$searchData['name'].'%'); |
|
| 317 | 317 | } |
| 318 | 318 | |
| 319 | 319 | // kana |
| 320 | 320 | if (isset($searchData['kana']) && Str::isNotBlank($searchData['kana'])) { |
| 321 | 321 | $qb |
| 322 | 322 | ->andWhere('CONCAT(o.kana01, o.kana02) LIKE :kana') |
| 323 | - ->setParameter('kana', '%' . $searchData['kana'] . '%'); |
|
| 323 | + ->setParameter('kana', '%'.$searchData['kana'].'%'); |
|
| 324 | 324 | } |
| 325 | 325 | |
| 326 | 326 | |
| 327 | 327 | if (isset($searchData['email']) && Str::isNotBlank($searchData['email'])) { |
| 328 | 328 | $qb |
| 329 | 329 | ->andWhere('o.email like :email') |
| 330 | - ->setParameter('email', '%' . $searchData['email'] . '%'); |
|
| 330 | + ->setParameter('email', '%'.$searchData['email'].'%'); |
|
| 331 | 331 | } |
| 332 | 332 | |
| 333 | 333 | // tel |
| 334 | 334 | if (isset($searchData['tel']) && Str::isNotBlank($searchData['tel'])) { |
| 335 | 335 | $qb |
| 336 | 336 | ->andWhere('CONCAT(o.tel01, o.tel02, o.tel03) LIKE :tel') |
| 337 | - ->setParameter('tel', '%' . $searchData['tel'] . '%'); |
|
| 337 | + ->setParameter('tel', '%'.$searchData['tel'].'%'); |
|
| 338 | 338 | } |
| 339 | 339 | |
| 340 | 340 | // sex |
@@ -446,7 +446,7 @@ discard block |
||
| 446 | 446 | $qb |
| 447 | 447 | ->leftJoin('o.OrderDetails', 'od') |
| 448 | 448 | ->andWhere('od.product_name LIKE :buy_product_name') |
| 449 | - ->setParameter('buy_product_name', '%' . $searchData['buy_product_name'] . '%'); |
|
| 449 | + ->setParameter('buy_product_name', '%'.$searchData['buy_product_name'].'%'); |
|
| 450 | 450 | } |
| 451 | 451 | |
| 452 | 452 | // Order By |
@@ -348,7 +348,7 @@ discard block |
||
| 348 | 348 | * @param array $metadatas |
| 349 | 349 | * @param array $fsList |
| 350 | 350 | * @param $pluginCode |
| 351 | - * @param $codePath |
|
| 351 | + * @param string $codePath |
|
| 352 | 352 | */ |
| 353 | 353 | protected function generateMigration(array $metadatas, array &$fsList = array(), $pluginCode, $codePath) |
| 354 | 354 | { |
@@ -373,7 +373,7 @@ discard block |
||
| 373 | 373 | * |
| 374 | 374 | * @param $pluginCode |
| 375 | 375 | * @param array $metadatas |
| 376 | - * @return mixed|string |
|
| 376 | + * @return string |
|
| 377 | 377 | */ |
| 378 | 378 | protected function makeMigration($pluginCode, array $metadatas) |
| 379 | 379 | { |