Completed
Push — master ( b59c19...385681 )
by Marcus
04:07
created
src/Controller/Shop/Sofortueberweisung.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -72,14 +72,14 @@
 block discarded – undo
72 72
                 .'&project_id='.HelperConfig::$shop['sofortueberweisung']['project_id'].'&amount='
73 73
                 .number_format($fGesamtbrutto, 2, '.', '')
74 74
                 .'&currency_id='.HelperConfig::$shop['sofortueberweisung']['currency_id'].'&reason_1='
75
-                .urlencode($this->textcats->T('misc_paysofortueberweisung_ueberweisungsbetreff') . ' ').$iId;
75
+                .urlencode($this->textcats->T('misc_paysofortueberweisung_ueberweisungsbetreff').' ').$iId;
76 76
             if (HelperConfig::$shop['interactive_paymentmethods_redirect_immediately']) {
77
-                header('Location: ' . $sPURL);
77
+                header('Location: '.$sPURL);
78 78
                 die();
79 79
             }
80 80
 
81
-            $this->P->oPayload->cl_html = $this->textcats->T('misc_paysofortueberweisung_greeting') . '<br><br>';
82
-            $this->P->oPayload->cl_html .= '<a href="' . $sPURL . '">' . $this->textcats->T('misc_paysofortueberweisung') . '</a>';
81
+            $this->P->oPayload->cl_html = $this->textcats->T('misc_paysofortueberweisung_greeting').'<br><br>';
82
+            $this->P->oPayload->cl_html .= '<a href="'.$sPURL.'">'.$this->textcats->T('misc_paysofortueberweisung').'</a>';
83 83
         } else {
84 84
             $this->P->oPayload->cl_html = $this->textcats->T('misc_paysofortueberweisung_paymentnotavailable');
85 85
         }
Please login to merge, or discard this patch.
src/Controller/Shop/Shoppingcart.php 1 patch
Spacing   +23 added lines, -23 removed lines patch added patch discarded remove patch
@@ -142,7 +142,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
         }
@@ -242,7 +242,7 @@  discard block
 block discarded – undo
242 242
             $sql = DBTools::buildPSInsertQuery($aDataOrder, 'orders');
243 243
             $hResult = $db->prepare($sql);
244 244
             foreach ($aDataOrder as $sKey => $sValue) {
245
-                $hResult->bindValue(':' . $sKey, $sValue);
245
+                $hResult->bindValue(':'.$sKey, $sValue);
246 246
             }
247 247
             $hResult->execute();
248 248
             $iInsertID = $db->lastInsertId();
@@ -277,7 +277,7 @@  discard block
 block discarded – undo
277 277
                 $sql = DBTools::buildPSInsertQuery($aV, 'orders_items');
278 278
                 $hResult = $db->prepare($sql);
279 279
                 foreach ($aV as $sKey => $sValue) {
280
-                    $hResult->bindValue(':' . $sKey, $sValue);
280
+                    $hResult->bindValue(':'.$sKey, $sValue);
281 281
                 }
282 282
                 $hResult->execute();
283 283
             }
@@ -315,15 +315,15 @@  discard block
 block discarded – undo
315 315
             && array_search('paypal', HelperConfig::$shop['paymentmethods']) !== false
316 316
             && HelperConfig::$shop['paypal_interactive']
317 317
         ) {
318
-            header('Location: /_misc/paypal.html?id=' . $iInsertID);
318
+            header('Location: /_misc/paypal.html?id='.$iInsertID);
319 319
         } elseif (
320 320
             isset($this->post['paymentmethod'])
321 321
             && $this->post['paymentmethod'] === 'sofortueberweisung'
322 322
             && array_search('sofortueberweisung', HelperConfig::$shop['paymentmethods']) !== false
323 323
         ) {
324
-            header('Location: /_misc/sofortueberweisung.html?id=' . $iInsertID);
324
+            header('Location: /_misc/sofortueberweisung.html?id='.$iInsertID);
325 325
         } else {
326
-            header('Location: /_misc/checkedout.html?id=' . $iInsertID);
326
+            header('Location: /_misc/checkedout.html?id='.$iInsertID);
327 327
         }
328 328
         die();
329 329
     }
@@ -337,7 +337,7 @@  discard block
 block discarded – undo
337 337
     private function sendCheckoutMails($iInsertID, $sMailbody_us, $sMailbody_they, $aImagesToSend)
338 338
     {
339 339
         if (
340
-            isset(HelperConfig::$shop['email_orderconfirmation_attachment_cancellationform_' .HelperConfig::$lang])
340
+            isset(HelperConfig::$shop['email_orderconfirmation_attachment_cancellationform_'.HelperConfig::$lang])
341 341
             && file_exists(
342 342
                 PATH_DOCROOT.HelperConfig::$core['directory_emailattachments']
343 343
                 .'/'.HelperConfig::$shop['email_orderconfirmation_attachment_cancellationform_'
@@ -346,21 +346,21 @@  discard block
 block discarded – undo
346 346
         ) {
347 347
             $aFilesToSend[] =
348 348
                 PATH_DOCROOT.HelperConfig::$core['directory_emailattachments'].'/'
349
-                .HelperConfig::$shop['email_orderconfirmation_attachment_cancellationform_' .HelperConfig::$lang];
349
+                .HelperConfig::$shop['email_orderconfirmation_attachment_cancellationform_'.HelperConfig::$lang];
350 350
         } else {
351 351
             $aFilesToSend = [];
352 352
         }
353 353
 
354 354
         Helper::mailWrapper(
355 355
             $this->post['email'],
356
-            $this->textcats->T('shoppingcart_mail_subject') . ' ' . $iInsertID,
356
+            $this->textcats->T('shoppingcart_mail_subject').' '.$iInsertID,
357 357
             $sMailbody_they,
358 358
             $aImagesToSend,
359 359
             $aFilesToSend
360 360
         );
361 361
         Helper::mailWrapper(
362 362
             HelperConfig::$core['email_sender'],
363
-            'Bestellung im Webshop Nr: ' . $iInsertID,
363
+            'Bestellung im Webshop Nr: '.$iInsertID,
364 364
             $sMailbody_us,
365 365
             $aImagesToSend
366 366
         );
@@ -371,9 +371,9 @@  discard block
 block discarded – undo
371 371
      */
372 372
     private function writeCheckoutToFile($sMailbody_us)
373 373
     {
374
-        $fp = fopen(PATH_LOGS . 'shoplog_' . date('Y-m-d') . '.html', 'a');
374
+        $fp = fopen(PATH_LOGS.'shoplog_'.date('Y-m-d').'.html', 'a');
375 375
         // Write $somecontent to our opened file.
376
-        fwrite($fp, $sMailbody_us . "\n\n-------------------------------------------------------------------------\n\n");
376
+        fwrite($fp, $sMailbody_us."\n\n-------------------------------------------------------------------------\n\n");
377 377
         fclose($fp);
378 378
     }
379 379
 
@@ -415,9 +415,9 @@  discard block
 block discarded – undo
415 415
             'country' => isset($this->post['country']) && trim($this->post['country']) != '' ?
416 416
             (
417 417
                 isset(
418
-                    HelperConfig::$countries['countries_' .HelperConfig::$lang][$this->post['country']]
418
+                    HelperConfig::$countries['countries_'.HelperConfig::$lang][$this->post['country']]
419 419
                 )
420
-                    ? HelperConfig::$countries['countries_' .HelperConfig::$lang][$this->post['country']]
420
+                    ? HelperConfig::$countries['countries_'.HelperConfig::$lang][$this->post['country']]
421 421
                     : $this->post['country'])
422 422
             : '',
423 423
             'remarks' => $this->getPostValue('remarks'),
@@ -425,8 +425,8 @@  discard block
 block discarded – undo
425 425
             'cancellationdisclaimer' => $this->getPostValue('cancellationdisclaimer'),
426 426
             'paymentmethod' => $this->getPostValue('paymentmethod'),
427 427
             'shippingcost' => !isset($_SESSION['shippingcost']) || $_SESSION['shippingcost'] == 0 ? false : $_SESSION['shippingcost'],
428
-            'paypallink' => isset($this->post['paymentmethod']) && $this->post['paymentmethod'] == 'paypal' ?  $_SERVER['SERVER_NAME'].'/_misc/paypal.html?id='.$iId : '',
429
-            'sofortueberweisunglink' => isset($this->post['paymentmethod']) && $this->post['paymentmethod'] == 'sofortueberweisung' ?  $_SERVER['SERVER_NAME'].'/_misc/sofortueberweisung.html?id='.$iId : '',
428
+            'paypallink' => isset($this->post['paymentmethod']) && $this->post['paymentmethod'] == 'paypal' ? $_SERVER['SERVER_NAME'].'/_misc/paypal.html?id='.$iId : '',
429
+            'sofortueberweisunglink' => isset($this->post['paymentmethod']) && $this->post['paymentmethod'] == 'sofortueberweisung' ? $_SERVER['SERVER_NAME'].'/_misc/sofortueberweisung.html?id='.$iId : '',
430 430
             'SESSION' => !$bCust ? Tools::debug($_SESSION, '$_SESSION', true, true) : '',
431 431
             'POST' => !$bCust ? Tools::debug($this->post, '$this->post', true, true) : '',
432 432
             'orderid' => $iId,
@@ -454,15 +454,15 @@  discard block
 block discarded – undo
454 454
                 ($this->get['msg'] === 'updated' && isset($this->get['cartkey'], $this->get['amount']))
455 455
                 || ($this->get['msg'] === 'removed' && isset($this->get['cartkey']))
456 456
             ) {
457
-                $return .= $this->textcats->T('shoppingcart_msg_' . $this->get['msg'] . '_1') . ' ';
457
+                $return .= $this->textcats->T('shoppingcart_msg_'.$this->get['msg'].'_1').' ';
458 458
                 if (isset(HelperConfig::$shop['custom_order_fields']) && mb_strpos($this->get['cartkey'], '|') !== false) {
459 459
                     $mCartkeys = explode('|', $this->get['cartkey']);
460 460
                     foreach ($mCartkeys as $sKey => $sValue) {
461 461
                         if ($sKey == 0) {
462
-                            $return .= $sValue . ', ';
462
+                            $return .= $sValue.', ';
463 463
                         } else {
464 464
                             $TMP = explode(':', $sValue);
465
-                            $return .= $this->textcats->T('shoppingcart_item_' . $TMP[0]) . ' ' . $TMP[1] . ', ';
465
+                            $return .= $this->textcats->T('shoppingcart_item_'.$TMP[0]).' '.$TMP[1].', ';
466 466
                             unset($TMP);
467 467
                         }
468 468
                     }
@@ -470,9 +470,9 @@  discard block
 block discarded – undo
470 470
                 } else {
471 471
                     $return .= $this->get['cartkey'];
472 472
                 }
473
-                $return.= ' ' . $this->textcats->T('shoppingcart_msg_' . $this->get['msg'] . '_2');
473
+                $return .= ' '.$this->textcats->T('shoppingcart_msg_'.$this->get['msg'].'_2');
474 474
                 if ($this->get['msg'] == 'updated') {
475
-                    $return .= ' ' . $this->get['amount'];
475
+                    $return .= ' '.$this->get['amount'];
476 476
                 }
477 477
                 $return .= '<br><br>';
478 478
             }
Please login to merge, or discard this patch.
src/Controller/Shop/Myorders.php 1 patch
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -56,14 +56,14 @@  discard block
 block discarded – undo
56 56
         if (!CHelper::getUserData()) {
57 57
             $this->P->oPayload->cl_html = $this->textcats->T('denied_notloggedin');
58 58
         } else {
59
-            require_once PATH_BASEDIR . 'src/shop/functions.shoppingcart.php';
59
+            require_once PATH_BASEDIR.'src/shop/functions.shoppingcart.php';
60 60
 
61 61
             $this->P->cb_customcontenttemplate = 'shop/myorders';
62 62
 
63 63
             if (isset($_GET['action'], $_GET['id']) && $_GET['action'] === 'show') {
64 64
                 $iId = \filter_input(INPUT_GET, 'id', FILTER_SANITIZE_NUMBER_INT);
65 65
 
66
-                $sql = 'SELECT * FROM ' . 'orders WHERE o_id = :id AND o_custno = \'' . $_SESSION['user']['cust_no'] . '\' AND o_ordercompleted != \'d\'';
66
+                $sql = 'SELECT * FROM '.'orders WHERE o_id = :id AND o_custno = \''.$_SESSION['user']['cust_no'].'\' AND o_ordercompleted != \'d\'';
67 67
                 $hResult = $this->db->prepare($sql);
68 68
                 $hResult->bindValue(':id', $iId);
69 69
                 $hResult->execute();
@@ -76,7 +76,7 @@  discard block
 block discarded – undo
76 76
                         $aOrder['o_ordertimestamp']
77 77
                     );
78 78
                     $this->P->cb_customdata['orderdata']['orderremarks'] = $aOrder['o_remarks'];
79
-                    $this->P->cb_customdata['orderdata']['paymentmethod'] = $this->textcats->T('order_paymentmethod_' . $aOrder['o_paymentmethod']);
79
+                    $this->P->cb_customdata['orderdata']['paymentmethod'] = $this->textcats->T('order_paymentmethod_'.$aOrder['o_paymentmethod']);
80 80
                     $this->P->cb_customdata['orderdata']['paymentcompleted'] = (($aOrder['o_paymentcompleted'] == 'y') ? $this->textcats->T('myorders_paymentstatus_completed') : $this->textcats->T('myorders_paymentstatus_open'));
81 81
                     $this->P->cb_customdata['orderdata']['orderstatus'] = SHelper::showOrderStatusText($this->textcats, $aOrder['o_ordercompleted']);
82 82
                     $this->P->cb_customdata['orderdata']['shippingservice'] = $aOrder['o_shipping_service'];
@@ -118,12 +118,12 @@  discard block
 block discarded – undo
118 118
                 }
119 119
             } else {
120 120
                 $COList = [
121
-                    ['title' => $this->textcats->T('order_head_orderdate'), 'key' => 'o_ordertime', 'width' => 110, 'linked' => false,],
122
-                    ['title' => $this->textcats->T('order_head_paymenthethod'), 'key' => 'o_paymentmethod', 'width' => 125, 'linked' => false,],
123
-                    ['title' => $this->textcats->T('order_head_paid'), 'key' => 'o_paymentcompleted', 'width' => 60, 'linked' => false,],
124
-                    ['title' => $this->textcats->T('order_head_status'), 'key' => 'o_order_status', 'width' => 80, 'linked' => false,],
125
-                    ['title' => $this->textcats->T('order_head_shipping_service'), 'key' => 'o_shipping_service', 'width' => 90, 'linked' => false,],
126
-                    ['title' => $this->textcats->T('order_head_shipping_trackingno'), 'key' => 'o_shipping_trackingno', 'width' => 130, 'linked' => false,],
121
+                    ['title' => $this->textcats->T('order_head_orderdate'), 'key' => 'o_ordertime', 'width' => 110, 'linked' => false, ],
122
+                    ['title' => $this->textcats->T('order_head_paymenthethod'), 'key' => 'o_paymentmethod', 'width' => 125, 'linked' => false, ],
123
+                    ['title' => $this->textcats->T('order_head_paid'), 'key' => 'o_paymentcompleted', 'width' => 60, 'linked' => false, ],
124
+                    ['title' => $this->textcats->T('order_head_status'), 'key' => 'o_order_status', 'width' => 80, 'linked' => false, ],
125
+                    ['title' => $this->textcats->T('order_head_shipping_service'), 'key' => 'o_shipping_service', 'width' => 90, 'linked' => false, ],
126
+                    ['title' => $this->textcats->T('order_head_shipping_trackingno'), 'key' => 'o_shipping_trackingno', 'width' => 130, 'linked' => false, ],
127 127
                     [
128 128
                         'title' => $this->textcats->T('order_show'),
129 129
                         'key' => 'o_id',
@@ -131,7 +131,7 @@  discard block
 block discarded – undo
131 131
                         'linked' => true,
132 132
                         'ltarget' => '/_misc/myorders.html',
133 133
                         'lkeyname' => 'id',
134
-                        'lgetvars' => ['action' => 'show',],
134
+                        'lgetvars' => ['action' => 'show', ],
135 135
                     ],
136 136
                 ];
137 137
 
Please login to merge, or discard this patch.
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
         die($return);
65 65
     }
Please login to merge, or discard this patch.
src/Controller/Customer/Resendverificationmail.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@
 block discarded – undo
32 32
         if (CHelper::getUserData()) {
33 33
             $this->P->oPayload->cl_html = $this->serviceManager->get('textcats')->T('denied_default');
34 34
         } else {
35
-            $sql = 'SELECT ' . DB_ADDRESSFIELDS . ', cust_emailverificationcode FROM customer';
35
+            $sql = 'SELECT '.DB_ADDRESSFIELDS.', cust_emailverificationcode FROM customer';
36 36
             $sql .= ' WHERE cust_email = :email AND cust_emailverified = \'n\'';
37 37
 
38 38
             /** @var \PDOStatement $hResult */
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,19 +45,19 @@  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
                 header('Location: /_misc/userhome.html?login=true');
50 50
                 die();
51 51
             } elseif (isset($mLogin['status']) && $mLogin['status'] === 'tosnotaccepted') {
52
-                $this->P->oPayload->cl_html = $textcats->T('login_fail_tosnotaccepted') . '<br>';
52
+                $this->P->oPayload->cl_html = $textcats->T('login_fail_tosnotaccepted').'<br>';
53 53
                 $this->P->cb_customcontenttemplate = 'customer/login';
54 54
             } elseif (isset($mLogin['status']) && $mLogin['status'] === 'emailnotverified') {
55
-                $this->P->oPayload->cl_html = $textcats->T('login_fail_emailnotverified') . '<br><br>';
55
+                $this->P->oPayload->cl_html = $textcats->T('login_fail_emailnotverified').'<br><br>';
56 56
                 $this->P->oPayload->cl_html .= '<a href="/_misc/resendverificationmail.html?email='
57
-                    . $mLogin['data']['cust_email'] . '">' . $textcats->T('login_fail_emailnotverifiedresend') . '</a>';
57
+                    . $mLogin['data']['cust_email'].'">'.$textcats->T('login_fail_emailnotverifiedresend').'</a>';
58 58
                 $this->P->cb_customcontenttemplate = 'customer/login';
59 59
             } elseif (isset($mLogin['status']) && $mLogin['status'] === 'accountinactive') {
60
-                $this->P->oPayload->cl_html = $textcats->T('login_fail_accountinactive') . '<br>';
60
+                $this->P->oPayload->cl_html = $textcats->T('login_fail_accountinactive').'<br>';
61 61
                 $this->P->cb_customcontenttemplate = 'customer/login';
62 62
             } else {
63 63
                 $this->P->oPayload->cl_html = $textcats->T('login_fail');
@@ -111,7 +111,7 @@  discard block
 block discarded – undo
111 111
         $hResult->execute();
112 112
 
113 113
         $iRows = $hResult->rowCount();
114
-        if($iRows == 1) {
114
+        if ($iRows == 1) {
115 115
             $aRow = $hResult->fetch();
116 116
 
117 117
             if (password_verify($_POST['password'], $aRow['cust_password'])) {
@@ -121,9 +121,9 @@  discard block
 block discarded – undo
121 121
                 } elseif ($aRow['cust_tosaccepted'] === 'n') {
122 122
                     return ['status' => 'tosnotaccepted'];
123 123
                 } elseif ($aRow['cust_emailverified'] === 'n') {
124
-                    return ['status' => 'emailnotverified', 'data' => $aRow,];
124
+                    return ['status' => 'emailnotverified', 'data' => $aRow, ];
125 125
                 } elseif ($aRow['cust_active'] === 'n') {
126
-                    return ['status' => 'accountinactive',];
126
+                    return ['status' => 'accountinactive', ];
127 127
                 }
128 128
             }
129 129
         }
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
@@ -113,7 +113,7 @@
 block discarded – undo
113 113
                     $sTargetAddress = $aResult['cust_email'];
114 114
                     $sSubject = $this->textcats->T('forgotpw_mail_subject');
115 115
                     $sMessage = $this->textcats->T('forgotpw_mail_text1');
116
-                    $sMessage .= '<br><br>' .'<a href="http'.(isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] === 'on' ? 's' : '').'://';
116
+                    $sMessage .= '<br><br>'.'<a href="http'.(isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] === 'on' ? 's' : '').'://';
117 117
                     $sMessage .= $_SERVER['SERVER_NAME'].'/_misc/rp.html?key='.$sResetCode.'&amp;email='.$sTargetAddress.'">';
118 118
                     $sMessage .= 'http'.(isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] === 'on' ? 's' : '').'://';
119 119
                     $sMessage .= $_SERVER['SERVER_NAME'].'/_misc/rp.html?key='.$sResetCode.'&amp;email='.$sTargetAddress.'</a>';
Please login to merge, or discard this patch.
src/Controller/Customer/Verifyemail.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -75,7 +75,7 @@
 block discarded – undo
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');
Please login to merge, or discard this patch.
src/Controller/Customer/Userhome.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -83,7 +83,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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;
Please login to merge, or discard this patch.