Completed
Push — master ( 06707c...0359c5 )
by Marcus
04:05
created
src/Controller/Admin/Shop/Shopadmin.php 1 patch
Spacing   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -106,12 +106,12 @@  discard block
 block discarded – undo
106 106
         $CSA = [
107 107
             'list_orders' => [
108 108
                 ['title' => '', 'key' => 'o_id', 'width' => 30, 'linked' => false, 'callback' => 'shopadminMakeCheckbox'],
109
-                ['title' => $this->hardcodedtextcats->get('shopadmin_list_orderid'), 'key' => 'o_id', 'width' => 30, 'linked' => false,],
110
-                ['title' => $this->hardcodedtextcats->get('shopadmin_list_customer'), 'key' => 'o_cust', 'width' => 280, 'linked' => false,],
111
-                ['title' => $this->hardcodedtextcats->get('shopadmin_list_sumnettoall'), 'key' => 'o_sumnettoall', 'width' => 75, 'linked' => false,],
112
-                ['title' => $this->hardcodedtextcats->get('shopadmin_list_orderstatus'), 'key' => 'o_order_status', 'width' => 80, 'linked' => false,],
113
-                ['title' => $this->hardcodedtextcats->get('shopadmin_list_ordertimenumber'), 'key' => 'o_ordertime_number', 'width' => 100, 'linked' => false,],
114
-                ['title' => $this->hardcodedtextcats->get('shopadmin_list_hostpayment'), 'key' => 'o_order_host_payment', 'width' => 140, 'linked' => false,],
109
+                ['title' => $this->hardcodedtextcats->get('shopadmin_list_orderid'), 'key' => 'o_id', 'width' => 30, 'linked' => false, ],
110
+                ['title' => $this->hardcodedtextcats->get('shopadmin_list_customer'), 'key' => 'o_cust', 'width' => 280, 'linked' => false, ],
111
+                ['title' => $this->hardcodedtextcats->get('shopadmin_list_sumnettoall'), 'key' => 'o_sumnettoall', 'width' => 75, 'linked' => false, ],
112
+                ['title' => $this->hardcodedtextcats->get('shopadmin_list_orderstatus'), 'key' => 'o_order_status', 'width' => 80, 'linked' => false, ],
113
+                ['title' => $this->hardcodedtextcats->get('shopadmin_list_ordertimenumber'), 'key' => 'o_ordertime_number', 'width' => 100, 'linked' => false, ],
114
+                ['title' => $this->hardcodedtextcats->get('shopadmin_list_hostpayment'), 'key' => 'o_order_host_payment', 'width' => 140, 'linked' => false, ],
115 115
                 [
116 116
                     'title' => $this->hardcodedtextcats->get('shopadmin_list_edit'),
117 117
                     'key' => 'o_id',
@@ -125,11 +125,11 @@  discard block
 block discarded – undo
125 125
                 ],
126 126
             ],
127 127
             'list_orderitems' => [
128
-                ['title' => $this->hardcodedtextcats->get('shopadmin_list_itemno'), 'key' => 'oi_itemno', 'width' => 95, 'linked' => false,],
129
-                ['title' => $this->hardcodedtextcats->get('shopadmin_list_itemname'), 'key' => 'oi_itemname', 'width' => 350, 'linked' => false,],
130
-                ['title' => $this->hardcodedtextcats->get('shopadmin_list_itemamount'), 'key' => 'oi_amount', 'width' => 50, 'linked' => false, 'style-data' => 'text-align: center;',],
131
-                ['title' => $this->hardcodedtextcats->get('shopadmin_list_itemnetto'), 'key' => 'oi_price_netto', 'width' => 70, 'linked' => false,],
132
-                ['title' => $this->hardcodedtextcats->get('shopadmin_list_itemsumnetto'), 'key' => 'ges_netto', 'width' => 75, 'linked' => false,],
128
+                ['title' => $this->hardcodedtextcats->get('shopadmin_list_itemno'), 'key' => 'oi_itemno', 'width' => 95, 'linked' => false, ],
129
+                ['title' => $this->hardcodedtextcats->get('shopadmin_list_itemname'), 'key' => 'oi_itemname', 'width' => 350, 'linked' => false, ],
130
+                ['title' => $this->hardcodedtextcats->get('shopadmin_list_itemamount'), 'key' => 'oi_amount', 'width' => 50, 'linked' => false, 'style-data' => 'text-align: center;', ],
131
+                ['title' => $this->hardcodedtextcats->get('shopadmin_list_itemnetto'), 'key' => 'oi_price_netto', 'width' => 70, 'linked' => false, ],
132
+                ['title' => $this->hardcodedtextcats->get('shopadmin_list_itemsumnetto'), 'key' => 'ges_netto', 'width' => 75, 'linked' => false, ],
133 133
             ],
134 134
         ];
135 135
 
@@ -249,8 +249,8 @@  discard block
 block discarded – undo
249 249
                     } else {
250 250
                         $sZahlungsmethode = '<span style="color: red;">';
251 251
                     }
252
-                    $mZahlungsmethode = $this->serviceManager->get('textcats')->T('order_paymentmethod_' .$aRow['o_paymentmethod'], true);
253
-                    if ($mZahlungsmethode ) {
252
+                    $mZahlungsmethode = $this->serviceManager->get('textcats')->T('order_paymentmethod_'.$aRow['o_paymentmethod'], true);
253
+                    if ($mZahlungsmethode) {
254 254
                         $sZahlungsmethode .= $mZahlungsmethode;
255 255
                     } else {
256 256
                         $sZahlungsmethode .= ucwords($aRow['o_paymentmethod']);
@@ -294,7 +294,7 @@  discard block
 block discarded – undo
294 294
                     ];
295 295
                     if (!($bIgnoreStorno && $aRow['o_ordercompleted'] === 's')) {
296 296
                         $fGesamtnetto += $aRow['o_sumnettoall'];
297
-                        $j ++;
297
+                        $j++;
298 298
                     } else {
299 299
                         $k++;
300 300
                     }
Please login to merge, or discard this patch.
src/Controller/Admin/Shop/Itemadmin.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -246,10 +246,10 @@  discard block
 block discarded – undo
246 246
     private function prepareItemlist($aItemlist)
247 247
     {
248 248
         $aList = [
249
-            ['title' => $this->hardcodedtextcats->get('itemadmin_list_active'), 'key' => 'itemindex', 'width' => 30, 'linked' => false, 'callback' => 'renderItemStatusIcon',],
250
-            ['title' => $this->hardcodedtextcats->get('itemadmin_list_itemno'), 'key' => 'itemno', 'width' => 100, 'linked' => false,],
251
-            ['title' => $this->hardcodedtextcats->get('itemadmin_list_name'), 'key' => 'name', 'width' => 350, 'linked' => false,],
252
-            ['title' => $this->hardcodedtextcats->get('itemadmin_list_edit'), 'key' => 'itemno', 'width' => 30, 'linked' => true, 'ltarget' => '/_admin/itemadmin.html', 'lkeyname' => 'itemno', 'lgetvars' => ['action' => 'showitem'],],
249
+            ['title' => $this->hardcodedtextcats->get('itemadmin_list_active'), 'key' => 'itemindex', 'width' => 30, 'linked' => false, 'callback' => 'renderItemStatusIcon', ],
250
+            ['title' => $this->hardcodedtextcats->get('itemadmin_list_itemno'), 'key' => 'itemno', 'width' => 100, 'linked' => false, ],
251
+            ['title' => $this->hardcodedtextcats->get('itemadmin_list_name'), 'key' => 'name', 'width' => 350, 'linked' => false, ],
252
+            ['title' => $this->hardcodedtextcats->get('itemadmin_list_edit'), 'key' => 'itemno', 'width' => 30, 'linked' => true, 'ltarget' => '/_admin/itemadmin.html', 'lkeyname' => 'itemno', 'lgetvars' => ['action' => 'showitem'], ],
253 253
         ];
254 254
         $aData = [];
255 255
         foreach ($aItemlist['data'] as $aValue) {
@@ -314,7 +314,7 @@  discard block
 block discarded – undo
314 314
     private function prepareItem($aItemdata)
315 315
     {
316 316
         $aData = [
317
-            'form' => ['action' => Tools::makeLinkHRefWithAddedGetVars('/_admin/itemadmin.html', ['action' => 'showitem', 'itemno' => $aItemdata['base']['itm_no']]),],
317
+            'form' => ['action' => Tools::makeLinkHRefWithAddedGetVars('/_admin/itemadmin.html', ['action' => 'showitem', 'itemno' => $aItemdata['base']['itm_no']]), ],
318 318
             'id' => $aItemdata['base']['itm_id'],
319 319
             'itemno' => $aItemdata['base']['itm_no'],
320 320
             'name' => $aItemdata['base']['itm_name'],
Please login to merge, or discard this patch.
src/Controller/Admin/Textcatadmin.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -58,8 +58,8 @@  discard block
 block discarded – undo
58 58
             $aData = $this->textcats->getCompleteTextcatForCurrentLang();
59 59
 
60 60
             $aListSetting = [
61
-                ['title' => $this->hardcodedtextcats->get('textcatadmin_list_title_key'), 'key' => 'tc_key', 'width' => '20%', 'linked' => false,],
62
-                ['title' => $this->hardcodedtextcats->get('textcatadmin_list_title_text'), 'key' => 'tcl_text', 'width' => '80%', 'linked' => false, 'escapehtmlspecialchars' => true,],
61
+                ['title' => $this->hardcodedtextcats->get('textcatadmin_list_title_key'), 'key' => 'tc_key', 'width' => '20%', 'linked' => false, ],
62
+                ['title' => $this->hardcodedtextcats->get('textcatadmin_list_title_text'), 'key' => 'tcl_text', 'width' => '80%', 'linked' => false, 'escapehtmlspecialchars' => true, ],
63 63
                 [
64 64
                     'title' => $this->hardcodedtextcats->get('textcatadmin_list_title_edit'),
65 65
                     'key' => 'tc_id',
@@ -124,8 +124,8 @@  discard block
 block discarded – undo
124 124
 
125 125
                 if ($iArchivedRows > 0) {
126 126
                     $aListSetting = [
127
-                        ['title' => 'tcla_timestamp', 'key' => 'tcla_timestamp', 'width' => '15%', 'linked' => false,],
128
-                        ['title' => 'tcl_text', 'key' => 'tcl_text', 'width' => '85%', 'linked' => false, 'escapehtmlspecialchars' => true,],
127
+                        ['title' => 'tcla_timestamp', 'key' => 'tcla_timestamp', 'width' => '15%', 'linked' => false, ],
128
+                        ['title' => 'tcl_text', 'key' => 'tcl_text', 'width' => '85%', 'linked' => false, 'escapehtmlspecialchars' => true, ],
129 129
                     ];
130 130
                     $aData = $statement->fetchAll();
131 131
                     $this->P->cb_customdata['archived_list'] = Tools::makeListtable($aListSetting,
Please login to merge, or discard this patch.
src/Customer/Helper.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
             $aErr['fax'] = true;
119 119
         }
120 120
         $postcountry = filter_input(INPUT_POST, 'country', FILTER_SANITIZE_STRING, FILTER_FLAG_STRIP_LOW);
121
-        if ($this->customer['validate_country'] && (empty($postcountry) || !isset($this->countries['countries_' .$sLang][$postcountry]))) {
121
+        if ($this->customer['validate_country'] && (empty($postcountry) || !isset($this->countries['countries_'.$sLang][$postcountry]))) {
122 122
             $aErr['country'] = true;
123 123
         }
124 124
         $posttos = filter_input(INPUT_POST, 'tos');
Please login to merge, or discard this patch.
src/Controller/Shop/Paypalnotify.php 1 patch
Spacing   +19 added lines, -19 removed lines patch added patch discarded remove patch
@@ -74,7 +74,7 @@  discard block
 block discarded – undo
74 74
             $postdata = '';
75 75
 
76 76
             foreach ($_POST as $i => $v) {
77
-                $postdata .= $i . '=' . urlencode($v) . '&';
77
+                $postdata .= $i.'='.urlencode($v).'&';
78 78
             }
79 79
             $postdata .= 'cmd=_notify-validate';
80 80
             $web = parse_url($this->config->getShop('paypal')['url']);
@@ -86,15 +86,15 @@  discard block
 block discarded – undo
86 86
                 $web['port'] = 80;
87 87
                 $ssl = '';
88 88
             }
89
-            $fp = @fsockopen($ssl . $web['host'], $web['port'], $errnum, $errstr, 30);
89
+            $fp = @fsockopen($ssl.$web['host'], $web['port'], $errnum, $errstr, 30);
90 90
 
91 91
             if ($fp) {
92
-                fwrite($fp, 'POST ' . $web['path'] . " HTTP/1.1\r\n");
93
-                fwrite($fp, 'Host: ' . $web['host'] . "\r\n");
92
+                fwrite($fp, 'POST '.$web['path']." HTTP/1.1\r\n");
93
+                fwrite($fp, 'Host: '.$web['host']."\r\n");
94 94
                 fwrite($fp, "Content-type: application/x-www-form-urlencoded\r\n");
95
-                fwrite($fp, 'Content-length: ' . strlen($postdata) . "\r\n");
95
+                fwrite($fp, 'Content-length: '.strlen($postdata)."\r\n");
96 96
                 fwrite($fp, "Connection: close\r\n\r\n");
97
-                fwrite($fp, $postdata . "\r\n\r\n");
97
+                fwrite($fp, $postdata."\r\n\r\n");
98 98
 
99 99
                 $info = [];
100 100
                 while (!feof($fp)) {
@@ -104,9 +104,9 @@  discard block
 block discarded – undo
104 104
                 $info = implode(',', $info);
105 105
                 if (!(strpos($info, 'VERIFIED') === false)) {
106 106
 
107
-                    $sLogData .= '-- new entry - '.date($this->config->getCore('locale_format_date_time')) . " --\n\n";
107
+                    $sLogData .= '-- new entry - '.date($this->config->getCore('locale_format_date_time'))." --\n\n";
108 108
                     $sLogData .= "W00T!\n\n";
109
-                    $sLogData .= \HaaseIT\Toolbox\Tools::debug($_REQUEST, '', true, true) . "\n\n";
109
+                    $sLogData .= \HaaseIT\Toolbox\Tools::debug($_REQUEST, '', true, true)."\n\n";
110 110
 
111 111
                     // Check if the transaction id has been used before
112 112
                     $queryBuilder = $this->dbal->createQueryBuilder();
@@ -135,27 +135,27 @@  discard block
 block discarded – undo
135 135
                                 ->setParameter(1, $iId);
136 136
                             $queryBuilder->execute();
137 137
 
138
-                            $sLogData .= '-- Alles ok. Zahlung erfolgreich. TXNID: ' . $_REQUEST['txn_id'] . " --\n\n";
138
+                            $sLogData .= '-- Alles ok. Zahlung erfolgreich. TXNID: '.$_REQUEST['txn_id']." --\n\n";
139 139
                         } else {
140 140
                             $sLogData .= "-- In my country we have problem; Problem is evaluation. Throw the data down the log!\n";
141
-                            $sLogData .= 'mc_gross: ' . $_REQUEST['mc_gross'] . ' - number_format($fGesamtbrutto, 2, \'.\', \'\'): ' . number_format($fGesamtbrutto,
142
-                                    2, '.', '') . "\n";
143
-                            $sLogData .= 'custom: ' . $_REQUEST['custom'] . ' - $aOrder[\'o_id\']: ' . $aOrder['o_id'] . "\n";
144
-                            $sLogData .= 'payment_status: ' . $_REQUEST['payment_status'] . "\n";
145
-                            $sLogData .= 'mc_currency: ' . $_REQUEST['mc_currency'] . ' - HelperConfig::$shop["paypal"]["currency_id"]: ' . $this->config->getShop('paypal')['currency_id'] . "\n";
146
-                            $sLogData .= 'business: ' . $_REQUEST['receiver_email'] . ' - HelperConfig::$shop["paypal"]["business"]: ' . $this->config->getShop('paypal')['business'] . "\n\n";
141
+                            $sLogData .= 'mc_gross: '.$_REQUEST['mc_gross'].' - number_format($fGesamtbrutto, 2, \'.\', \'\'): '.number_format($fGesamtbrutto,
142
+                                    2, '.', '')."\n";
143
+                            $sLogData .= 'custom: '.$_REQUEST['custom'].' - $aOrder[\'o_id\']: '.$aOrder['o_id']."\n";
144
+                            $sLogData .= 'payment_status: '.$_REQUEST['payment_status']."\n";
145
+                            $sLogData .= 'mc_currency: '.$_REQUEST['mc_currency'].' - HelperConfig::$shop["paypal"]["currency_id"]: '.$this->config->getShop('paypal')['currency_id']."\n";
146
+                            $sLogData .= 'business: '.$_REQUEST['receiver_email'].' - HelperConfig::$shop["paypal"]["business"]: '.$this->config->getShop('paypal')['business']."\n\n";
147 147
                         }
148 148
                     } else {
149 149
                         // INVALID LOGGING ERROR
150
-                        $sLogData .= '-- new entry - ' . date($this->config->getCore('locale_format_date_time')) . " --\n\nPHAIL\n\n";
151
-                        $sLogData .= '!!! JEMAND HAT EINE ALTE TXN_ID BENUTZT: ' . $_REQUEST['txn_id'] . " !!!\n\n";
150
+                        $sLogData .= '-- new entry - '.date($this->config->getCore('locale_format_date_time'))." --\n\nPHAIL\n\n";
151
+                        $sLogData .= '!!! JEMAND HAT EINE ALTE TXN_ID BENUTZT: '.$_REQUEST['txn_id']." !!!\n\n";
152 152
                         $sLogData .= "!!! INVALID !!!\n\n";
153 153
                     }
154 154
                 } else {
155
-                    $sLogData .= '-- new entry - ' . date($this->config->getCore('locale_format_date_time')) . " --\n\nPHAIL - Transaktion fehlgeschlagen. TXNID: " . $_REQUEST['txn_id'] . "\n" . $info . "\n\n";
155
+                    $sLogData .= '-- new entry - '.date($this->config->getCore('locale_format_date_time'))." --\n\nPHAIL - Transaktion fehlgeschlagen. TXNID: ".$_REQUEST['txn_id']."\n".$info."\n\n";
156 156
                 }
157 157
 
158
-                file_put_contents(PATH_LOGS . FILE_PAYPALLOG, $sLogData, FILE_APPEND);
158
+                file_put_contents(PATH_LOGS.FILE_PAYPALLOG, $sLogData, FILE_APPEND);
159 159
             }
160 160
         }
161 161
 
Please login to merge, or discard this patch.
src/Controller/Shop/Shoppingcart.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -396,7 +396,7 @@  discard block
 block discarded – undo
396 396
             'paymentmethod' => $this->getPostValue('paymentmethod'),
397 397
             'shippingcost' => empty($_SESSION['shippingcost']) ? false : $_SESSION['shippingcost'],
398 398
             'paypallink' => $postpaymentmethod === 'paypal' ? $serverservername.'/_misc/paypal.html?id='.$iId : '',
399
-            'sofortueberweisunglink' => $postpaymentmethod === 'sofortueberweisung' ?  $serverservername.'/_misc/sofortueberweisung.html?id='.$iId : '',
399
+            'sofortueberweisunglink' => $postpaymentmethod === 'sofortueberweisung' ? $serverservername.'/_misc/sofortueberweisung.html?id='.$iId : '',
400 400
             'SESSION' => !$bCust ? Tools::debug($_SESSION, '$_SESSION', true, true) : '',
401 401
             'POST' => !$bCust ? Tools::debug($_POST, '$_POST', true, true) : '',
402 402
             'orderid' => $iId,
@@ -437,7 +437,7 @@  discard block
 block discarded – undo
437 437
                 } else {
438 438
                     $return .= $getcartkey;
439 439
                 }
440
-                $return.= ' '.$this->textcats->T('shoppingcart_msg_'.$getmsg.'_2');
440
+                $return .= ' '.$this->textcats->T('shoppingcart_msg_'.$getmsg.'_2');
441 441
                 if ($getmsg === 'updated') {
442 442
                     $return .= ' '.$getamount;
443 443
                 }
Please login to merge, or discard this patch.
src/Controller/Shop/Myorders.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -60,7 +60,7 @@  discard block
 block discarded – undo
60 60
             if (filter_input(INPUT_GET, 'id') !== null && filter_input(INPUT_GET, 'action') === 'show') {
61 61
                 $iId = \filter_input(INPUT_GET, 'id', FILTER_SANITIZE_NUMBER_INT);
62 62
 
63
-                $sql = 'SELECT * FROM ' . 'orders WHERE o_id = :id AND o_custno = \'' . $_SESSION['user']['cust_no'] . '\' AND o_ordercompleted != \'d\'';
63
+                $sql = 'SELECT * FROM '.'orders WHERE o_id = :id AND o_custno = \''.$_SESSION['user']['cust_no'].'\' AND o_ordercompleted != \'d\'';
64 64
                 $hResult = $this->db->prepare($sql);
65 65
                 $hResult->bindValue(':id', $iId);
66 66
                 $hResult->execute();
@@ -73,7 +73,7 @@  discard block
 block discarded – undo
73 73
                         $aOrder['o_ordertimestamp']
74 74
                     );
75 75
                     $this->P->cb_customdata['orderdata']['orderremarks'] = $aOrder['o_remarks'];
76
-                    $this->P->cb_customdata['orderdata']['paymentmethod'] = $this->textcats->T('order_paymentmethod_' . $aOrder['o_paymentmethod']);
76
+                    $this->P->cb_customdata['orderdata']['paymentmethod'] = $this->textcats->T('order_paymentmethod_'.$aOrder['o_paymentmethod']);
77 77
                     $this->P->cb_customdata['orderdata']['paymentcompleted'] = (($aOrder['o_paymentcompleted'] === 'y') ? $this->textcats->T('myorders_paymentstatus_completed') : $this->textcats->T('myorders_paymentstatus_open'));
78 78
                     $this->P->cb_customdata['orderdata']['orderstatus'] = $this->helperShop->showOrderStatusText($this->textcats, $aOrder['o_ordercompleted']);
79 79
                     $this->P->cb_customdata['orderdata']['shippingservice'] = $aOrder['o_shipping_service'];
@@ -115,12 +115,12 @@  discard block
 block discarded – undo
115 115
                 }
116 116
             } else {
117 117
                 $COList = [
118
-                    ['title' => $this->textcats->T('order_head_orderdate'), 'key' => 'o_ordertime', 'width' => 110, 'linked' => false,],
119
-                    ['title' => $this->textcats->T('order_head_paymenthethod'), 'key' => 'o_paymentmethod', 'width' => 125, 'linked' => false,],
120
-                    ['title' => $this->textcats->T('order_head_paid'), 'key' => 'o_paymentcompleted', 'width' => 60, 'linked' => false,],
121
-                    ['title' => $this->textcats->T('order_head_status'), 'key' => 'o_order_status', 'width' => 80, 'linked' => false,],
122
-                    ['title' => $this->textcats->T('order_head_shipping_service'), 'key' => 'o_shipping_service', 'width' => 90, 'linked' => false,],
123
-                    ['title' => $this->textcats->T('order_head_shipping_trackingno'), 'key' => 'o_shipping_trackingno', 'width' => 130, 'linked' => false,],
118
+                    ['title' => $this->textcats->T('order_head_orderdate'), 'key' => 'o_ordertime', 'width' => 110, 'linked' => false, ],
119
+                    ['title' => $this->textcats->T('order_head_paymenthethod'), 'key' => 'o_paymentmethod', 'width' => 125, 'linked' => false, ],
120
+                    ['title' => $this->textcats->T('order_head_paid'), 'key' => 'o_paymentcompleted', 'width' => 60, 'linked' => false, ],
121
+                    ['title' => $this->textcats->T('order_head_status'), 'key' => 'o_order_status', 'width' => 80, 'linked' => false, ],
122
+                    ['title' => $this->textcats->T('order_head_shipping_service'), 'key' => 'o_shipping_service', 'width' => 90, 'linked' => false, ],
123
+                    ['title' => $this->textcats->T('order_head_shipping_trackingno'), 'key' => 'o_shipping_trackingno', 'width' => 130, 'linked' => false, ],
124 124
                     [
125 125
                         'title' => $this->textcats->T('order_show'),
126 126
                         'key' => 'o_id',
@@ -128,7 +128,7 @@  discard block
 block discarded – undo
128 128
                         'linked' => true,
129 129
                         'ltarget' => '/_misc/myorders.html',
130 130
                         'lkeyname' => 'id',
131
-                        'lgetvars' => ['action' => 'show',],
131
+                        'lgetvars' => ['action' => 'show', ],
132 132
                     ],
133 133
                 ];
134 134
 
Please login to merge, or discard this patch.
src/Shop/Items.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -182,12 +182,12 @@  discard block
 block discarded – undo
182 182
             if (!$bEnableItemGroups || \trim($aRow['itm_group']) == 0) {
183 183
                 $aAssembly['item'][$aRow['itm_no']] = $aRow;
184 184
             } else {
185
-                if (isset($aAssembly['groups']['ITEMGROUP-' .$aRow['itm_group']])) {
186
-                    $aAssembly['groups']['ITEMGROUP-' .$aRow['itm_group']][$aRow['itm_no']] = $aRow;
185
+                if (isset($aAssembly['groups']['ITEMGROUP-'.$aRow['itm_group']])) {
186
+                    $aAssembly['groups']['ITEMGROUP-'.$aRow['itm_group']][$aRow['itm_no']] = $aRow;
187 187
                 } else {
188
-                    $aAssembly['item']['ITEMGROUP-' .$aRow['itm_group']]['group'] = 'ITEMGROUP-' .$aRow['itm_group'];
189
-                    $aAssembly['groups']['ITEMGROUP-' .$aRow['itm_group']]['ITEMGROUP-DATA'] = $this->getGroupdata($aRow['itm_group']);
190
-                    $aAssembly['groups']['ITEMGROUP-' .$aRow['itm_group']][$aRow['itm_no']] = $aRow;
188
+                    $aAssembly['item']['ITEMGROUP-'.$aRow['itm_group']]['group'] = 'ITEMGROUP-'.$aRow['itm_group'];
189
+                    $aAssembly['groups']['ITEMGROUP-'.$aRow['itm_group']]['ITEMGROUP-DATA'] = $this->getGroupdata($aRow['itm_group']);
190
+                    $aAssembly['groups']['ITEMGROUP-'.$aRow['itm_group']][$aRow['itm_no']] = $aRow;
191 191
                 }
192 192
             }
193 193
         }
@@ -228,7 +228,7 @@  discard block
 block discarded – undo
228 228
             $aData['itm_vatid'] = 'full';
229 229
         }
230 230
 
231
-        if(is_numeric($aData['itm_price']) && (float) $aData['itm_price'] > 0) {
231
+        if (is_numeric($aData['itm_price']) && (float) $aData['itm_price'] > 0) {
232 232
             $aPrice['netto_list'] = $aData['itm_price'];
233 233
             $aPrice['brutto_list'] = $this->addVat($aPrice['netto_list'], $this->config->getShop('vat')[$aData['itm_vatid']]);
234 234
             if (
@@ -250,7 +250,7 @@  discard block
 block discarded – undo
250 250
                         bcdiv(
251 251
                             bcsub(
252 252
                                 '100',
253
-                                (string)$this->config->getShop('rebate_groups')[$aData['itm_rg']][$this->helperCustomer->getUserData('cust_group')]
253
+                                (string) $this->config->getShop('rebate_groups')[$aData['itm_rg']][$this->helperCustomer->getUserData('cust_group')]
254 254
                             ),
255 255
                             '100'
256 256
                         )
@@ -282,7 +282,7 @@  discard block
 block discarded – undo
282 282
                 bcdiv(
283 283
                     bcmul(
284 284
                         $price,
285
-                        (string)$vat
285
+                        (string) $vat
286 286
                     ),
287 287
                     '100'
288 288
                 ),
Please login to merge, or discard this patch.
src/HCSF.php 1 patch
Spacing   +13 added lines, -13 removed lines patch added patch discarded remove patch
@@ -65,20 +65,20 @@  discard block
 block discarded – undo
65 65
             $this->setupRequest();
66 66
         }
67 67
 
68
-        $this->serviceManager->setFactory('config', function () {
68
+        $this->serviceManager->setFactory('config', function() {
69 69
             return new HelperConfig();
70 70
         });
71 71
         $this->config = $this->serviceManager->get('config');
72 72
 
73
-        $this->serviceManager->setFactory('helper', function (ServiceManager $serviceManager) {
73
+        $this->serviceManager->setFactory('helper', function(ServiceManager $serviceManager) {
74 74
             return new \HaaseIT\HCSF\Helper($serviceManager);
75 75
         });
76 76
 
77
-        $this->serviceManager->setFactory('helpercustomer', function (ServiceManager $serviceManager) {
77
+        $this->serviceManager->setFactory('helpercustomer', function(ServiceManager $serviceManager) {
78 78
             return new \HaaseIT\HCSF\Customer\Helper($serviceManager);
79 79
         });
80 80
 
81
-        $this->serviceManager->setFactory('helpershop', function (ServiceManager $serviceManager) {
81
+        $this->serviceManager->setFactory('helpershop', function(ServiceManager $serviceManager) {
82 82
             return new \HaaseIT\HCSF\Shop\Helper($serviceManager);
83 83
         });
84 84
 
@@ -104,11 +104,11 @@  discard block
 block discarded – undo
104 104
 
105 105
         date_default_timezone_set($this->config->getCore('defaulttimezone'));
106 106
 
107
-        $this->serviceManager->setFactory('hardcodedtextcats', function () {
107
+        $this->serviceManager->setFactory('hardcodedtextcats', function() {
108 108
             return $this->setupHardcodedTextcats();
109 109
         });
110 110
 
111
-        $this->serviceManager->setFactory('db', function () {
111
+        $this->serviceManager->setFactory('db', function() {
112 112
             return null;
113 113
         });
114 114
 
@@ -123,7 +123,7 @@  discard block
 block discarded – undo
123 123
         }
124 124
 
125 125
         if ($this->config->getCore('enable_module_shop')) {
126
-            $this->serviceManager->setFactory('oItem', function (ServiceManager $serviceManager) {
126
+            $this->serviceManager->setFactory('oItem', function(ServiceManager $serviceManager) {
127 127
                 return new \HaaseIT\HCSF\Shop\Items($serviceManager);
128 128
             });
129 129
         }
@@ -140,7 +140,7 @@  discard block
 block discarded – undo
140 140
     {
141 141
         // PSR-7 Stuff
142 142
         // Init request object
143
-        $this->serviceManager->setFactory('request', function () {
143
+        $this->serviceManager->setFactory('request', function() {
144 144
             $request = \Zend\Diactoros\ServerRequestFactory::fromGlobals();
145 145
 
146 146
             // cleanup request
@@ -204,7 +204,7 @@  discard block
 block discarded – undo
204 204
 
205 205
     protected function setupDB()
206 206
     {
207
-        $this->serviceManager->setFactory('dbal', function () {
207
+        $this->serviceManager->setFactory('dbal', function() {
208 208
             $config = new \Doctrine\DBAL\Configuration();
209 209
 
210 210
             $connectionParams = [
@@ -225,14 +225,14 @@  discard block
 block discarded – undo
225 225
             return \Doctrine\DBAL\DriverManager::getConnection($connectionParams, $config);
226 226
         });
227 227
 
228
-        $this->serviceManager->setFactory('db', function (ServiceManager $serviceManager) {
228
+        $this->serviceManager->setFactory('db', function(ServiceManager $serviceManager) {
229 229
             return $serviceManager->get('dbal')->getWrappedConnection();
230 230
         });
231 231
     }
232 232
 
233 233
     protected function setupTextcats()
234 234
     {
235
-        $this->serviceManager->setFactory('textcats', function (ServiceManager $serviceManager) {
235
+        $this->serviceManager->setFactory('textcats', function(ServiceManager $serviceManager) {
236 236
             $langavailable = $this->config->getCore('lang_available');
237 237
             $textcats = new \HaaseIT\Toolbox\Textcat(
238 238
                 $this->config->getLang(),
@@ -249,7 +249,7 @@  discard block
 block discarded – undo
249 249
 
250 250
     protected function setupTwig()
251 251
     {
252
-        $this->serviceManager->setFactory('twig', function (ServiceManager $serviceManager) {
252
+        $this->serviceManager->setFactory('twig', function(ServiceManager $serviceManager) {
253 253
             $loader = new \Twig_Loader_Filesystem([PATH_BASEDIR.'customviews', HCSF_BASEDIR.'src/views/']);
254 254
 
255 255
             $twig_options = [
@@ -372,7 +372,7 @@  discard block
 block discarded – undo
372 372
         }
373 373
 
374 374
         $aP['countrylist'][] = ' | ';
375
-        $configcountries = $this->config->getCountries('countries_' .$this->config->getLang());
375
+        $configcountries = $this->config->getCountries('countries_'.$this->config->getLang());
376 376
         foreach ($configcountries as $sKey => $sValue) {
377 377
             $aP['countrylist'][] = $sKey.'|'.$sValue;
378 378
         }
Please login to merge, or discard this patch.