Completed
Push — master ( 2d3b60...70a84b )
by Marcus
03:18
created
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.
src/Controller/Admin/Shop/Shopadmin.php 1 patch
Spacing   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -94,12 +94,12 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
                     }
Please login to merge, or discard this patch.
src/Controller/Admin/Phpinfo.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -43,7 +43,7 @@
 block discarded – undo
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
             )
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
@@ -163,12 +163,12 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
263 263
                 bcdiv(
264 264
                     bcmul(
265 265
                         $price,
266
-                        (string)$vat
266
+                        (string) $vat
267 267
                     ),
268 268
                     '100'
269 269
                 ),
Please login to merge, or discard this patch.
src/Shop/Helper.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -102,11 +102,11 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
                 }
Please login to merge, or discard this patch.
src/HCSF.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -213,7 +213,7 @@
 block discarded – undo
213 213
     }
214 214
 
215 215
     /**
216
-     * @return mixed
216
+     * @return ServiceManager
217 217
      */
218 218
     public function getServiceManager()
219 219
     {
Please login to merge, or discard this patch.
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -41,7 +41,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/Controller/Admin/Customer/Customeradmin.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -57,11 +57,11 @@  discard block
 block discarded – undo
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
 block discarded – undo
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'));
Please login to merge, or discard this patch.
src/Controller/Shop/Shoppingcart.php 2 patches
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -326,7 +326,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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)
Please login to merge, or discard this 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.
src/Controller/Shop/Sofortueberweisung.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -72,13 +72,13 @@
 block discarded – undo
72 72
                 .'&amp;project_id='.HelperConfig::$shop['sofortueberweisung']['project_id'].'&amp;amount='
73 73
                 .number_format($fGesamtbrutto, 2, '.', '')
74 74
                 .'&amp;currency_id='.HelperConfig::$shop['sofortueberweisung']['currency_id'].'&amp;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 77
                 \HaaseIT\HCSF\Helper::redirectToPage($sPURL);
78 78
             }
79 79
 
80
-            $this->P->oPayload->cl_html = $this->textcats->T('misc_paysofortueberweisung_greeting') . '<br><br>';
81
-            $this->P->oPayload->cl_html .= '<a href="' . $sPURL . '">' . $this->textcats->T('misc_paysofortueberweisung') . '</a>';
80
+            $this->P->oPayload->cl_html = $this->textcats->T('misc_paysofortueberweisung_greeting').'<br><br>';
81
+            $this->P->oPayload->cl_html .= '<a href="'.$sPURL.'">'.$this->textcats->T('misc_paysofortueberweisung').'</a>';
82 82
         } else {
83 83
             $this->P->oPayload->cl_html = $this->textcats->T('misc_paysofortueberweisung_paymentnotavailable');
84 84
         }
Please login to merge, or discard this patch.