@@ -95,7 +95,7 @@ |
||
95 | 95 | $num = $app['eccube.repository.product_class']->createQueryBuilder('pc') |
96 | 96 | ->select('count(pc.id)') |
97 | 97 | ->where('pc.ClassCategory1 = :id OR pc.ClassCategory2 = :id') |
98 | - ->setParameter('id',$id) |
|
98 | + ->setParameter('id', $id) |
|
99 | 99 | ->getQuery() |
100 | 100 | ->getSingleScalarResult(); |
101 | 101 | if ($num > 0) { |
@@ -151,7 +151,7 @@ discard block |
||
151 | 151 | foreach ($images as $img) { |
152 | 152 | foreach ($img as $image) { |
153 | 153 | $extension = $image->getClientOriginalExtension(); |
154 | - $filename = date('mdHis') . uniqid('_') . '.' . $extension; |
|
154 | + $filename = date('mdHis').uniqid('_').'.'.$extension; |
|
155 | 155 | $image->move($app['config']['image_temp_realdir'], $filename); |
156 | 156 | $files[] = $filename; |
157 | 157 | } |
@@ -311,7 +311,7 @@ discard block |
||
311 | 311 | $app['orm.em']->persist($ProductImage); |
312 | 312 | |
313 | 313 | // 移動 |
314 | - $file = new File($app['config']['image_temp_realdir'] . '/' . $add_image); |
|
314 | + $file = new File($app['config']['image_temp_realdir'].'/'.$add_image); |
|
315 | 315 | $file->move($app['config']['image_save_realdir']); |
316 | 316 | } |
317 | 317 | |
@@ -331,7 +331,7 @@ discard block |
||
331 | 331 | |
332 | 332 | // 削除 |
333 | 333 | $fs = new Filesystem(); |
334 | - $fs->remove($app['config']['image_save_realdir'] . '/' . $delete_image); |
|
334 | + $fs->remove($app['config']['image_save_realdir'].'/'.$delete_image); |
|
335 | 335 | } |
336 | 336 | $app['orm.em']->persist($Product); |
337 | 337 | $app['orm.em']->flush(); |
@@ -430,7 +430,7 @@ discard block |
||
430 | 430 | foreach ($deleteImages as $deleteImage) { |
431 | 431 | try { |
432 | 432 | $fs = new Filesystem(); |
433 | - $fs->remove($app['config']['image_save_realdir'] . '/' . $deleteImage); |
|
433 | + $fs->remove($app['config']['image_save_realdir'].'/'.$deleteImage); |
|
434 | 434 | } catch (\Exception $e) { |
435 | 435 | // エラーが発生しても無視する |
436 | 436 | } |
@@ -475,10 +475,10 @@ discard block |
||
475 | 475 | |
476 | 476 | // 画像ファイルを新規作成 |
477 | 477 | $extension = pathinfo($Image->getFileName(), PATHINFO_EXTENSION); |
478 | - $filename = date('mdHis') . uniqid('_') . '.' . $extension; |
|
478 | + $filename = date('mdHis').uniqid('_').'.'.$extension; |
|
479 | 479 | try { |
480 | 480 | $fs = new Filesystem(); |
481 | - $fs->copy($app['config']['image_save_realdir'] . '/' . $Image->getFileName(), $app['config']['image_save_realdir'] . '/' . $filename); |
|
481 | + $fs->copy($app['config']['image_save_realdir'].'/'.$Image->getFileName(), $app['config']['image_save_realdir'].'/'.$filename); |
|
482 | 482 | } catch (\Exception $e) { |
483 | 483 | // エラーが発生しても無視する |
484 | 484 | } |
@@ -533,7 +533,7 @@ discard block |
||
533 | 533 | $em->getConfiguration()->setSQLLogger(null); |
534 | 534 | |
535 | 535 | $response = new StreamedResponse(); |
536 | - $response->setCallback(function () use ($app, $request) { |
|
536 | + $response->setCallback(function() use ($app, $request) { |
|
537 | 537 | |
538 | 538 | // CSV種別を元に初期化. |
539 | 539 | $app['eccube.service.csv.export']->initCsvType(CsvType::CSV_TYPE_PRODUCT); |
@@ -557,7 +557,7 @@ discard block |
||
557 | 557 | |
558 | 558 | // データ行の出力. |
559 | 559 | $app['eccube.service.csv.export']->setExportQueryBuilder($qb); |
560 | - $app['eccube.service.csv.export']->exportData(function ($entity, $csvService) { |
|
560 | + $app['eccube.service.csv.export']->exportData(function($entity, $csvService) { |
|
561 | 561 | |
562 | 562 | $Csvs = $csvService->getCsvs(); |
563 | 563 | |
@@ -589,9 +589,9 @@ discard block |
||
589 | 589 | }); |
590 | 590 | |
591 | 591 | $now = new \DateTime(); |
592 | - $filename = 'product_' . $now->format('YmdHis') . '.csv'; |
|
592 | + $filename = 'product_'.$now->format('YmdHis').'.csv'; |
|
593 | 593 | $response->headers->set('Content-Type', 'application/octet-stream'); |
594 | - $response->headers->set('Content-Disposition', 'attachment; filename=' . $filename); |
|
594 | + $response->headers->set('Content-Disposition', 'attachment; filename='.$filename); |
|
595 | 595 | $response->send(); |
596 | 596 | |
597 | 597 | return $response; |
@@ -70,10 +70,10 @@ discard block |
||
70 | 70 | // ファイルアップロード |
71 | 71 | $file = $form['payment_image']->getData(); |
72 | 72 | $fs = new Filesystem(); |
73 | - if ($file && $fs->exists($app['config']['image_temp_realdir'] . '/' . $file)) { |
|
73 | + if ($file && $fs->exists($app['config']['image_temp_realdir'].'/'.$file)) { |
|
74 | 74 | $fs->rename( |
75 | - $app['config']['image_temp_realdir'] . '/' . $file, |
|
76 | - $app['config']['image_save_realdir'] . '/' . $file |
|
75 | + $app['config']['image_temp_realdir'].'/'.$file, |
|
76 | + $app['config']['image_save_realdir'].'/'.$file |
|
77 | 77 | ); |
78 | 78 | } |
79 | 79 | |
@@ -100,7 +100,7 @@ discard block |
||
100 | 100 | if (isset($images['payment_image_file'])) { |
101 | 101 | $image = $images['payment_image_file']; |
102 | 102 | $extension = $image->guessExtension(); |
103 | - $filename = date('mdHis') . uniqid('_') . '.' . $extension; |
|
103 | + $filename = date('mdHis').uniqid('_').'.'.$extension; |
|
104 | 104 | $image->move($app['config']['image_temp_realdir'], $filename); |
105 | 105 | } |
106 | 106 | |
@@ -127,12 +127,12 @@ discard block |
||
127 | 127 | foreach ($Payments as $Payment) { |
128 | 128 | if ($Payment->getId() != $id) { |
129 | 129 | $Payment->setRank($rank); |
130 | - $rank ++; |
|
130 | + $rank++; |
|
131 | 131 | } |
132 | 132 | } |
133 | 133 | $app['orm.em']->flush(); |
134 | 134 | |
135 | - $app->addSuccess('admin.delete.complete', 'admin') ; |
|
135 | + $app->addSuccess('admin.delete.complete', 'admin'); |
|
136 | 136 | |
137 | 137 | return $app->redirect($app->url('admin_setting_shop_payment')); |
138 | 138 | } |
@@ -62,7 +62,7 @@ |
||
62 | 62 | $log = array(); |
63 | 63 | $message = array(); |
64 | 64 | |
65 | - foreach (array_reverse(file($logFile, FILE_IGNORE_NEW_LINES | FILE_SKIP_EMPTY_LINES)) as $line) { |
|
65 | + foreach (array_reverse(file($logFile, FILE_IGNORE_NEW_LINES|FILE_SKIP_EMPTY_LINES)) as $line) { |
|
66 | 66 | // 上限に達した場合、処理を抜ける |
67 | 67 | if (count($log) >= $formData['line_max']) { |
68 | 68 | break; |
@@ -49,7 +49,7 @@ discard block |
||
49 | 49 | |
50 | 50 | return $phpinfo; |
51 | 51 | |
52 | - break; |
|
52 | + break; |
|
53 | 53 | default: |
54 | 54 | break; |
55 | 55 | } |
@@ -61,8 +61,8 @@ discard block |
||
61 | 61 | )); |
62 | 62 | } |
63 | 63 | |
64 | - public function getSystemInfo(Application $app) |
|
65 | - { |
|
64 | + public function getSystemInfo(Application $app) |
|
65 | + { |
|
66 | 66 | $system = $app['eccube.service.system']; |
67 | 67 | $server = $app['request']; |
68 | 68 | |
@@ -78,5 +78,5 @@ discard block |
||
78 | 78 | $arrSystemInfo[] = array('title' => 'HTTPユーザーエージェント', 'value' => $server->headers->get('User-Agent')); |
79 | 79 | |
80 | 80 | return $arrSystemInfo; |
81 | - } |
|
81 | + } |
|
82 | 82 | } |
@@ -67,13 +67,13 @@ |
||
67 | 67 | $server = $app['request']; |
68 | 68 | |
69 | 69 | $arrSystemInfo = array( |
70 | - array('title' => 'EC-CUBE', 'value' => Constant::VERSION), |
|
71 | - array('title' => 'サーバーOS', 'value' => php_uname()), |
|
72 | - array('title' => 'DBサーバー', 'value' => $system->getDbversion()), |
|
73 | - array('title' => 'WEBサーバー', 'value' => $server->server->get("SERVER_SOFTWARE")), |
|
70 | + array('title' => 'EC-CUBE', 'value' => Constant::VERSION), |
|
71 | + array('title' => 'サーバーOS', 'value' => php_uname()), |
|
72 | + array('title' => 'DBサーバー', 'value' => $system->getDbversion()), |
|
73 | + array('title' => 'WEBサーバー', 'value' => $server->server->get("SERVER_SOFTWARE")), |
|
74 | 74 | ); |
75 | 75 | |
76 | - $value = phpversion() . ' (' . implode(', ', get_loaded_extensions()) . ')'; |
|
76 | + $value = phpversion().' ('.implode(', ', get_loaded_extensions()).')'; |
|
77 | 77 | $arrSystemInfo[] = array('title' => 'PHP', 'value' => $value); |
78 | 78 | $arrSystemInfo[] = array('title' => 'HTTPユーザーエージェント', 'value' => $server->headers->get('User-Agent')); |
79 | 79 |
@@ -38,7 +38,7 @@ |
||
38 | 38 | |
39 | 39 | if ($app['eccube.layout']) { |
40 | 40 | foreach ($app['eccube.layout']->getBlocPositions() as $blocPositions) { |
41 | - if ($blocPositions->getTargetId() == constant("Eccube\Entity\BlocPosition::" . $position)) { |
|
41 | + if ($blocPositions->getTargetId() == constant("Eccube\Entity\BlocPosition::".$position)) { |
|
42 | 42 | $blocks[] = $blocPositions->getBloc(); |
43 | 43 | } |
44 | 44 | } |
@@ -79,7 +79,7 @@ |
||
79 | 79 | |
80 | 80 | // 遷移が正しくない場合、デフォルトであるマイページの配送先追加の画面を設定する |
81 | 81 | if (!in_array($parentPage, $allowdParents)) { |
82 | - $parentPage = $app->url('mypage_delivery'); |
|
82 | + $parentPage = $app->url('mypage_delivery'); |
|
83 | 83 | } |
84 | 84 | |
85 | 85 | /* @var $form \Symfony\Component\Form\FormInterface */ |
@@ -52,7 +52,7 @@ |
||
52 | 52 | $paths[] = $app['config']['user_data_realdir']; |
53 | 53 | $app['twig.loader']->addLoader(new \Twig_Loader_Filesystem($paths)); |
54 | 54 | |
55 | - $file = $PageLayout->getFileName() . '.twig'; |
|
55 | + $file = $PageLayout->getFileName().'.twig'; |
|
56 | 56 | |
57 | 57 | return $app['twig']->render($file); |
58 | 58 | } |
@@ -32,7 +32,7 @@ |
||
32 | 32 | public function addFilterConstraint(ClassMetadata $targetEntity, $targetTableAlias) |
33 | 33 | { |
34 | 34 | if ($targetEntity->reflClass->getName() === 'Eccube\Entity\ProductClass') { |
35 | - return $targetTableAlias . '.stock >= 1 OR ' . $targetTableAlias . '.stock_unlimited = 1'; |
|
35 | + return $targetTableAlias.'.stock >= 1 OR '.$targetTableAlias.'.stock_unlimited = 1'; |
|
36 | 36 | } else { |
37 | 37 | return ""; |
38 | 38 | } |