@@ -151,7 +151,7 @@ discard block |
||
| 151 | 151 | } |
| 152 | 152 | } |
| 153 | 153 | if (count($errors)) { |
| 154 | - Injector::inst()->get(LoggerInterface::class)->error('setCurrentStore errors - ' . json_encode($errors)); |
|
| 154 | + Injector::inst()->get(LoggerInterface::class)->error('setCurrentStore errors - '.json_encode($errors)); |
|
| 155 | 155 | } |
| 156 | 156 | } |
| 157 | 157 | } |
@@ -188,7 +188,7 @@ discard block |
||
| 188 | 188 | |
| 189 | 189 | $errors = array_merge($errors, $client->getErrors($result)); |
| 190 | 190 | if (count($errors)) { |
| 191 | - Injector::inst()->get(LoggerInterface::class)->error('updateStore errors - ' . json_encode($errors)); |
|
| 191 | + Injector::inst()->get(LoggerInterface::class)->error('updateStore errors - '.json_encode($errors)); |
|
| 192 | 192 | } |
| 193 | 193 | } |
| 194 | 194 | |
@@ -218,7 +218,7 @@ discard block |
||
| 218 | 218 | $errors = array_merge($errors, $client->getErrors($result)); |
| 219 | 219 | if (count($errors)) { |
| 220 | 220 | Injector::inst() |
| 221 | - ->get(LoggerInterface::class)->error('setItemCategoriesURL errors - ' . json_encode($errors)); |
|
| 221 | + ->get(LoggerInterface::class)->error('setItemCategoriesURL errors - '.json_encode($errors)); |
|
| 222 | 222 | } |
| 223 | 223 | } |
| 224 | 224 | } |
@@ -247,7 +247,7 @@ discard block |
||
| 247 | 247 | $errors = array_merge($errors, $client->getErrors($result)); |
| 248 | 248 | if (count($errors)) { |
| 249 | 249 | Injector::inst() |
| 250 | - ->get(LoggerInterface::class)->error('setItemCategories errors - ' . json_encode($errors)); |
|
| 250 | + ->get(LoggerInterface::class)->error('setItemCategories errors - '.json_encode($errors)); |
|
| 251 | 251 | } |
| 252 | 252 | } |
| 253 | 253 | } |
@@ -275,7 +275,7 @@ discard block |
||
| 275 | 275 | } |
| 276 | 276 | $errors = array_merge($errors, $client->getErrors($result)); |
| 277 | 277 | if (count($errors)) { |
| 278 | - Injector::inst()->get(LoggerInterface::class)->error('getCategory errors - ' . json_encode($errors)); |
|
| 278 | + Injector::inst()->get(LoggerInterface::class)->error('getCategory errors - '.json_encode($errors)); |
|
| 279 | 279 | } |
| 280 | 280 | } |
| 281 | 281 | } |
@@ -296,12 +296,12 @@ discard block |
||
| 296 | 296 | if ($client) { |
| 297 | 297 | if ($category = $this->getCategory($data['code'])) { |
| 298 | 298 | $result = $client->patch($category, $data); |
| 299 | - } else { |
|
| 299 | + }else { |
|
| 300 | 300 | $result = $client->post($this->getItemCategoriesURL(), $data); |
| 301 | 301 | } |
| 302 | 302 | $errors = array_merge($errors, $client->getErrors($result)); |
| 303 | 303 | if (count($errors)) { |
| 304 | - Injector::inst()->get(LoggerInterface::class)->error('putCategory errors - ' . json_encode($errors)); |
|
| 304 | + Injector::inst()->get(LoggerInterface::class)->error('putCategory errors - '.json_encode($errors)); |
|
| 305 | 305 | } |
| 306 | 306 | } |
| 307 | 307 | } |
@@ -321,7 +321,7 @@ discard block |
||
| 321 | 321 | |
| 322 | 322 | $errors = array_merge($errors, $client->getErrors($result)); |
| 323 | 323 | if (count($errors)) { |
| 324 | - Injector::inst()->get(LoggerInterface::class)->error('deleteCategory errors - ' . json_encode($errors)); |
|
| 324 | + Injector::inst()->get(LoggerInterface::class)->error('deleteCategory errors - '.json_encode($errors)); |
|
| 325 | 325 | } |
| 326 | 326 | } |
| 327 | 327 | } |
@@ -99,7 +99,7 @@ |
||
| 99 | 99 | |
| 100 | 100 | if (!$this->getCustomer()->Customer_ID) { |
| 101 | 101 | $response = $client->post($this->getNewCustomerAPIURI(), $this->getSendData()); |
| 102 | - } else { |
|
| 102 | + }else { |
|
| 103 | 103 | $response = $client->patch($this->getAPIURI(true), $this->getSendData()); |
| 104 | 104 | } |
| 105 | 105 | |
@@ -175,7 +175,7 @@ discard block |
||
| 175 | 175 | { |
| 176 | 176 | $obj = DBHTMLVarchar::create(); |
| 177 | 177 | $obj->setValue( |
| 178 | - '<a href="' . $this->ReceiptURL . '" target="_blank" class="cms-panel-link action external-link">view</a>' |
|
| 178 | + '<a href="'.$this->ReceiptURL.'" target="_blank" class="cms-panel-link action external-link">view</a>' |
|
| 179 | 179 | ); |
| 180 | 180 | |
| 181 | 181 | return $obj; |
@@ -210,7 +210,7 @@ discard block |
||
| 210 | 210 | { |
| 211 | 211 | if ($this->Response) { |
| 212 | 212 | $this->transaction = Transaction::create($this->Order_ID, $this->Response); |
| 213 | - } else { |
|
| 213 | + }else { |
|
| 214 | 214 | $this->transaction = false; |
| 215 | 215 | } |
| 216 | 216 | |
@@ -329,7 +329,7 @@ discard block |
||
| 329 | 329 | if ($OrderProduct) { |
| 330 | 330 | $OrderDetail->ProductID = $OrderProduct->ID; |
| 331 | 331 | } |
| 332 | - } else { |
|
| 332 | + }else { |
|
| 333 | 333 | $OrderOption = OrderOption::create(); |
| 334 | 334 | $OrderOption->Name = (string)$option->product_option_name; |
| 335 | 335 | $OrderOption->Value = (string)$option->product_option_value; |
@@ -138,13 +138,13 @@ |
||
| 138 | 138 | $Member->Customer_ID = 0; |
| 139 | 139 | } |
| 140 | 140 | |
| 141 | - $auth_token = sha1($Member->Customer_ID . '|' . $timestampNew . '|' . FoxyCart::getStoreKey()); |
|
| 141 | + $auth_token = sha1($Member->Customer_ID.'|'.$timestampNew.'|'.FoxyCart::getStoreKey()); |
|
| 142 | 142 | |
| 143 | 143 | $config = FoxyStripeSetting::current_foxystripe_setting(); |
| 144 | 144 | if ($config->CustomSSL) { |
| 145 | 145 | $link = FoxyCart::getFoxyCartStoreName(); |
| 146 | - } else { |
|
| 147 | - $link = FoxyCart::getFoxyCartStoreName() . '.foxycart.com'; |
|
| 146 | + }else { |
|
| 147 | + $link = FoxyCart::getFoxyCartStoreName().'.foxycart.com'; |
|
| 148 | 148 | } |
| 149 | 149 | |
| 150 | 150 | $redirect_complete = "https://{$link}/checkout?fc_auth_token={$auth_token}&fcsid={$fcsid}&fc_customer_id={$Member->Customer_ID}×tamp={$timestampNew}"; |