@@ -119,7 +119,7 @@ |
||
119 | 119 | $num = $app['eccube.repository.product_class']->createQueryBuilder('pc') |
120 | 120 | ->select('count(pc.id)') |
121 | 121 | ->where('pc.ClassCategory1 = :id OR pc.ClassCategory2 = :id') |
122 | - ->setParameter('id',$id) |
|
122 | + ->setParameter('id', $id) |
|
123 | 123 | ->getQuery() |
124 | 124 | ->getSingleScalarResult(); |
125 | 125 | if ($num > 0) { |
@@ -138,7 +138,7 @@ |
||
138 | 138 | 'allow_add' => true, |
139 | 139 | 'allow_delete' => true, |
140 | 140 | 'data' => $ProductClasses, |
141 | - )); |
|
141 | + )); |
|
142 | 142 | |
143 | 143 | $event = new EventArgs( |
144 | 144 | array( |
@@ -106,7 +106,7 @@ |
||
106 | 106 | $class2Valied = $this->isValiedCategory($ClassName2); |
107 | 107 | |
108 | 108 | // 規格が選択されていないか、選択された状態で分類が保有されていれば、画面表示 |
109 | - if($class1Valied && $class2Valied){ |
|
109 | + if ($class1Valied && $class2Valied) { |
|
110 | 110 | $hasClassCategoryFlg = true; |
111 | 111 | } |
112 | 112 |
@@ -529,6 +529,9 @@ discard block |
||
529 | 529 | /** |
530 | 530 | * 登録、更新時のエラー画面表示 |
531 | 531 | * |
532 | + * @param Application $app |
|
533 | + * @param boolean $not_product_class |
|
534 | + * @param \Symfony\Component\Form\FormInterface $classForm |
|
532 | 535 | */ |
533 | 536 | protected function render($app, $Product, $ProductClass, $not_product_class, $classForm, $error = null) |
534 | 537 | { |
@@ -580,6 +583,7 @@ discard block |
||
580 | 583 | |
581 | 584 | /** |
582 | 585 | * 規格1と規格2を組み合わせた商品規格を作成 |
586 | + * @param Application $app |
|
583 | 587 | */ |
584 | 588 | private function createProductClasses($app, Product $Product, ClassName $ClassName1 = null, ClassName $ClassName2 = null) |
585 | 589 | { |
@@ -667,6 +671,7 @@ discard block |
||
667 | 671 | * |
668 | 672 | * @param $productClassDest コピー先となる商品規格 |
669 | 673 | * @param $productClassOrig コピー元となる商品規格 |
674 | + * @param Application $app |
|
670 | 675 | */ |
671 | 676 | private function setDefualtProductClass($app, $productClassDest, $productClassOrig) { |
672 | 677 | $productClassDest->setDeliveryDate($productClassOrig->getDeliveryDate()); |
@@ -198,7 +198,7 @@ discard block |
||
198 | 198 | $em->getConfiguration()->setSQLLogger(null); |
199 | 199 | |
200 | 200 | $response = new StreamedResponse(); |
201 | - $response->setCallback(function () use ($app, $request) { |
|
201 | + $response->setCallback(function() use ($app, $request) { |
|
202 | 202 | |
203 | 203 | // CSV種別を元に初期化. |
204 | 204 | $app['eccube.service.csv.export']->initCsvType(CsvType::CSV_TYPE_CATEGORY); |
@@ -212,7 +212,7 @@ discard block |
||
212 | 212 | |
213 | 213 | // データ行の出力. |
214 | 214 | $app['eccube.service.csv.export']->setExportQueryBuilder($qb); |
215 | - $app['eccube.service.csv.export']->exportData(function ($entity, $csvService) { |
|
215 | + $app['eccube.service.csv.export']->exportData(function($entity, $csvService) { |
|
216 | 216 | |
217 | 217 | $Csvs = $csvService->getCsvs(); |
218 | 218 | |
@@ -232,9 +232,9 @@ discard block |
||
232 | 232 | }); |
233 | 233 | |
234 | 234 | $now = new \DateTime(); |
235 | - $filename = 'category_' . $now->format('YmdHis') . '.csv'; |
|
235 | + $filename = 'category_'.$now->format('YmdHis').'.csv'; |
|
236 | 236 | $response->headers->set('Content-Type', 'application/octet-stream'); |
237 | - $response->headers->set('Content-Disposition', 'attachment; filename=' . $filename); |
|
237 | + $response->headers->set('Content-Disposition', 'attachment; filename='.$filename); |
|
238 | 238 | $response->send(); |
239 | 239 | |
240 | 240 | return $response; |
@@ -236,7 +236,7 @@ discard block |
||
236 | 236 | $em->getConfiguration()->setSQLLogger(null); |
237 | 237 | |
238 | 238 | $response = new StreamedResponse(); |
239 | - $response->setCallback(function () use ($app, $request) { |
|
239 | + $response->setCallback(function() use ($app, $request) { |
|
240 | 240 | |
241 | 241 | // CSV種別を元に初期化. |
242 | 242 | $app['eccube.service.csv.export']->initCsvType(CsvType::CSV_TYPE_ORDER); |
@@ -250,7 +250,7 @@ discard block |
||
250 | 250 | |
251 | 251 | // データ行の出力. |
252 | 252 | $app['eccube.service.csv.export']->setExportQueryBuilder($qb); |
253 | - $app['eccube.service.csv.export']->exportData(function ($entity, $csvService) { |
|
253 | + $app['eccube.service.csv.export']->exportData(function($entity, $csvService) { |
|
254 | 254 | |
255 | 255 | $Csvs = $csvService->getCsvs(); |
256 | 256 | |
@@ -280,9 +280,9 @@ discard block |
||
280 | 280 | }); |
281 | 281 | |
282 | 282 | $now = new \DateTime(); |
283 | - $filename = 'order_' . $now->format('YmdHis') . '.csv'; |
|
283 | + $filename = 'order_'.$now->format('YmdHis').'.csv'; |
|
284 | 284 | $response->headers->set('Content-Type', 'application/octet-stream'); |
285 | - $response->headers->set('Content-Disposition', 'attachment; filename=' . $filename); |
|
285 | + $response->headers->set('Content-Disposition', 'attachment; filename='.$filename); |
|
286 | 286 | $response->send(); |
287 | 287 | |
288 | 288 | return $response; |
@@ -305,7 +305,7 @@ discard block |
||
305 | 305 | $em->getConfiguration()->setSQLLogger(null); |
306 | 306 | |
307 | 307 | $response = new StreamedResponse(); |
308 | - $response->setCallback(function () use ($app, $request) { |
|
308 | + $response->setCallback(function() use ($app, $request) { |
|
309 | 309 | |
310 | 310 | // CSV種別を元に初期化. |
311 | 311 | $app['eccube.service.csv.export']->initCsvType(CsvType::CSV_TYPE_SHIPPING); |
@@ -319,7 +319,7 @@ discard block |
||
319 | 319 | |
320 | 320 | // データ行の出力. |
321 | 321 | $app['eccube.service.csv.export']->setExportQueryBuilder($qb); |
322 | - $app['eccube.service.csv.export']->exportData(function ($entity, $csvService) { |
|
322 | + $app['eccube.service.csv.export']->exportData(function($entity, $csvService) { |
|
323 | 323 | |
324 | 324 | $Csvs = $csvService->getCsvs(); |
325 | 325 | |
@@ -357,9 +357,9 @@ discard block |
||
357 | 357 | }); |
358 | 358 | |
359 | 359 | $now = new \DateTime(); |
360 | - $filename = 'shipping_' . $now->format('YmdHis') . '.csv'; |
|
360 | + $filename = 'shipping_'.$now->format('YmdHis').'.csv'; |
|
361 | 361 | $response->headers->set('Content-Type', 'application/octet-stream'); |
362 | - $response->headers->set('Content-Disposition', 'attachment; filename=' . $filename); |
|
362 | + $response->headers->set('Content-Disposition', 'attachment; filename='.$filename); |
|
363 | 363 | $response->send(); |
364 | 364 | |
365 | 365 | return $response; |
@@ -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 | } |
@@ -79,7 +79,7 @@ |
||
79 | 79 | { |
80 | 80 | $log = array(); |
81 | 81 | |
82 | - foreach (array_reverse(file($logFile, FILE_IGNORE_NEW_LINES | FILE_SKIP_EMPTY_LINES)) as $line) { |
|
82 | + foreach (array_reverse(file($logFile, FILE_IGNORE_NEW_LINES|FILE_SKIP_EMPTY_LINES)) as $line) { |
|
83 | 83 | // 上限に達した場合、処理を抜ける |
84 | 84 | if (count($log) >= $formData['line_max']) { |
85 | 85 | break; |
@@ -126,7 +126,7 @@ |
||
126 | 126 | if (count($allowHost) > 0) { |
127 | 127 | $form->get('admin_allow_host')->setData(Str::convertLineFeed(implode("\n", $allowHost))); |
128 | 128 | } |
129 | - $form->get('force_ssl')->setData((bool)$app['config']['force_ssl']); |
|
129 | + $form->get('force_ssl')->setData((bool) $app['config']['force_ssl']); |
|
130 | 130 | } |
131 | 131 | |
132 | 132 | return $app->render('Setting/System/security.twig', array( |
@@ -128,7 +128,7 @@ |
||
128 | 128 | $entityName = str_replace('-', '\\', $data['masterdata_name']); |
129 | 129 | $entity = new $entityName(); |
130 | 130 | $rank = 0; |
131 | - $ids = array_map(function ($v) {return $v['id'];}, $data['data']); |
|
131 | + $ids = array_map(function($v) {return $v['id']; }, $data['data']); |
|
132 | 132 | foreach ($data['data'] as $key => $value) { |
133 | 133 | if ($value['id'] !== null && $value['name'] !== null) { |
134 | 134 | $entity->setId($value['id']); |
@@ -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 |