@@ -75,7 +75,7 @@ |
||
| 75 | 75 | /** @var \PDOStatement $hResult */ |
| 76 | 76 | $hResult = $this->db->prepare($sql); |
| 77 | 77 | foreach ($aData as $sKey => $sValue) { |
| 78 | - $hResult->bindValue(':' . $sKey, $sValue); |
|
| 78 | + $hResult->bindValue(':'.$sKey, $sValue); |
|
| 79 | 79 | } |
| 80 | 80 | $hResult->execute(); |
| 81 | 81 | $this->P->oPayload->cl_html = $this->textcats->T('register_emailverificationsuccess'); |
@@ -83,7 +83,7 @@ discard block |
||
| 83 | 83 | $hResult->execute(); |
| 84 | 84 | $iRows = $hResult->rowCount(); |
| 85 | 85 | if ($iRows == 1) { |
| 86 | - $sErr .= $this->textcats->T('userprofile_emailalreadyinuse') . '<br>'; |
|
| 86 | + $sErr .= $this->textcats->T('userprofile_emailalreadyinuse').'<br>'; |
|
| 87 | 87 | } |
| 88 | 88 | $sErr = CHelper::validateCustomerForm(HelperConfig::$lang, $sErr, true); |
| 89 | 89 | |
@@ -112,7 +112,7 @@ discard block |
||
| 112 | 112 | $sql = \HaaseIT\Toolbox\DBTools::buildPSUpdateQuery($aData, 'customer', 'cust_id'); |
| 113 | 113 | $hResult = $this->db->prepare($sql); |
| 114 | 114 | foreach ($aData as $sKey => $sValue) { |
| 115 | - $hResult->bindValue(':' . $sKey, $sValue); |
|
| 115 | + $hResult->bindValue(':'.$sKey, $sValue); |
|
| 116 | 116 | } |
| 117 | 117 | $hResult->execute(); |
| 118 | 118 | $aPData['infochangessaved'] = true; |
@@ -94,12 +94,12 @@ discard block |
||
| 94 | 94 | $CSA = [ |
| 95 | 95 | 'list_orders' => [ |
| 96 | 96 | ['title' => '', 'key' => 'o_id', 'width' => 30, 'linked' => false, 'callback' => 'shopadminMakeCheckbox'], |
| 97 | - ['title' => HardcodedText::get('shopadmin_list_orderid'), 'key' => 'o_id', 'width' => 30, 'linked' => false,], |
|
| 98 | - ['title' => HardcodedText::get('shopadmin_list_customer'), 'key' => 'o_cust', 'width' => 280, 'linked' => false,], |
|
| 99 | - ['title' => HardcodedText::get('shopadmin_list_sumnettoall'), 'key' => 'o_sumnettoall', 'width' => 75, 'linked' => false,], |
|
| 100 | - ['title' => HardcodedText::get('shopadmin_list_orderstatus'), 'key' => 'o_order_status', 'width' => 80, 'linked' => false,], |
|
| 101 | - ['title' => HardcodedText::get('shopadmin_list_ordertimenumber'), 'key' => 'o_ordertime_number', 'width' => 100, 'linked' => false,], |
|
| 102 | - ['title' => HardcodedText::get('shopadmin_list_hostpayment'), 'key' => 'o_order_host_payment', 'width' => 140, 'linked' => false,], |
|
| 97 | + ['title' => HardcodedText::get('shopadmin_list_orderid'), 'key' => 'o_id', 'width' => 30, 'linked' => false, ], |
|
| 98 | + ['title' => HardcodedText::get('shopadmin_list_customer'), 'key' => 'o_cust', 'width' => 280, 'linked' => false, ], |
|
| 99 | + ['title' => HardcodedText::get('shopadmin_list_sumnettoall'), 'key' => 'o_sumnettoall', 'width' => 75, 'linked' => false, ], |
|
| 100 | + ['title' => HardcodedText::get('shopadmin_list_orderstatus'), 'key' => 'o_order_status', 'width' => 80, 'linked' => false, ], |
|
| 101 | + ['title' => HardcodedText::get('shopadmin_list_ordertimenumber'), 'key' => 'o_ordertime_number', 'width' => 100, 'linked' => false, ], |
|
| 102 | + ['title' => HardcodedText::get('shopadmin_list_hostpayment'), 'key' => 'o_order_host_payment', 'width' => 140, 'linked' => false, ], |
|
| 103 | 103 | [ |
| 104 | 104 | 'title' => HardcodedText::get('shopadmin_list_edit'), |
| 105 | 105 | 'key' => 'o_id', |
@@ -113,11 +113,11 @@ discard block |
||
| 113 | 113 | ], |
| 114 | 114 | ], |
| 115 | 115 | 'list_orderitems' => [ |
| 116 | - ['title' => HardcodedText::get('shopadmin_list_itemno'), 'key' => 'oi_itemno', 'width' => 95, 'linked' => false,], |
|
| 117 | - ['title' => HardcodedText::get('shopadmin_list_itemname'), 'key' => 'oi_itemname', 'width' => 350, 'linked' => false,], |
|
| 118 | - ['title' => HardcodedText::get('shopadmin_list_itemamount'), 'key' => 'oi_amount', 'width' => 50, 'linked' => false, 'style-data' => 'text-align: center;',], |
|
| 119 | - ['title' => HardcodedText::get('shopadmin_list_itemnetto'), 'key' => 'oi_price_netto', 'width' => 70, 'linked' => false,], |
|
| 120 | - ['title' => HardcodedText::get('shopadmin_list_itemsumnetto'), 'key' => 'ges_netto', 'width' => 75, 'linked' => false,], |
|
| 116 | + ['title' => HardcodedText::get('shopadmin_list_itemno'), 'key' => 'oi_itemno', 'width' => 95, 'linked' => false, ], |
|
| 117 | + ['title' => HardcodedText::get('shopadmin_list_itemname'), 'key' => 'oi_itemname', 'width' => 350, 'linked' => false, ], |
|
| 118 | + ['title' => HardcodedText::get('shopadmin_list_itemamount'), 'key' => 'oi_amount', 'width' => 50, 'linked' => false, 'style-data' => 'text-align: center;', ], |
|
| 119 | + ['title' => HardcodedText::get('shopadmin_list_itemnetto'), 'key' => 'oi_price_netto', 'width' => 70, 'linked' => false, ], |
|
| 120 | + ['title' => HardcodedText::get('shopadmin_list_itemsumnetto'), 'key' => 'ges_netto', 'width' => 75, 'linked' => false, ], |
|
| 121 | 121 | ], |
| 122 | 122 | ]; |
| 123 | 123 | |
@@ -220,8 +220,8 @@ discard block |
||
| 220 | 220 | } else { |
| 221 | 221 | $sZahlungsmethode = '<span style="color: red;">'; |
| 222 | 222 | } |
| 223 | - $mZahlungsmethode = $this->serviceManager->get('textcats')->T('order_paymentmethod_' .$aRow['o_paymentmethod'], true); |
|
| 224 | - if ($mZahlungsmethode ) { |
|
| 223 | + $mZahlungsmethode = $this->serviceManager->get('textcats')->T('order_paymentmethod_'.$aRow['o_paymentmethod'], true); |
|
| 224 | + if ($mZahlungsmethode) { |
|
| 225 | 225 | $sZahlungsmethode .= $mZahlungsmethode; |
| 226 | 226 | } else { |
| 227 | 227 | $sZahlungsmethode .= ucwords($aRow['o_paymentmethod']); |
@@ -265,7 +265,7 @@ discard block |
||
| 265 | 265 | ]; |
| 266 | 266 | if (!($bIgnoreStorno && $aRow['o_ordercompleted'] === 's')) { |
| 267 | 267 | $fGesamtnetto += $aRow['o_sumnettoall']; |
| 268 | - $j ++; |
|
| 268 | + $j++; |
|
| 269 | 269 | } else { |
| 270 | 270 | $k++; |
| 271 | 271 | } |
@@ -43,7 +43,7 @@ |
||
| 43 | 43 | $html .= implode("\n", |
| 44 | 44 | array_map( |
| 45 | 45 | function($i) { |
| 46 | - return '.phpinfodisplay ' . preg_replace( '/,/', ',.phpinfodisplay ', $i ); |
|
| 46 | + return '.phpinfodisplay '.preg_replace('/,/', ',.phpinfodisplay ', $i); |
|
| 47 | 47 | }, |
| 48 | 48 | preg_split('/\n/', $matches[1]) |
| 49 | 49 | ) |
@@ -163,12 +163,12 @@ discard block |
||
| 163 | 163 | if (!$bEnableItemGroups || \trim($aRow['itm_group']) == 0) { |
| 164 | 164 | $aAssembly['item'][$aRow['itm_no']] = $aRow; |
| 165 | 165 | } else { |
| 166 | - if (isset($aAssembly['groups']['ITEMGROUP-' .$aRow['itm_group']])) { |
|
| 167 | - $aAssembly['groups']['ITEMGROUP-' .$aRow['itm_group']][$aRow['itm_no']] = $aRow; |
|
| 166 | + if (isset($aAssembly['groups']['ITEMGROUP-'.$aRow['itm_group']])) { |
|
| 167 | + $aAssembly['groups']['ITEMGROUP-'.$aRow['itm_group']][$aRow['itm_no']] = $aRow; |
|
| 168 | 168 | } else { |
| 169 | - $aAssembly['item']['ITEMGROUP-' .$aRow['itm_group']]['group'] = 'ITEMGROUP-' .$aRow['itm_group']; |
|
| 170 | - $aAssembly['groups']['ITEMGROUP-' .$aRow['itm_group']]['ITEMGROUP-DATA'] = $this->getGroupdata($aRow['itm_group']); |
|
| 171 | - $aAssembly['groups']['ITEMGROUP-' .$aRow['itm_group']][$aRow['itm_no']] = $aRow; |
|
| 169 | + $aAssembly['item']['ITEMGROUP-'.$aRow['itm_group']]['group'] = 'ITEMGROUP-'.$aRow['itm_group']; |
|
| 170 | + $aAssembly['groups']['ITEMGROUP-'.$aRow['itm_group']]['ITEMGROUP-DATA'] = $this->getGroupdata($aRow['itm_group']); |
|
| 171 | + $aAssembly['groups']['ITEMGROUP-'.$aRow['itm_group']][$aRow['itm_no']] = $aRow; |
|
| 172 | 172 | } |
| 173 | 173 | } |
| 174 | 174 | } |
@@ -209,7 +209,7 @@ discard block |
||
| 209 | 209 | $aData['itm_vatid'] = 'full'; |
| 210 | 210 | } |
| 211 | 211 | |
| 212 | - if(is_numeric($aData['itm_price']) && (float) $aData['itm_price'] > 0) { |
|
| 212 | + if (is_numeric($aData['itm_price']) && (float) $aData['itm_price'] > 0) { |
|
| 213 | 213 | $aPrice['netto_list'] = $aData['itm_price']; |
| 214 | 214 | $aPrice['brutto_list'] = $this->addVat($aPrice['netto_list'], HelperConfig::$shop['vat'][$aData['itm_vatid']]); |
| 215 | 215 | if ( |
@@ -231,7 +231,7 @@ discard block |
||
| 231 | 231 | bcdiv( |
| 232 | 232 | bcsub( |
| 233 | 233 | '100', |
| 234 | - (string)HelperConfig::$shop['rebate_groups'][$aData['itm_rg']][CHelper::getUserData('cust_group')] |
|
| 234 | + (string) HelperConfig::$shop['rebate_groups'][$aData['itm_rg']][CHelper::getUserData('cust_group')] |
|
| 235 | 235 | ), |
| 236 | 236 | '100' |
| 237 | 237 | ) |
@@ -263,7 +263,7 @@ discard block |
||
| 263 | 263 | bcdiv( |
| 264 | 264 | bcmul( |
| 265 | 265 | $price, |
| 266 | - (string)$vat |
|
| 266 | + (string) $vat |
|
| 267 | 267 | ), |
| 268 | 268 | '100' |
| 269 | 269 | ), |
@@ -102,11 +102,11 @@ discard block |
||
| 102 | 102 | } |
| 103 | 103 | |
| 104 | 104 | if ($aOrder['iMindergebuehr_id'] > 0) { |
| 105 | - $aOrder['fVoll'] += HelperConfig::$shop['reducedorderamountfee' . $aOrder['iMindergebuehr_id']]; |
|
| 106 | - $aOrder['fGesamtnetto'] += HelperConfig::$shop['reducedorderamountfee' . $aOrder['iMindergebuehr_id']]; |
|
| 105 | + $aOrder['fVoll'] += HelperConfig::$shop['reducedorderamountfee'.$aOrder['iMindergebuehr_id']]; |
|
| 106 | + $aOrder['fGesamtnetto'] += HelperConfig::$shop['reducedorderamountfee'.$aOrder['iMindergebuehr_id']]; |
|
| 107 | 107 | $aOrder['fSteuervoll'] = $aOrder['fVoll'] * $iVATfull / 100; |
| 108 | 108 | $aOrder['fGesamtbrutto'] = $aOrder['fGesamtnetto'] + $aOrder['fSteuervoll'] + $aOrder['fSteuererm']; |
| 109 | - $aOrder['fMindergebuehr'] = HelperConfig::$shop['reducedorderamountfee' . $aOrder['iMindergebuehr_id']]; |
|
| 109 | + $aOrder['fMindergebuehr'] = HelperConfig::$shop['reducedorderamountfee'.$aOrder['iMindergebuehr_id']]; |
|
| 110 | 110 | } |
| 111 | 111 | |
| 112 | 112 | $aOrder['fVersandkosten'] = 0; |
@@ -423,12 +423,12 @@ discard block |
||
| 423 | 423 | } |
| 424 | 424 | // because array_rand will change numerical (string) values to integer, we have to do this awkward dance |
| 425 | 425 | foreach ($keysAddSuggsTMP as $key => $item) { |
| 426 | - $keysAddSuggs[] = (string)$item; |
|
| 426 | + $keysAddSuggs[] = (string) $item; |
|
| 427 | 427 | } |
| 428 | 428 | |
| 429 | 429 | // iterate suggestions and remove those that which will not be kept |
| 430 | 430 | foreach ($suggestions['additional'] as $addSuggsKey => $addSuggsVal) { |
| 431 | - if (!in_array((string)$addSuggsKey, $keysAddSuggs, true)) { |
|
| 431 | + if (!in_array((string) $addSuggsKey, $keysAddSuggs, true)) { |
|
| 432 | 432 | unset($suggestions['additional'][$addSuggsKey]); |
| 433 | 433 | } |
| 434 | 434 | } |
@@ -213,7 +213,7 @@ |
||
| 213 | 213 | } |
| 214 | 214 | |
| 215 | 215 | /** |
| 216 | - * @return mixed |
|
| 216 | + * @return ServiceManager |
|
| 217 | 217 | */ |
| 218 | 218 | public function getServiceManager() |
| 219 | 219 | { |
@@ -41,7 +41,7 @@ discard block |
||
| 41 | 41 | |
| 42 | 42 | $this->setupHardcodedTextcats(); |
| 43 | 43 | |
| 44 | - $this->serviceManager->setFactory('db', function () { |
|
| 44 | + $this->serviceManager->setFactory('db', function() { |
|
| 45 | 45 | return null; |
| 46 | 46 | }); |
| 47 | 47 | |
@@ -54,7 +54,7 @@ discard block |
||
| 54 | 54 | $this->setupTwig(); |
| 55 | 55 | |
| 56 | 56 | if (HelperConfig::$core['enable_module_shop']) { |
| 57 | - $this->serviceManager->setFactory('oItem', function (ServiceManager $serviceManager) { |
|
| 57 | + $this->serviceManager->setFactory('oItem', function(ServiceManager $serviceManager) { |
|
| 58 | 58 | return new \HaaseIT\HCSF\Shop\Items($serviceManager); |
| 59 | 59 | }); |
| 60 | 60 | } |
@@ -67,7 +67,7 @@ discard block |
||
| 67 | 67 | { |
| 68 | 68 | // PSR-7 Stuff |
| 69 | 69 | // Init request object |
| 70 | - $this->serviceManager->setFactory('request', function () { |
|
| 70 | + $this->serviceManager->setFactory('request', function() { |
|
| 71 | 71 | $request = \Zend\Diactoros\ServerRequestFactory::fromGlobals(); |
| 72 | 72 | |
| 73 | 73 | // cleanup request |
@@ -127,7 +127,7 @@ discard block |
||
| 127 | 127 | |
| 128 | 128 | protected function setupDB() |
| 129 | 129 | { |
| 130 | - $this->serviceManager->setFactory('dbal', function () { |
|
| 130 | + $this->serviceManager->setFactory('dbal', function() { |
|
| 131 | 131 | $config = new \Doctrine\DBAL\Configuration(); |
| 132 | 132 | |
| 133 | 133 | $connectionParams = [ |
@@ -148,14 +148,14 @@ discard block |
||
| 148 | 148 | return \Doctrine\DBAL\DriverManager::getConnection($connectionParams, $config); |
| 149 | 149 | }); |
| 150 | 150 | |
| 151 | - $this->serviceManager->setFactory('db', function (ServiceManager $serviceManager) { |
|
| 151 | + $this->serviceManager->setFactory('db', function(ServiceManager $serviceManager) { |
|
| 152 | 152 | return $serviceManager->get('dbal')->getWrappedConnection(); |
| 153 | 153 | }); |
| 154 | 154 | } |
| 155 | 155 | |
| 156 | 156 | protected function setupTextcats() |
| 157 | 157 | { |
| 158 | - $this->serviceManager->setFactory('textcats', function (ServiceManager $serviceManager) { |
|
| 158 | + $this->serviceManager->setFactory('textcats', function(ServiceManager $serviceManager) { |
|
| 159 | 159 | $langavailable = HelperConfig::$core['lang_available']; |
| 160 | 160 | $textcats = new \HaaseIT\Toolbox\Textcat( |
| 161 | 161 | HelperConfig::$lang, |
@@ -172,7 +172,7 @@ discard block |
||
| 172 | 172 | |
| 173 | 173 | protected function setupTwig() |
| 174 | 174 | { |
| 175 | - $this->serviceManager->setFactory('twig', function (ServiceManager $serviceManager) { |
|
| 175 | + $this->serviceManager->setFactory('twig', function(ServiceManager $serviceManager) { |
|
| 176 | 176 | $loader = new \Twig_Loader_Filesystem([PATH_BASEDIR.'customviews', HCSF_BASEDIR.'src/views/']); |
| 177 | 177 | |
| 178 | 178 | $twig_options = [ |
@@ -297,7 +297,7 @@ discard block |
||
| 297 | 297 | } |
| 298 | 298 | |
| 299 | 299 | $aP['countrylist'][] = ' | '; |
| 300 | - foreach (HelperConfig::$countries['countries_' .HelperConfig::$lang] as $sKey => $sValue) { |
|
| 300 | + foreach (HelperConfig::$countries['countries_'.HelperConfig::$lang] as $sKey => $sValue) { |
|
| 301 | 301 | $aP['countrylist'][] = $sKey.'|'.$sValue; |
| 302 | 302 | } |
| 303 | 303 | |
@@ -57,11 +57,11 @@ discard block |
||
| 57 | 57 | $this->P->cb_subnav = 'admin'; |
| 58 | 58 | |
| 59 | 59 | $CUA = [ |
| 60 | - ['title' => HardcodedText::get('customeradmin_list_no'), 'key' => 'cust_no', 'width' => '16%', 'linked' => false,'stylehead' => 'text-align: left;',], |
|
| 61 | - ['title' => HardcodedText::get('customeradmin_list_company'), 'key' => 'cust_corp', 'width' => '16%', 'linked' => false,'stylehead' => 'text-align: left;',], |
|
| 62 | - ['title' => HardcodedText::get('customeradmin_list_name'), 'key' => 'cust_name', 'width' => '16%', 'linked' => false,'stylehead' => 'text-align: left;',], |
|
| 63 | - ['title' => HardcodedText::get('customeradmin_list_town'), 'key' => 'cust_town', 'width' => '16%', 'linked' => false,'stylehead' => 'text-align: left;',], |
|
| 64 | - ['title' => HardcodedText::get('customeradmin_list_active'), 'key' => 'cust_active', 'width' => '16%', 'linked' => false,'stylehead' => 'text-align: left;',], |
|
| 60 | + ['title' => HardcodedText::get('customeradmin_list_no'), 'key' => 'cust_no', 'width' => '16%', 'linked' => false, 'stylehead' => 'text-align: left;', ], |
|
| 61 | + ['title' => HardcodedText::get('customeradmin_list_company'), 'key' => 'cust_corp', 'width' => '16%', 'linked' => false, 'stylehead' => 'text-align: left;', ], |
|
| 62 | + ['title' => HardcodedText::get('customeradmin_list_name'), 'key' => 'cust_name', 'width' => '16%', 'linked' => false, 'stylehead' => 'text-align: left;', ], |
|
| 63 | + ['title' => HardcodedText::get('customeradmin_list_town'), 'key' => 'cust_town', 'width' => '16%', 'linked' => false, 'stylehead' => 'text-align: left;', ], |
|
| 64 | + ['title' => HardcodedText::get('customeradmin_list_active'), 'key' => 'cust_active', 'width' => '16%', 'linked' => false, 'stylehead' => 'text-align: left;', ], |
|
| 65 | 65 | [ |
| 66 | 66 | 'title' => HardcodedText::get('customeradmin_list_edit'), |
| 67 | 67 | 'key' => 'cust_id', |
@@ -69,7 +69,7 @@ discard block |
||
| 69 | 69 | 'linked' => true, |
| 70 | 70 | 'ltarget' => '/_admin/customeradmin.html', |
| 71 | 71 | 'lkeyname' => 'id', |
| 72 | - 'lgetvars' => ['action' => 'edit',], |
|
| 72 | + 'lgetvars' => ['action' => 'edit', ], |
|
| 73 | 73 | ], |
| 74 | 74 | ]; |
| 75 | 75 | $aPData = $this->handleCustomerAdmin($CUA, $this->serviceManager->get('twig')); |
@@ -326,7 +326,7 @@ discard block |
||
| 326 | 326 | } |
| 327 | 327 | |
| 328 | 328 | /** |
| 329 | - * @param $iInsertID |
|
| 329 | + * @param string $iInsertID |
|
| 330 | 330 | * @param $sMailbody_us |
| 331 | 331 | * @param $sMailbody_they |
| 332 | 332 | * @param $aImagesToSend |
@@ -375,7 +375,7 @@ discard block |
||
| 375 | 375 | } |
| 376 | 376 | |
| 377 | 377 | /** |
| 378 | - * @param $field |
|
| 378 | + * @param string $field |
|
| 379 | 379 | * @return string |
| 380 | 380 | */ |
| 381 | 381 | private function getPostValue($field) |
@@ -142,7 +142,7 @@ discard block |
||
| 142 | 142 | |
| 143 | 143 | if (HelperConfig::$shop['email_orderconfirmation_embed_itemimages_method'] === 'glide') { |
| 144 | 144 | $sPathToImage = '/'.HelperConfig::$core['directory_images'].'/'.HelperConfig::$shop['directory_images_items'].'/'; |
| 145 | - $sImageroot = PATH_BASEDIR . HelperConfig::$core['directory_glide_master']; |
|
| 145 | + $sImageroot = PATH_BASEDIR.HelperConfig::$core['directory_glide_master']; |
|
| 146 | 146 | |
| 147 | 147 | if ( |
| 148 | 148 | is_file($sImageroot.substr($sPathToImage.$aV['img'], strlen(HelperConfig::$core['directory_images']) + 1)) |
@@ -153,7 +153,7 @@ discard block |
||
| 153 | 153 | 'cache' => PATH_GLIDECACHE, |
| 154 | 154 | 'max_image_size' => HelperConfig::$core['glide_max_imagesize'], |
| 155 | 155 | ]); |
| 156 | - $glideserver->setBaseUrl('/' . HelperConfig::$core['directory_images'] . '/'); |
|
| 156 | + $glideserver->setBaseUrl('/'.HelperConfig::$core['directory_images'].'/'); |
|
| 157 | 157 | $base64Img = $glideserver->getImageAsBase64($sPathToImage.$aV['img'], HelperConfig::$shop['email_orderconfirmation_embed_itemimages_glideparams']); |
| 158 | 158 | $TMP = explode(',', $base64Img); |
| 159 | 159 | $binImg = base64_decode($TMP[1]); |
@@ -166,7 +166,7 @@ discard block |
||
| 166 | 166 | .HelperConfig::$shop['directory_images_items_email'].'/'; |
| 167 | 167 | if ($aImgInfo = getimagesize($sPathToImage.$aV['img'])) { |
| 168 | 168 | $binImg = file_get_contents($sPathToImage.$aV['img']); |
| 169 | - $base64Img = 'data:' . $aImgInfo['mime'] . ';base64,'; |
|
| 169 | + $base64Img = 'data:'.$aImgInfo['mime'].';base64,'; |
|
| 170 | 170 | $base64Img .= base64_encode($binImg); |
| 171 | 171 | } |
| 172 | 172 | } |
@@ -239,7 +239,7 @@ discard block |
||
| 239 | 239 | $sql = DBTools::buildPSInsertQuery($aDataOrder, 'orders'); |
| 240 | 240 | $hResult = $db->prepare($sql); |
| 241 | 241 | foreach ($aDataOrder as $sKey => $sValue) { |
| 242 | - $hResult->bindValue(':' . $sKey, $sValue); |
|
| 242 | + $hResult->bindValue(':'.$sKey, $sValue); |
|
| 243 | 243 | } |
| 244 | 244 | $hResult->execute(); |
| 245 | 245 | $iInsertID = $db->lastInsertId(); |
@@ -274,7 +274,7 @@ discard block |
||
| 274 | 274 | $sql = DBTools::buildPSInsertQuery($aV, 'orders_items'); |
| 275 | 275 | $hResult = $db->prepare($sql); |
| 276 | 276 | foreach ($aV as $sKey => $sValue) { |
| 277 | - $hResult->bindValue(':' . $sKey, $sValue); |
|
| 277 | + $hResult->bindValue(':'.$sKey, $sValue); |
|
| 278 | 278 | } |
| 279 | 279 | $hResult->execute(); |
| 280 | 280 | } |
@@ -312,15 +312,15 @@ discard block |
||
| 312 | 312 | && array_search('paypal', HelperConfig::$shop['paymentmethods']) !== false |
| 313 | 313 | && HelperConfig::$shop['paypal_interactive'] |
| 314 | 314 | ) { |
| 315 | - $redirectto = '/_misc/paypal.html?id=' . $iInsertID; |
|
| 315 | + $redirectto = '/_misc/paypal.html?id='.$iInsertID; |
|
| 316 | 316 | } elseif ( |
| 317 | 317 | isset($this->post['paymentmethod']) |
| 318 | 318 | && $this->post['paymentmethod'] === 'sofortueberweisung' |
| 319 | 319 | && array_search('sofortueberweisung', HelperConfig::$shop['paymentmethods']) !== false |
| 320 | 320 | ) { |
| 321 | - $redirectto = '/_misc/sofortueberweisung.html?id=' . $iInsertID; |
|
| 321 | + $redirectto = '/_misc/sofortueberweisung.html?id='.$iInsertID; |
|
| 322 | 322 | } else { |
| 323 | - $redirectto = '/_misc/checkedout.html?id=' . $iInsertID; |
|
| 323 | + $redirectto = '/_misc/checkedout.html?id='.$iInsertID; |
|
| 324 | 324 | } |
| 325 | 325 | \HaaseIT\HCSF\Helper::redirectToPage($redirectto); |
| 326 | 326 | } |
@@ -334,7 +334,7 @@ discard block |
||
| 334 | 334 | private function sendCheckoutMails($iInsertID, $sMailbody_us, $sMailbody_they, $aImagesToSend) |
| 335 | 335 | { |
| 336 | 336 | if ( |
| 337 | - isset(HelperConfig::$shop['email_orderconfirmation_attachment_cancellationform_' .HelperConfig::$lang]) |
|
| 337 | + isset(HelperConfig::$shop['email_orderconfirmation_attachment_cancellationform_'.HelperConfig::$lang]) |
|
| 338 | 338 | && file_exists( |
| 339 | 339 | PATH_DOCROOT.HelperConfig::$core['directory_emailattachments'] |
| 340 | 340 | .'/'.HelperConfig::$shop['email_orderconfirmation_attachment_cancellationform_' |
@@ -343,21 +343,21 @@ discard block |
||
| 343 | 343 | ) { |
| 344 | 344 | $aFilesToSend[] = |
| 345 | 345 | PATH_DOCROOT.HelperConfig::$core['directory_emailattachments'].'/' |
| 346 | - .HelperConfig::$shop['email_orderconfirmation_attachment_cancellationform_' .HelperConfig::$lang]; |
|
| 346 | + .HelperConfig::$shop['email_orderconfirmation_attachment_cancellationform_'.HelperConfig::$lang]; |
|
| 347 | 347 | } else { |
| 348 | 348 | $aFilesToSend = []; |
| 349 | 349 | } |
| 350 | 350 | |
| 351 | 351 | Helper::mailWrapper( |
| 352 | 352 | $this->post['email'], |
| 353 | - $this->textcats->T('shoppingcart_mail_subject') . ' ' . $iInsertID, |
|
| 353 | + $this->textcats->T('shoppingcart_mail_subject').' '.$iInsertID, |
|
| 354 | 354 | $sMailbody_they, |
| 355 | 355 | $aImagesToSend, |
| 356 | 356 | $aFilesToSend |
| 357 | 357 | ); |
| 358 | 358 | Helper::mailWrapper( |
| 359 | 359 | HelperConfig::$core['email_sender'], |
| 360 | - 'Bestellung im Webshop Nr: ' . $iInsertID, |
|
| 360 | + 'Bestellung im Webshop Nr: '.$iInsertID, |
|
| 361 | 361 | $sMailbody_us, |
| 362 | 362 | $aImagesToSend |
| 363 | 363 | ); |
@@ -368,9 +368,9 @@ discard block |
||
| 368 | 368 | */ |
| 369 | 369 | private function writeCheckoutToFile($sMailbody_us) |
| 370 | 370 | { |
| 371 | - $fp = fopen(PATH_LOGS . 'shoplog_' . date('Y-m-d') . '.html', 'a'); |
|
| 371 | + $fp = fopen(PATH_LOGS.'shoplog_'.date('Y-m-d').'.html', 'a'); |
|
| 372 | 372 | // Write $somecontent to our opened file. |
| 373 | - fwrite($fp, $sMailbody_us . "\n\n-------------------------------------------------------------------------\n\n"); |
|
| 373 | + fwrite($fp, $sMailbody_us."\n\n-------------------------------------------------------------------------\n\n"); |
|
| 374 | 374 | fclose($fp); |
| 375 | 375 | } |
| 376 | 376 | |
@@ -412,9 +412,9 @@ discard block |
||
| 412 | 412 | 'country' => isset($this->post['country']) && trim($this->post['country']) != '' ? |
| 413 | 413 | ( |
| 414 | 414 | isset( |
| 415 | - HelperConfig::$countries['countries_' .HelperConfig::$lang][$this->post['country']] |
|
| 415 | + HelperConfig::$countries['countries_'.HelperConfig::$lang][$this->post['country']] |
|
| 416 | 416 | ) |
| 417 | - ? HelperConfig::$countries['countries_' .HelperConfig::$lang][$this->post['country']] |
|
| 417 | + ? HelperConfig::$countries['countries_'.HelperConfig::$lang][$this->post['country']] |
|
| 418 | 418 | : $this->post['country']) |
| 419 | 419 | : '', |
| 420 | 420 | 'remarks' => $this->getPostValue('remarks'), |
@@ -422,8 +422,8 @@ discard block |
||
| 422 | 422 | 'cancellationdisclaimer' => $this->getPostValue('cancellationdisclaimer'), |
| 423 | 423 | 'paymentmethod' => $this->getPostValue('paymentmethod'), |
| 424 | 424 | 'shippingcost' => !isset($_SESSION['shippingcost']) || $_SESSION['shippingcost'] == 0 ? false : $_SESSION['shippingcost'], |
| 425 | - 'paypallink' => isset($this->post['paymentmethod']) && $this->post['paymentmethod'] == 'paypal' ? $_SERVER['SERVER_NAME'].'/_misc/paypal.html?id='.$iId : '', |
|
| 426 | - 'sofortueberweisunglink' => isset($this->post['paymentmethod']) && $this->post['paymentmethod'] == 'sofortueberweisung' ? $_SERVER['SERVER_NAME'].'/_misc/sofortueberweisung.html?id='.$iId : '', |
|
| 425 | + 'paypallink' => isset($this->post['paymentmethod']) && $this->post['paymentmethod'] == 'paypal' ? $_SERVER['SERVER_NAME'].'/_misc/paypal.html?id='.$iId : '', |
|
| 426 | + 'sofortueberweisunglink' => isset($this->post['paymentmethod']) && $this->post['paymentmethod'] == 'sofortueberweisung' ? $_SERVER['SERVER_NAME'].'/_misc/sofortueberweisung.html?id='.$iId : '', |
|
| 427 | 427 | 'SESSION' => !$bCust ? Tools::debug($_SESSION, '$_SESSION', true, true) : '', |
| 428 | 428 | 'POST' => !$bCust ? Tools::debug($this->post, '$this->post', true, true) : '', |
| 429 | 429 | 'orderid' => $iId, |
@@ -451,15 +451,15 @@ discard block |
||
| 451 | 451 | ($this->get['msg'] === 'updated' && isset($this->get['cartkey'], $this->get['amount'])) |
| 452 | 452 | || ($this->get['msg'] === 'removed' && isset($this->get['cartkey'])) |
| 453 | 453 | ) { |
| 454 | - $return .= $this->textcats->T('shoppingcart_msg_' . $this->get['msg'] . '_1') . ' '; |
|
| 454 | + $return .= $this->textcats->T('shoppingcart_msg_'.$this->get['msg'].'_1').' '; |
|
| 455 | 455 | if (isset(HelperConfig::$shop['custom_order_fields']) && mb_strpos($this->get['cartkey'], '|') !== false) { |
| 456 | 456 | $mCartkeys = explode('|', $this->get['cartkey']); |
| 457 | 457 | foreach ($mCartkeys as $sKey => $sValue) { |
| 458 | 458 | if ($sKey == 0) { |
| 459 | - $return .= $sValue . ', '; |
|
| 459 | + $return .= $sValue.', '; |
|
| 460 | 460 | } else { |
| 461 | 461 | $TMP = explode(':', $sValue); |
| 462 | - $return .= $this->textcats->T('shoppingcart_item_' . $TMP[0]) . ' ' . $TMP[1] . ', '; |
|
| 462 | + $return .= $this->textcats->T('shoppingcart_item_'.$TMP[0]).' '.$TMP[1].', '; |
|
| 463 | 463 | unset($TMP); |
| 464 | 464 | } |
| 465 | 465 | } |
@@ -467,9 +467,9 @@ discard block |
||
| 467 | 467 | } else { |
| 468 | 468 | $return .= $this->get['cartkey']; |
| 469 | 469 | } |
| 470 | - $return.= ' ' . $this->textcats->T('shoppingcart_msg_' . $this->get['msg'] . '_2'); |
|
| 470 | + $return .= ' '.$this->textcats->T('shoppingcart_msg_'.$this->get['msg'].'_2'); |
|
| 471 | 471 | if ($this->get['msg'] == 'updated') { |
| 472 | - $return .= ' ' . $this->get['amount']; |
|
| 472 | + $return .= ' '.$this->get['amount']; |
|
| 473 | 473 | } |
| 474 | 474 | $return .= '<br><br>'; |
| 475 | 475 | } |