Completed
Branch master (604742)
by Marcus
06:28 queued 02:40
created
src/Controller/Shop/Updateshippingcost.php 1 patch
Spacing   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -42,24 +42,24 @@
 block discarded – undo
42 42
 
43 43
         header('Content-Type: text/html; charset=UTF-8');
44 44
         $return = '<div>';
45
-        $return .= '<div id="shippingcostbrutto_new">' . number_format($_SESSION['cartpricesums']['fVersandkostenbrutto'],
45
+        $return .= '<div id="shippingcostbrutto_new">'.number_format($_SESSION['cartpricesums']['fVersandkostenbrutto'],
46 46
                 HelperConfig::$core['numberformat_decimals'], HelperConfig::$core['numberformat_decimal_point'],
47
-                HelperConfig::$core['numberformat_thousands_seperator']) . '</div>';
48
-        $return .= '<div id="vatfull_new">' . number_format(round($_SESSION['cartpricesums']['fSteuervoll'], 2),
47
+                HelperConfig::$core['numberformat_thousands_seperator']).'</div>';
48
+        $return .= '<div id="vatfull_new">'.number_format(round($_SESSION['cartpricesums']['fSteuervoll'], 2),
49 49
                 HelperConfig::$core['numberformat_decimals'], HelperConfig::$core['numberformat_decimal_point'],
50
-                HelperConfig::$core['numberformat_thousands_seperator']) . '</div>';
51
-        $return .= '<div id="totalbrutto_new">' . number_format(round($_SESSION['cartpricesums']['fGesamtbrutto'], 2),
50
+                HelperConfig::$core['numberformat_thousands_seperator']).'</div>';
51
+        $return .= '<div id="totalbrutto_new">'.number_format(round($_SESSION['cartpricesums']['fGesamtbrutto'], 2),
52 52
                 HelperConfig::$core['numberformat_decimals'], HelperConfig::$core['numberformat_decimal_point'],
53
-                HelperConfig::$core['numberformat_thousands_seperator']) . '</div>';
54
-        $return .= '<div id="shippingcostnetto_new">' . number_format($_SESSION['cartpricesums']['fVersandkostennetto'],
53
+                HelperConfig::$core['numberformat_thousands_seperator']).'</div>';
54
+        $return .= '<div id="shippingcostnetto_new">'.number_format($_SESSION['cartpricesums']['fVersandkostennetto'],
55 55
                 HelperConfig::$core['numberformat_decimals'], HelperConfig::$core['numberformat_decimal_point'],
56
-                HelperConfig::$core['numberformat_thousands_seperator']) . '</div>';
57
-        $return .= '<div id="vatreduced_new">' . number_format(round($_SESSION['cartpricesums']['fSteuererm'], 2),
56
+                HelperConfig::$core['numberformat_thousands_seperator']).'</div>';
57
+        $return .= '<div id="vatreduced_new">'.number_format(round($_SESSION['cartpricesums']['fSteuererm'], 2),
58 58
                 HelperConfig::$core['numberformat_decimals'], HelperConfig::$core['numberformat_decimal_point'],
59
-                HelperConfig::$core['numberformat_thousands_seperator']) . '</div>';
60
-        $return .= '<div id="totalnetto_new">' . number_format(round($_SESSION['cartpricesums']['fGesamtnetto'], 2),
59
+                HelperConfig::$core['numberformat_thousands_seperator']).'</div>';
60
+        $return .= '<div id="totalnetto_new">'.number_format(round($_SESSION['cartpricesums']['fGesamtnetto'], 2),
61 61
                 HelperConfig::$core['numberformat_decimals'], HelperConfig::$core['numberformat_decimal_point'],
62
-                HelperConfig::$core['numberformat_thousands_seperator']) . '</div>';
62
+                HelperConfig::$core['numberformat_thousands_seperator']).'</div>';
63 63
         $return .= '</div>';
64 64
         \HaaseIT\HCSF\Helper::terminateScript($return);
65 65
     }
Please login to merge, or discard this patch.
src/Router.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -86,7 +86,7 @@  discard block
 block discarded – undo
86 86
 
87 87
             $aPath = explode('/', $this->sPath);
88 88
             if (!empty($map[$this->sPath])) {
89
-                $class = '\\HaaseIT\\HCSF\\Controller\\' . $map[$this->sPath];
89
+                $class = '\\HaaseIT\\HCSF\\Controller\\'.$map[$this->sPath];
90 90
             } else {
91 91
                 if ($aPath[1] == HelperConfig::$core['directory_images']) {
92 92
                     $class = Controller\Glide::class;
@@ -132,7 +132,7 @@  discard block
 block discarded – undo
132 132
                 } else { // if it is found, go on
133 133
                     // Support for shorturls
134 134
                     if ($this->P->cb_pagetype === 'shorturl') {
135
-                        \HaaseIT\HCSF\Helper::redirectToPage('Location: ' . $this->P->cb_pageconfig, true);
135
+                        \HaaseIT\HCSF\Helper::redirectToPage('Location: '.$this->P->cb_pageconfig, true);
136 136
                     }
137 137
 
138 138
                     if (isset($this->P, $aRoutingoverride) && count($aRoutingoverride)) {
@@ -148,14 +148,14 @@  discard block
 block discarded – undo
148 148
                 $this->P->iStatus = 404;
149 149
 
150 150
                 $this->P->oPayload->cl_html = $this->serviceManager->get('textcats')->T('misc_page_not_found');
151
-                header($_SERVER['SERVER_PROTOCOL'] . ' 404 Not Found');
151
+                header($_SERVER['SERVER_PROTOCOL'].' 404 Not Found');
152 152
             } elseif (!is_object($this->P) && $this->P == 500) {
153 153
                 $this->P = new CorePage($this->serviceManager);
154 154
                 $this->P->cb_pagetype = 'error';
155 155
                 $this->P->iStatus = 500;
156 156
 
157 157
                 $this->P->oPayload->cl_html = $this->serviceManager->get('textcats')->T('misc_server_error');
158
-                header($_SERVER['SERVER_PROTOCOL'] . ' 500 Internal Server Error');
158
+                header($_SERVER['SERVER_PROTOCOL'].' 500 Internal Server Error');
159 159
             } elseif (is_object($this->P) && $this->P->oPayload == NULL) {// elseif the page has been found but contains no payload...
160 160
                 if (
161 161
                     !(
@@ -165,10 +165,10 @@  discard block
 block discarded – undo
165 165
                     )
166 166
                 ) { // no payload is fine if page is one of these
167 167
                     $this->P->oPayload->cl_html = $this->serviceManager->get('textcats')->T('misc_content_not_found');
168
-                    header($_SERVER['SERVER_PROTOCOL'] . ' 404 Not Found');
168
+                    header($_SERVER['SERVER_PROTOCOL'].' 404 Not Found');
169 169
                 }
170 170
             } elseif ($this->P->oPayload->cl_lang != NULL && $this->P->oPayload->cl_lang != HelperConfig::$lang) { // if the page is available but not in the current language, display info
171
-                $this->P->oPayload->cl_html = $this->serviceManager->get('textcats')->T('misc_page_not_available_lang') . '<br><br>' . $this->P->oPayload->cl_html;
171
+                $this->P->oPayload->cl_html = $this->serviceManager->get('textcats')->T('misc_page_not_available_lang').'<br><br>'.$this->P->oPayload->cl_html;
172 172
             }
173 173
         }
174 174
         return $this->P;
@@ -190,7 +190,7 @@  discard block
 block discarded – undo
190 190
                 // to allow dots in the filename, we have to iterate through all parts of the filename
191 191
                 $aRoutingoverride['itemno'] = '';
192 192
                 for ($i = 0; $i < count($aTMP['exploded_request_file']) - 1; $i++) {
193
-                    $aRoutingoverride['itemno'] .= $aTMP['exploded_request_file'][$i] . '.';
193
+                    $aRoutingoverride['itemno'] .= $aTMP['exploded_request_file'][$i].'.';
194 194
                 }
195 195
                 // remove the trailing dot
196 196
                 $aRoutingoverride['itemno'] = \HaaseIT\Toolbox\Tools::cutStringend($aRoutingoverride['itemno'], 1);
@@ -200,7 +200,7 @@  discard block
 block discarded – undo
200 200
                 // rebuild the path string without the trailing '/item/itemno.html'
201 201
                 $this->sPath = '';
202 202
                 for ($i = 0; $i < $aTMP['parts_in_path'] - 2; $i++) {
203
-                    $this->sPath .= $aPath[$i] . '/';
203
+                    $this->sPath .= $aPath[$i].'/';
204 204
                 }
205 205
             }
206 206
         }
Please login to merge, or discard this patch.
src/Controller/Admin/Shop/Itemadmin.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -252,10 +252,10 @@  discard block
 block discarded – undo
252 252
     private function prepareItemlist($aItemlist)
253 253
     {
254 254
         $aList = [
255
-            ['title' => HardcodedText::get('itemadmin_list_active'), 'key' => 'itemindex', 'width' => 30, 'linked' => false, 'callback' => 'renderItemStatusIcon',],
256
-            ['title' => HardcodedText::get('itemadmin_list_itemno'), 'key' => 'itemno', 'width' => 100, 'linked' => false,],
257
-            ['title' => HardcodedText::get('itemadmin_list_name'), 'key' => 'name', 'width' => 350, 'linked' => false,],
258
-            ['title' => HardcodedText::get('itemadmin_list_edit'), 'key' => 'itemno', 'width' => 30, 'linked' => true, 'ltarget' => '/_admin/itemadmin.html', 'lkeyname' => 'itemno', 'lgetvars' => ['action' => 'showitem'],],
255
+            ['title' => HardcodedText::get('itemadmin_list_active'), 'key' => 'itemindex', 'width' => 30, 'linked' => false, 'callback' => 'renderItemStatusIcon', ],
256
+            ['title' => HardcodedText::get('itemadmin_list_itemno'), 'key' => 'itemno', 'width' => 100, 'linked' => false, ],
257
+            ['title' => HardcodedText::get('itemadmin_list_name'), 'key' => 'name', 'width' => 350, 'linked' => false, ],
258
+            ['title' => HardcodedText::get('itemadmin_list_edit'), 'key' => 'itemno', 'width' => 30, 'linked' => true, 'ltarget' => '/_admin/itemadmin.html', 'lkeyname' => 'itemno', 'lgetvars' => ['action' => 'showitem'], ],
259 259
         ];
260 260
         $aData = [];
261 261
         foreach ($aItemlist['data'] as $aValue) {
@@ -320,7 +320,7 @@  discard block
 block discarded – undo
320 320
     private function prepareItem($aItemdata)
321 321
     {
322 322
         $aData = [
323
-            'form' => ['action' => Tools::makeLinkHRefWithAddedGetVars('/_admin/itemadmin.html', ['action' => 'showitem', 'itemno' => $aItemdata['base']['itm_no']]),],
323
+            'form' => ['action' => Tools::makeLinkHRefWithAddedGetVars('/_admin/itemadmin.html', ['action' => 'showitem', 'itemno' => $aItemdata['base']['itm_no']]), ],
324 324
             'id' => $aItemdata['base']['itm_id'],
325 325
             'itemno' => $aItemdata['base']['itm_no'],
326 326
             'name' => $aItemdata['base']['itm_name'],
@@ -351,7 +351,7 @@  discard block
 block discarded – undo
351 351
         $aGroups = $this->getItemgroups('');
352 352
         $aData['groupoptions'][] = '';
353 353
         foreach ($aGroups as $aValue) {
354
-            $aData['groupoptions'][] = $aValue['itmg_id'] . '|' . $aValue['itmg_no'] . ' - ' . $aValue['itmg_name'];
354
+            $aData['groupoptions'][] = $aValue['itmg_id'].'|'.$aValue['itmg_no'].' - '.$aValue['itmg_name'];
355 355
         }
356 356
         unset($aGroups);
357 357
 
Please login to merge, or discard this patch.
src/Controller/Base.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -117,7 +117,7 @@  discard block
 block discarded – undo
117 117
             $user = filter_input(INPUT_SERVER, 'PHP_AUTH_USER');
118 118
             $pass = filter_input(INPUT_SERVER, 'PHP_AUTH_PW');
119 119
             if (filter_input(INPUT_SERVER, 'REDIRECT_HTTP_AUTHORIZATION') !== null) { // fix for php cgi mode
120
-                list($user, $pass) = explode(':' , base64_decode(substr(filter_input(INPUT_SERVER, 'REDIRECT_HTTP_AUTHORIZATION'), 6)));
120
+                list($user, $pass) = explode(':', base64_decode(substr(filter_input(INPUT_SERVER, 'REDIRECT_HTTP_AUTHORIZATION'), 6)));
121 121
             }
122 122
 
123 123
             if (!empty($user) && !empty($pass)) {
@@ -130,12 +130,12 @@  discard block
 block discarded – undo
130 130
             }
131 131
 
132 132
             if (!$validated) {
133
-                header('WWW-Authenticate: Basic realm="' . HelperConfig::$secrets['admin_authrealm'] . '"');
133
+                header('WWW-Authenticate: Basic realm="'.HelperConfig::$secrets['admin_authrealm'].'"');
134 134
                 header('HTTP/1.0 401 Unauthorized');
135 135
                 \HaaseIT\HCSF\Helper::terminateScript('Not authorized');
136 136
             }
137 137
         } else {
138
-            header('WWW-Authenticate: Basic realm="' . HelperConfig::$secrets['admin_authrealm'] . '"');
138
+            header('WWW-Authenticate: Basic realm="'.HelperConfig::$secrets['admin_authrealm'].'"');
139 139
             header('HTTP/1.0 401 Unauthorized');
140 140
             \HaaseIT\HCSF\Helper::terminateScript('Not authorized');
141 141
         }
Please login to merge, or discard this patch.
src/Controller/Customer/Forgotpassword.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -118,7 +118,7 @@
 block discarded – undo
118 118
                     $sTargetAddress = $aResult['cust_email'];
119 119
                     $sSubject = $this->textcats->T('forgotpw_mail_subject');
120 120
                     $sMessage = $this->textcats->T('forgotpw_mail_text1');
121
-                    $sMessage .= '<br><br>' .'<a href="http'.($serverhttps === 'on' ? 's' : '').'://';
121
+                    $sMessage .= '<br><br>'.'<a href="http'.($serverhttps === 'on' ? 's' : '').'://';
122 122
                     $sMessage .= $serverservername.'/_misc/rp.html?key='.$sResetCode.'&amp;email='.$sTargetAddress.'">';
123 123
                     $sMessage .= 'http'.($serverhttps === 'on' ? 's' : '').'://';
124 124
                     $sMessage .= $serverservername.'/_misc/rp.html?key='.$sResetCode.'&amp;email='.$sTargetAddress.'</a>';
Please login to merge, or discard this patch.
src/Controller/Customer/Login.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -45,18 +45,18 @@  discard block
 block discarded – undo
45 45
         } else {
46 46
             $mLogin = $this->getLogin();
47 47
             if (isset($mLogin['status']) && $mLogin['status'] === 'success') {
48
-                $this->P->oPayload->cl_html = $textcats->T('login_success') . '<br>';
48
+                $this->P->oPayload->cl_html = $textcats->T('login_success').'<br>';
49 49
                 \HaaseIT\HCSF\Helper::redirectToPage('/_misc/userhome.html?login=true');
50 50
             } elseif (isset($mLogin['status']) && $mLogin['status'] === 'tosnotaccepted') {
51
-                $this->P->oPayload->cl_html = $textcats->T('login_fail_tosnotaccepted') . '<br>';
51
+                $this->P->oPayload->cl_html = $textcats->T('login_fail_tosnotaccepted').'<br>';
52 52
                 $this->P->cb_customcontenttemplate = 'customer/login';
53 53
             } elseif (isset($mLogin['status']) && $mLogin['status'] === 'emailnotverified') {
54
-                $this->P->oPayload->cl_html = $textcats->T('login_fail_emailnotverified') . '<br><br>';
54
+                $this->P->oPayload->cl_html = $textcats->T('login_fail_emailnotverified').'<br><br>';
55 55
                 $this->P->oPayload->cl_html .= '<a href="/_misc/resendverificationmail.html?email='
56
-                    . $mLogin['data']['cust_email'] . '">' . $textcats->T('login_fail_emailnotverifiedresend') . '</a>';
56
+                    . $mLogin['data']['cust_email'].'">'.$textcats->T('login_fail_emailnotverifiedresend').'</a>';
57 57
                 $this->P->cb_customcontenttemplate = 'customer/login';
58 58
             } elseif (isset($mLogin['status']) && $mLogin['status'] === 'accountinactive') {
59
-                $this->P->oPayload->cl_html = $textcats->T('login_fail_accountinactive') . '<br>';
59
+                $this->P->oPayload->cl_html = $textcats->T('login_fail_accountinactive').'<br>';
60 60
                 $this->P->cb_customcontenttemplate = 'customer/login';
61 61
             } else {
62 62
                 $this->P->oPayload->cl_html = $textcats->T('login_fail');
@@ -110,7 +110,7 @@  discard block
 block discarded – undo
110 110
         $hResult->execute();
111 111
 
112 112
         $iRows = $hResult->rowCount();
113
-        if($iRows == 1) {
113
+        if ($iRows == 1) {
114 114
             $aRow = $hResult->fetch();
115 115
 
116 116
             if (password_verify(filter_input(INPUT_POST, 'password'), $aRow['cust_password'])) {
@@ -120,9 +120,9 @@  discard block
 block discarded – undo
120 120
                 } elseif ($aRow['cust_tosaccepted'] === 'n') {
121 121
                     return ['status' => 'tosnotaccepted'];
122 122
                 } elseif ($aRow['cust_emailverified'] === 'n') {
123
-                    return ['status' => 'emailnotverified', 'data' => $aRow,];
123
+                    return ['status' => 'emailnotverified', 'data' => $aRow, ];
124 124
                 } elseif ($aRow['cust_active'] === 'n') {
125
-                    return ['status' => 'accountinactive',];
125
+                    return ['status' => 'accountinactive', ];
126 126
                 }
127 127
             }
128 128
         }
Please login to merge, or discard this patch.
src/Controller/Shop/Shoppingcart.php 1 patch
Spacing   +21 added lines, -21 removed lines patch added patch discarded remove patch
@@ -120,7 +120,7 @@  discard block
 block discarded – undo
120 120
 
121 121
         if (HelperConfig::$shop['email_orderconfirmation_embed_itemimages_method'] === 'glide') {
122 122
             $sPathToImage = '/'.HelperConfig::$core['directory_images'].'/'.HelperConfig::$shop['directory_images_items'].'/';
123
-            $sImageroot = PATH_BASEDIR . HelperConfig::$core['directory_glide_master'];
123
+            $sImageroot = PATH_BASEDIR.HelperConfig::$core['directory_glide_master'];
124 124
 
125 125
             if (
126 126
                 is_file($sImageroot.substr($sPathToImage.$aV['img'], strlen(HelperConfig::$core['directory_images']) + 1))
@@ -131,7 +131,7 @@  discard block
 block discarded – undo
131 131
                     'cache' => PATH_GLIDECACHE,
132 132
                     'max_image_size' => HelperConfig::$core['glide_max_imagesize'],
133 133
                 ]);
134
-                $glideserver->setBaseUrl('/' . HelperConfig::$core['directory_images'] . '/');
134
+                $glideserver->setBaseUrl('/'.HelperConfig::$core['directory_images'].'/');
135 135
                 $base64Img = $glideserver->getImageAsBase64($sPathToImage.$aV['img'], HelperConfig::$shop['email_orderconfirmation_embed_itemimages_glideparams']);
136 136
                 $TMP = explode(',', $base64Img);
137 137
                 $binImg = base64_decode($TMP[1]);
@@ -144,7 +144,7 @@  discard block
 block discarded – undo
144 144
                 .HelperConfig::$shop['directory_images_items_email'].'/';
145 145
             if ($aImgInfo = getimagesize($sPathToImage.$aV['img'])) {
146 146
                 $binImg = file_get_contents($sPathToImage.$aV['img']);
147
-                $base64Img = 'data:' . $aImgInfo['mime'] . ';base64,';
147
+                $base64Img = 'data:'.$aImgInfo['mime'].';base64,';
148 148
                 $base64Img .= base64_encode($binImg);
149 149
             }
150 150
         }
@@ -217,7 +217,7 @@  discard block
 block discarded – undo
217 217
             $sql = DBTools::buildPSInsertQuery($aDataOrder, 'orders');
218 218
             $hResult = $db->prepare($sql);
219 219
             foreach ($aDataOrder as $sKey => $sValue) {
220
-                $hResult->bindValue(':' . $sKey, $sValue);
220
+                $hResult->bindValue(':'.$sKey, $sValue);
221 221
             }
222 222
             $hResult->execute();
223 223
             $iInsertID = $db->lastInsertId();
@@ -252,7 +252,7 @@  discard block
 block discarded – undo
252 252
                 $sql = DBTools::buildPSInsertQuery($aV, 'orders_items');
253 253
                 $hResult = $db->prepare($sql);
254 254
                 foreach ($aV as $sKey => $sValue) {
255
-                    $hResult->bindValue(':' . $sKey, $sValue);
255
+                    $hResult->bindValue(':'.$sKey, $sValue);
256 256
                 }
257 257
                 $hResult->execute();
258 258
             }
@@ -291,15 +291,15 @@  discard block
 block discarded – undo
291 291
             && in_array('paypal', HelperConfig::$shop['paymentmethods'], true) !== false
292 292
             && HelperConfig::$shop['paypal_interactive']
293 293
         ) {
294
-            $redirectto = '/_misc/paypal.html?id=' . $iInsertID;
294
+            $redirectto = '/_misc/paypal.html?id='.$iInsertID;
295 295
         } elseif (
296 296
             $postpaymentmethod !== null
297 297
             && $postpaymentmethod === 'sofortueberweisung'
298 298
             && in_array('sofortueberweisung', HelperConfig::$shop['paymentmethods'], true) !== false
299 299
         ) {
300
-            $redirectto = '/_misc/sofortueberweisung.html?id=' . $iInsertID;
300
+            $redirectto = '/_misc/sofortueberweisung.html?id='.$iInsertID;
301 301
         } else {
302
-            $redirectto = '/_misc/checkedout.html?id=' . $iInsertID;
302
+            $redirectto = '/_misc/checkedout.html?id='.$iInsertID;
303 303
         }
304 304
         \HaaseIT\HCSF\Helper::redirectToPage($redirectto);
305 305
     }
@@ -313,7 +313,7 @@  discard block
 block discarded – undo
313 313
     private function sendCheckoutMails($iInsertID, $sMailbody_us, $sMailbody_they, $aImagesToSend)
314 314
     {
315 315
         if (
316
-            isset(HelperConfig::$shop['email_orderconfirmation_attachment_cancellationform_' .HelperConfig::$lang])
316
+            isset(HelperConfig::$shop['email_orderconfirmation_attachment_cancellationform_'.HelperConfig::$lang])
317 317
             && file_exists(
318 318
                 PATH_DOCROOT.HelperConfig::$core['directory_emailattachments']
319 319
                 .'/'.HelperConfig::$shop['email_orderconfirmation_attachment_cancellationform_'
@@ -322,21 +322,21 @@  discard block
 block discarded – undo
322 322
         ) {
323 323
             $aFilesToSend[] =
324 324
                 PATH_DOCROOT.HelperConfig::$core['directory_emailattachments'].'/'
325
-                .HelperConfig::$shop['email_orderconfirmation_attachment_cancellationform_' .HelperConfig::$lang];
325
+                .HelperConfig::$shop['email_orderconfirmation_attachment_cancellationform_'.HelperConfig::$lang];
326 326
         } else {
327 327
             $aFilesToSend = [];
328 328
         }
329 329
 
330 330
         Helper::mailWrapper(
331 331
             filter_input(INPUT_POST, 'email', FILTER_SANITIZE_EMAIL),
332
-            $this->textcats->T('shoppingcart_mail_subject') . ' ' . $iInsertID,
332
+            $this->textcats->T('shoppingcart_mail_subject').' '.$iInsertID,
333 333
             $sMailbody_they,
334 334
             $aImagesToSend,
335 335
             $aFilesToSend
336 336
         );
337 337
         Helper::mailWrapper(
338 338
             HelperConfig::$core['email_sender'],
339
-            'Bestellung im Webshop Nr: ' . $iInsertID,
339
+            'Bestellung im Webshop Nr: '.$iInsertID,
340 340
             $sMailbody_us,
341 341
             $aImagesToSend
342 342
         );
@@ -347,9 +347,9 @@  discard block
 block discarded – undo
347 347
      */
348 348
     private function writeCheckoutToFile($sMailbody_us)
349 349
     {
350
-        $fp = fopen(PATH_LOGS . 'shoplog_' . date('Y-m-d') . '.html', 'a');
350
+        $fp = fopen(PATH_LOGS.'shoplog_'.date('Y-m-d').'.html', 'a');
351 351
         // Write $somecontent to our opened file.
352
-        fwrite($fp, $sMailbody_us . "\n\n-------------------------------------------------------------------------\n\n");
352
+        fwrite($fp, $sMailbody_us."\n\n-------------------------------------------------------------------------\n\n");
353 353
         fclose($fp);
354 354
     }
355 355
 
@@ -393,9 +393,9 @@  discard block
 block discarded – undo
393 393
             'country' => !empty($postcountry) ?
394 394
             (
395 395
                 isset(
396
-                    HelperConfig::$countries['countries_' .HelperConfig::$lang][$postcountry]
396
+                    HelperConfig::$countries['countries_'.HelperConfig::$lang][$postcountry]
397 397
                 )
398
-                    ? HelperConfig::$countries['countries_' .HelperConfig::$lang][$postcountry]
398
+                    ? HelperConfig::$countries['countries_'.HelperConfig::$lang][$postcountry]
399 399
                     : $postcountry)
400 400
             : '',
401 401
             'remarks' => $this->getPostValue('remarks'),
@@ -404,7 +404,7 @@  discard block
 block discarded – undo
404 404
             'paymentmethod' => $this->getPostValue('paymentmethod'),
405 405
             'shippingcost' => !isset($_SESSION['shippingcost']) || $_SESSION['shippingcost'] == 0 ? false : $_SESSION['shippingcost'],
406 406
             'paypallink' => $postpaymentmethod === 'paypal' ? $serverservername.'/_misc/paypal.html?id='.$iId : '',
407
-            'sofortueberweisunglink' => $postpaymentmethod === 'sofortueberweisung' ?  $serverservername.'/_misc/sofortueberweisung.html?id='.$iId : '',
407
+            'sofortueberweisunglink' => $postpaymentmethod === 'sofortueberweisung' ? $serverservername.'/_misc/sofortueberweisung.html?id='.$iId : '',
408 408
             'SESSION' => !$bCust ? Tools::debug($_SESSION, '$_SESSION', true, true) : '',
409 409
             'POST' => !$bCust ? Tools::debug($_POST, '$_POST', true, true) : '',
410 410
             'orderid' => $iId,
@@ -435,15 +435,15 @@  discard block
 block discarded – undo
435 435
                 ($getmsg === 'updated' && !empty($getcartkey) && !empty($getamount))
436 436
                 || ($getmsg === 'removed' && !empty($getcartkey))
437 437
             ) {
438
-                $return .= $this->textcats->T('shoppingcart_msg_' . $getmsg . '_1') . ' ';
438
+                $return .= $this->textcats->T('shoppingcart_msg_'.$getmsg.'_1').' ';
439 439
                 if (isset(HelperConfig::$shop['custom_order_fields']) && mb_strpos($getcartkey, '|') !== false) {
440 440
                     $mCartkeys = explode('|', $getcartkey);
441 441
                     foreach ($mCartkeys as $sKey => $sValue) {
442 442
                         if ($sKey == 0) {
443
-                            $return .= $sValue . ', ';
443
+                            $return .= $sValue.', ';
444 444
                         } else {
445 445
                             $TMP = explode(':', $sValue);
446
-                            $return .= $this->textcats->T('shoppingcart_item_' . $TMP[0]) . ' ' . $TMP[1] . ', ';
446
+                            $return .= $this->textcats->T('shoppingcart_item_'.$TMP[0]).' '.$TMP[1].', ';
447 447
                             unset($TMP);
448 448
                         }
449 449
                     }
@@ -451,7 +451,7 @@  discard block
 block discarded – undo
451 451
                 } else {
452 452
                     $return .= $getcartkey;
453 453
                 }
454
-                $return.= ' ' . $this->textcats->T('shoppingcart_msg_'.$getmsg.'_2');
454
+                $return .= ' '.$this->textcats->T('shoppingcart_msg_'.$getmsg.'_2');
455 455
                 if ($getmsg === 'updated') {
456 456
                     $return .= ' '.$getamount;
457 457
                 }
Please login to merge, or discard this patch.