@@ -12,7 +12,7 @@ |
||
12 | 12 | { |
13 | 13 | $app->extend( |
14 | 14 | 'form.type.extensions', |
15 | - function ($extensions) { |
|
15 | + function($extensions) { |
|
16 | 16 | $extensions[] = new EntryTypeExtension(); |
17 | 17 | |
18 | 18 | return $extensions; |
@@ -104,7 +104,7 @@ discard block |
||
104 | 104 | */ |
105 | 105 | protected function calculateTotal(ItemHolderInterface $itemHolder) |
106 | 106 | { |
107 | - $total = $itemHolder->getItems()->reduce(function ($sum, ItemInterface $item) { |
|
107 | + $total = $itemHolder->getItems()->reduce(function($sum, ItemInterface $item) { |
|
108 | 108 | $sum += $item->getPriceIncTax() * $item->getQuantity(); |
109 | 109 | |
110 | 110 | return $sum; |
@@ -121,7 +121,7 @@ discard block |
||
121 | 121 | { |
122 | 122 | $total = $itemHolder->getItems() |
123 | 123 | ->getProductClasses() |
124 | - ->reduce(function ($sum, ItemInterface $item) { |
|
124 | + ->reduce(function($sum, ItemInterface $item) { |
|
125 | 125 | $sum += $item->getPriceIncTax() * $item->getQuantity(); |
126 | 126 | |
127 | 127 | return $sum; |
@@ -140,7 +140,7 @@ discard block |
||
140 | 140 | { |
141 | 141 | $total = $itemHolder->getItems() |
142 | 142 | ->getDeliveryFees() |
143 | - ->reduce(function ($sum, ItemInterface $item) { |
|
143 | + ->reduce(function($sum, ItemInterface $item) { |
|
144 | 144 | $sum += $item->getPriceIncTax() * $item->getQuantity(); |
145 | 145 | |
146 | 146 | return $sum; |
@@ -155,7 +155,7 @@ discard block |
||
155 | 155 | { |
156 | 156 | $total = $itemHolder->getItems() |
157 | 157 | ->getDiscounts() |
158 | - ->reduce(function ($sum, ItemInterface $item) { |
|
158 | + ->reduce(function($sum, ItemInterface $item) { |
|
159 | 159 | $sum += $item->getPriceIncTax() * $item->getQuantity(); |
160 | 160 | |
161 | 161 | return $sum; |
@@ -171,7 +171,7 @@ discard block |
||
171 | 171 | { |
172 | 172 | $total = $itemHolder->getItems() |
173 | 173 | ->getCharges() |
174 | - ->reduce(function ($sum, ItemInterface $item) { |
|
174 | + ->reduce(function($sum, ItemInterface $item) { |
|
175 | 175 | $sum += $item->getPriceIncTax() * $item->getQuantity(); |
176 | 176 | |
177 | 177 | return $sum; |
@@ -185,7 +185,7 @@ discard block |
||
185 | 185 | protected function calculateTax(ItemHolderInterface $itemHolder) |
186 | 186 | { |
187 | 187 | $total = $itemHolder->getItems() |
188 | - ->reduce(function ($sum, ItemInterface $item) { |
|
188 | + ->reduce(function($sum, ItemInterface $item) { |
|
189 | 189 | $sum += ($item->getPriceIncTax() - $item->getPrice()) * $item->getQuantity(); |
190 | 190 | |
191 | 191 | return $sum; |
@@ -53,7 +53,7 @@ discard block |
||
53 | 53 | */ |
54 | 54 | public function getErrors() |
55 | 55 | { |
56 | - return array_filter($this->processResults, function (ProcessResult $processResult) { |
|
56 | + return array_filter($this->processResults, function(ProcessResult $processResult) { |
|
57 | 57 | return $processResult->isError(); |
58 | 58 | }); |
59 | 59 | } |
@@ -63,7 +63,7 @@ discard block |
||
63 | 63 | */ |
64 | 64 | public function getWarning() |
65 | 65 | { |
66 | - return array_filter($this->processResults, function (ProcessResult $processResult) { |
|
66 | + return array_filter($this->processResults, function(ProcessResult $processResult) { |
|
67 | 67 | return $processResult->isWarning(); |
68 | 68 | }); |
69 | 69 | } |
@@ -68,7 +68,7 @@ discard block |
||
68 | 68 | if (is_callable($function)) { |
69 | 69 | return call_user_func_array($function, $arg_list); |
70 | 70 | } |
71 | - trigger_error('Called to an undefined function : php_'. $function, E_USER_WARNING); |
|
71 | + trigger_error('Called to an undefined function : php_'.$function, E_USER_WARNING); |
|
72 | 72 | |
73 | 73 | }, ['pre_escape' => 'html', 'is_safe' => ['html']]), |
74 | 74 | |
@@ -156,7 +156,7 @@ discard block |
||
156 | 156 | public function getCsrfTokenForAnchor() |
157 | 157 | { |
158 | 158 | $token = $this->app['csrf.token_manager']->getToken(Constant::TOKEN_NAME)->getValue(); |
159 | - return 'token-for-anchor=\'' . $token . '\''; |
|
159 | + return 'token-for-anchor=\''.$token.'\''; |
|
160 | 160 | } |
161 | 161 | |
162 | 162 | /** |
@@ -817,7 +817,7 @@ |
||
817 | 817 | if ($dispatcher instanceof Response |
818 | 818 | && ($dispatcher->isRedirection() || $dispatcher->getContent()) |
819 | 819 | ) { // $paymentMethod->apply() が Response を返した場合は画面遷移 |
820 | - return $dispatcher; // 画面遷移したいパターンが複数ある場合はどうする? 引数で制御? |
|
820 | + return $dispatcher; // 画面遷移したいパターンが複数ある場合はどうする? 引数で制御? |
|
821 | 821 | } |
822 | 822 | $PaymentResult = $paymentService->doCheckout($paymentMethod); // 決済実行 |
823 | 823 | if (!$PaymentResult->isSuccess()) { |
@@ -194,7 +194,7 @@ |
||
194 | 194 | ); |
195 | 195 | $addCartForm = $builder->getForm(); |
196 | 196 | |
197 | - if ($request->getMethod() === 'POST' && (string)$Product->getId() === $request->get('product_id')) { |
|
197 | + if ($request->getMethod() === 'POST' && (string) $Product->getId() === $request->get('product_id')) { |
|
198 | 198 | $addCartForm->handleRequest($request); |
199 | 199 | |
200 | 200 | if ($addCartForm->isValid()) { |
@@ -90,7 +90,7 @@ |
||
90 | 90 | } |
91 | 91 | if ($dir == 'doctrine') { |
92 | 92 | // doctrineが指定された場合は, cache driver経由で削除. |
93 | - $config = $this->entityManager->getConfiguration(); |
|
93 | + $config = $this->entityManager->getConfiguration(); |
|
94 | 94 | $this->deleteDoctrineCache($config->getMetadataCacheImpl()); |
95 | 95 | $this->deleteDoctrineCache($config->getQueryCacheImpl()); |
96 | 96 | $this->deleteDoctrineCache($config->getResultCacheImpl()); |
@@ -64,7 +64,7 @@ discard block |
||
64 | 64 | private $error = null; |
65 | 65 | private $encode = ''; |
66 | 66 | |
67 | - public function __construct(){ |
|
67 | + public function __construct() { |
|
68 | 68 | $this->encode = self::UTF; |
69 | 69 | if ('\\' === DIRECTORY_SEPARATOR) { |
70 | 70 | $this->encode = self::SJIS; |
@@ -113,7 +113,7 @@ discard block |
||
113 | 113 | $arrFileList = $this->getFileList($app, $nowDir); |
114 | 114 | |
115 | 115 | $javascript = $this->getJsArrayList($tree); |
116 | - $onload = "eccube.fileManager.viewFileTree('tree', arrTree, '" . $nowDir . "', 'tree_select_file', 'tree_status', 'move');"; |
|
116 | + $onload = "eccube.fileManager.viewFileTree('tree', arrTree, '".$nowDir."', 'tree_select_file', 'tree_status', 'move');"; |
|
117 | 117 | |
118 | 118 | return [ |
119 | 119 | 'form' => $form->createView(), |
@@ -174,7 +174,7 @@ discard block |
||
174 | 174 | $nowDir = $this->checkDir($request->get('now_dir'), $topDir) |
175 | 175 | ? $this->normalizePath($request->get('now_dir')) |
176 | 176 | : $topDir; |
177 | - $fs->mkdir($nowDir . '/' . $filename); |
|
177 | + $fs->mkdir($nowDir.'/'.$filename); |
|
178 | 178 | } |
179 | 179 | } |
180 | 180 | } |
@@ -259,7 +259,7 @@ discard block |
||
259 | 259 | { |
260 | 260 | $str = "arrTree = new Array();\n"; |
261 | 261 | foreach ($tree as $key => $val) { |
262 | - $str .= 'arrTree[' . $key . "] = new Array(" . $key . ", '" . $val['type'] . "', '" . $val['path'] . "', " . $val['rank'] . ','; |
|
262 | + $str .= 'arrTree['.$key."] = new Array(".$key.", '".$val['type']."', '".$val['path']."', ".$val['rank'].','; |
|
263 | 263 | if ($val['open']) { |
264 | 264 | $str .= "true);\n"; |
265 | 265 | } else { |
@@ -310,7 +310,7 @@ discard block |
||
310 | 310 | private function getFileList($app, $nowDir) |
311 | 311 | { |
312 | 312 | $topDir = $this->appConfig['user_data_realdir']; |
313 | - $filter = function (\SplFileInfo $file) use ($topDir) { |
|
313 | + $filter = function(\SplFileInfo $file) use ($topDir) { |
|
314 | 314 | $acceptPath = realpath($topDir); |
315 | 315 | $targetPath = $file->getRealPath(); |
316 | 316 | return (strpos($targetPath, $acceptPath) === 0); |
@@ -122,12 +122,12 @@ discard block |
||
122 | 122 | { |
123 | 123 | // install.phpのチェック. |
124 | 124 | if (isset($this->appConfig['eccube_install']) && $this->appConfig['eccube_install'] == 1) { |
125 | - $file = $this->appConfig['root_dir'] . '/html/install.php'; |
|
125 | + $file = $this->appConfig['root_dir'].'/html/install.php'; |
|
126 | 126 | if (file_exists($file)) { |
127 | 127 | $message = $app->trans('admin.install.warning', array('installphpPath' => 'html/install.php')); |
128 | 128 | $app->addWarning($message, 'admin'); |
129 | 129 | } |
130 | - $fileOnRoot = $this->appConfig['root_dir'] . '/install.php'; |
|
130 | + $fileOnRoot = $this->appConfig['root_dir'].'/install.php'; |
|
131 | 131 | if (file_exists($fileOnRoot)) { |
132 | 132 | $message = $app->trans('admin.install.warning', array('installphpPath' => 'install.php')); |
133 | 133 | $app->addWarning($message, 'admin'); |
@@ -375,7 +375,7 @@ discard block |
||
375 | 375 | t1.status |
376 | 376 | ORDER BY |
377 | 377 | t1.status'; |
378 | - $rsm = new ResultSetMapping();; |
|
378 | + $rsm = new ResultSetMapping(); ; |
|
379 | 379 | $rsm->addScalarResult('status', 'status'); |
380 | 380 | $rsm->addScalarResult('count', 'count'); |
381 | 381 | $query = $em->createNativeQuery($sql, $rsm); |